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

[BUG]: Version 1.8.2 startup error reported #389

Open
guleng opened this issue Aug 7, 2024 · 8 comments
Open

[BUG]: Version 1.8.2 startup error reported #389

guleng opened this issue Aug 7, 2024 · 8 comments

Comments

@guleng
Copy link

guleng commented Aug 7, 2024

version:1.8.2
Deployment method: docker-compose
image

I couldn't find the file scripts/start.migrate.sh

@guleng guleng changed the title [BUG]: Version 1.8.1 startup error reported [BUG]: Version 1.8.2 startup error reported Aug 7, 2024
@jdenquin
Copy link
Contributor

jdenquin commented Aug 7, 2024

Hello @guleng, this should be fixed now

@guleng
Copy link
Author

guleng commented Aug 7, 2024

@jdenquin The problem still exists, the file is missing from the image

@guleng
Copy link
Author

guleng commented Aug 7, 2024

@jdenquin Why is the 1.8.2 version of the Docker Composer image file you released still 1.8.1? Did you send the wrong version?

@jdenquin
Copy link
Contributor

jdenquin commented Aug 7, 2024

it's a problem we currently have in our release process, we'll change it next month, you can pull the repo and it should work 🙏

@guleng
Copy link
Author

guleng commented Aug 7, 2024

@jdenquin It can start now, but the API service error log is as follows. Do I need to change the default configuration for my newly deployed one? Thank you for your answer

lago-api  | bin/rails aborted!
lago-api  | OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key (OpenSSL::PKey::RSAError)
lago-api  | /app/config/initializers/rsa_keys.rb:9:in `<main>'
lago-api  | /app/config/environment.rb:7:in `<main>'
lago-api  | Tasks: TOP => db:migrate => db:load_config => environment
lago-api  | (See full trace by running task with --trace)
lago-api  | bin/rails aborted!
lago-api  | OpenSSL::PKey::RSAError: Neither PUB key nor PRIV key (OpenSSL::PKey::RSAError)
lago-api  | /app/config/initializers/rsa_keys.rb:9:in `<main>'
lago-api  | /app/config/environment.rb:7:in `<main>'
lago-api  | Tasks: TOP => signup:seed_organization => environment
lago-api  | (See full trace by running task with --trace)
lago-api  | => Booting Puma
lago-api  | => Rails 7.1.3.4 application starting in production 
lago-api  | => Run `bin/rails server --help` for more startup options
lago-api  | Exiting
lago-api  | /usr/local/lib/ruby/3.3.0/openssl/pkey.rb:356:in `initialize': Neither PUB key nor PRIV key (OpenSSL::PKey::RSAError)
lago-api  |     from /usr/local/lib/ruby/3.3.0/openssl/pkey.rb:356:in `new'
lago-api  |     from /usr/local/lib/ruby/3.3.0/openssl/pkey.rb:356:in `new'
lago-api  |     from /app/config/initializers/rsa_keys.rb:9:in `<main>'
lago-api  |     from /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
lago-api  |     from /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/engine.rb:690:in `block in load_config_initializer'
lago-api  |     from /usr/local/bundle/gems/activesupport-7.1.3.4/lib/active_support/notifications.rb:208:in `instrument'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/engine.rb:689:in `load_config_initializer'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/engine.rb:643:in `block (2 levels) in <class:Engine>'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/engine.rb:642:in `each'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/engine.rb:642:in `block in <class:Engine>'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:32:in `instance_exec'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:32:in `run'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:61:in `block in run_initializers'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:231:in `block in tsort_each'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:353:in `block (2 levels) in each_strongly_connected_component'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:425:in `block (2 levels) in each_strongly_connected_component_from'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:434:in `each_strongly_connected_component_from'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:424:in `block in each_strongly_connected_component_from'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:50:in `each'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:50:in `tsort_each_child'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:418:in `call'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:418:in `each_strongly_connected_component_from'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:352:in `block in each_strongly_connected_component'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `call'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:350:in `each_strongly_connected_component'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:229:in `tsort_each'
lago-api  |     from /usr/local/lib/ruby/3.3.0/tsort.rb:208:in `tsort_each'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/initializable.rb:60:in `run_initializers'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/application.rb:426:in `initialize!'
lago-api  |     from /app/config/environment.rb:7:in `<main>'
lago-api  |     from config.ru:5:in `require_relative'
lago-api  |     from config.ru:5:in `block in <main>'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/builder.rb:116:in `eval'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/builder.rb:116:in `new_from_string'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/builder.rb:105:in `load_file'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/builder.rb:66:in `parse_file'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:349:in `build_app_and_options_from_config'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:249:in `app'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:422:in `wrapped_app'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:312:in `block in start'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:379:in `handle_profiling'
lago-api  |     from /usr/local/bundle/gems/rack-2.2.9/lib/rack/server.rb:311:in `start'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/commands/server/server_command.rb:38:in `start'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/commands/server/server_command.rb:145:in `block in perform'
lago-api  |     from <internal:kernel>:90:in `tap'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/commands/server/server_command.rb:136:in `perform'
lago-api  |     from /usr/local/bundle/gems/thor-1.3.1/lib/thor/command.rb:28:in `run'
lago-api  |     from /usr/local/bundle/gems/thor-1.3.1/lib/thor/invocation.rb:127:in `invoke_command'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/command/base.rb:178:in `invoke_command'
lago-api  |     from /usr/local/bundle/gems/thor-1.3.1/lib/thor.rb:527:in `dispatch'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/command/base.rb:73:in `perform'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/command.rb:71:in `block in invoke'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/command.rb:149:in `with_argv'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/command.rb:69:in `invoke'
lago-api  |     from /usr/local/bundle/gems/railties-7.1.3.4/lib/rails/commands.rb:18:in `<main>'
lago-api  |     from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
lago-api  |     from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
lago-api  |     from /usr/local/bundle/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
lago-api  |     from bin/rails:4:in `<main>'

@jdenquin
Copy link
Contributor

jdenquin commented Aug 7, 2024

it seems you miss your RSA Private Key

echo "LAGO_RSA_PRIVATE_KEY=\"`openssl genrsa 2048 | base64`\"" >> .env
source .env

@kylebown1
Copy link

kylebown1 commented Aug 8, 2024

I'm also having problems with the RSA Key, I've tried everything. For some reason docker reports back in inspect either a shorter key or a completly different key each time doesnt make sense

@jdenquin
Copy link
Contributor

jdenquin commented Aug 8, 2024

@kylebown1 do you use the .env file?
can you try passing it to docker compose ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants