External storage $user in path not working after upgrade 12 -> 15

Nextcloud version (15.0.2):
Operating system and version (Ubuntu 16.xx):

$user not working in external storage after upgrading from 12 to 15

test with the real username instead of $user are working.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"yrBqYSSemkdclJtYzc83","level":4,"time":"2019-01-25T10:00:09+01:00","remoteAddr":"10.10.0.124","user":"72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB","app":"webdav","method":"PROPFIND","url":"/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Storage is temporarily not available","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":967,"function":"getNodeForPath","class":"OCA\\DAV\\Connector\\Sabre\\ObjectTree","type":"->","args":["Benutzerverzeichnis Mobile Daten"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["Benutzerverzeichnis Mobile Daten",["{DAV:}creationdate","{DAV:}getetag","{DAV:}displayname","{http://owncloud.org/ns}permissions","{DAV:}getlastmodified","{DAV:}getcontenttype","{http://nextcloud.org/ns}has-preview","{http://owncloud.org/ns}id","{http://owncloud.org/ns}size","{DAV:}getcontentlength","{http://owncloud.org/ns}favorite","{DAV:}resourcetype"],0]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":355,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":163,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/ObjectTree.php","Line":162,"Previous":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"Storage with mount id 4 is not available","Code":1,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":527,"function":"getAvailability","class":"OC\\Files\\Storage\\FailedStorage","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":527,"function":"getAvailability","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":67,"function":"getAvailability","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":78,"function":"isAvailable","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":396,"function":"checkAvailability","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":379,"function":"hasUpdated","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":["",null]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":379,"function":"hasUpdated","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["",null]},{"file":"/var/www/nextcloud/lib/private/Files/Cache/Watcher.php","line":126,"function":"hasUpdated","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["",null]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1326,"function":"needsUpdate","class":"OC\\Files\\Cache\\Watcher","type":"->","args":["",{"__class__":"OC\\Files\\Cache\\CacheEntry"}]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1368,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->","args":[{"mountPoint":"/72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB/files/Benutzerverzeichnis Mobile Daten/","cache":null,"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":null,"updater":null,"__class__":"OCA\\FilesAccessControl\\StorageWrapper"},"","Benutzerverzeichnis Mobile Daten"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/ObjectTree.php","line":156,"function":"getFileInfo","class":"OC\\Files\\View","type":"->","args":["/72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB/files/Benutzerverzeichnis Mobile Daten"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":967,"function":"getNodeForPath","class":"OCA\\DAV\\Connector\\Sabre\\ObjectTree","type":"->","args":["Benutzerverzeichnis Mobile Daten"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["Benutzerverzeichnis Mobile Daten",["{DAV:}creationdate","{DAV:}getetag","{DAV:}displayname","{http://owncloud.org/ns}permissions","{DAV:}getlastmodified","{DAV:}getcontenttype","{http://nextcloud.org/ns}has-preview","{http://owncloud.org/ns}id","{http://owncloud.org/ns}size","{DAV:}getcontentlength","{http://owncloud.org/ns}favorite","{DAV:}resourcetype"],0]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":355,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":163,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Storage/FailedStorage.php","Line":209,"Hint":"Storage is temporarily not available","Previous":{"Exception":"OCP\\Files\\StorageNotAvailableException","Message":"Storage with mount id 4 is not available","Code":1,"Trace":[{"function":"OCA\\Files_External\\Config\\{closure}","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":157,"function":"array_map","args":[{"__class__":"Closure"},{"3":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"},"4":"*** sensitive parameter replaced ***","5":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"},"6":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"},"7":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"},"8":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"},"9":{"__class__":"OCA\\Files_External\\Lib\\Storage\\SMB"}},{"3":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"4":"*** sensitive parameter replaced ***","5":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"6":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"7":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"8":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"9":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"}}]},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":103,"function":"getMountsForUser","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Storage\\StorageFactory"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":447,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Mount\\Manager"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":376,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::","args":["72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB"]},{"file":"/var/www/nextcloud/lib/private/legacy/util.php","line":307,"function":"init","class":"OC\\Files\\Filesystem","type":"::","args":["72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB","/72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB/files"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php","line":124,"function":"setupFS","class":"OC_Util","type":"::","args":["72D94F32-2B9E-4CA0-B3B3-47A5E72CF2DB"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php","line":105,"function":"validateUserPass","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php","line":253,"function":"check","class":"Sabre\\DAV\\Auth\\Backend\\AbstractBasic","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php","line":155,"function":"auth","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":201,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\Auth","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":150,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"autoRequireLogin":true,"__class__":"Sabre\\DAV\\Auth\\Plugin"},"beforeMethod"],[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":466,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMethod",[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://cloud.schaub.eu/remote.php/webdav/Benutzerverzeichnis%20Mobile%20Daten/","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":80,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":163,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","Line":149,"Hint":"Storage is temporarily not available"}},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.4.2","version":"15.0.2.0","id":"5c4ad01a3d665"}

Did you upgrade through all versions and did it work in the version in between? Check out the occ commands regarding the database, and check your installation. Perhaps not all tables are up to date.

Hello,

the Installation is a fresh installed VM Image Version 15.0.0 and is upgraded to 15.0.2 via webupgrade.

i’ve used the “officel” https://www.hanssonit.se Image.

V 15.0.0 dosen’t work too. So it not an inplace upgrade, i’ve installed configured it parallely.

how do i check my Installation ? All external Storage links works (fixed path), only the $user path doesn’t.

THX

Christian

I am facing the same issue, did u managed to solve it??