connect() to unix:/run/php7.0-fpm.atom.sock failed

372 views
Skip to first unread message

carl...@gmail.com

unread,
Apr 10, 2017, 5:23:17 AM4/10/17
to AtoM Users
Hello everybody,

I installed AtoM 2.3 on a Ubuntu 16.04 LTS server using the installation instructions on accesstomemory.org. Everything went just fine. But if I'm trying to open the nginx I'm getting a 502 Bad gateway error.

My log says:

2017/04/09 21:13:11 [crit] 17768#17768: *24 connect() to unix:/run/php7.0-fpm.atom.sock failed (2: No such file or directory) while connecting to upstream, client: 93.xxx.xxx.xx, server: 35.xxx.xx.xxx, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php7.0-
fpm.atom.sock:", host: "35.xxx.xx.xxx"

Perhaps the follwing commands and results may help to indicate my problem:

1) ps aux | grep fpm

gives me:

root     11137  0.0  0.8 363952 31740 ?        Ss   11:02   0:01 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data 11140  0.0  0.2 363952  7908 ?        S    11:02   0:00 php-fpm: pool www
www-data 11141  0.0  0.2 363952  7908 ?        S    11:02   0:00 php-fpm: pool www
carl     17832  0.0  0.0  12944  1020 pts/0    S+   21:14   0:00 grep --color=auto fpm


2) ls -l  /etc/php/7.0/fpm/pool.d/atom.conf

gives me:

-rw-r--r-- 1 root root 1812 Apr  9 11:03 /etc/php/7.0/fpm/pool.d/atom.conf


3) grep listen /etc/php/7.0/fpm/pool.d/atom.conf

gives me:

listen = /run/php7.0-fpm.atom.sock
listen.owner = www-data
listen.group = www-data
listen.mode = 0600

I'm not sure if the responses on the commands 1), 2) and 3) are as they should be. Does anybody Know what's going wrong?

Many thanks!

Carl

Friesen, Darryl

unread,
Apr 10, 2017, 12:19:57 PM4/10/17
to ica-ato...@googlegroups.com
1234567890123456789012345678901234567890123456789012345678901234567890

> 2017/04/09 21:13:11 [crit] 17768#17768: *24 connect() to
> unix:/run/php7.0-fpm.atom.sock failed (2: No such file or directory)
> while connecting to upstream, client: 93.xxx.xxx.xx, server:
> 35.xxx.xx.xxx, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php7.0-fpm.atom.sock:", host: "35.xxx.xx.xxx"

Did you check if the file /run/php7.0-fpm.atom.sock exists?

In the output of your 'ps':

root  php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data php-fpm: pool www
www-data php-fpm: pool www

These are the default php-fpm processes. There should be some listed where the last element on the line is "atom" (this matches the name used in the
/etc/php/7.0/fpm/pool.d/atom.conf file).

Did you restart php-fpm after creating /etc/php/7.0/fpm/php-fpm.conf?

systemctl restart php7.0-fpm.service


- Darryl


----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst    Darryl....@usask.ca
Library Systems & Information Technology,    http://library.usask.ca/
University of Saskatchewan Library
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"





carl...@gmail.com

unread,
Apr 10, 2017, 1:16:11 PM4/10/17
to AtoM Users
Hello Darryl,

Many thanks. Indeed I had not restarted php-fpm properly. Now everything is running just fine!

best, Carl
Reply all
Reply to author
Forward
0 new messages