Passwords App don't work anymore : "API session token expired" and "CORS require basic auth"

Hi,

I got issue when trying to access to Passwords App.

All my other app, sync, ssl, and access running well.

After searching on the forum, I found nothing conclusive.
Someone got some trick to help me to resolve it please.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • `Nextcloud Hub 9 (30.0.6)
  • Operating system and version (e.g., Ubuntu 24.04):
    • `IONOS mutual server : Linux 4.4.400-icpu-101 x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • `IONOS mutual server
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • no idea
  • PHP version (e.g, 8.3):
    • `8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • `yes from month ago
  • When did this problem seem to first start?
    • arround 20024 octoberi think
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • install from navigator
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • `no

Summary of the issue you are facing:

When i try to access to the Passwords App by the navigator i got firstly “API session token expired” error message ; when I clik on the cross of this message, this run again the same message but below we can see an other message that said “CORS require basic auth”.

Steps to replicate it (hint: details matter!):

  1. just by cliking to access to paswords app on the navigator interface

Log entries

Nextcloud

Nextcloud log from *Administration settings->Logging :

[passwords] Info: Cancelled expired session 64b8cc80-dbc7-43f7-ab6f-9e3dd49c25ed for pigroCloud
	GET /index.php/apps/passwords/
	de 190.63.121.244 par pigroCloud à 6 mai 2025, 21:30:38
[passwords] Fatal: Token with ID 2059 does not exist: token does not exist
	GET /index.php/apps/passwords/
	de 190.63.121.244 par pigroCloud à 6 mai 2025, 21:35:42
[passwords] Erreur: Failed to load api token for pigroCloud
	GET /index.php/apps/passwords/
	de 190.63.121.244 par pigroCloud à 6 mai 2025, 21:35:42
[passwords] Fatal: Token with ID 2059 does not exist: token does not exist
	GET /index.php/apps/passwords/
	de 190.63.121.244 par pigroCloud à 6 mai 2025, 21:35:42

Configuration

Nextcloud

The contents of config.phpfile from/path/to/nextcloud`

$CONFIG = array (
  'instanceid' => '*********',
  'passwordsalt' => '*********',
  'secret' => '*********',
  'default_phone_region' => 'FR',
  'trusted_domains' => 
  array (...),
  'datadirectory' => '*********',
  'dbtype' => 'mysql',
  'version' => '30.0.6.2',
  'overwrite.cli.url' => '*********',
  'dbname' => '*********',
  'dbhost' => '*********',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*********',
  'dbpassword' => '*********',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'caniupdate',
    1 => 'occweb',
  ),
  'mail_from_address' => 'fromnextcloud',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '*********',
  'mail_smtphost' => '*********',
  'mail_smtpport' => '465',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpsecure' => 'ssl',
  'mail_smtpname' => '*********',
  'mail_smtppassword' => '*********',
  'updater.secret' => '*********',
);

Apps

I just got a problem with Passwords App.
Other active app:

  • Activity
  • AppAPI (really usefull in my case?)
  • Audio Player
  • Auditing / Logging (fresly installed to help revolve my issue)
  • Brute-force setting
  • Calendar
  • Contacts
  • Dashboard
  • File sharing
  • Logs Reader
  • Maps
  • Monitoring
  • Music
  • Notes
  • Passwords
  • PDF viewer
  • PhoneTrack
  • Photos
  • Update notification

Similar issues were reported on NC 30.0.6 and were resolved by updating to the latest version.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.