I have the following in my crontab:
00 06 * * * qcronsub -l h_rt=10:00:00 -l virtual_free=100M "/home/theo/tools/bsr_notifier.py"
H owever, upon running qstat about 20 minutes after the cronjob is set to run, I see...absolutely nothing. And the same an hour later. Help?
Most likely it is crashed for some reason. Check output files.
Best regards, Artem.
2013/4/21 Theopolisme theopolismewiki@gmail.com
I have the following in my crontab:
00 06 * * * qcronsub -l h_rt=10:00:00 -l virtual_free=100M "/home/theo/tools/bsr_notifier.py"
H owever, upon running qstat about 20 minutes after the cronjob is set to run, I see...absolutely nothing. And the same an hour later. Help?
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Here's what I see in the output logs. What does this mean?
*import: unable to open X server `' @ error/import.c/ImportImageCommand/362. * *import: unable to open X server `' @ error/import.c/ImportImageCommand/362. * *import: unable to open X server `' @ error/import.c/ImportImageCommand/362. * *import: unable to open X server `' @ error/import.c/ImportImageCommand/362. * *import: unable to open X server `' @ error/import.c/ImportImageCommand/362. * *from: can't read /var/mail/theobot* *from: can't read /var/mail/theobot* */var/sge/spool/execd/nightshade/job_scripts/1863162: 12: Syntax error: "(" unexpected*
On Sun, Apr 21, 2013 at 3:09 AM, Artem Korzhimanov < korzhimanov.artem@gmail.com> wrote:
Most likely it is crashed for some reason. Check output files.
Best regards, Artem.
2013/4/21 Theopolisme theopolismewiki@gmail.com
I have the following in my crontab:
00 06 * * * qcronsub -l h_rt=10:00:00 -l virtual_free=100M "/home/theo/tools/bsr_notifier.py"
H owever, upon running qstat about 20 minutes after the cronjob is set to run, I see...absolutely nothing. And the same an hour later. Help?
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Your script seems to be trying to use an X window server, which the toolserver does not have. Probably it depends on X for some image manipulation task. I would suggest using xvfb (X Virtual Frame Buffer) if you can't modify the script to remove the dependency. On Apr 21, 2013 11:02 AM, "Theopolisme" theopolismewiki@gmail.com wrote:
Here's what I see in the output logs. What does this mean?
*import: unable to open X server `' @ error/import.c/ImportImageCommand/362.
*import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *from: can't read /var/mail/theobot* *from: can't read /var/mail/theobot* */var/sge/spool/execd/nightshade/job_scripts/1863162: 12: Syntax error: "(" unexpected*
On Sun, Apr 21, 2013 at 3:09 AM, Artem Korzhimanov < korzhimanov.artem@gmail.com> wrote:
Most likely it is crashed for some reason. Check output files.
Best regards, Artem.
2013/4/21 Theopolisme theopolismewiki@gmail.com
I have the following in my crontab:
00 06 * * * qcronsub -l h_rt=10:00:00 -l virtual_free=100M "/home/theo/tools/bsr_notifier.py"
H owever, upon running qstat about 20 minutes after the cronjob is set to run, I see...absolutely nothing. And the same an hour later. Help?
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
The full content of the script is [ https://github.com/theopolisme/theobot/blob/master/bsr_notifier.py]. Nowhere in the script is any sort of image processing. I'm suitably mystified.
On Sun, Apr 21, 2013 at 10:06 AM, Wolfgang Faust wolfgangmcq@gmail.comwrote:
Your script seems to be trying to use an X window server, which the toolserver does not have. Probably it depends on X for some image manipulation task. I would suggest using xvfb (X Virtual Frame Buffer) if you can't modify the script to remove the dependency. On Apr 21, 2013 11:02 AM, "Theopolisme" theopolismewiki@gmail.com wrote:
Here's what I see in the output logs. What does this mean?
*import: unable to open X server `' @ error/import.c/ImportImageCommand/362.
*import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *import: unable to open X server `' @ error/import.c/ImportImageCommand/362.* *from: can't read /var/mail/theobot* *from: can't read /var/mail/theobot* */var/sge/spool/execd/nightshade/job_scripts/1863162: 12: Syntax error: "(" unexpected*
On Sun, Apr 21, 2013 at 3:09 AM, Artem Korzhimanov < korzhimanov.artem@gmail.com> wrote:
Most likely it is crashed for some reason. Check output files.
Best regards, Artem.
2013/4/21 Theopolisme theopolismewiki@gmail.com
I have the following in my crontab:
00 06 * * * qcronsub -l h_rt=10:00:00 -l virtual_free=100M "/home/theo/tools/bsr_notifier.py"
H owever, upon running qstat about 20 minutes after the cronjob is set to run, I see...absolutely nothing. And the same an hour later. Help?
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
-- *Theo (User:Theopolisme on Wikipedia) http://enwp.org/wiki/User:Theopolismehttp://en.wikipedia.org/wiki/User:Theopolisme
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 21/04/13 17:21, Theopolisme wrote:
The full content of the script is [https://github.com/theopolisme/theobot/blob/master/bsr_notifier.py]. Nowhere in the script is any sort of image processing. I'm suitably mystified.
The shebang got ignored, somehow, (did bsr_notifier.py have execute permissions?), and sge tried to be execute it as a shell script.
Thus the import lines called import(1) from imagemagick (this program tries to open the X server to take a screenshot)
On linux there's also a from command which prints out the mail header lines from the invoker's mailbox, which produced the /var/mail errors.
See the beginning of the file annotated with the errors given:
#! /usr/bin/env python <- Comment import mwclient <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
import re <- import: unable to open X server `' @ error/import.c/ImportImageCommand/362. import sys <- import: unable to open X server `' @ error/import.c/ImportImageCommand/362. import datetime <- import: unable to open X server `' @ error/import.c/ImportImageCommand/362. import pickle <- import: unable to open X server `' @ error/import.c/ImportImageCommand/362. from theobot import bot <- from: can't read /var/mail/theobot from theobot import password <- from: can't read /var/mail/theobot
# CC-BY-SA Theopolisme <- Comment # Task 9 on [[User:Theo's Little Bot]] <- Comment
def sokay(donenow): <- Syntax error: "(" unexpected
I see you recently changed the shebang in order to add a space before the path: https://github.com/theopolisme/theobot/commit/fe58c45b6e8997177d27f49ef9f25d... Both shebangs are ok.
I will send you privately an email regarding a problem I noticed in your tool.
Regards
Okay, I found this useful old message in the toolserver-l archives: [ http://osdir.com/ml/toolserver-l/2011-01/msg00015.html]. I configured everything like the message suggested [ https://github.com/theopolisme/theobot/commit/302e7383be5aac9de9afc5fe171602...], then ran and got this error:
* /home /theo/pysub[3]: /sge62/default/common/settings.sh: not found* * * * Looks like an issue with the bash code itself. Thoughts?
*
On Sun, Apr 21, 2013 at 11:27 AM, Platonides platonides@gmail.com wrote:
On 21/04/13 17:21, Theopolisme wrote:
The full content of the script is [https://github.com/theopolisme/theobot/blob/master/bsr_notifier.py]. Nowhere in the script is any sort of image processing. I'm suitably mystified.
The shebang got ignored, somehow, (did bsr_notifier.py have execute permissions?), and sge tried to be execute it as a shell script.
Thus the import lines called import(1) from imagemagick (this program tries to open the X server to take a screenshot)
On linux there's also a from command which prints out the mail header lines from the invoker's mailbox, which produced the /var/mail errors.
See the beginning of the file annotated with the errors given:
#! /usr/bin/env python <- Comment import mwclient <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
import re <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
import sys <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
import datetime <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
import pickle <- import: unable to open X server `' @
error/import.c/ImportImageCommand/362.
from theobot import bot <- from: can't read /var/mail/theobot from theobot import password <- from: can't read /var/mail/theobot
# CC-BY-SA Theopolisme <- Comment # Task 9 on [[User:Theo's Little Bot]] <- Comment
def sokay(donenow): <- Syntax error: "(" unexpected
I see you recently changed the shebang in order to add a space before the path:
https://github.com/theopolisme/theobot/commit/fe58c45b6e8997177d27f49ef9f25d... Both shebangs are ok.
I will send you privately an email regarding a problem I noticed in your tool.
Regards
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 21/04/13 19:22, Theopolisme wrote:
Okay, I found this useful old message in the toolserver-l archives: [http://osdir.com/ml/toolserver-l/2011-01/msg00015.html]. I configured everything like the message suggested [https://github.com/theopolisme/theobot/commit/302e7383be5aac9de9afc5fe171602...], then ran and got this error:
/home /theo/pysub[3]: /sge62/default/common/settings.sh: not found/
Looks like an issue with the bash code itself. Thoughts?
/sge62 is an old folder. It is empty now (why wasn't it removed completely?)
Replace . /sge62/default/common/settings.sh with . /sge/settings.sh
Your previous way should have worked, too.
I have been trying several variations of: qcronsub -l h_rt=00:00:20 -l virtual_free=10M -l arch=lx ./helloworld.py
and it is always working. Is the original qcronsub method still failing for you?
toolserver-l@lists.wikimedia.org