Creating password failed Resource not found

Hi guys, can you please help with this issue?

Creating password failed

Resource not found

kép

If I try to create a new password over the browser, I always got this messages.
With another account it works.
On the android app NC Passwords works, with my account.

What is different between my account and the another, that I set up the android app and the Mozilla extension for Passwords. If I delete or log out from my android app it doesn’t work either.

Thank you!

The setup:

Browser log errors:

Object { status: “error”, id: 404, message: “Resource not found”, response: Response }

id: 404

message: “Resource not found”

response: Response { type: “basic”, url: “https://XXX/index.php/apps/passwords/api/1.0/password/create”, redirected: false, … }
body: ReadableStream { locked: true }
locked: true
: ReadableStream.prototype { cancel: cancel(), getReader: getReader(), tee: tee(), … }
cancel: function cancel()
constructor: function ReadableStream()
getReader: function getReader()
locked:
tee: function tee()
length: 0
name: “tee”

Nextcloud Log:

[passwords] Fatal: OCP\AppFramework\Db\DoesNotExistException: Did expect one result but found none when executing: query “SELECT * FROM *PREFIX*passwords_password WHERE (deleted = :dcValue1) AND (user_id = :dcValue2) AND (uuid = :dcValue3)”; at <>

  1. /var/www/html/nextcloud/lib/public/AppFramework/Db/QBMapper.php line 346
    OCP\AppFramework\Db\QBMapper->findOneQuery(OC\DB\QueryBuilder\QueryBuilder {})
  2. /var/www/html/nextcloud/apps/passwords/lib/Db/AbstractMapper.php line 201
    OCP\AppFramework\Db\QBMapper->findEntity(OC\DB\QueryBuilder\QueryBuilder {})
  3. /var/www/html/nextcloud/apps/passwords/lib/Db/AbstractMapper.php line 174
    OCA\Passwords\Db\AbstractMapper->findOneByFields([“uuid”,"bc1ec12 … "])
  4. /var/www/html/nextcloud/apps/passwords/lib/Db/AbstractMapper.php line 99
    OCA\Passwords\Db\AbstractMapper->findOneByField(“uuid”, “bc1ec129-d1a1-4296-ade0-dc87b52d50db”)
  5. /var/www/html/nextcloud/apps/passwords/lib/Services/Object/AbstractModelService.php line 58
    OCA\Passwords\Db\AbstractMapper->findByUuid(“bc1ec129-d1a1-4296-ade0-dc87b52d50db”)
  6. /var/www/html/nextcloud/apps/passwords/lib/Services/ValidationService.php line 250
    OCA\Passwords\Services\Object\AbstractModelService->findByUuid(“bc1ec129-d1a1-4296-ade0-dc87b52d50db”)
  7. /var/www/html/nextcloud/apps/passwords/lib/Services/ValidationService.php line 59
    OCA\Passwords\Services\ValidationService->checkHash(OCA\Passwords\Db … l})
  8. /var/www/html/nextcloud/apps/passwords/lib/Services/Object/PasswordRevisionService.php line 124
    OCA\Passwords\Services\ValidationService->validatePassword(OCA\Passwords\Db … l})
  9. /var/www/html/nextcloud/apps/passwords/lib/Controller/Api/PasswordApiController.php line 148
    OCA\Passwords\Services\Object\PasswordRevisionService->create(“bc1ec129-d1a1-4296-ade0-dc87b52d50db”, “f4887044510f7cf … 0”, “e9326fe69e3c9cb … 7”, “23549abe-adab-413c-8d48-ce299d77a30d”, “CSEv1r1”, “a94a8fe5ccb19ba61c4c0873d391e9”, “06193b63dff66f8 … 1”, “”, “”, “16f48ea92ba8a4b … 9”, “00000000-0000-0000-0000-000000000000”, 1634148612, false, false, false)
  10. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 169
    OCA\Passwords\Controller\Api\PasswordApiController->create(“f4887044510f7cf … 0”, “e9326fe69e3c9cb … 7”, “23549abe-adab-413c-8d48-ce299d77a30d”, “CSEv1r1”, “a94a8fe5ccb19ba61c4c0873d391e9”, “06193b63dff66f8 … 1”, “”, “”, “16f48ea92ba8a4b … 9”, “00000000-0000-0000-0000-000000000000”, 1634148612, false, false, )
  11. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 100
    OC\AppFramework\Http\Dispatcher->executeController(OCA\Passwords\Co … {}, “create”)
  12. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 152
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\Passwords\Co … {}, “create”)
  13. /var/www/html/nextcloud/lib/private/Route/Router.php line 309
    OC\AppFramework\App::main(“PasswordApiController”, “create”, OC\AppFramework\ … {}, {_route: “passwords.password_api.create”})
  14. /var/www/html/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/passwords/api/1.0/password/create")
  15. /var/www/html/nextcloud/index.php line 37
    OC::handleRequest()

POST /index.php/apps/passwords/api/1.0/password/create
from 91.1.19.80 by Andras at 2021-10-13T18:10:12+00:00

[passwords] Error: Error "Did expect one result but found none when executing: query “SELECT * FROM *PREFIX*passwords_password WHERE (deleted = :dcValue1) AND (user_id = :dcValue2) AND (uuid = :dcValue3)”; " in OCA\Passwords\Controller\Api\PasswordApiController::create

POST /index.php/apps/passwords/api/1.0/password/create
from 91.1.19.80 by Andras at 2021-10-13T18:10:12+00:00

Server info:

Server configuration detail

Operating system: Linux 3.16.85-52 #1 SMP PREEMPT Mon Jun 29 13:18:51 -03 2020 aarch64

Webserver: Apache/2.4.29 (Ubuntu) (apache2handler)

Database: mysql 10.3.28

PHP version: 7.3.27-9+ubuntu18.04.1+deb.sury.org+1

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, apache2handler, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 20.0.13 - 20.0.13.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array ( )

List of activated apps
Enabled:
 - accessibility: 1.6.0
 - activity: 2.13.4
 - analytics: 3.6.1
 - announcementcenter: 4.0.2
 - apporder: 0.13.0
 - bookmarks: 10.0.0
 - bruteforcesettings: 2.2.0
 - calendar: 2.3.4
 - cloud_federation_api: 1.3.0
 - comments: 1.10.0
 - contacts: 4.0.3
 - contactsinteraction: 1.1.0
 - cookbook: 0.9.4
 - dashboard: 7.0.0
 - dav: 1.16.2
 - deck: 1.2.9
 - external: 3.7.3
 - federatedfilesharing: 1.10.2
 - federation: 1.10.1
 - files: 1.15.0
 - files_bpm: 0.2.1
 - files_external: 1.11.1
 - files_mindmap: 0.0.25
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.2
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - files_videoplayer: 1.9.0
 - fileslibreofficeedit: 1.0.2
 - geoblocker: 0.5.1
 - impersonate: 1.7.0
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - news: 16.1.0
 - nextcloud_announcements: 1.9.0
 - notes: 4.1.1
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - ocdownloader: 1.7.12
 - password_policy: 1.10.1
 - passwords: 2021.10.10
 - photos: 1.2.3
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - spreed: 10.0.10
 - support: 1.3.0
 - survey_client: 1.8.0
 - systemtags: 1.10.0
 - tasks: 0.14.2
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_backupcodes: 1.9.0
 - updatenotification: 1.10.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - welcome: 1.0.0
 - workflowengine: 2.2.1
Disabled:
 - admin_audit
 - circles
 - duplicatefinder
 - encryption
 - files_antivirus
 - firstrunwizard
 - maps
 - openhab
 - phonetrack
 - ransomware_protection
 - recommendations
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "XXX",
        "192.168.1.XXX",
        "www.XXX"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "20.0.13.1",
    "overwrite.cli.url": "http:\/\/XXX\/nextcloud",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "memcache.local": "\\OC\\Memcache\\Redis",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "app_install_overwrite": [
        "cookbook",
        "uploaddetails"
    ],
    "updater.release.channel": "stable",
    "maintenance": false,
    "theme": "",
    "loglevel": 2,
    "allow_local_remote_servers": true,
    "activity_expire_days": 200,
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_sendmailmode": "smtp",
    "mail_smtpauth": 1,
    "mail_smtpsecure": "ssl",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "465",
    "trashbin_retention_obligation": "auto, 5"
}

External storages: yes

External storage configuration


Encryption: no

User-backends:

  • OC\User\Database

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0

Likely this issue: Error when trying to add new password · Issue #444 · marius-wieschollek/passwords · GitHub

Related to your comment, if I disable or enable the full Security Check Hash then it works.
If I set the 50% or 75% to store the hash it doesn’t work.

I didn’t tried to switch Client encryption mode off, but probably it can be helpfull as well.
Thank you for your quick reply!