[/details]
Nextcloud version : 24.0.0
Operating system and version : Debian 10
Apache or nginx version : 2.4.38
PHP version : 8.1.5
The issue you are facing:
Folders copied to the NextCloud data directory, following by a php occ files:scan
as advised in the Administration Manual, shows the folder in the correct place on the NextCloud desktop. The problem is that I can’t then open the directory and see the files, even though the findividual files are shown as “new uploads” on the NextCloud desktop.
This is my first installation of NextCloud server, on a virtual server on my VPS running Debian 10.
When I upload a folder of files by dragging into the browser (Chrome on Windows 10) the process works smoothly, and I can access the folder as expected. No problem at all.
I was then looking for a way to avoid downloading the files from my FTP server, which is on the same VPS, and uploading them again. I read in a post here that it is possible to copy files into the correct location, change permissions and ownership to the correct settings, and then run occ files:scan
. When I did this I could not access the folder (via NextCloud) that was copied on the server, although the folder was actually visible on the desktop.
I then renamed the folder (successfully) but it was still not accessible.
I then deleted the folder completely, and uploaded the same folder via the normal method through my Chrome browser (on Windows 10). The problem persists with the normally uploaded folder, and I still can’t access it, although I can see it. I have also tried to rename this folder, which works, but still can’t access the folder.
I have checked (via SSH) the ownership of both the directory and all the files within it, and all the permissions of directory and files, and they appear to be all correct.
I have re-run php occ files:scan --all
as well as trying php occ files:cleanup
and php occ files:scan-app-data
and none of these commands make any difference.
Is this the first time you’ve seen this error? : Y
Steps to replicate it:
- Copy a directory of files into the NextCloud data directory on the host server
- Run
php occ files:scan
- Copied directory appears in NextCloud, but is inaccessible
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Error: unlink(/home/cloud/public_html/data/appdata_ochhhj09d6pe/css/icons/icons-list.template): No such file or directory at /home/cloud/public_html/lib/private/Files/Storage/Local.php#305 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError()
1. /home/cloud/public_html/lib/private/Files/Storage/Local.php line 305
unlink()
2. <<closure>>
OC\Files\Storage\Local->unlink()
3. /home/cloud/public_html/apps/files_trashbin/lib/Storage.php line 193
call_user_func()
4. /home/cloud/public_html/apps/files_trashbin/lib/Storage.php line 102
OCA\Files_Trashbin\Storage->doDelete()
5. /home/cloud/public_html/lib/private/Files/View.php line 1177
OCA\Files_Trashbin\Storage->unlink()
6. /home/cloud/public_html/lib/private/Files/View.php line 733
OC\Files\View->basicOperation()
7. /home/cloud/public_html/lib/private/Files/Node/File.php line 131
OC\Files\View->unlink()
8. /home/cloud/public_html/lib/private/Files/SimpleFS/SimpleFile.php line 149
OC\Files\Node\File->delete()
9. /home/cloud/public_html/lib/private/Template/SCSSCacher.php line 386
OC\Files\SimpleFS\SimpleFile->delete()
10. /home/cloud/public_html/lib/private/Template/SCSSCacher.php line 278
OC\Template\SCSSCacher->resetCache()
11. /home/cloud/public_html/lib/private/Template/SCSSCacher.php line 142
OC\Template\SCSSCacher->variablesChanged()
12. /home/cloud/public_html/lib/private/Template/CSSResourceLocator.php line 109
OC\Template\SCSSCacher->process()
13. /home/cloud/public_html/lib/private/Template/CSSResourceLocator.php line 61
OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist()
14. /home/cloud/public_html/lib/private/Template/ResourceLocator.php line 78
OC\Template\CSSResourceLocator->doFind()
15. /home/cloud/public_html/lib/private/TemplateLayout.php line 342
OC\Template\ResourceLocator->find()
16. /home/cloud/public_html/lib/private/TemplateLayout.php line 250
OC\TemplateLayout::findStylesheetFiles()
17. /home/cloud/public_html/lib/private/legacy/OC_Template.php line 185
OC\TemplateLayout->__construct()
18. /home/cloud/public_html/lib/public/AppFramework/Http/TemplateResponse.php line 204
OC_Template->fetchPage()
19. /home/cloud/public_html/lib/private/AppFramework/Http/Dispatcher.php line 178
OCP\AppFramework\Http\TemplateResponse->render()
20. /home/cloud/public_html/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
21. /home/cloud/public_html/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
22. /home/cloud/public_html/lib/base.php line 1023
OC\Route\Router->match()
23. /home/cloud/public_html/index.php line 36
OC::handleRequest()
GET /index.php/apps/dashboard/
from 146.212.254.35 by cloudmin at 2022-05-17T13:09:46+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
?php
$CONFIG = array (
'instanceid' => 'xxx-redacted-xxx',
'passwordsalt' => 'xxx-redacted-xxx',
'secret' => 'xxx-redacted-xxx',
'trusted_domains' =>
array (
0 => 'cloud.xxxxxxxx.xxx',
),
'datadirectory' => '/home/cloud/public_html/data',
'dbtype' => 'mysql',
'version' => '24.0.0.12',
'overwrite.cli.url' => 'https://cloud.xxxxxxxx.xxx',
'dbname' => 'cloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'cloud',
'dbpassword' => 'xxxxxxxxxxxx',
'installed' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
[Tue May 17 00:00:00.592085 2022] [mpm_prefork:notice] [pid 16556] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Tue May 17 00:00:00.592145 2022] [core:notice] [pid 16556] AH00094: Command line: '/usr/sbin/apache2'