Nextcloud version : 16.0.4
Operating system and version : CentOS Linux release 7.6.1810 (Core)
Apache or nginx version: Apache/2.4.41
PHP version: 7.1.32
I have an issue with uploading files (drag and drop) en create directories.
The plus sign isn’t visible, see screenshot:
I have search the forums and tried the permission script with the user apache, but then the application fails direct.
Other tweaks in files.js files are in this version correct.
This are the settings data:
drwxr-x--- 7 jeroen jeroen 201 13 sep 11:38 data
and into the data map:
drwxr-x--- 7 jeroen jeroen 201 13 sep 11:38 .
drwxr-x--- 16 jeroen jeroen 4096 13 sep 13:56 ..
drwxr-x--- 9 jeroen jeroen 108 13 sep 11:03 appdata_oci6pyx3j42k
drwxr-x--- 2 jeroen jeroen 27 13 sep 11:45 files_external
-rw-r--r-- 1 jeroen jeroen 324 13 sep 11:45 .htaccess
-rw-r----- 1 jeroen jeroen 0 13 sep 11:45 index.html
drwxr-x--- 4 jeroen jeroen 32 13 sep 11:04 jeroen
drwxr-x--- 4 jeroen jeroen 32 13 sep 11:14 jimmy
-rw-r----- 1 jeroen jeroen 17233112 13 sep 11:46 nextcloud.log
-rw-r----- 1 jeroen jeroen 0 13 sep 11:45 .ocdata
-rw-r----- 1 jeroen jeroen 12994 13 sep 11:45 updater.log
drwxr-x--- 4 jeroen jeroen 67 13 sep 11:45 updater-oci6pyx3j42k
When i search the forum it is always perm of update js files… but both will still not working (or i make a huge mistake).
Many thx
Jeroen_Timmers:
CentOS Linux
selinux on/off?
is data
in the web server document root?
data is in the web server document root, thats correct.
selinux, how can i check that?
SELinux status: disabled
ok.
all the files in the folder should belong to the webserver user. (apache or httpd, don’t know for centos/apache)
which one?
normally you do a ps -ef
or cat /etc/passwd
and search for apache/http.
than you should do a cd /path/to/data; sudo chown -R apache:apache .
be carefull to do it in the correct path. (or install the machine completely new. in worst case. )
When i change owner and group to apache
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
When i changed it back to “jeroen:jeroen” the page is working (not uploading)
This script:
https://docs.nextcloud.com/server/9.0/admin_manual/installation/installation_wizard.html#setting-strong-directory-permissions
From phpinfo
mertakb
September 13, 2019, 1:49pm
6
I am at the same state right now, waiting for a suggestion…
the output of ps -ef
please. which howto did you follow?
I follow the auto install with the php file.
Here is a dump of ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 aug18 ? 00:13:02 /usr/lib/systemd/systemd --switched-root --system --deserialize 22
root 2 0 0 aug18 ? 00:00:00 [kthreadd]
root 3 2 0 aug18 ? 00:05:21 [ksoftirqd/0]
root 5 2 0 aug18 ? 00:00:00 [kworker/0:0H]
root 7 2 0 aug18 ? 00:00:00 [migration/0]
root 8 2 0 aug18 ? 00:00:00 [rcu_bh]
root 9 2 0 aug18 ? 00:11:11 [rcu_sched]
root 10 2 0 aug18 ? 00:00:00 [lru-add-drain]
root 11 2 0 aug18 ? 00:00:18 [watchdog/0]
root 13 2 0 aug18 ? 00:00:00 [kdevtmpfs]
root 14 2 0 aug18 ? 00:00:00 [netns]
root 15 2 0 aug18 ? 00:00:01 [khungtaskd]
root 16 2 0 aug18 ? 00:00:00 [writeback]
root 17 2 0 aug18 ? 00:00:00 [kintegrityd]
root 18 2 0 aug18 ? 00:00:00 [bioset]
root 19 2 0 aug18 ? 00:00:00 [bioset]
root 20 2 0 aug18 ? 00:00:00 [bioset]
root 21 2 0 aug18 ? 00:00:00 [kblockd]
root 22 2 0 aug18 ? 00:00:00 [md]
root 23 2 0 aug18 ? 00:00:00 [edac-poller]
root 24 2 0 aug18 ? 00:00:00 [watchdogd]
root 30 2 0 aug18 ? 01:12:08 [kswapd0]
root 31 2 0 aug18 ? 00:00:00 [ksmd]
root 32 2 0 aug18 ? 00:00:06 [khugepaged]
root 33 2 0 aug18 ? 00:00:00 [crypto]
root 41 2 0 aug18 ? 00:00:00 [kthrotld]
root 43 2 0 aug18 ? 00:00:00 [kmpath_rdacd]
root 44 2 0 aug18 ? 00:00:00 [kaluad]
root 45 2 0 aug18 ? 00:00:00 [kpsmoused]
root 46 2 0 aug18 ? 00:00:00 [ipv6_addrconf]
root 59 2 0 aug18 ? 00:00:00 [deferwq]
root 91 2 0 aug18 ? 00:00:16 [kauditd]
root 285 2 0 aug18 ? 00:00:00 [ata_sff]
root 291 2 0 aug18 ? 00:00:00 [scsi_eh_0]
root 292 2 0 aug18 ? 00:00:00 [scsi_tmf_0]
root 293 2 0 aug18 ? 00:00:00 [scsi_eh_1]
root 294 2 0 aug18 ? 00:00:00 [scsi_tmf_1]
root 297 2 0 aug18 ? 00:00:00 [ttm_swap]
root 298 2 0 aug18 ? 00:07:00 [kworker/0:1H]
root 366 2 0 aug18 ? 00:00:00 [kdmflush]
root 367 2 0 aug18 ? 00:00:00 [bioset]
root 376 2 0 aug18 ? 00:00:00 [kdmflush]
root 377 2 0 aug18 ? 00:00:00 [bioset]
root 390 2 0 aug18 ? 00:00:00 [bioset]
root 391 2 0 aug18 ? 00:00:00 [xfsalloc]
root 392 2 0 aug18 ? 00:00:00 [xfs_mru_cache]
root 393 2 0 aug18 ? 00:00:00 [xfs-buf/dm-0]
root 394 2 0 aug18 ? 00:00:00 [xfs-data/dm-0]
root 395 2 0 aug18 ? 00:00:00 [xfs-conv/dm-0]
root 396 2 0 aug18 ? 00:00:00 [xfs-cil/dm-0]
root 397 2 0 aug18 ? 00:00:00 [xfs-reclaim/dm-]
root 398 2 0 aug18 ? 00:00:00 [xfs-log/dm-0]
root 399 2 0 aug18 ? 00:00:00 [xfs-eofblocks/d]
root 400 2 0 aug18 ? 00:15:35 [xfsaild/dm-0]
root 485 1 0 aug18 ? 00:00:00 /usr/sbin/lvmetad -f
root 498 1 0 aug18 ? 00:00:00 /usr/lib/systemd/systemd-udevd
root 536 2 0 aug18 ? 00:00:00 [xfs-buf/vda1]
root 538 2 0 aug18 ? 00:00:00 [xfs-data/vda1]
root 539 2 0 aug18 ? 00:00:00 [xfs-conv/vda1]
root 540 2 0 aug18 ? 00:00:00 [xfs-cil/vda1]
root 542 2 0 aug18 ? 00:00:00 [xfs-reclaim/vda]
root 545 2 0 aug18 ? 00:00:00 [xfs-log/vda1]
root 546 2 0 aug18 ? 00:00:00 [xfs-eofblocks/v]
root 547 2 0 aug18 ? 00:00:00 [xfsaild/vda1]
root 560 2 0 aug18 ? 00:00:00 [kdmflush]
root 561 2 0 aug18 ? 00:00:00 [bioset]
root 606 2 0 aug18 ? 00:00:00 [xfs-buf/dm-2]
root 607 2 0 aug18 ? 00:00:00 [xfs-data/dm-2]
root 609 2 0 aug18 ? 00:00:00 [xfs-conv/dm-2]
root 610 2 0 aug18 ? 00:00:00 [xfs-cil/dm-2]
root 612 2 0 aug18 ? 00:00:00 [xfs-reclaim/dm-]
root 614 2 0 aug18 ? 00:00:00 [xfs-log/dm-2]
root 615 2 0 aug18 ? 00:00:00 [xfs-eofblocks/d]
root 618 2 0 aug18 ? 00:02:22 [xfsaild/dm-2]
root 642 1 0 aug18 ? 00:02:03 /sbin/auditd
root 661 1 0 aug18 ? 00:00:00 /usr/sbin/smartd -n -q never
root 662 1 0 aug18 ? 00:00:00 /usr/sbin/abrtd -d -s
root 664 1 0 aug18 ? 00:00:26 /usr/bin/abrt-watch-log -F BUG: WARNING: at WARNING: CPU: INFO: possible recursive locking detected ernel BUG at list_del corruption list_add corru
root 666 1 0 aug18 ? 00:00:00 /usr/sbin/pure-certd -r /usr/local/bin/pureftpd_sni.sh -s /var/run/pure-certd.sock
dbus 667 1 0 aug18 ? 00:10:35 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
chrony 673 1 0 aug18 ? 00:00:05 /usr/sbin/chronyd
polkitd 675 1 0 aug18 ? 00:02:11 /usr/lib/polkit-1/polkitd --no-debug
libstor+ 678 1 0 aug18 ? 00:00:08 /usr/bin/lsmd -d
root 681 1 0 aug18 ? 00:05:15 /sbin/rngd -f
root 683 1 0 aug18 ? 00:04:16 /usr/lib/systemd/systemd-logind
rpc 699 1 0 aug18 ? 00:00:05 /sbin/rpcbind -w
root 708 1 0 aug18 ? 00:00:25 /usr/sbin/crond -n
root 712 1 0 aug18 ? 00:00:00 /usr/sbin/atd -f
root 716 1 0 aug18 ? 00:01:19 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
root 729 1 0 aug18 ? 00:10:10 /usr/sbin/NetworkManager --no-daemon
root 1148 1 0 aug18 ? 00:02:12 /usr/sbin/sshd -D
root 1150 1 0 aug18 ? 00:06:25 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
root 1163 1 0 aug18 ? 00:00:00 /usr/sbin/xinetd -stayalive -pidfile /var/run/xinetd.pid
root 1165 1 0 aug18 ? 00:08:47 /usr/sbin/rsyslogd -n
root 1216 21991 0 15:00 ? 00:00:00 dovecot/lmtp -L
dovecot 1892 21991 0 15:15 ? 00:00:00 dovecot/imap-login
root 2045 21991 0 15:20 ? 00:00:00 dovecot/lmtp -L
dovecot 2049 21991 0 15:20 ? 00:00:00 dovecot/imap-login
root 2093 1 0 sep09 ? 00:01:57 /usr/lib/systemd/systemd-journald
clamav 2207 1 0 aug25 ? 00:01:59 /usr/local/bin/freshclam -d
dovecot 2493 21991 0 15:28 ? 00:00:00 dovecot/imap-login
root 3040 21991 0 15:39 ? 00:00:00 dovecot/auth worker: USER
root 3059 2 0 15:40 ? 00:00:00 [kworker/0:1]
dovecot 3126 21991 0 15:42 ? 00:00:00 dovecot/imap-login
root 3139 1148 0 15:42 ? 00:00:00 sshd: jeroen [priv]
jeroen 3142 3139 0 15:42 ? 00:00:00 sshd: jeroen@pts/1
jeroen 3143 3142 0 15:42 pts/1 00:00:00 -bash
root 3199 3143 0 15:42 pts/1 00:00:00 su
root 3200 3199 0 15:42 pts/1 00:00:00 bash
root 3256 21991 0 15:44 ? 00:00:00 dovecot/lmtp -L
nobody 3348 8856 0 15:45 ? 00:00:00 /usr/local/directadmin/directadmin d
nobody 3349 8856 0 15:45 ? 00:00:00 /usr/local/directadmin/directadmin d
nobody 3350 8856 0 15:45 ? 00:00:00 /usr/local/directadmin/directadmin d
nobody 3368 8856 0 15:45 ? 00:00:00 /usr/local/directadmin/directadmin d
nobody 3369 8856 0 15:45 ? 00:00:00 /usr/local/directadmin/directadmin d
dovecot 3462 21991 0 15:47 ? 00:00:00 dovecot/imap-login
root 3479 2 0 15:47 ? 00:00:00 [kworker/u2:1]
webapps 3570 4243 0 15:48 ? 00:00:02 php-fpm: pool webapps
dovecot 3757 21991 0 15:51 ? 00:00:00 dovecot/pop3-login
root 3894 2 0 15:55 ? 00:00:00 [kworker/0:2]
root 3903 2 0 15:55 ? 00:00:00 [kworker/u2:0]
root 3923 1 0 sep01 ? 00:02:00 php-fpm: master process (/usr/local/php56/etc/php-fpm.conf)
dovecot 3951 21991 0 15:56 ? 00:00:00 dovecot/imap-login
diegose+ 3971 21991 0 15:57 ? 00:00:00 dovecot/lmtp [local READY]
dovecot 4061 21991 0 16:00 ? 00:00:00 dovecot/pop3-login
root 4070 2 0 16:00 ? 00:00:00 [kworker/0:0]
root 4093 21991 0 16:00 ? 00:00:00 dovecot/lmtp -L
dovecot 4099 21991 0 16:00 ? 00:00:00 dovecot/imap-login
helen 4101 21991 0 16:00 ? 00:00:00 dovecot/imap [info@macstone.nl 82.217.38.30]
helen 4102 21991 0 16:00 ? 00:00:00 dovecot/imap [helen 82.217.38.30]
helen 4104 21991 0 16:00 ? 00:00:00 dovecot/imap [info@macstone.nl 82.217.38.30]
helen 4106 21991 0 16:00 ? 00:00:00 dovecot/imap [helen 82.217.38.30]
dovecot 4237 21991 0 16:03 ? 00:00:00 dovecot/imap-login
root 4243 1 0 sep01 ? 00:01:50 php-fpm: master process (/usr/local/php71/etc/php-fpm.conf)
mail 4259 19623 0 16:03 ? 00:00:00 /usr/sbin/exim -bd -q1h
root 4260 1148 0 16:03 ? 00:00:00 sshd: [accepted]
sshd 4261 4260 0 16:03 ? 00:00:00 sshd: [net]
root 4262 3200 0 16:03 pts/1 00:00:00 ps -ef
root 5317 1 0 03:25 ? 00:00:13 /usr/bin/perl -T -w /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 --ipv4
root 5318 5317 0 03:25 ? 00:00:15 spamd child
root 5319 5317 0 03:25 ? 00:00:00 spamd child
root 7719 1 0 sep01 ? 00:00:02 /usr/sbin/pure-ftpd /etc/pure-ftpd.conf
root 7794 1 0 sep01 ? 00:01:43 /usr/sbin/httpd -DFOREGROUND
nobody 8856 1 0 sep01 ? 00:00:01 /usr/local/directadmin/directadmin d
root 10342 1 0 aug29 tty1 00:00:00 /sbin/agetty --noclear tty1 linux
mail 19623 1 0 sep08 ? 00:00:24 /usr/sbin/exim -bd -q1h
root 20768 21991 0 10:58 ? 00:00:00 dovecot/log
dovecot 20773 21991 0 10:58 ? 00:00:00 dovecot/pop3-login
dovecot 20775 21991 0 10:58 ? 00:00:00 dovecot/pop3-login
dovecot 20777 21991 0 10:58 ? 00:00:00 dovecot/pop3-login
dovecot 20778 21991 0 10:58 ? 00:00:00 dovecot/pop3-login
timmerv+ 20804 21991 0 10:58 ? 00:00:00 dovecot/lmtp [local READY]
root 20814 21991 0 10:58 ? 00:00:02 dovecot/config
dovecot 20815 21991 0 10:58 ? 00:00:00 dovecot/stats [55 connections]
root 20834 21991 0 10:58 ? 00:00:01 dovecot/auth [0 wait, 0 passdb, 0 userdb]
apache 21000 7794 0 10:58 ? 00:01:02 /usr/sbin/httpd -DFOREGROUND
apache 21003 7794 0 10:58 ? 00:02:42 /usr/sbin/httpd -DFOREGROUND
dovecot 21957 21991 0 11:00 ? 00:00:00 dovecot/pop3-login
root 21991 1 0 sep08 ? 00:00:15 /usr/sbin/dovecot -F
dovecot 21995 21991 0 sep08 ? 00:00:04 dovecot/anvil [33 connections]
dovecot 23413 21991 0 11:20 ? 00:00:00 dovecot/pop3-login
root 23901 21991 0 11:28 ? 00:00:00 dovecot/lmtp -L
root 24082 708 0 sep10 ? 00:00:00 /usr/sbin/CROND -n
mysql 24481 1 0 sep10 ? 00:15:17 /usr/sbin/mysqld
dovecot 26053 21991 0 12:13 ? 00:00:00 dovecot/pop3-login
dovecot 27490 21991 0 12:50 ? 00:00:00 dovecot/pop3-login
dovecot 27491 21991 0 12:50 ? 00:00:00 dovecot/pop3-login
root 27700 21991 0 12:55 ? 00:00:00 dovecot/lmtp -L
dovecot 27747 21991 0 12:55 ? 00:00:00 dovecot/imap-login
dovecot 28499 21991 0 13:09 ? 00:00:00 dovecot/imap-login
dovecot 28592 21991 0 13:10 ? 00:00:00 dovecot/pop3-login
timmerv+ 28600 21991 0 13:10 ? 00:00:00 dovecot/lmtp [local READY]
root 28854 21991 0 13:16 ? 00:00:00 dovecot/lmtp -L
dovecot 28865 21991 0 13:16 ? 00:00:00 dovecot/imap-login
dovecot 28913 21991 0 13:17 ? 00:00:00 dovecot/imap-login
root 28962 21991 0 13:18 ? 00:00:00 dovecot/lmtp -L
dovecot 29050 21991 0 13:19 ? 00:00:00 dovecot/imap-login
root 29154 21991 0 13:20 ? 00:00:00 dovecot/lmtp -L
root 29158 1 0 13:20 ? 00:01:27 /usr/local/sbin/clamd --foreground=yes
root 29232 21991 0 13:22 ? 00:00:00 dovecot/lmtp -L
dovecot 29259 21991 0 13:23 ? 00:00:00 dovecot/imap-login
root 29566 21991 0 13:30 ? 00:00:00 dovecot/lmtp -L
dovecot 29734 21991 0 13:32 ? 00:00:00 dovecot/imap-login
root 29941 1148 0 13:37 ? 00:00:00 sshd: jeroen [priv]
jeroen 29945 29941 0 13:37 ? 00:00:00 sshd: jeroen@pts/0
jeroen 29946 29945 0 13:37 pts/0 00:00:00 -bash
root 29996 29946 0 13:37 pts/0 00:00:00 su
root 29999 29996 0 13:37 pts/0 00:00:00 bash
root 30075 21991 0 13:39 ? 00:00:00 dovecot/lmtp -L
dovecot 30082 21991 0 13:39 ? 00:00:00 dovecot/pop3-login
dovecot 30265 21991 0 13:42 ? 00:00:00 dovecot/pop3-login
root 30285 21991 0 13:42 ? 00:00:00 dovecot/lmtp -L
root 30325 708 0 sep04 ? 00:00:00 /usr/sbin/CROND -n
root 30350 21991 0 13:44 ? 00:00:00 dovecot/lmtp -L
dovecot 30355 21991 0 13:44 ? 00:00:00 dovecot/pop3-login
dovecot 30393 21991 0 13:45 ? 00:00:00 dovecot/imap-login
root 30589 1 0 sep01 ? 00:00:56 /usr/local/directadmin/da-popb4smtp
dovecot 31361 21991 0 14:03 ? 00:00:00 dovecot/pop3-login
named 31408 1 0 sep04 ? 00:01:45 /usr/sbin/named -u named -c /etc/named.conf
did you try user webapps?
and btw wwhat kind of centos is this?
Operating system and version : CentOS Linux release 7.6.1810 (Core)
DirectAdmin is installed on the system, and php works with FPM
And also with webapps i get the 500 error
if owner ship jeroen:jeroen works, you should set it.
do you know where are the php/apache logs? /var/log?
could you check if you find an error entry there?
Yes, i read that, but the errors are all with permissions…
For example
[Fri Sep 13 16:24:24.470108 2019] [proxy_fcgi:error] [pid 21003:tid 140229833660160] [client 80.113.22.90:22767] AH01071: Got error ‘PHP message: PHP Warning: fileperms(): stat failed for /home/jeroen/domains/domain.nl/public_html/data/nextcloud.log in /home/jeroen/domains/domain.nl/public_html/lib/private/Log/File.php on line 140\nPHP message: {"re’
[Fri Sep 13 16:24:24.470131 2019] [proxy_fcgi:error] [pid 21003:tid 140229833660160] [client 80.113.22.90:22767] AH01071: Got error ‘qId":“XXumlYTnpCQdS4tiMjCEGwAAAAk”,“level”:3,“time”:“2019-09-13T14:24:24+00:00”,“remoteAddr”:“80.113.22.90”,“user”:“jeroen”,“app”:“PHP”,“method”:“GET”,“url”:"\/favicon.ico",“message”:“fileperms(): stat failed for \/home\/jeroen\/domains\/domain.nl\/public_html\/data\/nextcloud.log at \/home\/jeroen\/domains\/domain.nl\/public_html\/lib\/private\/Log\/File.php#140”,“userAgent”:“Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.132 Safari\/537.36”,“version”:“16.0.4.1”}\nPHP message: {“reqId”:“XXumlYTnpCQdS4tiMjCEGwAAAAk”,“level”:3,“time”:“2019-09-13T14:24:24+00:00”,“remoteAddr”:“80.113.22.90”,“user”:“jeroen”,“app”:“PHP”,“method”:“GET”,“url”:"\/favicon.ico",“message”:“chmod(): Permission denied at \/home\/jeroen\/domains\/domain.nl\/public_html\/lib\/private\/Log\/File.php#141”,“userAgent”:“Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/76.0.3809.132 Safari\/537.36”,“version”:“16.0.4.1”}\n’