Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sign in #54

Closed
Dhs92 opened this issue Nov 28, 2021 · 28 comments
Closed

Unable to sign in #54

Dhs92 opened this issue Nov 28, 2021 · 28 comments

Comments

@Dhs92
Copy link

Dhs92 commented Nov 28, 2021

Just got my server up and running. I'm able to access the webapp on both my phone and desktop, but when trying to sign in using the mobile app it just says "Oops! Something wrong happened." with "Retry" and "Log Out". "Retry" just causes the app to sit there with a loading logo and it won't ever progress.

EDIT: Here's my nginx config

server {
        listen           *:8000;
        root             /usr/local/share/koel/public;
        server_name      koel.piehole;
        index            index.php;

        gzip             on;
        gzip_types       text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
        gzip_comp_level  9;

        location / {
          try_files   $uri $uri/ /index.php?$args;

          error_log /var/log/nginx/koel.error.log;
        }

        location /media/ {
           internal;

           alias         $upstream_http_x_media_root;
        }

        location ~ \.php$ {
          try_files $uri $uri/ /index.php?$args;

          fastcgi_param     PATH_INFO $fastcgi_path_info;
          fastcgi_param     PATH_TRANSLATED $document_root$fastcgi_path_info;
          fastcgi_param     SCRIPT_FILENAME $document_root$fastcgi_script_name;

          fastcgi_pass              unix:/var/run/php74-fpm.sock;
          fastcgi_index             index.php;
          fastcgi_split_path_info   ^(.+\.php)(/.+)$;
          fastcgi_intercept_errors  on;
          include                   fastcgi_params;
        }
    }
@phanan
Copy link
Member

phanan commented Dec 5, 2021

Does your server have SSL?

@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021 via email

@phanan
Copy link
Member

phanan commented Dec 5, 2021

That must be the reason then. iOS app policies require an API to have SSL for the app to communicate with. Luckily SSL support is trivial these days with Let's Encrypt—I'd suggest you take a look.

@phanan phanan closed this as completed Dec 5, 2021
@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021

I'm on Android, do they have a similar policy?

@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021 via email

@phanan
Copy link
Member

phanan commented Dec 5, 2021

Can you share a screenshot or even better, a screen recording?

@phanan phanan reopened this Dec 5, 2021
@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021 via email

@phanan
Copy link
Member

phanan commented Dec 5, 2021 via email

@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021 via email

@Dhs92
Copy link
Author

Dhs92 commented Dec 5, 2021

From the koel jail.

root@koel:/var/log/nginx # cat access.log
192.168.1.213 - - [05/Dec/2021:13:26:47 -0800] "GET /api/me HTTP/1.0" 200 115 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:26:47 -0800] "GET /api/data HTTP/1.0" 200 2631 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:26:48 -0800] "DELETE /api/me HTTP/1.0" 204 0 "-" "Dart/2.14 (dart:io)"
root@koel:/var/log/nginx # cat access.log
192.168.1.213 - - [05/Dec/2021:13:26:47 -0800] "GET /api/me HTTP/1.0" 200 115 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:26:47 -0800] "GET /api/data HTTP/1.0" 200 2631 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:26:48 -0800] "DELETE /api/me HTTP/1.0" 204 0 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:27:03 -0800] "POST /api/me HTTP/1.0" 200 55 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:27:04 -0800] "GET /api/me HTTP/1.0" 200 115 "-" "Dart/2.14 (dart:io)"
192.168.1.213 - - [05/Dec/2021:13:27:04 -0800] "GET /api/data HTTP/1.0" 200 2631 "-" "Dart/2.14 (dart:io)"
root@koel:/var/log/nginx # cat error.log
root@koel:/var/log/nginx # cat koel.error.log
root@koel:/var/log/nginx #

@Dhs92
Copy link
Author

Dhs92 commented Dec 13, 2021 via email

@Dhs92
Copy link
Author

Dhs92 commented Jan 11, 2022

An update:
I recently migrated to SCALE (Linux, where CORE is FreeBSD), which uses k3s instead of FreeBSD jails.
It would appear that the app is working as intended now. I also noticed that building from source errors out and says that one of the dependencies is not compatible with FreeBSD. Looks like there might be an inherent incompatibility with FreeBSD on the server side of things?

@matteosacchetto
Copy link

Hi, I'm experiencing a similar issue.
Here is my setup:

  • Koel running in docker (armv7l) behind traefikv2 as reverse proxy
  • SSL is active
  • The certificate is trusted
  • The app is running on Android 10

Whenever I try to login, it only appears the error message: There was a problem logging is. Please try again

I've see that the domain resolution is performed, but no request is performed to the server (nothing showing in the server logs), so I think it is something related to the app itself or my Android device rather than the server setup

Let me know how I can help you further and thank you for the awesome job 💪🏼

@nickian
Copy link

nickian commented Apr 10, 2023

I have this same problem. Using a Let's Encrypt certificate and the nginx example configuration provided in the repo. Works fine in the browser, but can't log into the iOS app.

@phanan
Copy link
Member

phanan commented Apr 10, 2023 via email

@Dhs92
Copy link
Author

Dhs92 commented Apr 10, 2023

Will the android app be updated as well? The play store shows the last update was October of 2021

@phanan
Copy link
Member

phanan commented Apr 10, 2023 via email

@nickian
Copy link

nickian commented Apr 12, 2023

Still can't log in with the new version of the app on iOS. 🤷‍♂️

There are no errors added to either my Nginx error log or to the Laravel log when trying and failing to log in.

@phanan
Copy link
Member

phanan commented Apr 12, 2023

Can you perhaps share with me a set of credentials? My email is me@phanan.net.

@nickian
Copy link

nickian commented Apr 12, 2023

I am currently just running it on my local network, so it is not accessible outside. I can try setting an instance up on Digital Ocean to see if I have the same issue.

@phanan
Copy link
Member

phanan commented Apr 12, 2023

If it's a local network how would the mobile app be able to access it?

@nickian
Copy link

nickian commented Apr 12, 2023

Because my iPhone is connected to the same local router. If I'm away from my local network, I use Wireguard to connect into it. The network is not the issue.

@phanan
Copy link
Member

phanan commented Apr 12, 2023

Ah right. I would suggest trying a public instance as you said then. TBH I'm not familiar with this kind of VPN setup, which might very well be why Koel is unable to connect.

@nickian
Copy link

nickian commented Apr 12, 2023

I'm not using the VPN. I'm at home on the network. It does seem to work fine on Digital Ocean.

Does the app need to be connected to the internet? In other words, does the external internet need to be able to ping my instance for some reason? Should it not work offline?

@nickian
Copy link

nickian commented Apr 12, 2023

Doesn't make much sense. I can pull up the login screen in Safari as well. But it won't let me login with my user/pass. It acts like I put in wrong credentials. Put the same ones in on my laptop and it works fine.

@phanan
Copy link
Member

phanan commented Apr 12, 2023

If by Safari you mean mobile Safari then I'd strongly suggest there are some different configs between your phone and your laptop. Unfortunately, as mentioned above, I'm not familiar with this kind of setup so my support is limited.

@nickian
Copy link

nickian commented Apr 12, 2023

I will do more investigating. Things seem to work on the cloud but not on my home server. The setups are basically the same (Ubuntu, php-fpm 8.0, Nginx). I'll update if I find some configuration issue causing this.

@phanan
Copy link
Member

phanan commented Apr 18, 2023

Closing as I don't believe this is a Koel-specific issue.

@phanan phanan closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants