[GLLUG] nginx oops!

MJ mirojrsc at yahoo.co.uk
Sun Nov 29 15:39:39 UTC 2020


 in /home/diaspora/.rvm/gems/ruby-2.6.5 at diaspora/bin/unicorn -c
there is no config/unicorn.rb 
nor in
#############:/home/diaspora/.rvm/config# ls
alias db displayed-notes.txt known known_aliases known_strings md5 pre_commit.yml remote sha512 solaris ssh.example
#############:/home/diaspora/.rvm/config# 

no such miths 'ere
-- 
?!? 8-/
=============================================
"I JUST WANNA DO GOD'S WILL!" -- Dr. Martin L. King Jr.
"AND IF YOU TOLERATE THIS, YOUR CHILDREN WILL BE NEXT" -- MSP
=============================================


     On Sunday, 29 November 2020, 15:11:00 GMT, John Winters via GLLUG <gllug at mailman.lug.org.uk> wrote:  
 
 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/

-- 
GLLUG mailing list
GLLUG at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/gllug  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20201129/38a7249e/attachment.html>


More information about the GLLUG mailing list