hevelius / files_external_onedrive

:mega: :floppy_disk: External storage support for Microsoft OneDrive
GNU General Public License v2.0
72 stars 22 forks source link

Exception on 23.0.0: "Class \"OC\\Files\\Storage\\Flysystem\" not found" #66

Open ericmaster opened 2 years ago

ericmaster commented 2 years ago

Getting an exception when installing this app on nc 23.0.0 Here the full output:

{"reqId":"bw1T0w5rucNYyNd04RBW","level":3,"time":"2021-12-07T20:47:17+00:00","remoteAddr":"192.168.1.24","user":"ericmaster","app":"index","method":"GET","url":"/apps/theming/image/logo?useSvg=1&v=8","message":"Class \"OC\\Files\\Storage\\Flysystem\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.43","version":"23.0.0.10","exception":{"Exception":"Error","Message":"Class \"OC\\Files\\Storage\\Flysystem\" not found","Code":0,"Trace":[{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":571,"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":428,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/files_external_onedrive/lib//Storage/CacheableFlysystemAdapter.php"]},{"file":"/var/www/html/custom_apps/files_external_onedrive/lib/Storage/OneDrive.php","line":30,"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Files_external_onedrive\\Storage\\CacheableFlysystemAdapter"]},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":571,"args":["/var/www/html/custom_apps/files_external_onedrive/lib/Storage/OneDrive.php"],"function":"include"},{"file":"/var/www/html/lib/composer/composer/ClassLoader.php","line":428,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/custom_apps/files_external_onedrive/lib//Storage/OneDrive.php"]},{"file":"/var/www/html/apps/files_external/lib/Config/ConfigAdapter.php","line":106,"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Files_external_onedrive\\Storage\\OneDrive"]},{"file":"/var/www/html/apps/files_external/lib/Config/ConfigAdapter.php","line":133,"function":"constructStorage","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameter replaced ***"]},{"function":"OCA\\Files_External\\Config\\{closure}","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/apps/files_external/lib/Config/ConfigAdapter.php","line":130,"function":"array_map","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***",{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"And 7 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/Files/Config/MountProviderCollection.php","line":108,"function":"getMountsForUser","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Storage\\StorageFactory"}]},{"file":"/var/www/html/lib/private/Files/Filesystem.php","line":429,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Mount\\Manager"}]},{"file":"/var/www/html/lib/private/Files/Filesystem.php","line":354,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::","args":["ericmaster"]},{"file":"/var/www/html/lib/private/legacy/OC_Util.php","line":326,"function":"init","class":"OC\\Files\\Filesystem","type":"::","args":["ericmaster","/ericmaster/files"]},{"file":"/var/www/html/lib/private/Files/Mount/Manager.php","line":91,"function":"setupFS","class":"OC_Util","type":"::","args":[]},{"file":"/var/www/html/lib/private/Files/View.php","line":1385,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->","args":["/appdata_ocfud6sheouy/css/icons"]},{"file":"/var/www/html/lib/private/Files/Node/Root.php","line":200,"function":"getFileInfo","class":"OC\\Files\\View","type":"->","args":["/appdata_ocfud6sheouy/css/icons"]},{"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["/appdata_ocfud6sheouy/css/icons"]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":65,"function":"call_user_func_array","args":[[{"__class__":"OC\\Files\\Node\\Root"},"get"],["appdata_ocfud6sheouy/css/icons"]]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":142,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["get",["appdata_ocfud6sheouy/css/icons"]]},{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":141,"function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["appdata_ocfud6sheouy/css/icons"]},{"file":"/var/www/html/lib/private/Template/IconsCacher.php","line":87,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->","args":["icons"]},{"function":"__construct","class":"OC\\Template\\IconsCacher","type":"->","args":[{"__class__":"OC\\Log"},{"__class__":"OC\\Files\\AppData\\Factory"},{"__class__":"OC\\URLGenerator","userSession":{"__class__":"OC\\User\\Session"}},{"__class__":"OC\\AppFramework\\Utility\\TimeFactory"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"newInstanceArgs","class":"ReflectionClass","type":"->","args":[[{"__class__":"OC\\Log"},{"__class__":"OC\\Files\\AppData\\Factory"},{"__class__":"OC\\URLGenerator","userSession":{"__class__":"OC\\User\\Session"}},{"__class__":"OC\\AppFramework\\Utility\\TimeFactory"}]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OC\\Template\\IconsCacher"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\IconsCacher"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\IconsCacher",true]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Template\\IconsCacher",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"__class__":"ReflectionParameter","name":"logger"},{"__class__":"ReflectionParameter","name":"appDataFactory"},{"__class__":"ReflectionParameter","name":"urlGenerator"},{"__class__":"ReflectionParameter","name":"config"},{"__class__":"ReflectionParameter","name":"defaults"},"And 5 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OC\\Template\\SCSSCacher"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\SCSSCacher"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Template\\SCSSCacher",true]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":438,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Template\\SCSSCacher",true]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OC\\Template\\SCSSCacher",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map","args":[{"__class__":"Closure"},[{"__class__":"ReflectionParameter","name":"appName"},{"__class__":"ReflectionParameter","name":"request"},{"__class__":"ReflectionParameter","name":"config"},{"__class__":"ReflectionParameter","name":"themingDefaults"},{"__class__":"ReflectionParameter","name":"l"},"And 6 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"__class__":"ReflectionClass","name":"OCA\\Theming\\Controller\\ThemingController"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Theming\\Controller\\ThemingController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":463,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Theming\\Controller\\ThemingController"]},{"file":"/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":435,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Theming\\Controller\\ThemingController"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":144,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Theming\\Controller\\ThemingController"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Theming\\Controller\\ThemingController","getImage",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"key":"logo","_route":"theming.Theming.getImage"}]},{"file":"/var/www/html/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/theming/image/logo"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/custom_apps/files_external_onedrive/lib/Storage/CacheableFlysystemAdapter.php","Line":37,"CustomMessage":"--"}}
a17t commented 2 years ago

And thats the reason for the error: https://github.com/nextcloud/server/pull/27923

I just readded the class and at least something seems to work, my onedrive is quite huge so its still scanning...

jqiuyin commented 2 years ago

I have the same problem. Is there any progress on this issue?