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

[Bug]: Repair warning: Failed to delete folder: 'nextcloud.oc_photos_albums' doesn't exist on Upgrade #1448

Closed
7 of 9 tasks
Tracked by #1280
AndyXheli opened this issue Nov 3, 2022 · 8 comments
Closed
7 of 9 tasks
Tracked by #1280
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@AndyXheli
Copy link

AndyXheli commented Nov 3, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Upggraded from NC 24.0.7 to NC 25.0.1

Steps to reproduce

Upggraded from NC 24.0.7 to NC 25.0.1

Expected behavior

Should not see this error\warning ?

Installation method

Community Manual installation with Archive

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

N/A

Nextcloud Signing status

No response

Nextcloud Logs

{"reqId":"JMMzCVhyvgd7i9pGc3ki","level":3,"time":"2022-11-03T09:05:13-05:00","remoteAddr":"6.8.6.4","user":"--","app":"no app in context","method":"GET","url":"/core/ajax/update.php?requesttoken=B43dbap5gNIIR%2BeODhAu9YSP3MSGNP%2FHwqIvgYqJP9I%3D%3AUvypD50BxupPEq6hWXgdu%2FD5lYLqbYb0ifd2wOzkebQ%3D","message":"Table \"oc_photos_collaborators\" has no primary key and therefor will not behave sane in clustered setups. This will throw an exception and not be installable in a future version of Nextcloud.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"24.0.7.1","data":[],"id":"6363cc2b0d246"}
{"reqId":"JMMzCVhyvgd7i9pGc3ki","level":2,"time":"2022-11-03T09:05:12-05:00","remoteAddr":"6.8.6.4","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=B43dbap5gNIIR%2BeODhAu9YSP3MSGNP%2FHwqIvgYqJP9I%3D%3AUvypD50BxupPEq6hWXgdu%2FD5lYLqbYb0ifd2wOzkebQ%3D","message":"OC\\Repair\\Events\\RepairWarningEvent: Repair warning: Failed to delete folder: \"images\", error: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_photos_albums' doesn't exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"24.0.7.1","data":{"app":"updater"},"id":"6363cc2b0d36e"}
{"reqId":"JMMzCVhyvgd7i9pGc3ki","level":2,"time":"2022-11-03T09:05:12-05:00","remoteAddr":"6.8.6.4","user":"--","app":"updater","method":"GET","url":"/core/ajax/update.php?requesttoken=B43dbap5gNIIR%2BeODhAu9YSP3MSGNP%2FHwqIvgYqJP9I%3D%3AUvypD50BxupPEq6hWXgdu%2FD5lYLqbYb0ifd2wOzkebQ%3D","message":"OC\\Repair\\Events\\RepairWarningEvent: Repair warning: Failed to delete folder: \"12\", error: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_photos_albums' doesn't exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36","version":"24.0.7.1","data":{"app":"updater"},"id":"6363cc2b0d38f"}

Additional info

Might have something to do with this nextcloud/server#34620

Repair step: Initialize migration of background images from dashboard to theming app

Repair step: Cleanup old theming cache

Repair warning: Failed to delete folder: "12", error: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_photos_albums' doesn't exist

[1 / 2]: Cleanup old theming cache

Repair warning: Failed to delete folder: "images", error: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_photos_albums' doesn't exist

[2 / 2]: Cleanup old theming cache

[2 / 2]: Cleanup old theming cache

@AndyXheli AndyXheli added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Nov 3, 2022
@AndyXheli AndyXheli changed the title [Bug]: Repair warning: Failed to delete folder: 'nextcloud.oc_photos_albums' doesn't exist [Bug]: Repair warning: Failed to delete folder: 'nextcloud.oc_photos_albums' doesn't exist on Upgrade Nov 3, 2022
@szaimen szaimen transferred this issue from nextcloud/server Nov 3, 2022
@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2022

This is probably caused by https://github.com/nextcloud/server/pull/34620/files but I fail to understand why it does that. Cc @artonge @Pytal on this

@szaimen
Copy link
Contributor

szaimen commented Nov 15, 2022

@AndyXheli @mnalis was this the webupdater oder cli updater?

@AndyXheli
Copy link
Author

Hi @szaimen web updater for me

@mnalis
Copy link

mnalis commented Nov 16, 2022

also web updater for me @szaimen

@lookup82
Copy link

@AndyXheli @mnalis was this the webupdater oder cli updater?

cli updater for me

@Pytal
Copy link
Member

Pytal commented Nov 17, 2022

The repair step nextcloud/server#34620 in server only touches the filesystem not the database so this seems related to the oc_photos_albums table added to the photos app in 10f44aa#diff-6586891eb9b8c0148352d6d67d8b0ddb9a143a05200e47a61e2a3d75ad3593e4

@icewind1991 and @artonge may know more?

@mreho
Copy link

mreho commented Nov 18, 2022

Hi,

I used the CLI updater, same warning.

Repair warning: Failed to delete folder: "21", error: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_photos_albums' doesn't exist

@szaimen
Copy link
Contributor

szaimen commented Nov 24, 2022

Please try again with 25.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants