Unable to access Files
-
Neither any user (even Admin) was unable to access their Files via the WebInterface and no Files was showing up in the Dashboard. I'm speaking in past tense because I fixed it, so I just posting here in case someone else have the same situation.
the config
Nextcloud: Package v4.8.8-1 / App v20.0.8
- Nextcloud have is own dedicated drive + few external path, mainly from BackBlaze mounted in Nextcloud
the issue
- When you log in nextcloud web interface, every apps was working fine except File
This directory is unavailable, please check the logs or contact the administrator
What I tried
- Looking through the logs
- reboot the apps
- validate the space drive both / and /mnt/nextcloud
- validate the owner:group of /mnt/nextcloud/$users/files/
everything was/is fine
I even restore the apps under another name and the issue was still remaining.
so What did you do Doc ??
the solution
- I create a new user directly via nextcloud (not in cloudron) and login with it and everyone gain access to their file.
Mysterious, yes I would say.
does someones have an explanation and/or had the same behavior in the past?
-
@jodumont said in Unable to access Files:
This directory is unavailable, please check the logs or contact the administrator
This link has a few suggested solutions: https://help.nextcloud.com/t/users-cannot-acces-their-home-folder-after-upgrade-to-14-0-1-this-directory-is-unavailable-please-check-the-logs-or-contact-the-administrator/38200/3
Turn off File Sharing is one. Another is to run
occ files:scan -allin the Terminal But this is from 2018, and for version 14. I reckon it won't hurt to try some of the solutions there. -
@jodumont said in Unable to access Files:
This directory is unavailable, please check the logs or contact the administrator
This link has a few suggested solutions: https://help.nextcloud.com/t/users-cannot-acces-their-home-folder-after-upgrade-to-14-0-1-this-directory-is-unavailable-please-check-the-logs-or-contact-the-administrator/38200/3
Turn off File Sharing is one. Another is to run
occ files:scan -allin the Terminal But this is from 2018, and for version 14. I reckon it won't hurt to try some of the solutions there. -
There was a message to run the
ocscommand as the webserver userwww-data.Trying that in terminal as
rootgives:su www-data This account is currently not available.Yet all user files exist under that
www-datauser. -
@robi in Cloudron to rescan files, use the command mentioned at https://docs.cloudron.io/apps/nextcloud/#rescan-files
-
Just looking into @robi 's server now. First, I enabled debug in
/app/data/config/config.phpby settingdebugto true andloglevelto 0.I got this trace:
Request ID: PZfRfXQbPbQt3cjl91L8 Type: ScssPhp\ScssPhp\Exception\CompilerException Code: 0 Message: `../../../core/css/whatsnew.scss` file not found for @import: /app/data/apps/files/css/merged.scss on line 5, at column 1 Call Stack: #0 import /app/data/apps/files/css/merged.scss (unknown file) on line 1 File: /app/code/3rdparty/scssphp/scssphp/src/Compiler.php Line: 5602 #0 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(5377): ScssPhp\ScssPhp\Compiler->error() #1 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2475): ScssPhp\ScssPhp\Compiler->findImport() #2 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2688): ScssPhp\ScssPhp\Compiler->compileImport() #3 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2154): ScssPhp\ScssPhp\Compiler->compileChild() #4 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(5306): ScssPhp\ScssPhp\Compiler->compileChildrenNoReturn() #5 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2477): ScssPhp\ScssPhp\Compiler->importFile() #6 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2688): ScssPhp\ScssPhp\Compiler->compileImport() #7 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(2154): ScssPhp\ScssPhp\Compiler->compileChild() #8 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(570): ScssPhp\ScssPhp\Compiler->compileChildrenNoReturn() #9 /app/code/3rdparty/scssphp/scssphp/src/Compiler.php(401): ScssPhp\ScssPhp\Compiler->compileRoot() #10 /app/code/lib/private/Template/SCSSCacher.php(343): ScssPhp\ScssPhp\Compiler->compile() #11 /app/code/lib/private/Template/SCSSCacher.php(189): OC\Template\SCSSCacher->cache() #12 /app/code/lib/private/Template/CSSResourceLocator.php(111): OC\Template\SCSSCacher->process() #13 /app/code/lib/private/Template/CSSResourceLocator.php(86): OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist() #14 /app/code/lib/private/Template/ResourceLocator.php(79): OC\Template\CSSResourceLocator->doFind() #15 /app/code/lib/private/TemplateLayout.php(330): OC\Template\ResourceLocator->find() #16 /app/code/lib/private/TemplateLayout.php(238): OC\TemplateLayout::findStylesheetFiles() #17 /app/code/lib/private/legacy/OC_Template.php(183): OC\TemplateLayout->__construct() #18 /app/code/lib/public/AppFramework/Http/TemplateResponse.php(210): OC_Template->fetchPage() #19 /app/code/lib/private/AppFramework/Http/Dispatcher.php(172): OCP\AppFramework\Http\TemplateResponse->render() #20 /app/code/lib/private/AppFramework/App.php(157): OC\AppFramework\Http\Dispatcher->dispatch() #21 /app/code/lib/private/Route/Router.php(302): OC\AppFramework\App::main() #22 /app/code/lib/base.php(993): OC\Route\Router->match() #23 /app/code/index.php(37): OC::handleRequest() #24 {main}Looks like
whatsnew.scssis missing . I checked a couple of other nextcloud installs and that file isn't there either. This led me to this https://bbs.archlinux.org/viewtopic.php?id=263820&p=5 about several other broken nextclouds... -
@robi I have temporarily fixed the problem by commenting out a line in /app/code/apps/files/css/merged.css . I think we will have to ask the upstream nextcloud to ask what the issue is. I suspect the issue is from some plugin you have to disable them one by one to know what is causing the problem.
-
So strange, all the installs look the same and yet yours errors. I can't figure what it is, I have to try again with fresh pair of eyes later.
@girish Thank you a whole bunch.
It does look like someone had fun installing some NC Apps, and after I found where those were, a few needed updates.. most are featured and come with NC, and the others look disabled as they are untested, so they have the button to enable them. I left them that way.
One had an error upgrading so I removed it.
-
-
@robi right, I don't quite understand why it works fine in a default install with relative paths though (it's relative in all the nextclouds I have access to as well). So, there is something different in your install, not sure what.
-
@girish you're welcome to login again, i'll keep the access credentials the same until resolved.
it'll happen again when the server restarts ;-/
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login