Skip to content
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 installing on Synology NAS: "failed to get urandom" #1239

Closed
mvkalsbeek opened this issue May 31, 2023 · 23 comments
Closed

Error installing on Synology NAS: "failed to get urandom" #1239

mvkalsbeek opened this issue May 31, 2023 · 23 comments
Labels
bug Something isn't working

Comments

@mvkalsbeek
Copy link

I have pulled the latest (0.44.0) docker image with the docker pull ghcr.io/floppy/van_dam:latest command on a Synology NAS from the CLI and created a container using the Docker GUI. Trying to start the container however is unsuccessful and generates the following error log:

2023-05-31T10:12:11.242437805Z | stdout | from bin/rails:4:in `<main>'
2023-05-31T10:12:11.242368155Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.242296035Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.242201095Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4.3/lib/rails/commands.rb:3:in `<main>'
2023-05-31T10:12:11.241478584Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.241394694Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.241313614Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4.3/lib/rails/command.rb:3:in `<main>'
2023-05-31T10:12:11.241241724Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.241169834Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.241076454Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/activesupport-7.0.4.3/lib/active_support.rb:26:in `<main>'
2023-05-31T10:12:11.241006484Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.240922284Z | stdout | from /usr/src/app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2023-05-31T10:12:11.240854494Z | stdout | from /usr/local/lib/ruby/3.1.0/securerandom.rb:41:in `<main>'
2023-05-31T10:12:11.240758914Z | stdout | from /usr/local/lib/ruby/3.1.0/securerandom.rb:42:in `<module:SecureRandom>'
2023-05-31T10:12:11.240642604Z | stdout | from /usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `singleton class'
2023-05-31T10:12:11.240102804Z | stdout | /usr/local/lib/ruby/3.1.0/securerandom.rb:75:in `urandom': �[1mfailed to get urandom (�[1;4mRuntimeError�[m�[1m)�[m
2023-05-31T10:12:08.961874127Z | stdout | Preparing database...

Is this a Synology specific error, or am I missing some configuration, environment variables or dependencies?

@Floppy
Copy link
Collaborator

Floppy commented May 31, 2023

Looks like this might be a bug in Ruby or bundler. I'll update the versions and you can try the nightly tag once I've done so.

@Floppy Floppy added the bug Something isn't working label May 31, 2023
@mvkalsbeek
Copy link
Author

This seems to be a Synology specific error. Setting up the app using the docker-compose.yml found in the repo https://github.com/Floppy/van_dam/blob/main/docker-compose.example.yml works fine on Windows through Docker Desktop (WSL2), but still gives the same error as above on the shared-app container. Postgres and Redis start without any issue.

@Floppy
Copy link
Collaborator

Floppy commented Jun 4, 2023

#1247 may help. It should be in tonight's nightly image, so maybe see if that helps.

@Floppy
Copy link
Collaborator

Floppy commented Jun 13, 2023

@mvkalsbeek did the nightly image help at all?

@mvkalsbeek
Copy link
Author

@mvkalsbeek did the nightly image help at all?

Not at the time of that post. It works fine on a Windows machine, doesn't seem to work on Synology. The nightly gave the same error log as the 0.44 image. Will try the latest nightly asap!

@Floppy
Copy link
Collaborator

Floppy commented Jun 14, 2023

I just realised I broke nightly, so hold on for another night :)

@Floppy Floppy moved this to One Day in Manyfold Roadmap Jun 18, 2023
@andypiper
Copy link

andypiper commented Jul 5, 2023

FWIW I have 0.47.1 running on Synology DSM 7.2 via a Docker container. I had to run docker-compose at the CLI due to the Container Manager app not supporting ghcr.io as a source for binaries (and also to create my admin user from the rails console), but apart from that, looks good.

(also, hi James!)

@Floppy
Copy link
Collaborator

Floppy commented Jul 5, 2023

ANDY! Yay :)

Thanks for that, good to know it works and about the ghcr problem... one for the docs.

@andypiper
Copy link

I'll do a quick post about it somewhere and let you know.

@andypiper
Copy link

andypiper commented Jul 5, 2023

I've got some brief instructions on how I got up-and-running on Synology here.

@Floppy Floppy added the documentation Improvements or additions to documentation label Jul 6, 2023
@Floppy
Copy link
Collaborator

Floppy commented Oct 10, 2023

There's more detail on successful setup in #1471 which should roll into any documentation.

@mvkalsbeek
Copy link
Author

Took some time to retry installing VanDAM/Manyfold on a Synology NAS. I've tried the 0.54.2 image but it still seems to crash on getting some required ruby gems, this time the mittsu gem.

2024-01-25T12:34:47.191148606Z,stdout,(See full trace by running task with --trace)
2024-01-25T12:34:47.191085748Z,stdout,bin/rails:4:in `<main>'
2024-01-25T12:34:47.191006279Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.190935981Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.190834493Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.190763604Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands.rb:18:in `<main>'
2024-01-25T12:34:47.190695946Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/command.rb:51:in `invoke'
2024-01-25T12:34:47.190621877Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2024-01-25T12:34:47.190549229Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
2024-01-25T12:34:47.190488660Z,stdout,/usr/src/app/Rakefile:4:in `<main>'
2024-01-25T12:34:47.190425871Z,stdout,/usr/src/app/Rakefile:4:in `require_relative'
2024-01-25T12:34:47.190344003Z,stdout,/usr/src/app/config/application.rb:7:in `<main>'
2024-01-25T12:34:47.190273665Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler.rb:187:in `require'
2024-01-25T12:34:47.190208056Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `require'
2024-01-25T12:34:47.190142347Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `each'
2024-01-25T12:34:47.190071889Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `block in require'
2024-01-25T12:34:47.190005360Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `each'
2024-01-25T12:34:47.189936642Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
2024-01-25T12:34:47.189862273Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.189774015Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189699947Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189626078Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu.rb:10:in `<main>'
2024-01-25T12:34:47.189552900Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.189472172Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189403613Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189330954Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects.rb:4:in `<main>'
2024-01-25T12:34:47.189259476Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.189185428Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189116819Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.189041391Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:1:in `<main>'
2024-01-25T12:34:47.188963272Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:2:in `<module:Mittsu>'
2024-01-25T12:34:47.188886164Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:16:in `<class:Sprite>'
2024-01-25T12:34:47.188784396Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:16:in `new'
2024-01-25T12:34:47.188709827Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/core/buffer_geometry.rb:15:in `initialize'
2024-01-25T12:34:47.188649209Z,stdout,failed to get urandom
2024-01-25T12:34:47.188588610Z,stdout,Caused by:
2024-01-25T12:34:47.188531051Z,stdout,
2024-01-25T12:34:47.188469453Z,stdout,bin/rails:4:in `<main>'
2024-01-25T12:34:47.188394144Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.188322416Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.188250467Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.188163589Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands.rb:18:in `<main>'
2024-01-25T12:34:47.188089401Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/command.rb:51:in `invoke'
2024-01-25T12:34:47.188018842Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2024-01-25T12:34:47.187943484Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
2024-01-25T12:34:47.187879365Z,stdout,/usr/src/app/Rakefile:4:in `<main>'
2024-01-25T12:34:47.187796827Z,stdout,/usr/src/app/Rakefile:4:in `require_relative'
2024-01-25T12:34:47.187731688Z,stdout,/usr/src/app/config/application.rb:7:in `<main>'
2024-01-25T12:34:47.187666219Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler.rb:187:in `require'
2024-01-25T12:34:47.187601751Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `require'
2024-01-25T12:34:47.187535522Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `each'
2024-01-25T12:34:47.187466864Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `block in require'
2024-01-25T12:34:47.187393815Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `each'
2024-01-25T12:34:47.187323887Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:59:in `block (2 levels) in require'
2024-01-25T12:34:47.187241028Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:63:in `rescue in block (2 levels) in require'
2024-01-25T12:34:47.187176280Z,stdout,Bundler Error Backtrace:
2024-01-25T12:34:47.187113881Z,stdout,bin/rails:4:in `<main>'
2024-01-25T12:34:47.187034853Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.186875826Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.186433135Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.186342327Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands.rb:18:in `<main>'
2024-01-25T12:34:47.186269449Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/command.rb:51:in `invoke'
2024-01-25T12:34:47.186194400Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:18:in `perform'
2024-01-25T12:34:47.186121002Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/rake_module.rb:59:in `with_application'
2024-01-25T12:34:47.186042173Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
2024-01-25T12:34:47.185971075Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/application.rb:125:in `load_rakefile'
2024-01-25T12:34:47.185882397Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/application.rb:208:in `standard_exception_handling'
2024-01-25T12:34:47.185785829Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/application.rb:126:in `block in load_rakefile'
2024-01-25T12:34:47.185713290Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/application.rb:734:in `raw_load_rakefile'
2024-01-25T12:34:47.185641492Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/rake_module.rb:29:in `load_rakefile'
2024-01-25T12:34:47.185566203Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/lib/rake/rake_module.rb:29:in `load'
2024-01-25T12:34:47.185501805Z,stdout,/usr/src/app/Rakefile:4:in `<main>'
2024-01-25T12:34:47.185434996Z,stdout,/usr/src/app/Rakefile:4:in `require_relative'
2024-01-25T12:34:47.185360408Z,stdout,/usr/src/app/config/application.rb:7:in `<main>'
2024-01-25T12:34:47.185282529Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler.rb:187:in `require'
2024-01-25T12:34:47.185213831Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `require'
2024-01-25T12:34:47.185142492Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:44:in `each'
2024-01-25T12:34:47.185075574Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `block in require'
2024-01-25T12:34:47.185007305Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:55:in `each'
2024-01-25T12:34:47.184929327Z,stdout,/usr/local/bundle/gems/bundler-2.4.13/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
2024-01-25T12:34:47.184831729Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.184763520Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.184681902Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.184608394Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu.rb:10:in `<main>'
2024-01-25T12:34:47.184536335Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.184467467Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.184381868Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.184156513Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects.rb:4:in `<main>'
2024-01-25T12:34:47.184065145Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/gems/bootsnap-1.17.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2024-01-25T12:34:47.183996646Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.183921968Z,stdout,<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
2024-01-25T12:34:47.183827360Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:1:in `<main>'
2024-01-25T12:34:47.183753991Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:2:in `<module:Mittsu>'
2024-01-25T12:34:47.183673133Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:16:in `<class:Sprite>'
2024-01-25T12:34:47.183597325Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/objects/sprite.rb:16:in `new'
2024-01-25T12:34:47.183519176Z,stdout,/usr/src/app/vendor/bundle/ruby/3.2.0/bundler/gems/mittsu-7f44c468f9d6/lib/mittsu/core/buffer_geometry.rb:15:in `initialize'
2024-01-25T12:34:47.183442028Z,stdout,/usr/local/lib/ruby/3.2.0/random/formatter.rb:171:in `uuid'
2024-01-25T12:34:47.183373149Z,stdout,/usr/local/lib/ruby/3.2.0/random/formatter.rb:74:in `random_bytes'
2024-01-25T12:34:47.183290441Z,stdout,/usr/local/lib/ruby/3.2.0/securerandom.rb:55:in `gen_random_openssl'
2024-01-25T12:34:47.183219633Z,stdout,/usr/local/lib/ruby/3.2.0/securerandom.rb:55:in `urandom'
2024-01-25T12:34:47.183155814Z,stdout,Backtrace for gem load error is:
2024-01-25T12:34:47.183077786Z,stdout,Gem Load Error is: failed to get urandom
2024-01-25T12:34:47.182956938Z,stdout,Bundler::GemRequireError: There was an error while trying to load the gem 'mittsu'. (Bundler::GemRequireError)
2024-01-25T12:34:47.182473668Z,stdout,rails aborted!
2024-01-25T12:34:42.639210931Z,stdout,Preparing database...

@Floppy
Copy link
Collaborator

Floppy commented Jan 25, 2024

Interesting, error is failed to get urandom. I found this similar report on Synology, Docker, and Ruby 3.1, probably a new issue related to that: pglombardo/PasswordPusher#647. I'll have a look.

@Floppy
Copy link
Collaborator

Floppy commented Jan 25, 2024

@mvkalsbeek could you try the test in this comment on your NAS, see if it throws the same error? pglombardo/PasswordPusher#647 (reply in thread)

@Floppy
Copy link
Collaborator

Floppy commented Jan 25, 2024

@mvkalsbeek I've opened a separate issue for this: #1766

@Floppy
Copy link
Collaborator

Floppy commented Jan 25, 2024

Sorry, it didn't need a new issue, it's the same as your original report. Ignore me.

@Floppy Floppy changed the title [0.44.0] Running the Docker package on a Synology NAS Error installing on Synology NAS: "failed to get urandom" Jan 25, 2024
@Floppy Floppy removed the documentation Improvements or additions to documentation label Jan 25, 2024
@Floppy
Copy link
Collaborator

Floppy commented Jan 31, 2024

I came across @mariushosting's instructions for Synology (now linked from the website), and he confirms that the urandom problem is an issue with Synology kernels below version 4. @mvkalsbeek I guess yours is running version 3? From his troubleshooting guide at https://mariushosting.com/synology-common-docker-issues-and-fixes, I'm not sure there's anything we can do... you were originally installing v0.44.0 when you hit the problem, which didn't have the mittsu dependency, so it's not that. There may be something we can remove to avoid it, but I've no idea what it might be, and it would have to be pretty deep in the core. This might be impossible for us to fix, I'm afraid.

I'm closing it on the assumption you're on a too-old kernel, but if you're on v4 and it looks like it should work, feel free to reopen.

@Floppy Floppy closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
@github-project-automation github-project-automation bot moved this from One Day to Done in Manyfold Roadmap Jan 31, 2024
@github-project-automation github-project-automation bot moved this from Later to Done in Manyfold Development Jan 31, 2024
@Floppy
Copy link
Collaborator

Floppy commented Jan 31, 2024

Looking around, the same issue has cropped up on nextcloud, xibo, postal and no doubt many others. It looks like it might be possible to build your own docker image based on a different base distribution; some nextcloud people used buster, and there is a Ruby 3.0-buster base image which could work perhaps. We're on 3.2 now, so you might need to change the versions in the Gemfile and .ruby-version back to 3.0, but it should still work fine. If you fancy it.

@Floppy
Copy link
Collaborator

Floppy commented Jan 31, 2024

Actually, the nextcloud thread implies that bullseye might work too, just not bookworm, so you could try building with the ruby:3.2-bullseye base image - no other changes needed in that case, just change

FROM ruby:3.2-alpine3.18 AS build
to FROM ruby:3.2-bullseye AS build, build the image, and see if it works!

(I'm assuming some experience with building docker images here, apologies if that's not helpful)

@Floppy
Copy link
Collaborator

Floppy commented Jan 31, 2024

If you try and it does work, then I could set up a docker build to create a bullseye-based image automatically, at least until they stop supporting it with new Ruby base images.

@skydoy
Copy link

skydoy commented Feb 25, 2024

If you try and it does work, then I could set up a docker build to create a bullseye-based image automatically, at least until they stop supporting it with new Ruby base images.

Can you make it as i have the same issue and no knowledge to do it :D

@mariushosting
Copy link

Your NAS Have and old kernel 3x Kernel. Just buy a new NAS.

@skydoy
Copy link

skydoy commented Feb 26, 2024

Your NAS Have and old kernel 3x Kernel. Just buy a new NAS.

if i had the funds to do it i would

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

5 participants