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 schedule gamadv-xtd3 with cron #18

Closed
lucamanga opened this issue Jul 25, 2019 · 5 comments
Closed

can't schedule gamadv-xtd3 with cron #18

lucamanga opened this issue Jul 25, 2019 · 5 comments

Comments

@lucamanga
Copy link

Hello,

I schedule a gam claim ownership every day, but it seems that it is not working.

The log states:

 ==> 2019-07-25 09:48:01 Claiming ownership for: email@email.email

ERROR: Connection error: [Errno 101] Network is unreachable

the error happens after about 45 minutes, ever time.

Doing it interactively on BASH prompt doesn't give any error.

Any idea?

@taers232c
Copy link
Owner

taers232c commented Jul 25, 2019 via email

@taers232c
Copy link
Owner

Can you call me on Google Hangouts? I'm in California (PDT) and am generally available from 07:30-17:30. Yuu can also send Meet invitation.

@lucamanga
Copy link
Author

This would seem to indicate that whatever environment the cron job runs in, there is now network access. What user does the cron job runs as? Do you run the gam command directly of via a script?

  1. root
  2. via a script that does multiple "gam claim ownership" NOT in parallel, but one by one

@taers232c
Copy link
Owner

taers232c commented Jul 26, 2019 via email

@lucamanga
Copy link
Author

The problem was that the CRON doesn't inherit the http_proxy environment variable set in ~/.bashrc

Putting it as a row at the top of crontab solves the problem!

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

2 participants