[GLLUG] nginx oops!

John Winters john at sinodun.org.uk
Sun Nov 29 15:10:40 UTC 2020


On 29/11/2020 15:03, MJ via GLLUG wrote:
> your q: Is that server actually running and listening for requests?
> ?!? seems on Listening, symbolic link see bellow
> 
> See below do I rename file and recreate?
> 
> ########################:/etc/nginx/sites-available$ systemctl status 
> diaspora-web
> ● diaspora-web.service - Diaspora social network (unicorn)
> Loaded: loaded (/etc/systemd/system/diaspora-web.service; enabled; 
> vendor preset: enabled)
> Active: active (running) since Sun 2020-11-29 14:44:33 GMT; 54s ago
> Main PID: 4830 (ruby)

Certainly seems to be running.

> Tasks: 2 (limit: 2199)
> Memory: 23.2M
> CGroup: /system.slice/diaspora-web.service
> └─4830 ruby /home/diaspora/.rvm/gems/ruby-2.6.5 at diaspora/bin/unicorn -c 
> config/unicorn.rb -E production

So the problem seems to be that Nginx is failing to communicate with 
Diaspora.  Let's see that configuration file (config/unicorn.rb).  Check 
carefully that it specifies exactly the same socket file as Nginx is using:

/home/diaspora/diaspora/tmp/diaspora.sock

[snip]
> 
> /etc/nginx/sites-available$ ln -s /etc/nginx/sites-available/diaspora 
> /etc/nginx/sites-enabled/
> ln: failed to create symbolic link '/etc/nginx/sites-enabled/diaspora': 
> File exists

Irrelevant.  We've already established that Nginx is reading and acting 
on your configuration file so trying to re-create the symbolic link is 
just getting distracted.

John

-- 
Xronos Scheduler - https://xronos.uk/
All your school's schedule information in one place.
Timetable, activities, homework, public events - the lot
Live demo at https://schedulerdemo.xronos.uk/



More information about the GLLUG mailing list