Shares are lost after upgrade to 10.0.10

Steps to reproduce

  1. owncloud 9.1.8 with AD integration and SMB external storage configured
  2. copy owncloud10.0.10.zip to the server
  3. sudo -u apache php occ maintenance:mode --on
  4. mv owncloud owncloud.old
  5. unzip owncloud-10.0.10.zip
  6. download files_pdfviewer files_texteditor gallery user_ldap activity templateeditor modules
  7. copy them to /owncloud/apps
  8. sudo -u apache php occ upgrade
  9. sudo -u apache php occ maintenance:mode –off
  10. sudo -u apache php occ user:sync "OCA\User_LDAP\User_Proxy"
    Log on owncloud and all shares are lost. Shares where in external storage and shared with LDAP AD Groups

Expected behaviour

Tell us what should happen: Shares are preserved

Actual behaviour

Tell us what happens instead: Shares are lost!

Server configuration

Operating system: CentoOS 7

Web server: Apache

Database: MySQL

PHP version: 5.6

ownCloud version: 10.0.10

Updated from an older ownCloud or fresh install: Update from 9.1.8

Where did you install ownCloud from: owncloud.org

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here:

https://gist.github.com/juaalo/0448b4b500d0a751bdd6706b77c5eb5e

The content of config/config.php:
{
“system”: {
“instanceid”: “ocaa34qdd6kc”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“192.168.4.18”,
bgbox.nnttr.com”,
“srvv-pruebasbgbox.ad.begar.es”
],
“datadirectory”: “/app1/data/owncloud”,
“overwrite.cli.url”: “http://192.168.4.18/owncloud”,
“dbtype”: “mysql”,
“version”: “10.0.10.4”,
“dbname”: “owncloud”,
“dbhost”: “127.0.0.1”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “Europe/Madrid”,
“installed”: true,
“ldapIgnoreNamingRules”: false,
“mail_smtpmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “25”,
“appstore.experimental.enabled”: false,
“preview_libreoffice_path”: “/usr/bin/libreoffice”,
“maintenance”: false,
“loglevel”: 2,
“ldapUserCleanupInterval”: 30,
“log_type”: “owncloud”,
“singleuser”: false
}
}

List of activated apps:

Enabled:

  • comments: 0.3.0
  • configreport: 0.1.1
  • dav: 0.4.0
  • federatedfilesharing: 0.3.1
  • federation: 0.1.0
  • files: 1.5.1
  • files_external: 0.7.1
  • files_pdfviewer: 0.9.0
  • files_sharing: 0.11.0
  • files_texteditor: 2.2.1
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • files_videoplayer: 0.9.8
  • firstrunwizard: 1.1
  • gallery: 16.1.0
  • market: 0.2.5
  • notifications: 0.3.5
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.4.0
  • updatenotification: 0.2.1
  • user_ldap: 0.10.0
    Disabled:
  • activity
  • encryption
  • external
  • user_external

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

Are you using encryption: no

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

LDAP configuration (delete this part if not used)

+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration                 |                                                                                                                                                   |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                                                                                                                 |
| hasPagedResultSupport         |                                                                                                                                                   |
| homeFolderNamingRule          | attr:samaccountname                                                                                                                               |
| lastJpegPhotoLookup           | 0                                                                                                                                                 |
| ldapAgentName                 | cn=bgbox,cn=users,dc=ad,dc=begar,dc=es                                                                                                            |
| ldapAgentPassword             | ***                                                                                                                                               |
| ldapAttributesForGroupSearch  |                                                                                                                                                   |
| ldapAttributesForUserSearch   |                                                                                                                                                   |
| ldapBackupHost                | 192.168.2.21                                                                                                                                      |
| ldapBackupPort                | 389                                                                                                                                               |
| ldapBase                      | DC=ad,DC=begar,DC=es                                                                                                                              |
| ldapBaseGroups                | ou=owncloud,ou=usuarios,DC=ad,DC=begar,DC=es                                                                                                      |
| ldapBaseUsers                 | ou=usuarios,DC=ad,DC=begar,DC=es                                                                                                                  |
| ldapCacheTTL                  | 600                                                                                                                                               |
| ldapConfigurationActive       | 1                                                                                                                                                 |
| ldapDynamicGroupMemberURL     |                                                                                                                                                   |
| ldapEmailAttribute            | mail                                                                                                                                              |
| ldapExperiencedAdmin          | 0                                                                                                                                                 |
| ldapExpertUUIDGroupAttr       |                                                                                                                                                   |
| ldapExpertUUIDUserAttr        | samaccountname                                                                                                                                    |
| ldapExpertUsernameAttr        |                                                                                                                                                   |
| ldapGroupDisplayName          | samaccountname                                                                                                                                    |
| ldapGroupFilter               | (&(|(objectclass=group)))                                                                                                                         |
| ldapGroupFilterGroups         |                                                                                                                                                   |
| ldapGroupFilterMode           | 0                                                                                                                                                 |
| ldapGroupFilterObjectclass    | group                                                                                                                                             |
| ldapGroupMemberAssocAttr      | member                                                                                                                                            |
| ldapHost                      | 192.168.3.45                                                                                                                                      |
| ldapIgnoreNamingRules         |                                                                                                                                                   |
| ldapLoginFilter               | (&(&(|(objectclass=person))(|(|(memberof=CN=owncloud,OU=OWNCLOUD,OU=Usuarios,DC=ad,DC=begar,DC=es)(primaryGroupID=56619))))(samaccountname=%uid)) |
| ldapLoginFilterAttributes     |                                                                                                                                                   |
| ldapLoginFilterEmail          | 0                                                                                                                                                 |
| ldapLoginFilterMode           | 0                                                                                                                                                 |
| ldapLoginFilterUsername       | 1                                                                                                                                                 |
| ldapNestedGroups              | 0                                                                                                                                                 |
| ldapOverrideMainServer        |                                                                                                                                                   |
| ldapPagingSize                | 0                                                                                                                                                 |
| ldapPort                      | 389                                                                                                                                               |
| ldapQuotaAttribute            |                                                                                                                                                   |
| ldapQuotaDefault              |                                                                                                                                                   |
| ldapTLS                       | 0                                                                                                                                                 |
| ldapUserDisplayName           | samaccountname                                                                                                                                    |
| ldapUserDisplayName2          |                                                                                                                                                   |
| ldapUserFilter                | (&(|(objectclass=person))(|(|(memberof=CN=owncloud,OU=OWNCLOUD,OU=Usuarios,DC=ad,DC=begar,DC=es)(primaryGroupID=56619))))                         |
| ldapUserFilterGroups          | owncloud                                                                                                                                          |
| ldapUserFilterMode            | 0                                                                                                                                                 |
| ldapUserFilterObjectclass     | person                                                                                                                                            |
| ldapUuidGroupAttribute        | auto                                                                                                                                              |
| ldapUuidUserAttribute         | auto                                                                                                                                              |
| turnOffCertCheck              | 0                                                                                                                                                 |
| useMemberOfToDetectMembership | 1                                                                                                                                                 |
+-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+

Client configuration

Browser: Firefox

Operating system: Windows 10

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

loud\/mdepablo for user: mdepablo which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/lsanchez for user: lsanchez which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/ARABOX-SAD-CUENCA for user: ARABOX-SAD-CUENCA which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/ARABOX-CABALLITO for user: ARABOX-CABALLITO which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/AURIBARRI for user: AURIBARRI which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/EGALAN for user: EGALAN which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/BGBOX-PARKING for user: BGBOX-PARKING which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/jgiraldez for user: jgiraldez which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/ARABOX-SANTURCE for user: ARABOX-SANTURCE which differs from existing value: "}
{"reqId":"XTcQxg1eN65a0AVhWElI","level":3,"time":"2019-03-25T12:59:35+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"User backend OCA\\User_LDAP\\User_Proxy is returning home: \/app1\/data\/owncloud\/mjvilela for user: mjvilela which differs from existing value: "}

did you create a db backup?

https://doc.owncloud.com/server/admin_manual/maintenance/manual_upgrade.html

yes, I have a DB Backup

well then you can go back to your backup :slight_smile:

The reason why you lost your shares requires investigation though.

@sistemas_nnttr check your backup and let us know what is in your accounts table for the home column of the above users. That ... which differs from existing value: " without an existing value is very suspicious.

I think the problem is with external storage; we have an SMB external storage called BACKUP, and owncloud access it using an Active Directoy user: AD\bgbox
I´m afraid access to external storage is lost in some point during migration, then when LDAP module is available, access is restored, external storage is scanned, but it´s internal ID is changed, so all the shares defined over this external storage are lost.

I have production server working with 9.1.4
I have a clone test server working with 9.1.4-> migrated to 9.1.8 with no problems and after migrated to 10.0.10 shares are lost.

I am checking differences in both owncloud databases, and something interesting is in os_external_mounts table; in the clone server BACKUP external storage is duplicated:

Prod server:

Test Server after clone and upgrade to 10.0.10:

This is how our external storages are defined in 9.1.8:

I´m afraid that storages defined with $user in REMOTE_SUBFOLDER field are then duplicated. They are not being processed correctly by upgrade process… users are not populated until you execute:
sudo -u apache php occ user:sync "OCA\User_LDAP\User_Proxy

this was not necessary after the upgrade from 9.1.4 -> 9.1.8, but if you do not execute this after upgrade to 10.0.10 Active Directory users are not populated…

Please, could you tell me if this is a BUG, in order to stop doing further testing?
Best regards and many thanks
JJ.-

Hi dmitry!
have you got any update about this problem? I see that there are new versions, do you know if this problem is solved in the new versiones?

Best regards and many thanks!
JJ.-

Hi JJ,

I doubt that there was some progress at this issue.

Can you pinpoint the version upgrade where your issue occurs? From what I read you try to upgrade from 9.1.8 to 10.0.10. Does it happen with 10.0.1?

Also another tip are the migration steps. This are the fixes that have been implemented to help upgrading from one version to another. sometimes those steps get skipped.

But if the issue is that connection to your LDAP / External storage gets separated, and then on reconnect the storage get a new ID causing the shares to get lost, I am not sure if there is something that can be done.

Hi dmitry, many thanks for your response
Our production version is 9.1.4, and we have upgraded to 9.1.8 in TEST environment with no problems.
We have tried upgrading from 9.1.8 to 10.0.10, 10.1.0 and yesterday to 10.2.0, all times losing shares…
I have not tried with 10.0.1 but I don´t have many hopes…
This situation tells me that external storage with LDAP validation is a bad idea in owncloud, at least if you use $user as folder name…
If we want to continue using owncloud, we should consider to migrate all our external storage to internal storage before migration…
Dou you know if this post is read by owncloud developers, and if they could give me any advice about this situation?
Best regards,
JJ.-

The update from 9.1.8 to 10.0.10 worked for me. The only difference is that I installed the market app to get the latest versions of the apps from the marketplace.

  1. Starting in 9.1.8 use occ maintenance:mode --on to set the instance in maintenance mode
  2. Replace the code from 9.1.8 to 10.0.10
  3. Manually install the market app (you can either get the app from the ownCloud’s marketplace or build it from the code in github)
  4. Run the upgrade with occ upgrade
  5. Disable the maintenance mode
  6. Run the occ user:sync 'OCA\User_LDAP\User_Proxy'

In my case, the remote folder was set as /ldap/$user instead of $user, and there was no mount point duplication in the DB.

The process should work with the upgrade to 10.2.0 (note that I think the minimum PHP version for 10.2.0 is 7.1, which isn’t supported for 9.1.8, so you’ll need to update the PHP version too).

This was checked starting with a fresh installation of 9.1.8 with LDAP, SMB storage and some shares with 3 users. You can also check with a fresh 9.1.8 because the problem might be caused by some issue in your 9.1.8 instance.

In addition, make sure everything runs without problems. It isn’t the first time and it won’t be the last, that people just ignores any error message

2 Likes

many thanks, I will give a try to 10.0.10
regards,
JJ.-

No luck…
this is the output ofthe upgrade:

[root@srvv-bgbox owncloud]# sudo -u apache php occ upgrade
There are some warnings but no errors…

ownCloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2019-06-27T13:40:14+02:00 Set log level to debug
2019-06-27T13:40:15+02:00 Repair step: Repair MySQL database engine
2019-06-27T13:40:15+02:00 Repair step: Repair MySQL collation
2019-06-27T13:40:15+02:00 Repair info: All tables already have the correct collation -> nothing to do
2019-06-27T13:40:15+02:00 Repair step: Repair SQLite autoincrement
2019-06-27T13:40:15+02:00 Repair step: Repair orphaned reshare
2019-06-27T13:40:15+02:00 Repair step: Repair duplicate entries in oc_lucene_status
2019-06-27T13:40:15+02:00 Repair info: lucene_status table does not exist -> nothing to do
2019-06-27T13:40:15+02:00 Repair step: Upgrade app code from the marketplace
2019-06-27T13:40:15+02:00 Repair info: Enabling market app to assist with update
2019-06-27T13:40:18+02:00 Repair info: Using market to update existing apps
2019-06-27T13:40:18+02:00 Repair info: Attempting to update the following existing compatible apps from market:
2019-06-27T13:40:18+02:00 Repair info: Fetching app from market: comments
2019-06-27T13:40:18+02:00 Repair warning: No marketplace connection: cURL error 35: Encountered end of file
2019-06-27T13:40:18+02:00 Updating database schema
2019-06-27T13:46:35+02:00 Updated database
2019-06-27T13:46:35+02:00 Updating …
2019-06-27T13:46:37+02:00 Updated to 0.3.1
2019-06-27T13:46:37+02:00 Updating <files_pdfviewer> …
2019-06-27T13:46:37+02:00 Updated <files_pdfviewer> to 0.11.0
2019-06-27T13:46:37+02:00 Updating <files_texteditor> …
2019-06-27T13:46:38+02:00 Updated <files_texteditor> to 2.3.0
2019-06-27T13:46:38+02:00 Updating …
2019-06-27T13:46:38+02:00 Updated to 16.1.1
2019-06-27T13:46:38+02:00 Updating <user_ldap> …
30 mtime=1544176600.728639215
29 atime=1544176601.10063922
30 ctime=1544176600.728639215
2019-06-27T13:46:41+02:00 Updated <user_ldap> to 0.13.0
2019-06-27T13:46:42+02:00 Updating …
2019-06-27T13:46:55+02:00 Repair step: Remove invalid calendar and addressbook shares
2019-06-27T13:46:55+02:00 Updated to 0.4.0
2019-06-27T13:46:55+02:00 Updating <files_external> …
2019-06-27T13:47:00+02:00 Updated <files_external> to 0.7.1
2019-06-27T13:47:00+02:00 Updating <files_sharing> …
2019-06-27T13:47:05+02:00 Updated <files_sharing> to 0.11.0
2019-06-27T13:47:05+02:00 Updating <files_trashbin> …
2019-06-27T13:47:14+02:00 Updated <files_trashbin> to 0.9.1
2019-06-27T13:47:14+02:00 Updating …
2019-06-27T13:47:17+02:00 Updated to 0.3.5
2019-06-27T13:47:17+02:00 Repair step: Repair mime types
2019-06-27T13:47:17+02:00 Repair step: Detect file cache entries with path that does not match parent-child relationships
2019-06-27T13:47:18+02:00 Repair warning: The file cache contains entries with invalid path values for the following storage numeric ids: 134 136
2019-06-27T13:47:18+02:00 Repair warning: Please run occ files:scan --all --repair to repairall affected storages or run `occ files:scan userid --repair for each user with affected storages
2019-06-27T13:47:19+02:00 Repair step: Generate ETags for file where no ETag is present.
2019-06-27T13:47:19+02:00 Repair info: ETags have been fixed for 0 files/folders.
2019-06-27T13:47:19+02:00 Repair step: Clean tags and favorites
2019-06-27T13:47:20+02:00 Repair info: 4 tags of deleted users have been removed.
2019-06-27T13:47:20+02:00 Repair info: 0 tags for delete files have been removed.
2019-06-27T13:47:20+02:00 Repair info: 6 tag entries for deleted tags have been removed.
2019-06-27T13:47:20+02:00 Repair info: 0 tags with no entries have been removed.
2019-06-27T13:47:20+02:00 Repair step: Drop old database tables
2019-06-27T13:47:20+02:00 Drop old database tables
2019-06-27T13:47:20+02:00
2019-06-27T13:47:20+02:00 Done
28/28 [============================] 100%2019-06-27T13:47:20+02:00
2019-06-27T13:47:20+02:00 Repair step: Drop old background jobs
2019-06-27T13:47:20+02:00 Repair step: Remove getetag entries in properties table
2019-06-27T13:47:20+02:00 Repair info: Removed 0 unneeded “{DAV:}getetag” entries from properties table.
2019-06-27T13:47:20+02:00 Repair step: Repair outdated OCS IDs
2019-06-27T13:47:20+02:00 Repair step: Repair invalid shares
2019-06-27T13:47:20+02:00 Repair step: Remove old share propagation app entries
2019-06-27T13:47:20+02:00 Repair step: Move user avatars outside the homes to the new location
2019-06-27T13:47:20+02:00 Move user avatars outside the homes to the new location
2019-06-27T13:47:21+02:00 Done
1/1 [============================] 100%2019-06-27T13:47:21+02:00
2019-06-27T13:47:21+02:00 Repair step: Remove shares of a users root folder
2019-06-27T13:47:21+02:00 Repair step: Repair unmerged shares
2019-06-27T13:47:21+02:00 Repair step: Disable extra themes
2019-06-27T13:47:21+02:00 Repair step: Repair sub shares
2019-06-27T13:47:21+02:00 Starting code integrity check…
2019-06-27T13:47:49+02:00 Finished code integrity check
2019-06-27T13:47:49+02:00 Update successful
2019-06-27T13:47:49+02:00 Maintenance mode is kept active
2019-06-27T13:47:49+02:00 Reset log level

After upgrade there are integrity check warning for external modules downloaded from the marketplace

And this are the last entries in the log:

{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:0,“time”:“2019-06-27T13:47:17+02:00”,“remoteAddr”:"",“user”:"–",“app”:“core”,“method”:"–",“url”:"–",“message”:“Migrations: completed 20180604132522 from app notifications”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"–",“url”:"–",“message”:“str_repeat(): Second argument has to be greater than or equal to 0 at /var/www/html/owncloud/lib/composer/symfony/console/Helper/ProgressBar.php#512”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:0,“time”:“2019-06-27T13:47:20+02:00”,“remoteAddr”:"",“user”:"–",“app”:“user_ldap”,“method”:"–",“url”:"–",“message”:“No DN found for on 192.168.3.45”}
{“reqId”:“uzLiNCim2pGh0dSVCh7y”,“level”:3,“time”:“2019-06-27T13:47:21+02:00”,“remoteAddr”:"",“user”:"–",“app”:“OC\Files\Filesystem”,“method”:"–",“url”:"–",“message”:“Backends provided no user object for JJALONSO”}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:52+02:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/JJALONSO for user: JJALONSO which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:52+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/FGGonzalez for user: FGGonzalez which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:53+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/JMoldes for user: JMoldes which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:53+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/RDiez for user: RDiez which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:53+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/Adominguez for user: Adominguez which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:54+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/aulibarri for user: aulibarri which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:54+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/aplaza for user: aplaza which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:54+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/SULIBARRI for user: SULIBARRI which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:55+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/jtejerina for user: jtejerina which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:55+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/Asogo for user: Asogo which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:55+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/ADURAN for user: ADURAN which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:56+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/maggarcia for user: maggarcia which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:56+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/usuarioprueba for user: usuarioprueba which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:56+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/mjmartin for user: mjmartin which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:56+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/almartin for user: almartin which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:57+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:“User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/LGRAMO for user: LGRAMO which differs from existing value: “}
{“reqId”:“UJfJEiWtHAf0W4ZgGm8D”,“level”:3,“time”:“2019-06-27T13:48:57+02:00”,“remoteAddr”:””,“user”:"–",“app”:“no app in context”,“method”:"–",“url”:"–",“message”:"User backend OCA\User_LDAP\User_Proxy is returning home: /app1/data/owncloud/merche.garcia for user: merche.garcia which differs from existing value: "}

2019-06-27T13:47:18+02:00 Repair warning: The file cache contains entries with invalid path values for the following storage numeric ids: 134 136
2019-06-27T13:47:18+02:00 Repair warning: Please run occ files:scan --all --repair to repairall affected storages or run `occ files:scan userid --repair for each user with affected storages

That’s something to investigate. In addition, check if the lost shares are from those 2 storages.

No, they are not related to lost shares…

Could you check the entries of the oc_storages table related to those 2 mount points? I guess they’re duplicated, but not sure how.

Hi jvillafanez,
these storage IDs are related to a user that does not exist in Active Directory because was deleted 2 months ago.
imagen

If you have backups and can rollback to a previous version, you might want to try to remove the duplicated entries of the oc_external_mounts table. Note that this might break ownCloud, so if you can’t revert the situation just don’t do it.

I suspect the problem is that these new mounts are on top of the old ones, being the old ones the ones that have the shares.

Hi, many thanks for your interest!
No problem with rollback, I am testing the upgrade in a TEST environment, with snapshot so I can go backwards whenever I want.
I tried remove duplicated entries in external storage:
delete from owncloud.oc_external_mounts where mount_id=‘9’;
delete from owncloud.oc_external_mounts where mount_id=‘8’;
delete from owncloud.oc_external_applicable where applicable_id=‘16’;
delete from owncloud.oc_external_applicable where applicable_id=‘15’;
commit;
Here you have a screeenshot of table oc_external_applicable that, as you can see, It has two rows different, and I have deleted these rows also…

sudo -u apache php occ maintenance:singleuser --on
sudo -u apache php occ files:scan --all –repair

no luck…