[GH-ISSUE #1482] 404 Trying to login (/api/me) #845

Closed
opened 2026-02-26 02:34:26 +03:00 by kerem · 1 comment
Owner

Originally created by @JohnHolmesII on GitHub (Aug 13, 2022).
Original GitHub issue: https://github.com/koel/koel/issues/1482

Describe the bug
I was able to install and set up everything seemingly ok, but when
I visit the login page and enter the credentials, I get the red outline
and visual shake. In the network logs, there is a 404 after the POST to
/api/me. At first I thought this might be me entering the admin password wrong,
but even after running the command to change the password to something simple,
same issue.

Expected behavior
Successful login

Screenshots
image

Environment

  • Koel: v6.0.5
  • OS: Ubuntu 22.04
  • Browser: Firefucks 103.0.2
  • PHP: 8.1
  • Node:

Additional Context

I get the sense that this is a skill issue with nginx configuration, but it
seems pretty simple to me:

server {
        listen 10.0.0.99:80 default_server;
        listen [fdc9:281f:4d7:9ee9::99]:80 default_server;

        root /var/www/html/public;

        index index.php;

        server_name nasurbia;

        location / {
                try_files $uri $uri/ =404;
        }

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php8.1-fpm.sock;
        }
}
Originally created by @JohnHolmesII on GitHub (Aug 13, 2022). Original GitHub issue: https://github.com/koel/koel/issues/1482 **Describe the bug** I was able to install and set up everything seemingly ok, but when I visit the login page and enter the credentials, I get the red outline and visual shake. In the network logs, there is a 404 after the POST to /api/me. At first I thought this might be me entering the admin password wrong, but even after running the command to change the password to something simple, same issue. **Expected behavior** Successful login **Screenshots** ![image](https://user-images.githubusercontent.com/8901018/184468229-b3324170-aa66-420c-96db-afb7fd516634.png) **Environment** - Koel: v6.0.5 - OS: Ubuntu 22.04 - Browser: Firefucks 103.0.2 - PHP: 8.1 - Node: **Additional Context** I get the sense that this is a skill issue with nginx configuration, but it seems pretty simple to me: ```nginx server { listen 10.0.0.99:80 default_server; listen [fdc9:281f:4d7:9ee9::99]:80 default_server; root /var/www/html/public; index index.php; server_name nasurbia; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } } ```
kerem closed this issue 2026-02-26 02:34:26 +03:00
Author
Owner

@JohnHolmesII commented on GitHub (Aug 13, 2022):

Certified skill issue!

Needed

location / {
        try_files $uri $uri/ /index.php?$query_string;
}

Duh!!

<!-- gh-comment-id:1213677223 --> @JohnHolmesII commented on GitHub (Aug 13, 2022): Certified skill issue! Needed ```nginx location / { try_files $uri $uri/ /index.php?$query_string; } ``` Duh!!
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#845
No description provided.