Nextcloud version (eg, 20.0.5): 25.0.6
[snap version]
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): ?
No idea. I had to remove my manually installed Apache for Nextcloud to appear.
PHP version (eg, 7.4): 8.1.2
The issue I cannot write on my external storages. They are properly mounted (accessible in command line, readable and writable), they are seen by the web interface but no folders and files are shown and I cannot write on it. When I create a README.md file using command line, the file appears on the list, but its content is not displayed. I checked several fstab parameters :
- UUID=THEUUID /media/THEREPO ext4 rw,users 0 0
- UUID=THEUUID /media/THEREPO ext4 defaults,auto,users,rw,nofail 0 0
First fstab line is the one from Nextcloud documentation. Second fstab line was the one I used in the previous installation of my Nextcloud on a Raspberry Pi 3. The repositories in /media are all in chmod 777. I even chown everything to root and chmod everything to 777 in the external drive, but nothing works. I tried root ownership (worked on my previous install) and www-data ownership. I am turning around on every Nextcloud thread about it, but I cannot figure it out. Not sure about the www-data stuff as it is a snap version, but that thing is a bit mysterious to me. It drives me crazy
Little edit: when I manually create a README.md file in the repository, the content does not display on screan, but I can access the Nextcloud editing tool. But it cannot be saved and says that the connexion was lost.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it: No.
The output of your Nextcloud log in Admin > Logging:
first error log
[webdav] Erreur: Sabre\DAV\Exception: Erreur en copiant le fichier à destination (copié : -1 octet, taille du fichier attendue : 1 octet) at <<closure>>
0. /snap/nextcloud/34542/htdocs/apps/dav/lib/Connector/Sabre/Directory.php line 151
OCA\DAV\Connector\Sabre\File->put()
1. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
OCA\DAV\Connector\Sabre\Directory->createFile()
2. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
Sabre\DAV\Server->createFile()
3. /snap/nextcloud/34542/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPut()
4. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()
5. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()
6. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
7. /snap/nextcloud/34542/htdocs/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
8. /snap/nextcloud/34542/htdocs/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
9. /snap/nextcloud/34542/htdocs/remote.php line 172
require_once("/snap/nextcloud ... p")
PUT /remote.php/dav/files/ME/SSD256/Readme.md
from THEIPV6 by ME at 2023-05-29T14:32:30+00:00
second error log
[PHP] Erreur: Error: file_put_contents(/media/SSD256/Readme.md.ocTransferId423040063.part): Failed to open stream: Permission denied at /snap/nextcloud/34542/htdocs/lib/private/Files/Storage/Local.php#312 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError()
1. /snap/nextcloud/34542/htdocs/lib/private/Files/Storage/Local.php line 312
file_put_contents()
2. /snap/nextcloud/34542/htdocs/lib/private/Files/Storage/Local.php line 621
OC\Files\Storage\Local->file_put_contents()
3. /snap/nextcloud/34542/htdocs/lib/private/Files/Storage/Wrapper/Wrapper.php line 647
OC\Files\Storage\Local->writeStream()
4. /snap/nextcloud/34542/htdocs/apps/dav/lib/Connector/Sabre/File.php line 248
OC\Files\Storage\Wrapper\Wrapper->writeStream()
5. /snap/nextcloud/34542/htdocs/apps/dav/lib/Connector/Sabre/Directory.php line 151
OCA\DAV\Connector\Sabre\File->put()
6. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
OCA\DAV\Connector\Sabre\Directory->createFile()
7. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
Sabre\DAV\Server->createFile()
8. /snap/nextcloud/34542/htdocs/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPut()
9. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()
10. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()
11. /snap/nextcloud/34542/htdocs/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
12. /snap/nextcloud/34542/htdocs/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
13. /snap/nextcloud/34542/htdocs/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
14. /snap/nextcloud/34542/htdocs/remote.php line 172
require_once("/snap/nextcloud ... p")
PUT /remote.php/dav/files/ME/SSD256/Readme.md
from THEIPV6 by ME at 2023-05-29T14:32:30+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
config.php
<?php
$snap_current = getenv('SNAP_CURRENT');
$snap_data_current = getenv('SNAP_DATA_CURRENT');
$CONFIG = array(
/**
* Use the ``apps_paths`` parameter to set the location of the Apps directory,
* which should be scanned for available apps, and where user-specific apps
* should be installed from the Apps store. The ``path`` defines the absolute
* file system path to the app folder. The key ``url`` defines the HTTP web path
* to that folder, starting from the Nextcloud web root. The key ``writable``
* indicates if a web server can write files to that folder.
*/
'apps_paths' => array(
/**
* These are the default apps shipped with Nextcloud. They are read-only.
*/
array(
'path'=> $snap_current.'/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
/**
* This directory is writable, meant for apps installed by the user.
*/
array(
'path'=> $snap_data_current.'/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
/**
* Database types that are supported for installation.
*
* Available:
* - sqlite (SQLite3 - Not in Enterprise Edition)
* - mysql (MySQL)
* - pgsql (PostgreSQL)
* - oci (Oracle - Enterprise Edition Only)
*/
'supportedDatabases' => array(
'mysql',
),
'memcache.locking' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
'host' => getenv('REDIS_SOCKET'),
'port' => 0,
),
'log_type' => 'file',
'logfile' => $snap_data_current.'/logs/nextcloud.log',
'logfilemode' => 0640,
);
The output of your Apache/nginx/system log in /var/log/____
:
Nothing in /var/log