mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   [Comm thread May 4 09:22] ERROR: Unable to open spool file. (https://www.mersenneforum.org/showthread.php?t=26767)

drkirkby 2021-05-04 13:09

[Comm thread May 4 09:22] ERROR: Unable to open spool file.
 
I'm seeing this error running mprime on CentOS linux [CODE] [Comm thread May 4 09:22] ERROR: Unable to open spool file.[/CODE]I'm pretty sure I know what is the cause, but are not sure how to resolve. Yesterday I was configuring mprime to start as the computer boots, and started it as root once. Now it is starting properly as a normal user. I suspect mprime has created a file which is owned by root, to which a normal user can't read/write. Can anyone tell me what that file is? I'll then be able to sort it out.

Or if there's some other reason. I was messing around with a UPS yesterday, which again required some work as root. It is remotely possible that something changed by that is messing up mprime, but I suspect the program is due to running mprime as root for a short time

paulunderwood 2021-05-04 13:19

Do [C]ls -laR *[/C] in your mprime directory. If you see ownership to root run [C]sudo chown -R dave:dave *[/C] in your mprime directory, assuming "dave" is your username.

drkirkby 2021-05-04 13:34

Thank you, I think I found the problem before seeing your post. There was a .pid file owned by root. I deleted that. I hoping that it is the case, but I'm not 100% convinced, as I have another issue, but probably unrelated to this one.

drkirkby 2021-05-04 13:38

How can I recover an asignment lost from worktodo.txt ?
 
I've got this assignment

[URL]https://www.mersenne.org/report_exponent/?exp_lo=110826539&full=1[/URL]

and I think it might be completed, but there's nothing in my worktodo.txt file. I have a .proof file. I expect that could be manually uploaded, but is there a way to put back the necessary line in worktodo.txt to get this completed in the usual way, without a manual upload?

Dave

Uncwilly 2021-05-04 13:42

[QUOTE=drkirkby;577611]I've got this assignment

[URL]https://www.mersenne.org/report_exponent/?exp_lo=110826539&full=1[/URL]
[/QUOTE]
This advice should work for this situation too.
[url]https://www.mersenneforum.org/showpost.php?p=577533&postcount=5[/url]
That is the easiest way to make sure that you have the line for the Worktodo.txt correct.

paulunderwood 2021-05-04 13:44

[QUOTE=drkirkby;577611]I've got this assignment

[URL]https://www.mersenne.org/report_exponent/?exp_lo=110826539&full=1[/URL]

and I think it might be completed, but there's nothing in my worktodo.txt file. I have a .proof file. I expect that could be manually uploaded, but is there a way to put back the necessary line in worktodo.txt to get this completed in the usual way, without a manual upload?

Dave[/QUOTE]

I think the worktodo.txt file if for work to do and not upload. You have to await comms with the server for the [URL="https://en.wikipedia.org/wiki/Spooling"]spool[/URL] to be processed.

(Yes, you can go to primenet and get your assignments and copy and paste the relevant line, BUT that will start the proof process again???)

drkirkby 2021-05-04 14:38

[QUOTE=Uncwilly;577612]This advice should work for this situation too.
[URL]https://www.mersenneforum.org/showpost.php?p=577533&postcount=5[/URL]
That is the easiest way to make sure that you have the line for the Worktodo.txt correct.[/QUOTE]
I tried copying the line from worktodo.txt, but it restarts the assignment from 0.00%. It is now showing as 0% complete on the server, but I'm sure it has completed.

drkirkby 2021-05-04 14:43

[QUOTE=paulunderwood;577613]I think the worktodo.txt file if for work to do and not upload. You have to await comms with the sever for the [URL="https://en.wikipedia.org/wiki/Spooling"]spool[/URL] to be processed.

(Yes, you can go to primenet and get your assignments and copy and paste the relevant line, BUT that will start the proof process again???)[/QUOTE]

[B]It starts the whole process again - not just the proof![/B] So it would take a full 2-days. I don't mind if its half-hour to generate the proof again, although I have it.



Dave

paulunderwood 2021-05-04 14:48

[QUOTE=drkirkby;577621][B]It starts the whole process again - not just the proof![/B] So it would take a full 2-days. I don't mind if its half-hour to generate the proof again, although I have it.
[/QUOTE]

Sure. My advice is stop mprime and exit. Remove the line form worktodo.txt. Start mprime. Wait for a communication between the server and the local spool file OR do a manual upload of the proof this time.

drkirkby 2021-05-04 14:54

Em,

I thought I had backed up the files before running mprime again with the exponent, but looking at the dates, everything is in the last hour or so, except the proof file, which is 12 hours old.

Maybe I will have to repeat it all again, unless the information in the proof file can somehow be uploaded.



Dave

paulunderwood 2021-05-04 15:06

[QUOTE=drkirkby;577624]Em,

I thought I had backed up the files before running mprime again with the exponent, but looking at the dates, everything is in the last hour or so, except the proof file, which is 12 hours old.

Maybe I will have to repeat it all again, unless the information in the proof file can somehow be uploaded.
[/QUOTE]

Please see my previous post. I defer to another to tell how to do a manual upload of the proof file. Firstly you will have to copy and paste the json information for the exponent from the results.txt file to mersenne.org-->Manual Testing-->results (and submit). Then run a script to upload the actual proof file.

drkirkby 2021-05-04 15:21

I submitted the results manually, using the results.json.txt file. That reports the familiar fact that it is not prime. But there's no option to upload the proof file. So if someone can tell me how I can upload a proof file, I will do so. If need be I can put it on a webserver, and someone download it from there.



Dave

paulunderwood 2021-05-04 15:36

[QUOTE=drkirkby;577627]I submitted the results manually, using the results.json.txt file. That reports the familiar fact that it is not prime. But there's no option to upload the proof file. So if someone can tell me how I can upload a proof file, I will do so. If need be I can put it on a webserver, and someone download it from there.
[/QUOTE]

gpuOwl comes with a file called [URL="https://github.com/preda/gpuowl/blob/master/tools/upload.py"]upload.py[/URL] which I use like this

./upload.py PaulUnderwood <blah>.proof

mprime should do the upload automatically given a communication.

drkirkby 2021-05-04 18:36

[QUOTE=paulunderwood;577628]gpuOwl comes with a file called [URL="https://github.com/preda/gpuowl/blob/master/tools/upload.py"]upload.py[/URL] which I use like this

./upload.py PaulUnderwood <blah>.proof

mprime should do the upload automatically given a communication.[/QUOTE] I was going to use your python script, but I see the file has now gone from the disk, so I assume the proof got uploaded.
I'm still getting this error about being unable to open a spool file when mprime starts.
[CODE][Comm thread May 4 19:27] ERROR: Unable to open spool file.[/CODE]
However, if I start mprime as root, I don't get the error. Very odd. A permissions problem somewhere, but nothing in the directory is owned by root.
Dave

paulunderwood 2021-05-04 18:44

[url]https://www.mersenne.org/report_exponent/?exp_lo=110826539&full=1[/url] now shows "verified" :smile:

I can only reiterate that you run [C]ls -laR | grep root[/C] in your mprime directory.

drkirkby 2021-05-04 19:46

[QUOTE=paulunderwood;577643][URL]https://www.mersenne.org/report_exponent/?exp_lo=110826539&full=1[/URL] now shows "verified" :smile:

I can only reiterate that you run [C]ls -laR | grep root[/C] in your mprime directory.[/QUOTE]It is not something in the directory containing the files for gimps. Everything in there is own by me. Obviously if I run the program is root, some of the files become owned by root, but I changed the ownership back. I don't know if the program is trying to write to /var/spool or something like that. The permissions on the directory don't allow that.


All times are UTC. The time now is 06:20.

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