aymhce / diaspora_ynh

6 stars 8 forks source link

default nginx page after fresh install #13

Closed isAAAc closed 2 years ago

isAAAc commented 6 years ago

Hi, i just went to install diaspora on a VPS, but the url gives me the default nginx page instead of diaspora :

Welcome to nginx on Debian!

If you see this page, the nginx web server is successfully installed and working on Debian. Further configuration is required.

For online documentation and support please refer to nginx.org

Please use the reportbug tool to report bugs in the nginx package with Debian. However, check existing bug reports before reporting a new bug.

Thank you for using debian and nginx.

Could someone explain me howto do to fix this please ?

service diaspora_ynh status

● diaspora_ynh.service - LSB: Diaspora application server
   Loaded: loaded (/etc/init.d/diaspora_ynh)
   Active: active (exited) since ven. 2018-06-15 10:15:54 CEST; 52min ago

juin 15 10:15:54 krashboyz diaspora_ynh[13253]: touch: impossible de faire un touch « /var/www/diaspora/log/startscript.log »: Aucun fichier ou dossier de ce type
juin 15 10:15:54 krashboyz diaspora_ynh[13253]: Could not touch logfile ... failed!
juin 15 10:15:54 krashboyz systemd[1]: Started LSB: Diaspora application server.

yunohost -v

yunohost:
  repo: stable
  version: 2.7.12
yunohost-admin:
  repo: stable
  version: 2.7.12
moulinette:
  repo: stable
  version: 2.7.12
ssowat:
  repo: stable
  version: 2.7.12
isAAAc commented 6 years ago
cd /var/www/diaspora
mkdir log
chown -R diaspora:diaspora log
touch /var/www/diaspora/log/startscript.log
cd log
chown diaspora:diaspora startscript.log
service diaspora_ynh stop
service diaspora_ynh status

but still the nginx default page

more startscript.log

WARNING: Project gemset is diaspora but you are using ruby-2.3.4
Starting Diaspora in development mode with job processing inside the request cycle.

I, [2018-06-15T11:18:01.013496 #23582]  INFO -- : [diaspora:__default__] call:
I, [2018-06-15T11:18:01.013674 #23582]  INFO -- : [diaspora:__default__] schedule :monitor (load by user)
I, [2018-06-15T11:18:01.014026 #23582]  INFO -- : [diaspora:__default__] => monitor  (load by user)
I, [2018-06-15T11:18:01.014127 #23582]  INFO -- : [diaspora:__default__] starting async with 0.2s chain monitor
I, [2018-06-15T11:18:01.015067 #23582]  INFO -- : [Eye] <= loading: ["/var/www/diaspora/config/eye.rb"]
I, [2018-06-15T11:18:01.032980 #23582]  INFO -- : [Eye] <= command: load /var/www/diaspora/config/eye.rb (0.21600473s)
I, [2018-06-15T11:18:01.033279 #23582]  INFO -- : [diaspora:web] schedule :monitor (monitor by user)
I, [2018-06-15T11:18:01.033513 #23582]  INFO -- : [diaspora:web] => monitor  (monitor by user)
I, [2018-06-15T11:18:01.036165 #23582]  INFO -- : [diaspora:__default__] <= monitor
I, [2018-06-15T11:18:01.134902 #23582]  INFO -- : [diaspora:web] load_external_pid_file: pid_file not found
I, [2018-06-15T11:18:01.135468 #23582]  INFO -- : [diaspora:web] switch :starting [:unmonitored => :starting] monitor by user
bundler: failed to load command: unicorn (/var/www/diaspora/vendor/bundle/ruby/2.3.0/bin/unicorn)
I, [2018-06-15T11:18:01.138500 #23582]  INFO -- : [diaspora:web] daemonizing: `bin/bundle exec unicorn -c config/unicorn.rb` with start_grace: 2.5s, env: 'RAILS_ENV=development PORT=', <23744> (in /var/www/diaspora)
I, [2018-06-15T11:18:01.138554 #23582]  INFO -- : [diaspora:web] sleeping for :start_grace 2.5
I, [2018-06-15T11:18:03.640399 #23582]  INFO -- : [diaspora:web] switch :started [:starting => :up] monitor by user
I, [2018-06-15T11:18:03.664694 #23582]  INFO -- : [diaspora:web] <= monitor
W, [2018-06-15T11:18:08.641292 #23582]  WARN -- : [diaspora:web] check_alive: process <23744> not found
I, [2018-06-15T11:18:08.641476 #23582]  INFO -- : [diaspora:web] delete pid_file: /var/www/diaspora/tmp/pids/web.pid
I, [2018-06-15T11:18:08.642030 #23582]  INFO -- : [diaspora:web] switch :crashed [:up => :down] crashed
I, [2018-06-15T11:18:08.642703 #23582]  INFO -- : [diaspora:web] schedule :check_crash (crashed)
I, [2018-06-15T11:18:08.642964 #23582]  INFO -- : [diaspora:web] => check_crash  (crashed)
W, [2018-06-15T11:18:08.643020 #23582]  WARN -- : [diaspora:web] check crashed: process is down
I, [2018-06-15T11:18:08.643069 #23582]  INFO -- : [diaspora:web] schedule :restore (crashed)
I, [2018-06-15T11:18:08.643110 #23582]  INFO -- : [diaspora:web] <= check_crash
I, [2018-06-15T11:18:08.643143 #23582]  INFO -- : [diaspora:web] => restore  (crashed)
I, [2018-06-15T11:18:08.743453 #23582]  INFO -- : [diaspora:web] load_external_pid_file: pid_file not found

more eye_processes_stderr.log

I, [2018-06-15T11:26:01.158304 #25332]  INFO -- : Refreshing Gem list
Bundler::GemNotFound: Unable to find a spec satisfying guard (= 2.14.2) in the set. Perhaps the lockfile is corrupted?
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:43:in `block in for'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:25:in `loop'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler/spec_set.rb:25:in `for'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler/definition.rb:238:in `specs_for'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler/runtime.rb:20:in `setup'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler.rb:109:in `setup'
  /var/www/diaspora/.rvm/rubies/ruby-2.3.4/lib/ruby/site_ruby/2.3.0/bundler.rb:114:in `require'
  /var/www/diaspora/config/application.rb:11:in `<top (required)>'
  /var/www/diaspora/config/environment.rb:4:in `require_relative'
  /var/www/diaspora/config/environment.rb:4:in `<top (required)>'
  config.ru:10:in `require'
  config.ru:10:in `block in <main>'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/rack-2.0.4/lib/rack/builder.rb:55:in `instance_eval'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/rack-2.0.4/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/unicorn-5.4.0/lib/unicorn.rb:56:in `eval'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/unicorn-5.4.0/lib/unicorn.rb:56:in `block in builder'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:795:in `build_app!'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/unicorn-5.4.0/lib/unicorn/http_server.rb:139:in `start'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/gems/unicorn-5.4.0/bin/unicorn:126:in `<top (required)>'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/bin/unicorn:23:in `load'
  /var/www/diaspora/vendor/bundle/ruby/2.3.0/bin/unicorn:23:in `<top (required)>'