-
Notifications
You must be signed in to change notification settings - Fork 4
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
Cron job errors out when running SNODASDaily_Automated.py script #38
Comments
Also, I ran into the same thing with GeoProcessor and the run script sets |
The * * * * * export DISPLAY=<full-display-name> && /path/to/script.bash Closing the issue. |
This is helpful for understanding places where DISPLAY might be getting set by the system: https://stackoverflow.com/questions/52041092/setting-environment-variable-for-a-compute-engine-vm |
It looks like it did not run again today. I still would like to understand why
If it is necessary to do this, then I recommend updating the application to accept a command line parameter such as --noui (no UI) or similar. This can be used when running in headless mode. I searched GeoProcessor for something like this but don't see anything. I remember looking into it but perhaps there has not been a need to run the GeoProcessor headless. |
The issue was finally resolved. QT was trying to run GUI based code in a headless server. The original error up above gave possible plugins to use instead. One of these options is The |
The automated script runs correctly when manually run on command line, but when the cron job runs the same script,
what I believe to be a X Windows error displays:
The text was updated successfully, but these errors were encountered: