Open kenshinjeff opened 4 years ago
Ok I think I know what's the issue at hand but I'm not sure how to fix it. Basically I was using a docker container and then I changed the date on the docker container.
What I should have done was:
docker run -it -p 3000:3000 \
-v /opt/docker-huggin-db/:/var/lib/mysql \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
--env-file /home/myuser/.env_huginn \
--name=huginn \
huginn/huginn
And TIMEZONE="Asia/Singapore" for the .env file but I realise that if even the system shows the correct time, huggin uses the correct time (mouseover the time on a "background job"), the AgentRunScheduleJob won't start. I think it may not be working correctly somehow.
If I comment out #TIMEZONE="Asia/Singapore", it will show this in the log:
foreman stdout | 23:28:39 web.1 | 192.168.1.47 - - [09/Jul/2020:08:28:39 PDT] "GET /worker_status?since_id=2 HTTP/1.1" 200 123
foreman stdout | 23:28:39 web.1 | http://192.168.1.253:3000/agents/2/events?return=%2Fagents%2F2%3Freturn%3D%252Fagents -> /worker_status?since_id=2
foreman stdout | 23:28:42 web.1 | 192.168.1.47 - - [09/Jul/2020:08:28:42 PDT] "GET /worker_status?since_id=2 HTTP/1.1" 200 124
It's kind of working if I do it this way, but not what I was expecting.
And TIMEZONE="Asia/Singapore" for the .env file but I realise that if even the system shows the correct time, huggin uses the correct time (mouseover the time on a "background job"), the AgentRunScheduleJob won't start. I think it may not be working correctly somehow.
Hmm not sure that I follow, scheduled jobs never run or do they run at the wrong time?
If I comment out #TIMEZONE="Asia/Singapore", it will show this in the log:
That log output looks odd indeed, normally the since
argument should be a UNIX epoch, and I doubt the last time the call was made was in 1970 😄
Hi there, thanks for responding! To clarify, when TIMEZONE="Asia/Singapore", scheduled jobs never run.
I have set TIMEZONE="Singapore" and it works well so far...
I have set TIMEZONE="Singapore" and it works well so far...
Why does this work? Is it a ruby specific environment thing?
I think it's Rails specific, this lists the timezone names
Hi there, I'm kind of stuck and I was hoping you could point me in the correct direction. I'm trying to scrape data and transfer the events to an RSS feed. I think I got the xpath correct, it was working for the first 2 days. But somehow it says the agent is down and there's no new events. and it does show the new data when I do a dry run.