Redis brain hubot script is broken #14

Closed
opened 2019-02-25 03:39:00 +00:00 by raucao · 6 comments
Owner

Doesn't remember anything anymore. At least data is lost after restarts of the bot.

Doesn't remember anything anymore. At least data is lost after restarts of the bot.
Author
Owner

I looked into it for 10 minutes, but couldn't find anything that looked wrong. Redis is running, and the config is there. This didn't happen from the beginning, so something must have changed at some point.

I looked into it for 10 minutes, but couldn't find anything that looked wrong. Redis is running, and the config is there. This didn't happen from the beginning, so something must have changed at some point.
Owner

I have also looked at it and can't find anything wrong. I have temporarily enabled debug logs for hal, the brain data is loaded successfully. The last saved word for the plusplus script is pbs, set by bkero on 2019-02-08T18:49:44.895Z

I have also looked at it and can't find anything wrong. I have temporarily enabled debug logs for hal, the brain data is loaded successfully. The last saved word for the plusplus script is pbs, set by bkero on 2019-02-08T18:49:44.895Z
Owner

Found something, another hubot process appears to be writing to the same Redis key, looking into it!

Found something, another hubot process appears to be writing to the same Redis key, looking into it!
Owner

Got it, it's botka. It doesn't have its own REDIS_URL set, unlike the xmpp bots

Got it, it's botka. It doesn't have its own REDIS_URL set, unlike the xmpp bots
Owner

That fixed it! I have set the REDIS_URL for botka so it uses its own database, and removed the --------------- entries from the database (by parsing the JSON with Ruby, editing it and setting the key again).

That fixed it! I have set the REDIS_URL for botka so it uses its own database, and removed the `---------------` entries from the database (by parsing the JSON with Ruby, editing it and setting the key again).
greg closed this issue 2019-02-25 17:32:20 +00:00
Author
Owner

Good job.

Good job.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/chef#14
No description provided.