pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
3.21k stars 87 forks source link

Android Memories app login issues #963

Open kabaga opened 11 months ago

kabaga commented 11 months ago

Describe the bug Downloaded the latest of the Memories Android app from the Google Playstore. The issue that I am having is I could not login to the app. When I entered my username and app token. The mobile browser shows "Account connected. your client should now be connected! You can close this window."

However, when I closed the window, the Memories app is stuck in "Waiting for login to complete. Keep this page open in the background."

To Reproduce

  1. Enter the URL
  2. Enter the login crentials
  3. Close mobile browser window
  4. Go to Memories app

Screenshots N/A

Platform:

Additional context Add any other context about the problem here.

pulsejet commented 11 months ago

Any errors in the Nextcloud server logs?

?

Also try navigating your browser to https://your-nextcloud/apps/memories/api/describe and check if the protocol in the output is correct (http vs https)

kabaga commented 11 months ago

Any errors in the Nextcloud server logs?

?

Also try navigating your browser to https://your-nextcloud/apps/memories/api/describe and check if the protocol in the output is correct (http vs https)

I got https with that link. About the logs, the only error log that I could see is below, which I believe is not related to the Memories.

OC\User\NoUserException: Backends provided no user object
pulsejet commented 11 months ago

I assume this happens on all mobile devices? That would point to a server / reverse proxy config issue. Regardless, this would need more debugging on the client side (need the logcat from the mobile)

kabaga commented 11 months ago

Yes, all mobile devices. I am using the OPNsense NGINX plugins as my reverse proxy. Is there an NGINX specific settings that would allow the Memories app to work? Which logcat app should I download to get the debug information needed?

rednus commented 10 months ago

Same issue here.. For me, the login page reappears again and again.. Even tried to use App Passcode..

rednus commented 10 months ago

Same issue here.. For me, the login page reappears again and again.. Even tried to use App Passcode..

This issue is now resolved for me by using the OVERWRITECLIURL in the compose file (I am using NX AIO)

kabaga commented 10 months ago

Same issue here.. For me, the login page reappears again and again.. Even tried to use App Passcode..

This issue is now resolved for me by using the OVERWRITECLIURL in the compose file (I am using NX AIO)

How would you do this on a bare metal install (VM)?

rednus commented 10 months ago

Assume you edit your config/config.php to include overwrite.cli.url

'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => 'nextcloud.yourdomain.com',
  ),
  'datadirectory' => '/path/to/data',
  'dbtype' => 'pgsql',
  'version' => '27.1.5.1',
  'overwritehost' => 'nextcloud.yourdomain.com',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://nextcloud.yourdomain.com/',
  'dbname' => 'nextcloud_database',
  'dbhost' => 'nextcloud-aio-database',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
...