Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't installtasks because of IOError #52

Closed
matthewgo opened this issue May 15, 2016 · 6 comments
Closed

Can't installtasks because of IOError #52

matthewgo opened this issue May 15, 2016 · 6 comments

Comments

@matthewgo
Copy link

I'm getting an IOError of "Please specify user or filename to write" when I try to register the tasks with cron. This is raised in the crontab.py file. The crontab app was downloaded along with the installation of kronos.

I got the showtasks and runtasks command to run but I can register the tasks using the installtasks command

Do you guys have an idea how to solve this?.

@matthewgo
Copy link
Author

I am using Windows btw.

@jppineda
Copy link

Any solution for this issue?

@jgorset
Copy link
Owner

jgorset commented Jun 2, 2016

Kronos isn't tested on windows. In fact, does Windows even have cron?

@SteveByerly
Copy link

Python-Crontab does work with Windows, but only offers two non-system methods (tabfile and tab), neither of which are setup to be used with kronos. See https://pypi.python.org/pypi/python-crontab#how-to-use-the-module

There might be some way to add this functionality to kronos, but not as it's currently setup since kronos installs new tasks with:
tab = crontab.CronTab(user=True)

I think this issue can be closed.

@AnandMoorthy
Copy link

AnandMoorthy commented Oct 27, 2016

Hello folks,

I am also facing the this kind of error, when i execute

python manage.py installtasks

When i execute this command via python script using subprocess throwing an error

raise IOError("Read crontab %s: %s" % (self.user, err))
IOError: Read crontab nobody: You (nobody) are not allowed to use this program (/usr/bin/crontab)

So, is installtasks command running via nobody user? or any explanation to this problem?

@jgorset
Copy link
Owner

jgorset commented Oct 27, 2016

Sounds like you're running python manage.py installtasks with a user that doesn't have permission to add or read the crontab, @AnandMoorthy.

@jgorset jgorset closed this as completed Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants