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

Favorites are lost every time I update my instance #7615

Closed
dienteperro opened this issue Dec 23, 2017 · 10 comments
Closed

Favorites are lost every time I update my instance #7615

dienteperro opened this issue Dec 23, 2017 · 10 comments

Comments

@dienteperro
Copy link

Steps to reproduce

  1. Install update, from the updater.
  2. Click on the favorites link.
  3. There is no Favorites in the list.

Expected behaviour

Favorites should not disappear after an update.

Actual behaviour

Favorites disappear after an update.

Server configuration

Operating system: Linux hostname 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Web server: Apache 2.4.18-2ubuntu3.5 amd64

Database: PostgreSQL 9.5.10 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609, 64-bit

PHP version: 7.0.22

Nextcloud version: 12.0.4

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 12.0.3. This issue had happen every time I updated, even in 11.*

Where did you install Nextcloud from: official Nextcloud .zip file

Signing status: No errors have been found.

List of activated apps:

App list

Enabled:

  • activity: 2.5.2
  • admin_audit: 1.2.0
  • bruteforcesettings: 1.0.3
  • calendar: 1.5.7
  • comments: 1.2.0
  • contacts: 2.0.1
  • dav: 1.3.0
  • federatedfilesharing: 1.2.0
  • federation: 1.2.0
  • files: 1.7.2
  • files_clipboard: 0.6.4
  • files_external: 1.3.0
  • files_pdfviewer: 1.1.1
  • files_sharing: 1.4.0
  • files_texteditor: 2.4.1
  • files_trashbin: 1.2.0
  • files_versions: 1.5.0
  • files_videoplayer: 1.1.0
  • firstrunwizard: 2.1
  • gallery: 17.0.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.0.0
  • nextant: 1.0.8
  • nextcloud_announcements: 1.1
  • notifications: 2.0.0
  • oauth2: 1.0.5
  • ocsms: 1.12.1
  • password_policy: 1.2.2
  • previewgenerator: 1.0.8
  • provisioning_api: 1.2.0
  • ransomware_protection: 1.0.5
  • serverinfo: 1.2.0
  • sharebymail: 1.2.0
  • survey_client: 1.0.0
  • systemtags: 1.2.0
  • telephoneprovider: 1.0.1
  • theming: 1.3.0
  • twofactor_backupcodes: 1.1.1
  • updatenotification: 1.2.0
  • user_external: 0.4
  • workflowengine: 1.2.0
    Disabled:
  • encryption
  • user_ldap

Nextcloud configuration:

Config report { "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "datadirectory": "\/data\/nc\/data", "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "12.0.4.3", "dbname": "nextcloud", "dbhost": "localhost", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "America\/Havana", "installed": true, "filelocking.enabled": true, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "\/var\/run\/redis\/redis.sock", "port": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "user_backends": [ { "class": "OC_User_SMB", "arguments": [ "localhost", "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ] } ], "auth.bruteforce.protection.enabled": true, "enable_previews": true, "mail_smtpmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_smtpauth": 1, "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "587", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtptimeout": 60, "maintenance": false, "theme": "", "loglevel": 1, "log_rotate_size": 10485760, "updater.release.channel": "stable", "mail_smtpsecure": "tls", "updater.secret": "***REMOVED SENSITIVE VALUE***" } }

Are you using external storage, if yes which one: local, ftp

Are you using encryption: yes

Are you using an external user-backend, if yes which one: ActiveDirectory

Client configuration

Browser: Firefox 57.0.1 (64-bit)

Operating system: macOS 10.12.6

@MorrisJobke
Copy link
Member

cc @nickvergessen @rullzer @blizzz @icewind1991 Do you have an idea what happens here?

@blizzz
Copy link
Member

blizzz commented Jan 2, 2018

No, and didn't happen for me. Since the info is stored in the DB, it needs some manipulation to disappear.

@dienteperro are shares or comments, for instance, preserved?

@MorrisJobke
Copy link
Member

I'm closing this for now. Once you could provide more information we could reopen the ticket. Thanks

@dienteperro
Copy link
Author

I'll try to reproduce the issue in a different VM/server and be back. Thanks

@lephisto
Copy link

lephisto commented Apr 30, 2018

I also ran over this Issue today while updating from 11.0.5 to 12.0.7. It's reproduceable: Favorites of local users are transferred correctly, favorites of external Users (IMAP in my Case) have been lost. In this case it was easy to fix just by importing vcategory and vcategory_to_object table from the 11x into the 12x Database, since the DML hasn't changed. It would be cooler if the Updater would respect users_external. Someone should re-open this issue.

@nickvergessen
Copy link
Member

I guess the problem is, that your user backend is not registered when running the repair steps:

if (!$this->userManager->userExists($row['uid'])) {
$users[] = $row['uid'];
}

The app type seems to be right:
https://github.com/nextcloud/apps/blob/master/user_external/appinfo/info.xml#L19-L22

So I guess the app is disabled, because the version doesn't match atm, in that case #8380 would help

@lephisto
Copy link

Issue isn't fixed!

@tobyX
Copy link

tobyX commented Nov 13, 2020

I'm also affected by this and I also use users_external.

@kingfisher77
Copy link

Same effect here - we have LDAP user in a Samba AD.

@tiltroom
Copy link

tiltroom commented Jul 4, 2023

This issue still persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants