i didnāt forget, iāve just rechanged it not to put my domain online
another ways to my problem might be this error in nginx/error.log, what do you think? :
worker process 766 exited on signal 7
All my access generate a new line as aboveā¦
i didnāt forget, iāve just rechanged it not to put my domain online
another ways to my problem might be this error in nginx/error.log, what do you think? :
worker process 766 exited on signal 7
All my access generate a new line as aboveā¦
puh, please paste the nginx.conf here
please run the default.conf to ckeck whether nginx still works or not in general
root@host:/var/log# ulimit -n
65536
nginx.conf :
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_rlimit_nofile 65536;
events {
worker_connections 65536;
multi_accept on;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off;
include /etc/nginx/conf.d/*.conf;
}
run default and itās working like a charm.
Also tried to modify
include /etc/nginx/conf.d/*.conf;
to
include /etc/nginx/conf.d/gateway.conf;
or
include /etc/nginx/conf.d/gateway.conf;
include /etc/nginx/conf.d/nextcloud.conf;
Found that is nextcloud.conf which provok worker process exit in error.log
please try to reduce the amount of WORKER_CONNECTION to 1024 and restart nginx.
Iāve just tried 1024 and 768 with no resultā¦ (on my other pi 3 with a different installation, i use 768)
also try to change worker_processes to auto, to disable multi-accept and use epollā¦still the same message in error.log
Iāve put back the configuration without gateway.conf and everything is working again using those two files:
http://www.megafileupload.com/g1v8/nextcloud.conf.https
http://www.megafileupload.com/g1v9/nginx.conf
Hi Carsten,
Iāve put log in debug and here is what iāve got with the working nextcloud.conf.https file:
2016/10/01 11:12:15 [notice] 14944#14944: built by gcc 4.9.2 (Raspbian 4.9.2-10)
2016/10/01 11:12:15 [notice] 14944#14944: OS: Linux 4.4.21-v7+
2016/10/01 11:12:15 [notice] 14944#14944: getrlimit(RLIMIT_NOFILE): 1024:4096
2016/10/01 11:12:15 [notice] 14945#14945: start worker processes
2016/10/01 11:12:15 [notice] 14945#14945: start worker process 14946
2016/10/01 11:12:15 [notice] 14945#14945: start worker process 14947
2016/10/01 11:12:15 [notice] 14945#14945: start worker process 14948
2016/10/01 11:12:15 [notice] 14945#14945: start worker process 14949
2016/10/01 11:12:15 [notice] 14945#14945: start cache manager process 14950
2016/10/01 11:12:15 [notice] 14945#14945: start cache loader process 14951
2016/10/01 11:12:28 [notice] 14949#14949: *1 "^" matches "/", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:12:28 [notice] 14949#14949: *1 rewritten data: "/index.php/", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:12:28 [notice] 14949#14949: *1 "^" matches "/apps/files/", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET /apps/files/ HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:12:28 [notice] 14949#14949: *1 rewritten data: "/index.php/apps/files/", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET /apps/files/ HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:12:31 [notice] 14947#14947: *12 "^" matches "/apps/encryption/ajax/getStatus", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET /apps/encryption/ajax/getStatus HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:12:31 [notice] 14947#14947: *12 rewritten data: "/index.php/apps/encryption/ajax/getStatus", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET /apps/encryption/ajax/getStatus HTTP/1.1", host: "mycloud.dyndns.org"
And here is when i use gateway.conf + nextcloud.conf :
2016/10/01 11:13:38 [notice] 14975#14975: built by gcc 4.9.2 (Raspbian 4.9.2-10)
2016/10/01 11:13:38 [notice] 14975#14975: OS: Linux 4.4.21-v7+
2016/10/01 11:13:38 [notice] 14975#14975: getrlimit(RLIMIT_NOFILE): 1024:4096
2016/10/01 11:13:38 [notice] 14976#14976: start worker processes
2016/10/01 11:13:38 [notice] 14976#14976: start worker process 14977
2016/10/01 11:13:38 [notice] 14976#14976: start worker process 14978
2016/10/01 11:13:38 [notice] 14976#14976: start worker process 14979
2016/10/01 11:13:38 [notice] 14976#14976: start worker process 14980
2016/10/01 11:13:38 [notice] 14976#14976: start cache manager process 14981
2016/10/01 11:13:38 [notice] 14976#14976: start cache loader process 14982
2016/10/01 11:13:48 [notice] 14977#14977: *1 "^" matches "/", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14977#14977: *1 rewritten data: "/nextcloud", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14978#14978: *5 "^" matches "/nextcloud", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14978#14978: *5 rewritten data: "/nextcloud/index.php/nextcloud", args: "", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [info] 14978#14978: *5 client 127.0.0.1 closed keepalive connection
2016/10/01 11:13:48 [notice] 14976#14976: signal 17 (SIGCHLD) received
2016/10/01 11:13:48 [alert] 14976#14976: worker process 14977 exited on signal 7
2016/10/01 11:13:48 [notice] 14976#14976: start worker process 14984
2016/10/01 11:13:48 [notice] 14976#14976: signal 29 (SIGIO) received
2016/10/01 11:13:48 [notice] 14980#14980: *7 "^" matches "/", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14980#14980: *7 rewritten data: "/nextcloud", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14978#14978: *11 "^" matches "/nextcloud", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [notice] 14978#14978: *11 rewritten data: "/nextcloud/index.php/nextcloud", args: "", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:48 [info] 14978#14978: *11 client 127.0.0.1 closed keepalive connection
2016/10/01 11:13:48 [notice] 14976#14976: signal 17 (SIGCHLD) received
2016/10/01 11:13:48 [alert] 14976#14976: worker process 14980 exited on signal 7
2016/10/01 11:13:48 [notice] 14976#14976: start worker process 14985
2016/10/01 11:13:48 [notice] 14976#14976: signal 29 (SIGIO) received
2016/10/01 11:13:54 [notice] 14978#14978: *13 "^" matches "/", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:54 [notice] 14978#14978: *13 rewritten data: "/nextcloud", args: "", client: 1.2.3.4, server: mycloud.dyndns.org, request: "GET / HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:54 [notice] 14984#14984: *17 "^" matches "/nextcloud", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:54 [notice] 14984#14984: *17 rewritten data: "/nextcloud/index.php/nextcloud", args: "", client: 127.0.0.1, server: 127.0.0.1, request: "GET /nextcloud HTTP/1.1", host: "mycloud.dyndns.org"
2016/10/01 11:13:54 [info] 14984#14984: *17 client 127.0.0.1 closed keepalive connection
2016/10/01 11:13:54 [notice] 14976#14976: signal 17 (SIGCHLD) received
2016/10/01 11:13:54 [alert] 14976#14976: worker process 14978 exited on signal 7
2016/10/01 11:13:54 [notice] 14976#14976: start worker process 14986
2016/10/01 11:13:54 [notice] 14976#14976: signal 29 (SIGIO) received
Of course, iāve changed my client ip and domain in this logs
i am sorry, but i do not know what to change.
As i said before, your config is doing well on my pi3.
Many ohters did use my guide and succeded, so please make a doublecheck of all the steps i mentioned in my guide.
I suggest to ask e.g. the nginx-community or maybe anybody else in this forum may assist you?!
appologize, carsten
No worries Carsten. I think it might come from my nginx compilation that could be a little bit different on Raspbian than ubuntu. Iāll ask on nginx forum or try to use ubuntu
Hier habe ich ein Tutorium erstellt wie man Nextcloud 11 auf dem Raspberry Pi 3 installiert. Ich benutze dabei die Installation-Anleitung unter dem Ubuntu und gebe Hinweise bezĆ¼glich PHP 7
Nextcloud 11 auf dem Raspberry Pi 3
Hi Carsten,
First of all, thank you for your guide, it is the best one available - I think I know it top to bottom by know
Im looking towards 64 bit distroās (eg Leap) and wonder if on the Pi3 (Ngnix, Php7 etc) de performance would be much better. Could you comment that?
And if so, perhaps adapting your brilliant guide?
Sll the best,
Olaf
thank you very much!
if i got you right, there wonāt be a significant performance increase just in case you switch your os from 32 to 64 bit.
but filehandling and memoryhandling gain more options.
e.g. files larger than 2GB
carsten