-
-
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
Upgrade from 14 to 15.0.0 failed with activated user_external #12506
Comments
I had the same problem. The launch again the upgrade : All went fine. |
I just faced the same problem as I wanted to upgrade the instance I manage for my graduation project for our school to v15. (I rely on user_external for authenticating the students and teachers)
to
```{"reqId":"LUEYVW6aSphcoXCEdYBO","level":3,"time":"2018-12-14T16:51:59+01:00","remoteAddr":"213.188.241.79","user":"--","app":"index","method":"GET","url":"\/index.php\/204","message":{"Exception":"OCP\\AutoloadNotAllowedException","Message":"Autoload path not allowed: \/var\/www\/html\/nextcloud\/apps\/user_external\/lib\/webdavauth.php","Code":0,"Trace":[{"file":"\/var\/www\/html\/nextcloud\/lib\/autoloader.php","line":162,"function":"isValidPath","class":"OC\\Autoloader","type":"->","args":["\/var\/www\/html\/nextcloud\/apps\/user_external\/lib\/webdavauth.php"]},{"function":"load","class":"OC\\Autoloader","type":"->","args":["OCA\\User_External\\WebDAVAuth"]},{"function":"spl_autoload_call","args":["OCA\\User_External\\WebDAVAuth"]},{"file":"\/var\/www\/html\/nextcloud\/lib\/private\/legacy\/user.php","line":138,"function":"class_exists","args":["\\OCA\\User_External\\WebDAVAuth"]},{"file":"\/var\/www\/html\/nextcloud\/lib\/base.php","line":721,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/var\/www\/html\/nextcloud\/lib\/base.php","line":1068,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/www\/html\/nextcloud\/index.php","line":40,"args":["\/var\/www\/html\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/www\/html\/nextcloud\/lib\/autoloader.php","Line":137,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Android) ownCloud-android\/3.3.2","version":"15.0.0.10"}```
I now don't really know what I should do, because any Why do we ship user_external but no updated version for 15? |
I finally made it working again! 😄 Also there is an open PR for this in nextcloud/apps#69. |
Hi, how can I fix the problem without ssh access? |
@silas229: If you have database access, you can deactivate the app there. After that you will be able to continue with the upgrade to NC 15. [edit: had to escape ` to show up in markdown here correctly] |
@cetcondor @silas229 do not change the database
|
@skjnldsv: For OCC command, you need SSH access. Silas asked what if he had no SSH access. Database is somewhat the last resort, isn't it? |
Thanks that worked for me too. Scary how often NextCloud seems to upgrade issues were other services. |
Hi there,
I am getting the following errors after updating from 14.x to 15 Beta 1/2 on Ubuntu 17.04
The updater said all apps are compatible. After the Upgrade and continuing to the web updater I got the error that an app has not a valid version.
Goint to the console resulted in:
$ sudo -u www-data php occ upgrade
Nextcloud 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
Set log level to debug
Updating database schema
Updated database
UnexpectedValueException: The files of the app "user_external" were not correctly replaced before running the update
Update failed
Maintenance mode is kept active
Reset log level
$ sudo -u www-data php occ maintenance:repair
Nextcloud 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
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\FixBirthdayCalendarComponent' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\CalDAVRemoveEmptyValue' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\BuildCalendarSearchIndex' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\RefreshWebcalJobRegistrar' is unknown
Failed to load repair step for files_sharing: Repair step 'OCA\Files_Sharing\Migration\OwncloudGuestShareType' is unknown
Failed to load repair step for files_sharing: Repair step 'OCA\Files_Sharing\Migration\SetPasswordColumn' is unknown
Failed to load repair step for oauth2: Repair step 'OCA\OAuth2\Migration\SetTokenExpiration' is unknown
Failed to load repair step for twofactor_backupcodes: Repair step 'OCA\TwoFactorBackupCodes\Migration\CheckBackupCodes' is unknown
In AbstractPostgreSQLDriver.php line 73:
An exception occurred while executing 'SELECT "id", "carddata" FROM "oc_cards" WHERE "uid" IS NU
LL LIMIT 1000':
SQLSTATE[42703]: Undefined column: 7 ERROR: column "uid" does not exist
LINE 1: SELECT "id", "carddata" FROM "oc_cards" WHERE "uid" IS NULL ...
^
In PDOConnection.php line 106:
SQLSTATE[42703]: Undefined column: 7 ERROR: column "uid" does not exist
LINE 1: SELECT "id", "carddata" FROM "oc_cards" WHERE "uid" IS NULL ...
^
In PDOConnection.php line 104:
SQLSTATE[42703]: Undefined column: 7 ERROR: column "uid" does not exist
LINE 1: SELECT "id", "carddata" FROM "oc_cards" WHERE "uid" IS NULL ...
^
maintenance:repair [--include-expensive]
The text was updated successfully, but these errors were encountered: