-
Notifications
You must be signed in to change notification settings - Fork 58
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
nextcloud.occ social:reset produces error #1129
Comments
Same exception here |
I can reproduce this as well. |
Same error. |
I added this two tables manually Then i was asked about my base-url. But then i got another error... Do you confirm this operation? (y/N) y flushing data... done Now is a good time to change the base address of your cloud: (http://nextcloud.example.com) |
I managed to get around this bug by creating manually the two missing tables: |
same here with nextcloud 20 and postgres |
+1 same here can reproduce, nextcloud 20 & mariadb |
I checked code in lib/Db/CoreRequestBuilder.php and it does not verify whether the tables actually have been created before emptying them. Suggesting to enclose it in function emptyAll() like in the other uninstallSocialTables() method.
|
I see the same behavior here. Is there a fix or workaround for this in the meantime? |
@sledz workaround has been documented above and works around successfully. same for the fix it has been suggested but afaik not yet implemented / submitted as a pull request. Shame on me, I do not know how to handle that yet on my command line git. |
@stefan123t I am unsure exactly what the "documented workaround" is supposed to be? |
Both @xundeenergie and @ozls did create the two missing tables in order to call occ social:reset The proposed fix should verify and delete only existing tables. Hence if they are missing, they need not be deleted or purged from the Database repository whatever the DB backend is (MariaDB, MySQL, PostGreSQL, you name it). Kind regards, |
I have submitted the above PR #1330 to fix the issue at hand, i.e. trying to empty tables which do not exist. |
@stefan123t I tried to apply your patch stefan123t@17666a5 manually. But after that the assertion only changed to:
So this does not really seems to be the solution. 🤔 |
fix #1129 empty only existing tables in emptyAll()
Describe the bug
When running nextcloud.occ social:reset the result is the following error.
An exception occurred while executing 'DELETE FROM
oc_social_3_client_auth
':SQLSTATE[42S02]: Base table or view not found: 1146 Table 'nextcloud.oc_social_3_client_auth' doesn't exist
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should reset/remove the social tables from the database.
Server details
**Social app version:** 0.4.1Operating system:
Ubuntu Server 20.04.1
Nextcloud version: (see Nextcloud admin page)
Snap 20.01
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: