Can not upload to nextcloud anymore


Nextcloud version (eg, 10.0.2): 10.0.2
Operating system and version (eg, Ubuntu 16.04): unRAID
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 5.6):
Is this the first time you’ve seen this error?: Yes

Can you reliably replicate it? (If so, please outline steps):
Can not upload files to server. Tried webinterface and also moving a file on the pc to the nextcloud folder. Upload will not happend. The file just end up by not syncing. Have tried different files and different users.

The issue you are facing:

The error message in nextcloud software is :
15.04.2017 22.20, Documents/test.txt,D:\Programmer\Nextcloud\Lagring,Fortsett svartelisting: Error downloading https://mrvilla.ddns.net:443/remote.php/webdav/Documents/test.txt - server replied: Internal Server Error (Could not write file contents)

The output of your Nextcloud log in Admin > Logging:

ErrorWarningSystemArrayLogin

[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 10-adduser: executing…



| || () ___
| / _| | |/ _
| _
\ | | (
) |
|
|/ ||_/
|_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/

GID/UID

User uid: 99
User gid: 100

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing…
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing…
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing…
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing…
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing…
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15-Apr-2017 19:48:48] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php7/modules/memcached.so’ - Error loading shared library /usr/lib/php7/modules/memcached.so: No such file or directory in Unknown on line 0
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 10-adduser: executing…
usermod: no changes



| || () ___
| / _| | |/ _
| _
\ | | (
) |
|
|/ ||_/
|_|

Brought to you by linuxserver.io
We gratefully accept donations at:
https://www.linuxserver.io/donations/

GID/UID

User uid: 99
User gid: 100

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing…
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing…
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing…
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing…
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing…
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15-Apr-2017 19:57:37] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php7/modules/memcached.so’ - Error loading shared library /usr/lib/php7/modules/memcached.so: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php7/modules/memcached.so’ - Error loading shared library /usr/lib/php7/modules/memcached.so: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php7/modules/memcached.so’ - Error loading shared library /usr/lib/php7/modules/memcached.so: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php7/modules/memcached.so’ - Error loading shared library /usr/lib/php7/modules/memcached.so: No such file or directory in Unknown on line 0

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

The output of your Apache/nginx/system log in /var/log/____:


Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.

As the error message states:[quote=“MrVilla, post:1, topic:11416”]
Could not write file contents
[/quote]

So it is linked to the permission on the folder you are trying to write into. From the data I can see that you are using the LinuxServer Docker image.

As you state you assign UID 99 and GID 100 to the docker, make sure that that user/group does have write access to the folder in which NextCloud is trying to save into.

Thanks for quick reply

Strange that there suddenly have been a permission change in the software.

I have no idea where UID 99 and GID 100 comes from, and I do not know how to give the user/groups access to the folder that NC is trying to access.

The problem is I don’t run NC from a docker so bit more difficult to assist.

What an option could be is to change the permission on the folder to allow anybody to write into it:

chmod a+rwx <folder name>

and then see if it works.