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
Error loading config: undefined method `unsafe_load' for Psych:Module #2769
Comments
What a coincidence, I happened to have the exact same problem today when running my docker container. After some digging unsafe_load seem to be added to the Psych library in version 3.3.2. unsafe_load is used in the asetus library since version 0.4.0. So either you knock asetus down to 0.3.0 or bump Psych up to > 3.3.2, i did the latter and it worked. inside oxidized.gemspec:
Note: |
Awesome! Thank you so much! |
Thank you! |
Thank you. I'm running this in a docker container and this change resolved the "unsafe_load" from the psych module error. |
Work in ubuntu if not running docker thanks |
Hi, Will there be a fix on the docker container it-self ?
I tried to install manually:
But getting errors I'm not sure how to fix. Anyone has some pointers Thanks. |
Finally understood the error on on container :
It is ofcause only a workaround, cause if rebuilding the container error will return. Compose:
@aschaber1 will this be marked as a bug ? |
@K4S1 please clone git repo, edit the file oxidized.gemspec as pointed by @yoakim, than build the image, and finally recreate container. Example:
|
Thanks @mdiunip. will test out. |
This piece of software is the most unstable in my whole stack.. really surprised someone could use that in a production environment.. There are no tests for the Docker box?
|
Also the fact that there is no sematic versionning makes it even more a pain.. only |
@mikegleasonjr, Guess that you can use tag "0.29.1" Well it's always a risk running with latest. But to be fair its a great product that are maintained by quite few people, but a pretty supportive community, I'm not complaining. |
Hey, From what I see this will be closed with the next release that contains updated dependencies. asetus is still an old version in 0.29.1 . |
Hi, sorry for my rather direct message earlier, it seems we started tagging the docker boxes recently, that's amazing, will update my environment... Thanks for the work being done on the project |
just as an info for people running into that as well (anything >=0.29 not working) , a downgrade to 0.25.0 is still possible:
also thx for all the work to all involved here ! |
add psych dependency, will solve ytti#2769
Hi all I tried doing 2023-05-24 08:57:46 I, [2023-05-24T06:57:46.902616 #136] INFO -- : Oxidized starting, running as pid 136 The contents of the crash file is: 2023-05-24 06:58:14 UTC I have verified that the container can read the router.db (currently empty) and the config file so its not a volume mapping issue - any ideas? |
Wait, you router.db is empty on purpose? That would be the problem |
Hi Indeed, the router.db was empty. Given there was no example file or syntax to fill it by hand in the README, I (incorrectly) assumed this was handled via the web interface and was populated automatically. I googled for an example and found this getting started guide which states the syntax is I, [2023-05-24T09:43:14.456506 #503] INFO -- : Oxidized starting, running as pid 503 This would indicate the Cheers |
@jamess60 I suggest not doing any modification using the container shell. The router.db entry is defined in the config file:
so
|
I see! Thank you - that worked perfectly. Would it be possible to update the README to make this a little clearer? In practice its very simple, but without the documentation its not at all obvious. |
For me with the latest box I still have the issue:
|
Still not been updated in the docker release. s.add_runtime_dependency 'psych', '~> 3.3.2' Have been added to gemspec. |
Hi, Any News on this issue ? Have the same issue: 0.29.1-7-g91994e9 Even a pull request waiting: Just me that is confused here |
Hi @aschaber1, Sorry for calling you out direct, but things seems to have gone stuck. Do you have any idea when this pull can be added or have there been found another fix ? I see that we only need the change.log single line verified. |
any updates on it? |
Still have this mistake when I up docker xidized-oxidized-1 | Error loading config: undefined method |
@AndreyPilipenko Try doing apt update && apt install make -y && gem install psych -v 3.3.2 and see if that fixes the issue. If not, sounds like it was closed prematurely? |
@jamess60 yep I've done it inside the container, but this is a bad way to execute it each restart. |
Even when you pull the latest docker image?
…On Tue, Jul 4, 2023, 16:03 Andrey ***@***.***> wrote:
@jamess60 <https://github.com/jamess60> yep I've done it inside the
container, but this is a bad way to execute it each restart.
—
Reply to this email directly, view it on GitHub
<#2769 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMRP5QHN7A26NLVGVUGZ3TXOQWELANCNFSM6AAAAAAXMLF7T4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@AndreyPilipenko Fully agree - proves that its a single line in the dockerfile away from being resolved then. |
I can confirm that https://hub.docker.com/layers/oxidized/oxidized/latest/images/sha256-1fff3daae15249777636750e0dd45d5501d51df2c788171f0c3ac3710ce45bd5?context=explore works as expected, which seems to have #2809 included |
Hi, i get repeated errors loading config when i start the image i built of 0.29.1.
✔ Container oxidized Created 0.0s
Attaching to oxidized
oxidized | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
oxidized | *** Running /etc/my_init.d/10_syslog-ng.init...
oxidized | Apr 26 11:54:18 076ea1cf96d2 syslog-ng[14]: syslog-ng starting up; version='3.35.1'
oxidized | *** Booting runit daemon...
oxidized | *** Runit started as PID 22
oxidized | Apr 26 11:54:19 076ea1cf96d2 cron[28]: (CRON) INFO (pidfile fd = 3)
oxidized | Apr 26 11:54:19 076ea1cf96d2 cron[28]: (CRON) INFO (Running @reboot jobs)
oxidized | Error loading config: undefined method 'unsafe_load' for Psych:Module
oxidized | Did you mean? safe_load
oxidized | Error loading config: undefined method 'unsafe_load' for Psych:Module
oxidized | Did you mean? safe_load
The text was updated successfully, but these errors were encountered: