After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 597613 - Tasks are not done
Tasks are not done
Status: RESOLVED DUPLICATE of bug 509233
Product: gnome-schedule
Classification: Other
Component: general
2.0.2
Other Linux
: Normal normal
: ---
Assigned To: GNOME Schedule Maintainers
GNOME Schedule Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-10-06 21:06 UTC by Niklas Caspers
Modified: 2009-10-07 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Niklas Caspers 2009-10-06 21:06:38 UTC
I use Gnome Schedule 2.0.2 to make a backup everyday. But whenever I checked if the backup was done, it was never actually processed I had to manually do it myself. The computer is usually on during that time (at least the last 4-5times).
Comment 1 Gaute Hope 2009-10-06 21:17:34 UTC
Greetings,

Check if everything is setup like it should: http://gaute.vetsj.com/2009/02/20/how-to-figure-out-if-crontab-and-at-is-correctly-set-up/

this depends on your distro so please consult its docuemtation on how to turn on the both needed crontab and at daemons.

- gaute
Comment 2 Niklas Caspers 2009-10-06 22:05:35 UTC
Hey

Went through the whole process, everything was fine, but gnome-schedule still doesnt work.

-Niklas
Comment 3 Gaute Hope 2009-10-07 06:24:26 UTC
Hey,

So you must be trying to set up a recurrent task ?

Does it show up in Gnome-schedule ?

What is the exact command you are trying to run ?

Is the program an X application ? (gui/cli)?

What is the output of 'crontab -l' ?

What distribution are you running ? What version of gnome-schedule ? 

- gaute
Comment 4 Gaute Hope 2009-10-07 06:28:40 UTC
(In reply to comment #3)
> What version of gnome-schedule ? 

Just discovered that in your first post! The last release 2.1.1 does include a lot of bugfixes and a few new features; including support for X applications. If you are able to, please upgrade.

- gaute
Comment 5 Niklas Caspers 2009-10-07 14:03:12 UTC
>So you must be trying to set up a recurrent task ?
Yes daily backup.

>Does it show up in Gnome-schedule ?
Yes

>What is the output of 'crontab -l' ?
30 12 * * * grsync -e "University" #JOB_ID_1

>What is the exact command you are trying to run ?
grsync, the graphical interface for rsync. I was looking for a way to make daily backups with Ubuntu, this was what I was told, use gnome-schedule with grsync.

>What distribution are you running ? What version of gnome-schedule ? 
Ubuntu 9.04, gnome 2.1.1

>Just discovered that in your first post! The last release 2.1.1 does include a
>lot of bugfixes and a few new features; including support for X applications.
>If you are able to, please upgrade.
I tried to upgrade gnome-schedule to 2.1.1 but I couldnt, The configure command wouldnt work because I am missing pygtk-2.0 and I couldnt find a way to install that.

-Niklas
Comment 6 Gaute Hope 2009-10-07 14:21:20 UTC
> --- Comment #5 from Niklas Caspers <uyboz@stud.uni-karlsruhe.de> 2009-10-07
> 14:03:12 UTC ---
> >What is the exact command you are trying to run ?
> grsync, the graphical interface for rsync. I was looking for a way to make
> daily backups with Ubuntu, this was what I was told, use gnome-schedule with
> grsync.

Gnome-schedule, earlier than 2.1.0, doesn't automatically support X
applications,
see the comments on:
http://gaute.vetsj.com/2009/02/20/how-to-figure-out-if-crontab-and-at-is-correct
ly-set-up/#comments

> I tried to upgrade gnome-schedule to 2.1.1 but I couldnt, The configure command
> wouldnt work because I am missing pygtk-2.0 and I couldnt find a way to install
> that.

From source? I belive the package is called python-gtk2 in Ubuntu. But
you will need a few development packages as well. See the README on
gitweb: http://git.gnome.org/cgit/gnome-schedule/tree/README

You could try to manually install the ready-packed version - 2.1.0 - from
Ubuntu 9.10:
http://packages.ubuntu.com/karmic/gnome-schedule

- gaute
Comment 7 Gaute Hope 2009-10-07 14:24:18 UTC

*** This bug has been marked as a duplicate of bug 509233 ***
Comment 8 Niklas Caspers 2009-10-07 16:47:13 UTC
Well so I went to manually installing the ready-packed version from the link you gave me, now gnome-schedule is not starting at all anymore.

When I type in the terminal: $ gnome-schedule
I get:
Traceback (most recent call last):
  • File "/usr/share/gnome-schedule/gnome-schedule.py", line 74 in <module>
    mainWindow = mainWindow.main(debug_flag, False, pr, manual_poscorrect)
  • File "/usr/share/gnome-schedule/mainWindow.py", line 257 in __init__
    self.schedule_reload ()
  • File "/usr/share/gnome-schedule/mainWindow.py", line 304 in schedule_reload
    data = self.crontab.read ()
  • File "/usr/share/gnome-schedule/crontab.py", line 438 in read
    array_or_false = self.parse (line)
  • File "/usr/share/gnome-schedule/crontab.py", line 604 in parse
    success, ver, title, desc, output, display, command_d = self.get_job_data (job_id)
  • File "/usr/share/gnome-schedule/crontab.py", line 690 in get_job_data
    return True, ver, title, desc, output, display, command_d
UnboundLocalError: local variable 'display' referenced before assignment

Comment 9 Gaute Hope 2009-10-07 18:14:19 UTC
(In reply to comment #8)
> Well so I went to manually installing the ready-packed version from the link
> you gave me, now gnome-schedule is not starting at all anymore.

Yes.. this is https://bugs.launchpad.net/ubuntu/+source/gnome-schedule/+bug/419471 or bug 588091. Fixed in the latest development version (2.1.1) which is _not yet_ packed by Ubuntu. Please post another comment on the above linked launchpad bug to make them realize this is going to bug a lot of users.

The quick fix is to delete your crontab and set up your tasks again:

$ crontab -d

- gaute