mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2013-01-13, 15:40   #45
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

Quote:
Originally Posted by Xentar View Post
The problem appeared after updating the prpserver only. I didnt touch the MySQL server (or ODBC driver). The old version ran for months without restarting. Maybe I just should update them? The newest MySQL version is 5.5.*

A few minutes ago, I saw this lines in the log:
Code:
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL_ERROR: [MySQL][ODBC 5.1 Driver][mysqld-5.1.43-community]Lock wait timeout exceeded; try restarting transaction
[2013-01-13 16:32:03 MZ] 524: ODBC Information: SQL Statement: update Candidate    set HasPendingTest = 1  where CandidateName = 1446*19^100146+1    and HasPendingTest = 0
I will try debuglevel=1 and see if it crashes again.
In post 46 rouge mentioned that there were sql statements needed to upgrade a server from 4 to 5. I can't see you mentioning them.
henryzz is offline   Reply With Quote
Old 2013-01-13, 15:50   #46
Xentar
 
Xentar's Avatar
 
Sep 2006
Germany

2·5·19 Posts
Default

I executed the following SQL script while updating:

Code:
    alter table UserPrimes change column ClientID MachineID varchar(200) collate latin1_bin;
    alter table UserPrimes add column InstanceID varchar(200) collate latin1_bin;
    alter table CandidateTest change column ClientID MachineID varchar(200) collate latin1_bin;
    alter table CandidateTest add column InstanceID varchar(200) collate latin1_bin;
    alter table CandidateGFNDivisor change column ClientID MachineID varchar(200) collate latin1_bin;
    alter table CandidateGFNDivisor add column InstanceID varchar(200) collate latin1_bin;
    
    update UserPrimes set InstanceID = MachineID;
    update CandidateTest set InstanceID = MachineID;
    update CandidateGFNDivisor set InstanceID = MachineID;
All tables *WWWW* are still missing. Could this cause a problem?
I didn't think so, because there was no update script from version 4.* to version 5.*
The new tables just exist, when you use the newest "create_tables_mysql.sql", but not when upgrading.
Xentar is offline   Reply With Quote
Old 2013-01-13, 16:05   #47
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

Sounds like the problem to me. Hopefully rouge can tell you how to fix it.
henryzz is offline   Reply With Quote
Old 2013-01-13, 16:35   #48
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

11100101011012 Posts
Default

Upgrading from 4.3 to 5.0 requires the creation of the WWWW* tables only which are only needed for WWWW projects, i.e. those run by PrimeGrid. Additional modifications for the minor releases are in the history.txt file.

As for timeouts, they occur, but aren't serious as the application can recover from them.

I will be releasing an update this coming week. I'll make sure to do a clean before the build hoping that it will resolve the problem.
rogue is online now   Reply With Quote
Old 2013-01-17, 22:54   #49
Xentar
 
Xentar's Avatar
 
Sep 2006
Germany

BE16 Posts
Default

I updated my MySQL server on monday from version 5.1.43 to 5.5.29.
Since then, no crash of PRPNetServer.

I still have debug output enabled, and I think that the SQL commands are executed much faster after the update.
So maybe the crash had something to do with table locking / slow SQL commands. I'm running 6 clients, so maybe it is a deadlock, when two clients request new data at the same time.

Will tell you, if it happens again.
Xentar is offline   Reply With Quote
Old 2013-01-17, 23:44   #50
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3·2,447 Posts
Default

Quote:
Originally Posted by Xentar View Post
I updated my MySQL server on monday from version 5.1.43 to 5.5.29.
Since then, no crash of PRPNetServer.

I still have debug output enabled, and I think that the SQL commands are executed much faster after the update.
So maybe the crash had something to do with table locking / slow SQL commands. I'm running 6 clients, so maybe it is a deadlock, when two clients request new data at the same time.
Deadlocks are possible, but not likely. If one occurs, you will see it in the log, even if debug is turned off.
rogue is online now   Reply With Quote
Old 2013-01-19, 15:42   #51
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3·2,447 Posts
Default

I think I found the bug in the server code. I was able to reproduce easily on my Mac, but reproducing on Windows is difficult. In DBInterface::Disconnect, I have these lines of code:

SQLDisconnect(ip_SQLConnectionHandle);
SQLFreeHandle(SQL_HANDLE_STMT, ip_SQLStatementHandle);

They should be in this order:

SQLFreeHandle(SQL_HANDLE_STMT, ip_SQLStatementHandle);
SQLDisconnect(ip_SQLConnectionHandle);

Closing the connection first frees the statement handle, which makes sense as the statement can only exist with a connection.

I'll release 5.2.3 on Monday.
rogue is online now   Reply With Quote
Old 2013-01-21, 13:44   #52
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

1CAD16 Posts
Default

I've posted 5.2.3. It has the following changes:

Code:
client:  If client detects an error when starting up, show the error, then
         sleep for 10 seconds so that user can see the error.  This addresses
         an issue for users who double-click on the application but the window
         closes immediately due to a configuration error.

server:  Fixed *nix compile bug with the server.
server:  Added serverstatssummaryonly= option to prpserver.ini.  When set to 1
         the server will only show the summary line on server_stats.html.
server:  Add sorting capability to a number of html tables.
server:  Refactored much of the HTML generation code.
server:  Fix crash when database connection is closed.
You can d/l 5.2.4 from here.
rogue is online now   Reply With Quote
Old 2013-01-22, 18:37   #53
rebirther
 
rebirther's Avatar
 
Sep 2011
Germany

5·7·103 Posts
Default

Quote:
Originally Posted by rogue View Post
You can d/l 5.2.4 from here.
The link is wrong, must be here ;)
rebirther is offline   Reply With Quote
Old 2013-01-22, 18:56   #54
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

Quote:
Originally Posted by rebirther View Post
The link is wrong, must be here ;)
Sorry, getting ahead of myself. :-)
rogue is online now   Reply With Quote
Old 2013-04-20, 18:50   #55
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

162558 Posts
Default

I've posted PRPNet 5.2.4. In this version I updated SharedMemoryItem to simplify the use of mutexes in the server. I fixed ^C on the server so that it waits or connected clients to close their connections before shutting down. I also fixed a computation error affecting the calculation of the number of days left on the server_stats.html page. Finally, I fixed a problem with the loading of candidates that would give erroneous messages.

One more thing I forgot. If localtimelog is set to 2, then the server will not print the timezone in the log.

You can d/l 5.2.4 from here.

Last fiddled with by rogue on 2013-04-20 at 19:07
rogue is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
PRPNet 4.0.0 Released rogue Software 84 2011-11-16 21:20
PRPNet 4.0.1 Released Joe O Sierpinski/Riesel Base 5 1 2010-10-22 20:11
PRPNet 3.0.0 Released rogue Conjectures 'R Us 220 2010-10-12 20:48
PRPnet mdettweiler No Prime Left Behind 80 2010-02-09 21:31
PRPNet released! rogue Conjectures 'R Us 250 2009-12-27 21:29

All times are UTC. The time now is 14:13.


Fri Jul 7 14:13:22 UTC 2023 up 323 days, 11:41, 0 users, load averages: 2.04, 1.51, 1.31

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔