These are chat archives for SMERM/EMUForm

10th
May 2016
Giuseppe
@grammaton
May 10 2016 13:53
caro @nicb io c’ho provato. c’ho provato a lungo. ho seguito almeno cinque procedure diverse, di cui due specifiche per dreamhost ma non sono riuscito a venire a capo alla questione capistrano
quindi, se per te va bene, proporrei di metterlo online a mano
poi seguiremo a provare
Giuseppe
@grammaton
May 10 2016 14:17
anzi @nicb sono riuscito a fare un notevole passo in avanti
incollo l'errore
rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby-2.3.0
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
00:00 git:wrapper
      01 mkdir -p /tmp/emuform/
    ✔ 01 emuform@emuformtest.giuseppesilvi.com 0.128s
      Uploading /tmp/emuform/git-ssh.sh 100.0%
      02 chmod +rx /tmp/emuform/git-ssh.sh
    ✔ 02 emuform@emuformtest.giuseppesilvi.com 0.131s
00:00 git:check
      01 git ls-remote --heads https://github.com/SMERM/EMUForm.git
      01 0a019c090e946fe0463dc9bf84e60a14817f97fd    refs/heads/add_roles
      01 a834a2ddbddbeae56ffea8ce23a4a7268cbd3ae9    refs/heads/grammaton_spipples
      01 a1ec3d2573159667d6a12d7485d022050b113e0b    refs/heads/gs-cap
      01 bfdee40dafb2ee3416b7aa6bdcec245f9f418302    refs/heads/gs_smallfixes
      01 e0e1a54b5603bf24dbd75f47811c62b34a2c6b09    refs/heads/master
      01 fd948be291ae2fd7ca84ca4dcbff297e5aa9c645    refs/heads/nicb_additions
      01 fedef875e573f17fe7692ddb900a4e28cffd49e4    refs/heads/revert-16-master
    ✔ 01 emuform@emuformtest.giuseppesilvi.com 0.653s
00:01 deploy:check:directories
      01 mkdir -p /var/www/emuform/shared /var/www/emuform/releases
      01 mkdir:
      01 cannot create directory `/var/www'
      01 : Permission denied
      01
      01 mkdir:
      01 cannot create directory `/var/www'
      01 : Permission denied
      01
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as emuform@emuformtest.giuseppesilvi.com: mkdir exit status: 1
mkdir stdout: Nothing written
mkdir stderr: mkdir: cannot create directory `/var/www': Permission denied
mkdir: cannot create directory `/var/www': Permission denied

SSHKit::Command::Failed: mkdir exit status: 1
mkdir stdout: Nothing written
mkdir stderr: mkdir: cannot create directory `/var/www': Permission denied
mkdir: cannot create directory `/var/www': Permission denied

Tasks: TOP => deploy:check:directories
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as emuform@emuformtest.giuseppesilvi.com: mkdir exit status: 1
mkdir stdout: Nothing written
mkdir stderr: mkdir: cannot create directory `/var/www': Permission denied
mkdir: cannot create directory `/var/www': Permission denied

** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:

  INFO [fedb69ef] Running /usr/bin/env git ls-remote --heads https://github.com/SMERM/EMUForm.git as emuform@emuformtest.giuseppesilvi.com
 DEBUG [fedb69ef] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/emuform/git-ssh.sh" ; /usr/bin/env git ls-remote --heads https://github.com/SMERM/EMUForm.git )
 DEBUG [fedb69ef]     0a019c090e946fe0463dc9bf84e60a14817f97fd    refs/heads/add_roles
a834a2ddbddbeae56ffea8ce23a4a7268cbd3ae9    refs/heads/grammaton_spipples
a1ec3d2573159667d6a12d7485d022050b113e0b    refs/heads/gs-cap
bfdee40dafb2ee3416b7aa6bdcec245f9f418302    refs/heads/gs_smallfixes
e0e1a54b5603bf24dbd75f47811c62b34a2c6b09    refs/heads/master
fd948be291ae2fd7ca84ca4dcbff297e5aa9c645    refs/heads/nicb_additions
fedef875e573f17fe7692ddb900a4e28cffd49e4    refs/heads/revert-16-master
  INFO [fedb69ef] Finished in 0.653 seconds with exit status 0 (successful).
  INFO [128d0b4f] Running /usr/bin/env mkdir -p /var/www/emuform/shared /var/www/emuform/releases as emuform@emuformtest.giuseppesilvi.com
 DEBUG [128d0b4f] Command: /usr/bin/env mkdir -p /var/www/emuform/shared /var/www/emuform/releases
 DEBUG [128d0b4f]     mkdir:
 DEBUG [128d0b4f]     cannot create directory `/var/www'
 DEBUG [128d0b4f]     : Permission denied
 DEBUG [128d0b4f]
 DEBUG [128d0b4f]     mkdir:
 DEBUG [128d0b4f]     cannot create directory `/var/www'
 DEBUG [128d0b4f]     : Permission denied
 DEBUG [128d0b4f]
ovviamente per fare la cartella /var/wwwbisogna essere sudoer ma su dh non si può fare…
Giuseppe
@grammaton
May 10 2016 14:30
sto cercando di aggirare passando per una cartella qualsiasi
@nicb !oidocrop
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:

/home/emuform/emuformtest.giuseppesilvi.com/www/my_app_name/releases/20160510142908/config/application.rb:9:in `<top (required)>'
/home/emuform/emuformtest.giuseppesilvi.com/www/my_app_name/releases/20160510142908/Rakefile:4:in `require'
/home/emuform/emuformtest.giuseppesilvi.com/www/my_app_name/releases/20160510142908/Rakefile:4:in `<top (required)>'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/cli/exec.rb:63:in `load'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/cli/exec.rb:63:in `kernel_load'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/cli/exec.rb:24:in `run'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/cli.rb:304:in `exec'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/cli.rb:11:in `start'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/exe/bundle:27:in `block in <top (required)>'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/home/emuform/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.3/exe/bundle:19:in `<top (required)>'
/home/emuform/.rvm/gems/ruby-2.3.0/bin/bundle:23:in `load'
/home/emuform/.rvm/gems/ruby-2.3.0/bin/bundle:23:in `<main>'
/home/emuform/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/home/emuform/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>’
Giuseppe
@grammaton
May 10 2016 14:39
@nicb questo è il primo errore della lista:
SSHKit::Runner::ExecuteError: Exception while executing as emuform@emuformtest.giuseppesilvi.com: rake exit status: 1
rake stdout: rake aborted!
NoMethodError: undefined method `each' for nil:NilClass
Giuseppe
@grammaton
May 10 2016 14:52
@nicb ok, credo di aver capito… non mi legge il branch giusto… provo da un fork
Nicola Bernardini
@nicb
May 10 2016 15:14
@grammaton sorry ho letto solo adesso
per me va benissimo se lo metti su a mano eh? :-)
Giuseppe
@grammaton
May 10 2016 15:16
Eh @nicb mi do ancora stasera per capire quanto sono pippa e poi vado a mano
Nicola Bernardini
@nicb
May 10 2016 15:25
@grammaton fammi sapere se vuoi una mano
no devi dirgli che /var/www si trova in una cartella di tua proprietà
tipo /home/whatever/var/www
aaah ma è perché rvm cerca di fare un'installazione di sistema!
super sbagliatissimo, deve fare l'installazione standard, cioè in /home/whatever/.rvm
@grammaton dammi una voce se ti serve una mano
Giuseppe
@grammaton
May 10 2016 17:42
Ok @nicb mi rimetto a lavoro più tardi. Grazie