[GH-ISSUE #1338] Web-Interface not reachable #770

Closed
opened 2026-02-26 02:34:13 +03:00 by kerem · 4 comments
Owner

Originally created by @Tropaion on GitHub (Aug 1, 2021).
Original GitHub issue: https://github.com/koel/koel/issues/1338

Hello,

I installed the precombiled package with php7.4-fpm and nginx.
'php artisan koel:init --no-assets' runs without problems and 'php artisan serve' also return:
'tarting Laravel development server: http://127.0.0.1:8000
[Sun Aug 1 22:39:49 2021] PHP 7.4.22 Development Server (http://127.0.0.1:8000) started'
But I can't access both webinterfaces via IP. IP:8000 returns "Website not reachable. Connection refused" and nginx always falls back to default page.
I hope someone can help me, thanks.

Originally created by @Tropaion on GitHub (Aug 1, 2021). Original GitHub issue: https://github.com/koel/koel/issues/1338 Hello, I installed the precombiled package with php7.4-fpm and nginx. 'php artisan koel:init --no-assets' runs without problems and 'php artisan serve' also return: 'tarting Laravel development server: http://127.0.0.1:8000 [Sun Aug 1 22:39:49 2021] PHP 7.4.22 Development Server (http://127.0.0.1:8000) started' But I can't access both webinterfaces via IP. IP:8000 returns "Website not reachable. Connection refused" and nginx always falls back to default page. I hope someone can help me, thanks.
kerem closed this issue 2026-02-26 02:34:13 +03:00
Author
Owner

@glynnt commented on GitHub (Aug 2, 2021):

http://127.0.0.1:8000 means it only lisens to 127.0.0.1. Are you accessing it by http://127.0.0.1:8000?

<!-- gh-comment-id:890616546 --> @glynnt commented on GitHub (Aug 2, 2021): http://127.0.0.1:8000 means it only lisens to 127.0.0.1. Are you accessing it by http://127.0.0.1:8000?
Author
Owner

@Tropaion commented on GitHub (Aug 2, 2021):

Thats not possible, because it runs on an shell only debian server, there is no GUI, i can only access externally.
And this only applys for the development gui and not nginx if I'm right. But nginx also doesn't work.

<!-- gh-comment-id:890618468 --> @Tropaion commented on GitHub (Aug 2, 2021): Thats not possible, because it runs on an shell only debian server, there is no GUI, i can only access externally. And this only applys for the development gui and not nginx if I'm right. But nginx also doesn't work.
Author
Owner

@glynnt commented on GitHub (Aug 2, 2021):

maybe you can check the error log of nginx.

<!-- gh-comment-id:890726058 --> @glynnt commented on GitHub (Aug 2, 2021): maybe you can check the error log of nginx.
Author
Owner

@Tropaion commented on GitHub (Aug 2, 2021):

Ok, I look into /var/log/nginx/error.log and when I try to acces the website these two errors show up:

2021/08/02 13:16:04 [error] 17528#17528: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.44.9, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.88.17"$
2021/08/02 13:16:04 [error] 17528#17528: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.44.9, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.88.17", referrer: "http://192.168.88.17/"

Solution:
I don't know why, but after changing fastcgi_pass to fastcgi_pass unix:/run/php/php7.4-fpm.sock; it works.

<!-- gh-comment-id:891020678 --> @Tropaion commented on GitHub (Aug 2, 2021): Ok, I look into /var/log/nginx/error.log and when I try to acces the website these two errors show up: ``` 2021/08/02 13:16:04 [error] 17528#17528: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.44.9, server: _, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.88.17"$ 2021/08/02 13:16:04 [error] 17528#17528: *16 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.44.9, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.88.17", referrer: "http://192.168.88.17/" ``` **Solution:** I don't know why, but after changing `fastcgi_pass` to `fastcgi_pass unix:/run/php/php7.4-fpm.sock;` it works.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#770
No description provided.