nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.65k stars 3.99k forks source link

Profile not found! The profile does not exist... #30535

Closed l4b4r4b4b4 closed 1 year ago

l4b4r4b4b4 commented 2 years ago

Steps to reproduce

Not quite sure since I have an exact same installation, where it works.

Expected behaviour

User Profile Pages should be reachable without being logged in when set 'active'.

Actual behaviour

Whoever is not the owner of the respective profile only gets an error page saying:

 "Profile not found
The profile does not exist.

Back to ... "

Server configuration

docker-compose treafik 2.0 nginx alpine-fpm version: '3'

volumes:
  db-data:
  app-data:

networks:
  office-network:
    driver: bridge
  web:
    external: true

services:
  cron:
    image: rcdailey/nextcloud-cronjob
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    restart: always
    network_mode: none
    depends_on:
      - app
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /etc/localtime:/etc/localtime:ro
    environment:
      - NEXTCLOUD_CONTAINER_NAME=cloud_app_1
      - NEXTCLOUD_EXEC_SHELL=sh
      - NEXTCLOUD_CRON_MINUTE_INTERVAL=5
      - DEBUG

  clamav:
    image: "quay.io/ukhomeofficedigital/clamav:latest"
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    container_name: ${CON_PREFIX}-office-clamav
    restart: unless-stopped
    environment:
      - CLAMD_SETTINGS_CSV=LocalSocket=/var/run/clamav/clamd.ctl
    networks:
      office-network:
        aliases:
          - clamav

  web:
    container_name: ${CON_PREFIX}-office-web    
    build: ./web
    links:
      - app
    restart: always
    volumes:
      - ./web/nginx.conf:/etc/nginx/nginx.conf:ro
      - app-data:/var/www/html
    depends_on:
      - app
      - redis
      - db
    networks:
      office-network:
        aliases:
          - web
      web:
        aliases:
          - ${CON_PREFIX}-boss.Office
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=web"
      - "traefik.http.routers.web.rule=Host(`office.${DOMAIN}`)"
      - "traefik.http.routers.web.entrypoints=websecure"
      - "traefik.http.routers.web.tls=true"
      - "traefik.http.routers.web.service=web"
      - "traefik.http.routers.web.tls.certresolver=lets-encrypt"
      - "traefik.http.services.web.loadbalancer.server.port=80"
      - "traefik.http.routers.web.middlewares=nextcloud,nextcloud_redirect,compress"
      - "traefik.http.middlewares.compress.compress=true"
      - "traefik.http.middlewares.nextcloud.headers.customFrameOptionsValue=ALLOW-FROM https://office.${DOMAIN}"
      - "traefik.http.middlewares.nextcloud.headers.contentSecurityPolicy=frame-ancestors 'self' office.${DOMAIN} *.${DOMAIN} *"
      - "traefik.http.middlewares.nextcloud.headers.stsSeconds=155520011"
      - "traefik.http.middlewares.nextcloud.headers.stsIncludeSubdomains=true"
      - "traefik.http.middlewares.nextcloud.headers.stsPreload=true"
      - "traefik.http.middlewares.nextcloud.headers.customresponseheaders.X-Frame-Options=SAMEORIGIN"
      - "traefik.http.middlewares.nextcloud_redirect.redirectregex.permanent=true"
      - "traefik.http.middlewares.nextcloud_redirect.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav"
      - "traefik.http.middlewares.nextcloud_redirect.redirectregex.replacement=https://$${1}/remote.php/dav/"

  app:
    depends_on:
      - db
      - redis
      - clamav
    mem_limit: 10240m
    build: ./php
    restart: always
    links:
      - clamav:av
    volumes:
      - app-data:/var/www/html
    environment:
      NEXTCLOUD_ADMIN_USER: ${NEXTCLOUD_ADMIN_USER}
      NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD}
      NEXTCLOUD_DATA_DIR: ${NEXTCLOUD_DATA_DIR}
      NEXTCLOUD_TABLE_PREFIX: ${NEXTCLOUD_TABLE_PREFIX}
      NEXTCLOUD_TRUSTED_DOMAINS: office.${DOMAIN}
      REDIS_HOST: redis
      REDIS_HOST_PASSWORD: ${REDIS_HOST_PASSWORD}
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
      MYSQL_HOST: db
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    networks:
      office-network:
        aliases:
          - app

  db:
    container_name: ${CON_PREFIX}-office-db
    image: mariadb:10.5
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - db-data:/var/lib/mysql
    environment:
      MYSQL_DATABASE: ${MYSQL_DATABASE}
      MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
      MYSQL_USER: ${MYSQL_USER}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD}
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    networks:
      office-network:
        aliases:
          - db

  redis:
    container_name: ${CON_PREFIX}-office-redis
    labels:
      - "com.centurylinklabs.watchtower.enable=true"
    image: redis:alpine
    command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
    restart: always
    networks:
      office-network:
        aliases:
          - redis

Operating system: Debian

Web server:

Profile not found
The profile does not exist.

Back to 

Database:

PHP version: 8.0

Nextcloud version: (see Nextcloud admin page) 23.0.0

Updated from an older Nextcloud/ownCloud or fresh install: fresh install Where did you install Nextcloud from: latest Dockerfile from DockerHub

Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here.

No errors have been found.

List of activated apps:

<details>
<summary>App list</summary>
Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - admin_audit: 1.13.0
  - announcementcenter: 6.1.1
  - apporder: 0.14.0
  - approval: 1.0.9
  - auto_groups: 1.4.0
  - bbb: 2.1.0
  - breezedark: 23.0.0
  - calendar: 3.0.4
  - circles: 23.0.0
  - cloud_federation_api: 1.6.0
  - collectives: 0.17.22
  - comments: 1.13.0
  - contacts: 4.0.7
  - contactsinteraction: 1.4.0
  - dashboard: 7.3.0
  - dav: 1.21.0
  - deck: 1.6.0
  - drawio: 1.0.2
  - event_update_notification: 1.4.0
  - external: 3.10.2
  - extract: 1.3.3
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_accesscontrol: 1.13.0
  - files_antivirus: 3.2.2
  - files_automatedtagging: 1.13.0
  - files_lock: 20.1.0
  - files_pdfviewer: 2.4.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - firstrunwizard: 2.12.0
  - forms: 2.4.0
  - groupfolders: 11.1.2
  - groupquota: 0.1.7
  - impersonate: 1.10.0
  - keeweb: 0.6.8
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.11.5
  - news: 17.0.1
  - nextcloud_announcements: 1.12.0
  - notes: 4.2.0
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - onlyoffice: 7.2.1
  - password_policy: 1.13.0
  - photos: 1.5.0
  - polls: 3.4.2
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - quota_warning: 1.13.0
  - ransomware_protection: 1.12.0
  - recommendations: 1.2.0
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - side_menu: 2.1.0
  - socialsharing_email: 2.4.0
  - spreed: 13.0.1
  - support: 1.6.0
  - survey_client: 1.11.0
  - systemtags: 1.13.0
  - talk_matterbridge: 1.23.2
  - terms_of_service: 1.9.1
  - text: 3.4.0
  - theming: 1.14.0
  - theming_customcss: 1.10.0
  - twofactor_backupcodes: 1.12.0
  - twofactor_nextcloud_notification: 3.3.1
  - updatenotification: 1.13.0
  - user_status: 1.3.1
  - user_usage_report: 1.7.0
  - viewer: 1.7.0
  - weather_status: 1.3.0
  - workflow_pdf_converter: 1.8.0
  - workflowengine: 2.5.0

Nextcloud configuration:

Config report ``` { "system": { "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "password": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "23.0.0.10", "overwrite.cli.url": "http:\/\/localhost", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "overwriteprotocol": "https", "default_language": "de", "default_locale": "de", "logtimezone": "Europe\/Berlin", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpsecure": "ssl", "mail_smtpauth": "true", "mail_smtpauthtype": "LOGIN", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "knowledgebaseenabled": "true", "allow_user_to_change_display_name": "true", "loglevel": 2, "maintenance": false } } ```

Are you using external storage, if yes which one: None

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No

Client configuration

Browser: Chrome / Firefox Operating system: Linux

Logs

Web server error log

Web server error log ``` IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /u/luke HTTP/1.1" 200 7364 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /css/icons/icons-vars.css?v=1641587691 HTTP/1.1" 200 35610 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/theming/image/logo?useSvg=1&v=10 HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/side_menu/css/stylesheet?v=7 HTTP/1.1" 200 251 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/side_menu/js/script?v=7 HTTP/1.1" 200 2669 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/theming/image/logo?v=10 HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/side_menu/js/config HTTP/1.1" 200 298 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" IEM-office-web | 172.20.0.4 - - [07/Jan/2022:20:49:08 +0000] "GET /apps/theming/manifest?v=10 HTTP/1.1" 200 269 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36" "2002:ac14::1" ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ``` Nothing relevant, as I can see. #### Browser log
Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at script?v=7:139 at script?v=7:356 script?v=7:85 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') at HTMLBodyElement. (script?v=7:85) at _ (sideMenu.js?v=4c7c744b-10:24) b) The network log c) ... ```
ClaraCrazy commented 2 years ago

Just wanted to say that I got the exact same issue. I'll post my info below:

Install Info: Nextcloud 23.0.3.2, updated from 22.0.6 | Ubuntu 20.04 | Apache2.4.52 & PHP 8.0

Nextcloud log shows no entry that is relevant to the profile issue. The last entry was for the 3rd party Passwords app.

Enabled apps probably have nothing to do with it, but here they are:

Enabled Apps: ``` - accessibility: 1.9.0 - activity: 2.15.0 - analytics: 4.2.1 - announcementcenter: 6.1.1 - apporder: 0.15.0 - breezedark: 23.2.1 - bruteforcesettings: 2.3.0 - calendar: 3.2.2 - camerarawpreviews: 0.7.15 - checksum: 1.1.3 - circles: 23.1.0 - cloud_federation_api: 1.6.0 - comments: 1.13.0 - contacts: 4.1.0 - contactsinteraction: 1.4.0 - dashboard: 7.3.0 - dav: 1.21.0 - deck: 1.6.1 - dicomviewer: 1.2.3 - drop_account: 2.0.0 - emlviewer: 1.0.1 - encryption: 2.11.0 - event_update_notification: 1.5.0 - external: 3.10.2 - extract: 1.3.3 - federatedfilesharing: 1.13.0 - federation: 1.13.0 - files: 1.18.0 - files_downloadactivity: 1.13.0 - files_downloadlimit: 0.1.3 - files_fulltextsearch: 23.0.0 - files_linkeditor: 1.1.9 - files_markdown: 2.3.5 - files_mindmap: 0.0.26 - files_pdfviewer: 2.4.0 - files_readmemd: 1.2.2 - files_retention: 1.12.0 - files_rightclick: 1.2.0 - files_sharing: 1.15.0 - files_texteditor: 2.14.0 - files_trashbin: 1.13.0 - files_versions: 1.16.0 - files_videoplayer: 1.12.0 - files_zip: 1.0.1 - fulltextsearch: 23.0.0 - fulltextsearch_elasticsearch: 23.0.0 - geoblocker: 0.5.4 - hsts: 0.9.0 - imageconverter: 1.3.2 - impersonate: 1.10.0 - integration_dropbox: 1.0.4 - integration_github: 1.0.2 - integration_gitlab: 1.0.3 - integration_google: 1.0.6 - integration_onedrive: 1.1.2 - integration_reddit: 1.0.3 - integration_twitter: 1.0.2 - login_notes: 1.0.4 - logreader: 2.8.0 - lookup_server_connector: 1.11.0 - maps: 0.1.10 - metadata: 0.15.0 - music: 1.5.1 - ncdownloader: 0.9.0 - news: 18.0.0 - notifications: 2.11.1 - notify_push: 0.3.0 - oauth2: 1.11.0 - password_policy: 1.13.0 - passwords: 2022.4.20 - photos: 1.5.0 - privacy: 1.7.0 - provisioning_api: 1.13.0 - quota_warning: 1.13.1 - rainloop: 7.2.2 - ransomware_protection: 1.12.0 - recommendations: 1.2.0 - registration: 1.4.0 - richdocuments: 5.0.3 - richdocumentscode: 21.11.204 - riotchat: 0.11.3 - serverinfo: 1.13.0 - settings: 1.5.0 - sharebymail: 1.13.0 - sharingpath: 0.4.4 - side_menu: 2.3.4 - sociallogin: 4.14.0 - socialsharing_diaspora: 2.5.0 - socialsharing_email: 2.5.0 - socialsharing_facebook: 2.5.0 - socialsharing_twitter: 2.5.0 - spreed: 13.0.5 - support: 1.6.0 - survey_client: 1.11.0 - suspicious_login: 4.1.0 - systemtags: 1.13.0 - talk_matterbridge: 1.23.2 - talked: 0.3.0 - terms_of_service: 1.9.3 - text: 3.4.1 - theming: 1.14.0 - twofactor_admin: 3.2.0 - twofactor_backupcodes: 1.12.0 - twofactor_email: 2.2.0 - twofactor_totp: 6.2.0 - twofactor_u2f: 6.3.0 - twofactor_webauthn: 0.3.1 - unroundedcorners: 1.0.3 - unsplash: 1.2.4 - updatenotification: 1.13.0 - user_retention: 1.6.0 - user_status: 1.3.1 - video_converter: 1.0.4 - viewer: 1.7.0 - weather_status: 1.3.0 - welcome: 1.0.1 - workflow_media_converter: 1.3.6 - workflow_ocr: 1.23.2 - workflow_pdf_converter: 1.8.0 - workflow_script: 1.8.0 - workflowengine: 2.5.0 ```

No encryption, no external storage, here's my config btw...

Config: ``` { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "cloud.cynthiaai.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "23.0.3.2", "overwrite.cli.url": "http:\/\/cloud.cynthiaai.de", "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.distributed": "\\OC\\Memcache\\Redis", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "htaccess.RewriteBase": "\/", "integrity.check.disabled": false, "default_phone_region": "DE", "auth.webauthn.enabled": false, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\Image", "OC\\Preview\\Movie", "OC\\Preview\\TXT", "OC\\Preview\\MP3", "OC\\Preview\\MKV", "OC\\Preview\\MP4", "OC\\Preview\\AVI" ], "app_install_overwrite": [ "socialsharing_email", "socialsharing_facebook", "socialsharing_twitter", "socialsharing_diaspora", "hsts" ], "maintenance": false, "path": "", "ncd_yt_binary": "\/usr\/local\/bin\/youtube-dl", "ncd_aria2_binary": "\/usr\/bin\/aria2c", "loglevel": 2, "knowledgebaseenabled": false, "theme": "", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpsecure": "ssl", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "updater.secret": "***REMOVED SENSITIVE VALUE***" } } ```

Any solutions for this or any way I can help?

l4b4r4b4b4 commented 2 years ago

Well I honestly just did a reinstall and it all worked.

ClaraCrazy commented 2 years ago

I cant afford a reinstall since it's a publicly used instance. Besides, a reinstall really should not be the only way of fixing this.

l4b4r4b4b4 commented 2 years ago

that's is true. I was lucky it didnt happen on any isntance, that was used and updated. I did some research and didn't find a way to fix it any other way to be honest. Maybe backing up app and db data and setting up the stack might fix it...

szaimen commented 1 year ago

Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+