-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Bug]: Synology DSM 6.2.4 - Could not initialize random number generator Found /var/run/php/php-fpm.sock! #28
Comments
I've had this with other docker containers, if you google the error message you'll find lots. I've had this in the past with RSS-Bridge and this month with Huginn. nextcloud/docker#1574 (comment) The issue is with the way the docker container is packaged, what the developer has included that assumes The easiest solution is to go back to an older version of the docker container before this breaking change. The more difficult solution is to try to persuade the owner of the container to look into and fix the problem. |
Hi @olituks, @gingerbeardman! Thank you for providing comprehensive information about this issue. As you mentioned, this is not directly related to my Docker image building process, and currently, I haven't found any effective solution to this problem. Therefore, I would appreciate it if you could let me know if there are any possible solutions. Best regards. |
Usually the problem is Apache or OpenSSL. There's a recent recommendation/patch for OpenSSL to avoid use of /dev/urandom/ which is the first thing I'd recommend checking. Ruby 3.2 suffers the same problem and they have a pull request to remove their use of urandom in their OpenSSL calls. But really all contents of the container will need to be checked for calls to urandom. It sucks to be stuck on old hardware (I'm Synology 6 too) I think there are many of us. |
@shinsenter The only thing I wish is firsty, warning you about the issue and impact on the DSM community, second if it's doable indeed, checking if OpenSSL or another component can be fixed. Nothing more. =) If not, I have a fall back solution with a Raspberry PI 4. Many thanks in advance, whatever the result :) @gingerbeardman Yes it sucks to not have possibility to upgrade old expensive hardware from Synology to the 7.x DSM. But it provide me a good reason to wait a decent price to buy on a new SSD NAS like the Asustor Flashstor. |
Historically OpenSSL recommended developers use urandom during integration of OpenSSL into their projects. But internally /dev/urandom is only used by OpenSSL if it's available. But many developers don't understand that /dev/urandom isn't always available. Since recently (v3) OpenSSL no longer recommend that. Maybe because of this issue, I'm not sure. The problem is, many open source projects missed the memo. |
I am saving this document as a reference link for the issue.
|
Also worth mentioning from the same thread
For me, I do plan to upgrade "soon", but in order to do that I need to physically be at my server which happens rarely. In the handful of years I've had it running, this breakage has happened with 3 packages total, two were changed to workaround the getrandom issue, which is easy enough in most situations if the maintainer wants to do it, and one package is still thinking about how to deal with it. And then there is your package. |
one solution is to use |
I have pushed the newly built docker images from the official php docker images, I hope they can solve your problem. I am updating the documentation, you can also refer to it here. |
Issue description
Hello, after a successful setup from Flarum on my Synology the logs show recurrently this error:
[Mon May 29 08:48:45.815751 2023] [:crit] [pid 303] (38)Function not implemented: AH00141: Could not initialize random number generator
Flarum is not accessible but the container is running.
Environment
Steps to reproduce the issue
1.Install Flarum on a Synology DSM 6.2.4 or higher (confirmed in the nextcloud github with DSM 7.x)
2.
3.
What is expected?
I know the issue is not directly related with your container, but have you any idea how to solve this?
Additional details / screenshots
You can see the similar issue for phpmyadmin: phpmyadmin/docker#373
The same with nextcloud: nextcloud/docker#1574
The text was updated successfully, but these errors were encountered: