![]() |
|
|
#45 | |
|
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
3×23×89 Posts |
Quote:
|
|
|
|
|
|
|
#46 |
|
Sep 2006
Germany
2·5·19 Posts |
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;
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. |
|
|
|
|
|
#47 |
|
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
3×23×89 Posts |
Sounds like the problem to me. Hopefully rouge can tell you how to fix it.
|
|
|
|
|
|
#48 |
|
"Mark"
Apr 2003
Between here and the
11100101011012 Posts |
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. |
|
|
|
|
|
#49 |
|
Sep 2006
Germany
BE16 Posts |
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. |
|
|
|
|
|
#50 | |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
Quote:
|
|
|
|
|
|
|
#51 |
|
"Mark"
Apr 2003
Between here and the
3·2,447 Posts |
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. |
|
|
|
|
|
#52 |
|
"Mark"
Apr 2003
Between here and the
1CAD16 Posts |
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.
|
|
|
|
|
|
#55 |
|
"Mark"
Apr 2003
Between here and the
162558 Posts |
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 |
|
|
|
![]() |
| 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 |