nanobox-rails icon indicating copy to clipboard operation
nanobox-rails copied to clipboard

DB Migration fails on deploy

Open dennis1088 opened this issue 6 years ago • 1 comments

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 avatar Apr 18 '18 01:04 dennis1088