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

DB Migration fails on deploy #13

Open
dennis1088 opened this issue Apr 18, 2018 · 1 comment
Open

DB Migration fails on deploy #13

dennis1088 opened this issue Apr 18, 2018 · 1 comment

Comments

@dennis1088
Copy link

Currently trying to deploy this quickstart with no changes currently seeing the following error on before_live.

container : web.main.1.1
hook      : before_live
exit_code : 1
stderr: 
! FAILED TO BEFORE_LIVE1: RAKE DB:SETUP_OR_MIGRATE !

Exit
 1

Command
 su - gonano -c "cd /app; siphon --prefix '' -- bash -i -l -c \"rake db:setup_or_migrate\""

Output
 rake aborted!
 Errno::EACCES: Permission denied @ rb_sysopen - /app/db/schema.rb
 /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:240:in `initialize'
 /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:240:in `open'
 /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:240:in `block (3 levels) in <top (required)>'
 /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:66:in `block (2 levels) in <top (required)>'
 /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.1.4/lib/active_record/railties/databases.rake:59:in `block (2 levels) in <top (required)>'
 /app/lib/tasks/db.rake:9:in `block (2 levels) in <top (required)>'
 /app/vendor/bundle/ruby/2.3.0/gems/rake-12.1.0/exe/rake:27:in `<top (required)>'
 Tasks: TOP => db:schema:dump
 (See full trace by running task with --trace)```
@dennis1088
Copy link
Author

Just a heads up i discovered the issue here is with the permissions on the folder the db folder has to be added to the writale_dirs in the box_file.yml will try to create a pull request

freetonik pushed a commit to freetonik/nanobox-rails that referenced this issue Jul 26, 2018
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

1 participant