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
Solectrus UI always crashing - `urandom': failed to get urandom (RuntimeError) #4
Comments
Interesting, I have never seen this before. It seems to be an issue with the open files limit, I found this:
I would attempt to increase the Does this help? Otherwise: What kind of Docker host are you using? |
I am using a Synology DS916+ with Docker version 20.10.3, build b455053 and docker-compose version 1.28.5, build 324b023a. I tried to set the ulitmits flag like this, but without any effect:
The error is still the same. |
So far as I understand the docs, the ulimits:
nofile:
soft: 20000
hard: 40000 Another hint: I just released I have tested this on a Synology DS220+ with 10GB RAM, Docker |
i tried it, but it doesn´t work either.. " ERROR: yaml.scanner.ScannerError: while scanning for the next token I also tried the updatet version, but it´s the same. |
Regarding the YAML error message: "To maintain portability, tab characters must not be used in indentation (https://yaml.org/spec/1.2.2/#61-indentation-spaces) It seems you have tabs ( |
there was 1 tabstop inside...
but the error is still the same. The application instantly crashes:
What Version of DSM are you running on your host? |
Regarding your logs: You are still not running the latest release of Solectrus I've tested Solectrus with the given compose file on a Synology DS220+ running |
I copied the wrong log, sorry... On the newer version, the error behavior is the same:
Very strange, as i am running the exact same versions... DSM, docker and docker-compose |
Hi Georg! I am getting the same error as @chavalaloco app_1 | Puma starting in single mode...
app_1 | * Puma version: 5.6.4 (ruby 3.1.1-p18) ("Birdie's Version")
app_1 | * Min threads: 5
app_1 | * Max threads: 5
app_1 | * Environment: production
app_1 | * PID: 11
app_1 | ! Unable to load application: RuntimeError: failed to get urandom
app_1 | bundler: failed to load command: puma (/usr/local/bundle/bin/puma)
app_1 | /usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `urandom': failed to get urandom (RuntimeError)
app_1 | from /usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `singleton class'
app_1 | from /usr/local/lib/ruby/3.1.0/securerandom.rb:42:in `<module:SecureRandom>'
app_1 | from /usr/local/lib/ruby/3.1.0/securerandom.rb:41:in `<main>'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /usr/local/bundle/gems/activesupport-7.0.2.3/lib/active_support.rb:26:in `<main>'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /usr/local/bundle/gems/railties-7.0.2.3/lib/rails.rb:7:in `<main>'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /usr/local/bundle/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
app_1 | from /app/config/application.rb:3:in `<top (required)>'
app_1 | from /app/config/environment.rb:2:in `require_relative'
app_1 | from /app/config/environment.rb:2:in `<top (required)>'
app_1 | from config.ru:3:in `require_relative'
app_1 | from config.ru:3:in `block in <main>'
app_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
app_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
app_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
app_1 | from /usr/local/bundle/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/configuration.rb:348:in `load_rackup'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/configuration.rb:270:in `app'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/runner.rb:150:in `load_and_bind'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/single.rb:44:in `run'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/launcher.rb:182:in `run'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/lib/puma/cli.rb:81:in `run'
app_1 | from /usr/local/bundle/gems/puma-5.6.4/bin/puma:10:in `<top (required)>'
app_1 | from /usr/local/bundle/bin/puma:25:in `load'
app_1 | from /usr/local/bundle/bin/puma:25:in `<top (required)>'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `load'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli/exec.rb:23:in `run'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli.rb:483:in `exec'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli.rb:31:in `dispatch'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/cli.rb:25:in `start'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/exe/bundle:48:in `block in <top (required)>'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/lib/bundler/friendly_errors.rb:103:in `with_friendly_errors'
app_1 | from /usr/local/bundle/gems/bundler-2.3.10/exe/bundle:36:in `<top (required)>'
app_1 | from /usr/local/bundle/bin/bundle:25:in `load'
app_1 | from /usr/local/bundle/bin/bundle:25:in `<main>' |
Hm, still can't reproduce this on my machine. And I know from other users without this issue. After further investigation, the only possible reason I found are missing file descriptors (like mentioned above). Please tell me the output of the
BTW: The |
here are my outputs for ulimit -a :
container:
|
Host
Container:
|
I searched and have found a lot of posts about this error. Host:
|
@raulomator This is interesting. The Linux Kernel 3 is quite old and has reached EOL, it could cause the issue, see this comment: docker-library/ruby#383 (comment) @chavalaloco Can you confirm that you tried it on Kernel 3, too? |
The UI container always crashing with this error message. It seems like there's something wrong with the ruby version?
has anyone ever get such an error message?
The text was updated successfully, but these errors were encountered: