-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[18.0.0 Beta1] [Update] InvalidFieldNameException in oc_flow_operations during update/repair #18327
Comments
I am experiencing exactly the same error. My logging gets polluted of this message |
Same for me right now, just tried to update to 18.0.1 and that is the result. My template around that lines is looking like this:
|
What I've tried so far: login on the server and run "php occ upgrade"
Things are looking good so far. Following the list of my applications.
|
After upgrading from Nextcloud 17 to Nextcloud 18.0.1, occ upgrade errored out:
Indeed, there was no column entity in flow_operations after the upgrade, so I created it on my own and now it looks like its working fine. |
@stevleibelt I tried the same and unfortunately I wasn't able to reproduce your success. Did you try anything else in your attempt to fix this?
Edit: I realized my problem. I forgot to select the |
@acsfer I had a very similar other issue, related to a different database table: #18325 |
I confirm the following helped:
I encountered the problem on Nextcloud 18.0.4. |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Hold on bot |
This ticket has a "needs info" label. It doesn't need any more info, there's even a fix in the thread. What if really needs is a dev to look at it, triage it and hopefully make a permanent fix. |
Probably it has been fixed with NC19, at least I didn't recognised this error(s) anymore during NC19 beta updates. I'll have a closer look when updating to the hopefully soon offered final release. |
This can't be ignored in v18 because it's required in the upgrade path from owncloud. |
Earlier or later there will be a new upgrade path, and note that at least in my case it was really only the error messages during the update process while I didn't face any actual issues nor did the error occur at any time afterwards. So the motivation to move development time away from important topics to this is reasonably not very high 😉. And if it's resolved with NC19, the fix has probably been backported to |
I did. #18327 (comment) |
That would be nice! But today there's none, and one has to go through multiple versions of NC, many having different issues. (e.g. no support for PHP 7!). |
The error does not show up anymore during update to NC19 here, @Nowaker probably you can verify? |
@MichaIng This was during an update from NC17 to NC18. DB in v17, code in v18.
I'd love to but after applying the SQL fix, I successfully upgraded and there's no way to re-verify any more. :-) |
Okay, I faced the error as well when upgrading from one NC18 patch version to the next, however it did never break the update or anything else anyway. So I mark this issue as closed. The title should allow anyone to find the issue easily, when still facing this. |
On Mon Jul 27 2020 I tried to update my nextcloud from 17.0.8 to 18 and I run into this issue. Showstopper for me, I used my backup to get 17.0.8 back. So I'm still able to reproduce this error anytime. I have barely any files in my nextcloud instance (less than 100) and I'm using only contacts, calendar and news app so I still have 'dbtype' => 'sqlite3'. Doesn't matter if I use the web based upgrade or console commands. |
What exactly happens when you run the update via web-based updater? Since in my cases it went through without any issues, I only see those log entries afterwards.
Not sure where the database file is stored exactly 😉. |
Thank you very much for the fast reply, will try again with the web based updater: 2020.07.27-Mon-16.09.13 A new version is available: Nextcloud 18.0.7 Update channel: Stable after a short time I get the message: Go back to your Nextcloud instance to finish the update_ 2020.07.27-Mon-16.13.42 Preparing update Set log level to debug Turned on maintenance mode Repair step: Repair MySQL collation Repair info: Not a mysql database -> nothing to do Repair step: Repair SQLite autoincrement_ this is where my machine is busy doing nothing visible for a very long time _Repair step: Repair SQLite autoincrement Repair step: Copy data from accounts table when migrating from ownCloud Repair step: Drop account terms table when migrating from ownCloud Updating database schema Updated database Repair step: Migrate old user config [1 / 0]: Migrate old user config [2 / 0]: Migrate old user config [2 / 2]: Migrate old user config Updated "accessibility" to 1.4.0 Updated "federatedfilesharing" to 1.8.0 Updated "files_pdfviewer" to 1.7.0 Updated "files_rightclick" to 0.15.2 Updated "files_videoplayer" to 1.7.0 Updated "logreader" to 2.3.0 Updated "password_policy" to 1.8.0 Updated "privacy" to 1.2.0 Updated "provisioning_api" to 1.8.0 Updated "recommendations" to 0.6.0 Updated "serverinfo" to 1.8.0 Repair step: Switches from default updater server to the customer one if a valid subscription is available Repair info: Repair step already executed Updated "support" to 1.1.1 Updated "survey_client" to 1.6.0 Updated "text" to 2.0.0 Repair step: Add background job to check for backup codes Updated "twofactor_backupcodes" to 1.7.0 Updated "updatenotification" to 1.8.0 Updated "federation" to 1.8.0 Updated "lookup_server_connector" to 1.6.0 Repair step: Update OAuth token expiration times Updated "oauth2" to 1.6.0 Updated "files" to 1.13.1 Updated "activity" to 2.11.0 Updated "cloud_federation_api" to 1.1.0 Repair step: Fix component of birthday calendars Repair info: 2 birthday calendars updated. Repair step: Regenerating birthday calendars to use new icons and fix old birthday events without year Repair info: Repair step already executed Repair step: Fix broken values of calendar objects [0 / 0]: Fix broken values of calendar objects Repair step: Registering building of calendar search index as background job Repair info: Repair step already executed Repair step: Registering background jobs to update cache for webcal calendars Repair info: Added 0 background jobs to update webcal calendars Repair step: Registering building of calendar reminder index as background job Repair info: Repair step already executed Repair step: Clean up orphan event and contact data Repair info: 0 events without a calendar have been cleaned up Repair info: 0 properties without an events have been cleaned up Repair info: 0 changes without a calendar have been cleaned up Repair info: 0 cached events without a calendar subscription have been cleaned up Repair info: 0 changes without a calendar subscription have been cleaned up Repair info: 0 contacts without an addressbook have been cleaned up Repair info: 0 properties without a contact have been cleaned up Repair info: 0 changes without an addressbook have been cleaned up Repair step: Remove activity entries of private events Repair info: Removed 0 activity entries Updated "dav" to 1.14.0 Repair step: Fix the share type of guest shares when migrating from ownCloud Repair step: Copy the share password into the dedicated column Repair step: Set existing shares as accepted Updated "files_sharing" to 1.10.1 Updated "files_trashbin" to 1.8.0 Updated "files_versions" to 1.11.0 Updated "sharebymail" to 1.8.0 Repair step: Populating added database structures for workflows Doctrine\DBAL\Exception\DriverException: An exception occurred while executing 'UPDATE "oc_flow_operations" SET "entity" = ? WHERE "entity" = ''' with params ["OCA\WorkflowEngine\Entity\File"]: SQLSTATE[HY000]: General error: 1 no such column: entity_ The update was unsuccessful. Please report this issue to the Nextcloud community. same error again, will use your advice in my next try
did use |
ups, changing "not null" to "null" wasn't a bright idea Doctrine\DBAL\DBALException: Unknown database type character varying requested, OC\DB\OCSqlitePlatform may not support it. Detailed logs Set log level to debug Turned on maintenance mode Repair step: Repair MySQL collation Repair info: Not a mysql database -> nothing to do Repair step: Repair SQLite autoincrement Doctrine\DBAL\DBALException: Unknown database type character varying requested, OC\DB\OCSqlitePlatform may not support it. The update was unsuccessful. Please report this issue to the Nextcloud community. |
Steps to reproduce
17.0.1.1
to18.0.0 Beta1
via web-based updaterExpected behaviour
Actual behaviour
PROPFIND
request, the other similar log entries show them for other calendars and contacts and there is as well:GET /nextcloud/
and
GET /nextcloud/index.php/core/js/oc.js?v=a5601bfb
But I cannot see further issues that seem to be related.
Server configuration
Operating system: Raspbian Bullseye
Web server: Apache/2.4.41
Database: MariaDB 10.3.20
PHP version: 7.3.12-1
Nextcloud version: 18.0.0 Beta1
Updated from an older Nextcloud/ownCloud or fresh install: 17.0.1.1
Where did you install Nextcloud from: download.nextcloud.com + web-based updater
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Opera developer 67.0.3523.0
Operating system: Windows 10 Pro N 1909 build 18363.476
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: