just skip building that broken port and continue the guide.
'pkg install m4'
Easy solution...
Owncloud is running!!!
THANK YOU!!!
just skip building that broken port and continue the guide.
'pkg install m4'
no 'tuning' should be necessary. updating using owncloud built in updater worked perfectly for me.Hi,
I installed owncloud 7.0.2 using this guide and everything was working quite well, but now I'm trying to update it to 7.0.3 using updater app and it gives me an empty error block and message "Please fix this and retry." I not very familiar with nginx so maybe it needs some tuning? I appreciate any help
#user nobody; worker_processes 4; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include 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 logs/access.log main; sendfile off; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip off; server { root /usr/local/www; location = /robots.txt { allow all; access_log off; log_not_found off; } location = /favicon.ico { access_log off; log_not_found off; } location ^~ /owncloud { index index.php; try_files $uri $uri/ /owncloud/index.php$is_args$args; client_max_body_size 512M; location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) { deny all; } location ~ \.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; include fastcgi_params; fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on; } location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ { expires 30d; add_header Cache-Control public; } location ^~ /owncloud/data { internal; alias /mnt/files; } } } }
Reason for following this guide is it will run faster, especially when doing lots of small operations. This is because my guide uses a mysql database backend instead of the plugins sqlite database.I am having a few issues with my install. First I have a couple questions.
First, what is the reasoning for installing using your guide versus installing the pbi. The reason I ask is that I have very very little programming experience (intro c++ and self taught VBA if either of those count). I am willing to do the research but I am just wondering if I am over my head and if the headache will be worth it in the end.
I guess the main issue with my install is correctly configuring the nginx.conf file. The error i get is a 502 Bad Gateway (nginx/1.6.2)
Code:#user nobody; worker_processes 4; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include 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 logs/access.log main; sendfile off; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip off; server { root /usr/local/www; location = /robots.txt { allow all; access_log off; log_not_found off; } location = /favicon.ico { access_log off; log_not_found off; } location ^~ /owncloud { index index.php; try_files $uri $uri/ /owncloud/index.php$is_args$args; client_max_body_size 512M; location ~ ^/owncloud/(?:\.|data|config|db_structure\.xml|README) { deny all; } location ~ \.php(?:$|/) { fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; include fastcgi_params; fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on; } location ~* \.(?:jpg|gif|ico|png|css|js|svg)$ { expires 30d; add_header Cache-Control public; } location ^~ /owncloud/data { internal; alias /mnt/files; } } } }
root@OwnCloud:/ # sockstat | grep www www nginx 4852 3 stream -> ?? www nginx 4852 7 tcp4 192.168.1.200:80 *:* www nginx 4852 9 stream -> ?? www nginx 4852 11 stream -> ?? www nginx 4852 14 stream -> ?? www nginx 4850 3 stream -> ?? www nginx 4850 7 tcp4 192.168.1.200:80 *:* www nginx 4850 8 stream -> ?? www nginx 4850 9 stream -> ?? www nginx 4850 12 stream -> ?? www nginx 4849 3 stream -> ?? www nginx 4849 7 tcp4 192.168.1.200:80 *:* www nginx 4849 8 stream -> ?? www nginx 4849 9 stream -> ?? www nginx 4849 10 stream -> ?? www nginx 4848 3 stream -> ?? www nginx 4848 7 tcp4 192.168.1.200:80 *:* www nginx 4848 8 stream -> ?? www nginx 4848 10 stream -> ?? www nginx 4848 11 stream -> ?? www php-fpm 4842 0 stream /var/run/php-fpm.sock www php-fpm 4841 0 stream /var/run/php-fpm.sock
But going to http://192.168.1.200/owncloud still gives you a 502 error?php_fpm is running as pid 4840.
Below is the output of the second command.
Code:root@OwnCloud:/ # sockstat | grep www www nginx 4852 3 stream -> ?? www nginx 4852 7 tcp4 192.168.1.200:80 *:* www nginx 4852 9 stream -> ?? www nginx 4852 11 stream -> ?? www nginx 4852 14 stream -> ?? www nginx 4850 3 stream -> ?? www nginx 4850 7 tcp4 192.168.1.200:80 *:* www nginx 4850 8 stream -> ?? www nginx 4850 9 stream -> ?? www nginx 4850 12 stream -> ?? www nginx 4849 3 stream -> ?? www nginx 4849 7 tcp4 192.168.1.200:80 *:* www nginx 4849 8 stream -> ?? www nginx 4849 9 stream -> ?? www nginx 4849 10 stream -> ?? www nginx 4848 3 stream -> ?? www nginx 4848 7 tcp4 192.168.1.200:80 *:* www nginx 4848 8 stream -> ?? www nginx 4848 10 stream -> ?? www nginx 4848 11 stream -> ?? www php-fpm 4842 0 stream /var/run/php-fpm.sock www php-fpm 4841 0 stream /var/run/php-fpm.sock
Have you tried the nginx.conf I posted exactly? If this still gives you a 502 error, you can try enable logging and check what the log says about the error.Yes sir. I should note that when I originally set up the jail it was 1192.168.1.7 but after research I was getting an error that seemed to be about an IP conflict so I went to the jail and changed the IP to 200. I kept getting different results using different examples of nginx.conf files but none of them were correct. 404 error, IP directing to Freenas GUI, and now 502.
2014/11/30 02:31:54 [error] 5364#0: *2 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:01:45 [error] 5364#0: *4 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:01:45 [error] 5364#0: *4 open() "/usr/local/www/nginx/favicon.ico" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:05:36 [error] 5364#0: *7 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:20:50 [error] 5364#0: *9 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:21:16 [error] 5364#0: *9 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:32 [error] 5364#0: *11 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:32 [error] 5364#0: *11 open() "/usr/local/www/nginx/owncloud/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:52 [error] 5364#0: *12 open() "/usr/local/www/nginx/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:52 [error] 5364#0: *12 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:59 [error] 5364#0: *13 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:29:59 [error] 5364#0: *13 open() "/usr/local/www/nginx/owncloud/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:30:03 [error] 5364#0: *14 open() "/usr/local/www/nginx/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:30:03 [error] 5364#0: *14 open() "/usr/local/www/nginx/owncloud/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud/status.php HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:44:48 [error] 5364#0: *16 open() "/usr/local/www/nginx/owncloud" failed (2: No such file or directory), client: 192.168.1.15, server: localhost, request: "GET /owncloud HTTP/1.1", host: "192.168.1.7" 2014/11/30 10:49:13 [error] 58891#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200" 2014/11/30 10:49:17 [crit] 58891#0: *1 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 10:49:29 [error] 58891#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200" 2014/11/30 11:02:42 [crit] 58891#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 11:02:58 [error] 58891#0: *5 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.15, server: , request: "GET / HTTP/1.1", host: "192.168.1.200" 2014/11/30 11:03:26 [emerg] 65701#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) 2014/11/30 11:03:26 [emerg] 65702#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) 2014/11/30 11:18:58 [emerg] 4806#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) 2014/11/30 11:18:58 [emerg] 4807#0: BIO_new_file("/usr/local/etc/nginx/certs/example.com.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/etc/nginx/certs/example.com.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file) 2014/11/30 12:08:21 [emerg] 26200#0: bind() to 0.0.0.0:80 failed (49: Can't assign requested address) 2014/11/30 12:08:21 [emerg] 26201#0: bind() to 0.0.0.0:80 failed (49: Can't assign requested address) 2014/11/30 12:18:35 [error] 4848#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200" 2014/11/30 12:18:35 [error] 4848#0: *3 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200" 2014/11/30 12:23:24 [crit] 4848#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 12:23:36 [crit] 4848#0: *5 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 12:24:33 [crit] 4848#0: *17 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 12:31:41 [error] 4848#0: *19 open() "/usr/local/www/status.php" failed (2: No such file or directory), client: 192.168.1.15, server: , request: "GET /status.php HTTP/1.1", host: "192.168.1.200" 2014/11/30 12:31:41 [crit] 4848#0: *19 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/status.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 12:32:14 [crit] 4848#0: *21 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 13:13:53 [crit] 4848#0: *29 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 19:20:15 [crit] 4848#0: *39 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 20:10:03 [crit] 4848#0: *42 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 20:10:22 [crit] 4848#0: *42 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 20:15:00 [error] 4848#0: *1 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200" 2014/11/30 20:15:00 [error] 4848#0: *3 directory index of "/usr/local/www/" is forbidden, client: 192.168.1.16, server: , request: "HEAD / HTTP/1.1", host: "192.168.1.200" 2014/11/30 20:15:48 [crit] 4848#0: *9 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200" 2014/11/30 20:18:30 [crit] 4848#0: *12 connect() to unix:/var/run/php-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 192.168.1.15, server: , request: "GET /owncloud/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "192.168.1.200"
name of the jail shouldn't make a difference. As for the URL, I guess the caps was your issue. glad you got it working.OK. I am starting to think it had to deal with me trying to capitalize certain things (such as OwnCloud).
Note to all other beginners, dont.
Joshua, I have reached the owncloud page. I am wondering if I would have typed http://192.168.1.200/OwnCloud if it would have worked. Who knows. All that matters is that it seems that I am in good shape now to move forward. Thanks for your time.
i had the same error, but i got it to work. here is step by step:I see. So this is good news because it is the same for me and it narrows down the possible causes of the problem.
ln -s /usr/local/share/certs/ca-root-nss.crt /etc/ssl/cert.pem
This is completely unnecessary.Guys, may not be the best place to post this, if not, I apologize to moderation and please erase or move my post as you wish.
In my quest to have access to the ownlcoud outside my LAN and using the no-ip service, went through my mind to install inside the owncloud jail the no-ip .
I did as follows:
#cd /usr/ports/dns/noip/
#make install clean
#make conf
#sysrc noip_enable = "YES"
And restarted the FreeNAS.
For some reason the client is not updating automatically but it is working! I say this because if I manually set my public IP on the no-ip website I have remote access (outside of my LAN) for owncloud. But when my IP changes, only the DDNS FreeNAS services upgrades to the new address, the client within the jail not, so I have no more remote access to the OC.
I followed the form of installation described here and everything is ok inside my LAN including SSL and the port 443 is open for the jail IP on my route.
Any tips on how to resolve or where I went wrong?
Thanks
It sounds like you are port forwarding to FreeNAS but not owncloud.My WAN IP.
Joshua I have this 'example.no-ip.org' address configured in FreeNAS built-in. At this point everything it's fine..., I can access the FreeNAS from locations outside of my LAN.
But every time I tried to access the owncloud outside of my LAN using 'example.no-ip.org/owncloud' returned the 'Welcome page' of FreeNAS.
So I thought in the no-ip client inside de OC jail... Any tips on how I should proceed?
thank you very much