This question about Installation of Foswiki: Answered

Access denied after installation

Hi,

I recently installed Foswiki on a Ubuntu 16.04 in DigitalOcean using NGINX. But after doing for the first time sudo service foswiki start, I get an Access denied. In the webpage, I don't know why I get this error. Can someone help me?

-- RRamirezM - 17 May 2017

This is really tough to debug in a topic like this.
  • How did you configure nginx? There is a more recent config at System.FastCGIEngineContrib#Nginx that will be supplied with the upcoming 2.1.4 But the configs atSupport.FoswikiOnNginx should also work fine.
  • Did the foswiki service actually start and stay running? Usually if it's not up, then nginx will reply with a 503 gateway unavailable.
  • There are some minor script updates also planned for 2.1.4. See the source at https://github.com/foswiki/distro/tree/Release02x01/FastCGIEngineContrib/tools - but these probably would not cause an access denied message.
  • Check your Nginx logs - it is showing any reasons for the denied message.
  • Can you reach any pub/ files. For ex: yoursite.com/pub/System/ProjectLogos/foswiki-logo.png

-- GeorgeClark - 18 May 2017

Hi, thank you for your help, these are the contents of the nginx configuration:

server {
    listen      80;
    listen [::]:80;
    server_name  wiki.hatandslash.com www.wiki.hatandslash.com;
    return 301 https://$server_name$request_uri;
}

server {

    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    server_name wiki.hatandslash.com www.wiki.hatandslash.com;

    #SSL snippets
    include snippets/ssl-wiki.conf;
    include snippets/ssl-params.conf;

    set $foswiki_root "/var/www/foswiki";
    root $foswiki_root;

    access_log  /var/log/nginx/foswiki-access.log;
    error_log   /var/log/nginx/foswiki-error.log debug;

    client_max_body_size 10M;

    location = / {
        root $foswiki_root;
        rewrite .* /Main/WebHome;
    }

    # Note that this does not support utf-8 web names.
    location ~ ^/([A-Z_].*)$ {
        rewrite ^/(.*)$ /bin/view/$1;
    }

    location ~ (^/pub) {
        allow all;
    }
    # Bootstrap will set pub to '/bin/../pub'   so only send 'bin/(alpha)' to fastcgi
    location ~ ^/bin/([a-z]+) {
           fastcgi_param            SCRIPT_NAME     $1;
           gzip off;
           #fastcgi_pass             unix:/var/run/nginx/foswiki.sock;
           fastcgi_pass             127.0.0.1:9000;
           fastcgi_split_path_info  ^(/bin/\w+)(.*);
           fastcgi_param            SCRIPT_FILENAME $foswiki_root/$fastcgi_script_name;
           fastcgi_param            SCRIPT_NAME     $fastcgi_script_name;
           fastcgi_param            PATH_INFO       $fastcgi_path_info;
           include fastcgi_params;
       }

    location ~ (^/lib|^/data|^/locale|^/templates|^/tools|^/work) {
        deny all;
    }

This is the status of the foswiki service:
● foswiki.service - LSB: Start the foswiki backend server.
   $ Loaded: loaded (/etc/init.d/foswiki; bad; vendor preset: enabled)
   $ Active: active (exited) since Wed 2017-05-17 00:16:13 CDT; 3 days ago
     Docs: man:systemd-sysv-generator(8)
    Tasks: 0
   $ Memory: 0B
      $ CPU: 0

Looks like I'm able to reach the pub/files:

curl -LI wiki.hatandslash.com/pub/System/ProjectLogos/foswiki-logo.png
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.0 (Ubuntu)
Date: Sat, 20 May 2017 06:32:57 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://wiki.hatandslash.com/pub/System/ProjectLogos/foswiki-logo.png

HTTP/1.1 200 OK
Server: nginx/1.10.0 (Ubuntu)
Date: Sat, 20 May 2017 06:32:57 GMT
Content-Type: image/png
Content-Length: 3267
Last-Modified: Sun, 12 Feb 2017 21:59:40 GMT
Connection: keep-alive
ETag: "58a0dacc-cc3"
Strict-Transport-Security: max-age=63072000; includeSubdomains
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
Accept-Ranges: bytes

The access log and error log returns this after trying to open the page through chrome:

189.181.200.229 - - [20/May/2017:01:34:36 -0500] "GET / HTTP/2.0" 403 92 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit /537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36"

foswiki-error.log:
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL certificate status callback
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_do_handshake: -1
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_get_error: 2
2017/05/20 01:41:13 [debug] 28207#28207: *778 reusable connection: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL handshake handler: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 ssl new session: 309E1DB7:32:160
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_do_handshake: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL: TLSv1.2, cipher: "ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH A$
2017/05/20 01:41:13 [debug] 28207#28207: *778 init http2 connection
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CE6D590:512 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CE63A50:4096 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 add cleanup: 000056545CE6E4E0
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CE61DC0:512 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 send SETTINGS frame ack:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 send WINDOW_UPDATE frame sid:0, window:2147418112
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 read handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: 24
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: 27
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: 13
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: 236
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: -1
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_get_error: 2
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 preface verified
2017/05/20 01:41:13 [debug] 28207#28207: *778 process http2 frame type:4 f:0 l:18 sid:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 send SETTINGS frame ack:1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame complete pos:000056545CF33163 end:000056545CF3325C
2017/05/20 01:41:13 [debug] 28207#28207: *778 process http2 frame type:8 f:0 l:4 sid:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 WINDOW_UPDATE frame sid:0 window:15663105
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame complete pos:000056545CF33170 end:000056545CF3325C
2017/05/20 01:41:13 [debug] 28207#28207: *778 process http2 frame type:1 f:25 l:227 sid:1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 HEADERS frame sid:1 on 0 excl:1 weight:256
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CEC37F0:1024 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CEC4140:4096 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CEC5150:4096 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header name: 2
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 14
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: ":authority: wiki.hatandslash.com"
2017/05/20 01:41:13 [debug] 28207#28207: *778 malloc: 000056545CE6E610:512
2017/05/20 01:41:13 [debug] 28207#28207: *778 malloc: 000056545CEC6160:4096
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 62 free:4096
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header name: 7
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header name: 4

2017/05/20 01:41:13 [debug] 28207#28207: *778 http uri: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http args: ""
2017/05/20 01:41:13 [debug] 28207#28207: *778 http exten: ""
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 18
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack raw string length: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: "upgrade-insecure-requests: 1"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 58 free:4034
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http header: "upgrade-insecure-requests: 1"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header: 58
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 88
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: "user-agent: Mozilla/5.0 (Windows N$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 156 free:3976
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http header: "user-agent: Mozilla/5.0 (Windows NT 6.1; Win64; $
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header: 19
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 56
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: "accept: text/html,application/xhtm$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 112 free:3820
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http header: "accept: text/html,application/xhtml+xml,applicat$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header: 16
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 18
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: "accept-encoding: gzip, deflate, sd$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 70 free:3708
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http header: "accept-encoding: gzip, deflate, sdch, br"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 get indexed header: 17
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack encoded string length: 11
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 add header to hpack table: "accept-language: en-US,en;q=0.8"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 hpack table account: 61 free:3638
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http header: "accept-language: en-US,en;q=0.8"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 http request line: "GET / HTTP/2.0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 generic phase: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 rewrite phase: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script value: "/var/www/foswiki"

2017/05/20 01:41:13 [debug] 28207#28207: 778 http script set $foswiki_root
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebK $
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script regex: "^SiteSucker|^iGetter|^larbin|^LeechGet|^RealDown$
2017/05/20 01:41:13 [notice] 28207#28207: *778 "^SiteSucker|^iGetter|^larbin|^LeechGet|^RealDownload|^Teleport|^We$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script if
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script if: false
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 using configuration "=/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cl:-1 max:10485760
2017/05/20 01:41:13 [debug] 28207#28207: *778 rewrite phase: 3
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script regex: ".*"
2017/05/20 01:41:13 [notice] 28207#28207: *778 ".*" matches "/", client: 189.181.200.229, server: wiki.hatandslash$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "/Main/WebHome"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script regex end
2017/05/20 01:41:13 [notice] 28207#28207: *778 rewritten data: "/Main/WebHome", args: "", client: 189.181.200.229,$
2017/05/20 01:41:13 [debug] 28207#28207: *778 post rewrite phase: 4
2017/05/20 01:41:13 [debug] 28207#28207: *778 uri changes: 11
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: ~ "^/([A-Z_].
)$"
2017/05/20 01:41:13 [debug] 28207#28207: 778 using configuration "^/([A-Z_].)$"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cl:-1 max:10485760
2017/05/20 01:41:13 [debug] 28207#28207: *778 rewrite phase: 3



2017/05/20 01:41:13 [debug] 28207#28207: 778 http script regex: "^/(.)$"
2017/05/20 01:41:13 [notice] 28207#28207: 778 "^/(.)$" matches "/Main/WebHome", client: 189.181.200.229, server:$
2017/05/20 01:41:13 [debug] 28207#28207: 778 http script copy: "/bin/view/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script capture: "Main/WebHome"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script regex end
2017/05/20 01:41:13 [notice] 28207#28207: *778 rewritten data: "/bin/view/Main/WebHome", args: "", client: 189.181$
2017/05/20 01:41:13 [debug] 28207#28207: *778 post rewrite phase: 4
2017/05/20 01:41:13 [debug] 28207#28207: *778 uri changes: 10
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: ~ "^/([A-Z_].
)$"
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: ~ "(^/pub)"
2017/05/20 01:41:13 [debug] 28207#28207: *778 test location: ~ "^/bin/([a-z]+)"
2017/05/20 01:41:13 [debug] 28207#28207: *778 using configuration "^/bin/([a-z]+)"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cl:-1 max:10485760
2017/05/20 01:41:13 [debug] 28207#28207: *778 rewrite phase: 3
2017/05/20 01:41:13 [debug] 28207#28207: *778 post rewrite phase: 4
2017/05/20 01:41:13 [debug] 28207#28207: *778 generic phase: 5
2017/05/20 01:41:13 [debug] 28207#28207: *778 generic phase: 6
2017/05/20 01:41:13 [debug] 28207#28207: *778 generic phase: 7
2017/05/20 01:41:13 [debug] 28207#28207: *778 access phase: 8
2017/05/20 01:41:13 [debug] 28207#28207: *778 access phase: 9
2017/05/20 01:41:13 [debug] 28207#28207: *778 access phase: 10
2017/05/20 01:41:13 [debug] 28207#28207: *778 post access phase: 11
2017/05/20 01:41:13 [debug] 28207#28207: *778 try files phase: 12
2017/05/20 01:41:13 [debug] 28207#28207: *778 http body new buf t:0 f:0 0000000000000000, pos 0000000000000000, si$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http init upstream, client timer: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/var/www/foswiki"
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CF25A80:4096 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SCRIPT_NAME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script capture: "view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SCRIPT_NAME: view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SCRIPT_FILENAME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/var/www/foswiki"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/bin/view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SCRIPT_FILENAME: /var/www/foswiki//bin/view"

2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SCRIPT_NAME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/bin/view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SCRIPT_NAME: /bin/view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "PATH_INFO"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/Main/WebHome"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "PATH_INFO: /Main/WebHome"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "QUERY_STRING"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "QUERY_STRING: "
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REQUEST_METHOD"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "GET"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REQUEST_METHOD: GET"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "CONTENT_TYPE"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "CONTENT_TYPE: "
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "CONTENT_LENGTH"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "CONTENT_LENGTH: 0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SCRIPT_NAME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/bin/view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SCRIPT_NAME: /bin/view"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REQUEST_URI"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REQUEST_URI: /"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "DOCUMENT_URI"

2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/bin/view/Main/WebHome"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "DOCUMENT_URI: /bin/view/Main/WebHome"

2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "DOCUMENT_ROOT"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "/var/www/foswiki"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "DOCUMENT_ROOT: /var/www/foswiki"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SERVER_PROTOCOL"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "HTTP/2.0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SERVER_PROTOCOL: HTTP/2.0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REQUEST_SCHEME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "https"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REQUEST_SCHEME: https"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "HTTPS"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "on"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTPS: on"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "GATEWAY_INTERFACE"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "CGI/1.1"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SERVER_SOFTWARE"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "nginx/"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "1.10.0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SERVER_SOFTWARE: nginx/1.10.0"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REMOTE_ADDR"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "189.181.200.229"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REMOTE_ADDR: 189.181.200.229"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REMOTE_PORT"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "51054"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REMOTE_PORT: 51054"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SERVER_ADDR"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "104.131.80.82"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SERVER_ADDR: 104.131.80.82"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SERVER_PORT"

2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "443"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SERVER_PORT: 443"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "SERVER_NAME"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script var: "wiki.hatandslash.com"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "SERVER_NAME: wiki.hatandslash.com"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "REDIRECT_STATUS"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http script copy: "200"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "REDIRECT_STATUS: 200"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_HOST: wiki.hatandslash.com"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_UPGRADE_INSECURE_REQUESTS: 1"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 6.1; Win64;$
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_ACCEPT: text/html,application/xhtml+xml,applica$
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_ACCEPT_ENCODING: gzip, deflate, sdch, br"
2017/05/20 01:41:13 [debug] 28207#28207: *778 fastcgi param: "HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cleanup add: 000056545CEC6130
2017/05/20 01:41:13 [debug] 28207#28207: *778 get rr peer, try: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 stream socket 26
2017/05/20 01:41:13 [debug] 28207#28207: *778 epoll add connection: fd:26 ev:80002005
2017/05/20 01:41:13 [debug] 28207#28207: *778 connect to 127.0.0.1:9000, fd:26 #779
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream connect: -2
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CE60040:128 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer add: 26: 60000:1495262533240
2017/05/20 01:41:13 [debug] 28207#28207: *778 http finalize request: -4, "/bin/view/Main/WebHome?" a:1, c:2
2017/05/20 01:41:13 [debug] 28207#28207: *778 http request count:2 blk:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame complete pos:000056545CF3325C end:000056545CF3325C
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame out: 000056545CE63C08 sid:0 bl:0 len:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame out: 000056545CE63B58 sid:0 bl:0 len:4
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame out: 000056545CE63AA0 sid:0 bl:0 len:18
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CEC7170:512 @16

2017/05/20 01:41:13 [debug] 28207#28207: *778 malloc: 000056545CF26A90:16384
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 27
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 13
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 9
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL to write: 49
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_write: 49
2017/05/20 01:41:13 [debug] 28207#28207: *778 tcp_nodelay
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame sent: 000056545CE63AA0 sid:0 bl:0 len:18
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame sent: 000056545CE63B58 sid:0 bl:0 len:4
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame sent: 000056545CE63C08 sid:0 bl:0 len:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer del: 11: 1495262533140
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream request: "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream send request handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream send request
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream send request body
2017/05/20 01:41:13 [debug] 28207#28207: *778 chain writer buf fl:0 s:928
2017/05/20 01:41:13 [debug] 28207#28207: *778 chain writer in: 000056545CF25F18
2017/05/20 01:41:13 [debug] 28207#28207: *778 writev: 928 of 928
2017/05/20 01:41:13 [debug] 28207#28207: *778 chain writer out: 0000000000000000
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer del: 26: 1495262533240
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer add: 26: 60000:1495262533246
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream request: "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream process header
2017/05/20 01:41:13 [debug] 28207#28207: *778 malloc: 000056545CF2AAA0:4096
2017/05/20 01:41:13 [debug] 28207#28207: *778 recv: fd:26 216 of 4096
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 07
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00

2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 62
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 06
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record length: 98
2017/05/20 01:41:13 [error] 28207#28207: *778 FastCGI sent in stderr: "Access to the script '/var/www/foswiki//bin/$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 06
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 50
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record length: 80
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi parser: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi header: "Status: 403 Forbidden"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi parser: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi header: "Content-type: text/html; charset=UTF-8"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi parser: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi header done
2017/05/20 01:41:13 [debug] 28207#28207: *778 xslt filter header
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 header filter
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 output header: ":status: 403"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 output header: "server: nginx/1.10.0 (Ubuntu)"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 output header: "date: Sat, 20 May 2017 06:41:13 GMT"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 output header: "content-type: text/html; charset=UTF-8"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2:1 create HEADERS frame 000056545CF261B0: len:68
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cleanup add: 000056545CF262A8
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame out: 000056545CF261B0 sid:1 bl:1 len:68
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 9

2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 68
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2:1 HEADERS frame 000056545CF261B0 was sent
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame sent: 000056545CF261B0 sid:1 bl:1 len:68
2017/05/20 01:41:13 [debug] 28207#28207: *778 http cacheable: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream process upstream
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe read upstream: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe preread: 31
2017/05/20 01:41:13 [debug] 28207#28207: *778 readv: 1, last:3880
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe recv chain: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe buf free s:0 t:1 f:0 000056545CF2AAA0, pos 000056545CF2AB59, siz$
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe length: -1
2017/05/20 01:41:13 [debug] 28207#28207: *778 input buf #0 000056545CF2AB59
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 03
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 01
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 08
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record byte: 00
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi record length: 8
2017/05/20 01:41:13 [debug] 28207#28207: *778 http fastcgi sent end request
2017/05/20 01:41:13 [debug] 28207#28207: *778 input buf 000056545CF2AB59 15
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe write downstream: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe write downstream flush in
2017/05/20 01:41:13 [debug] 28207#28207: *778 http output filter "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http copy filter: "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 image filter
2017/05/20 01:41:13 [debug] 28207#28207: *778 xslt filter body
2017/05/20 01:41:13 [debug] 28207#28207: *778 http postpone filter "/bin/view/Main/WebHome?" 000056545CF263E0

2017/05/20 01:41:13 [debug] 28207#28207: *778 write new buf t:1 f:0 000056545CF2AAA0, pos 000056545CF2AB59, size: 1$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http write filter: l:0 f:0 s:15
2017/05/20 01:41:13 [debug] 28207#28207: *778 http copy filter: 0 "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 pipe write downstream done
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer: 26, old: 1495262533246, new: 1495262533247
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream exit: 0000000000000000
2017/05/20 01:41:13 [debug] 28207#28207: *778 finalize http upstream request: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 finalize http fastcgi request
2017/05/20 01:41:13 [debug] 28207#28207: *778 free rr peer 1 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 close http upstream connection: 26
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CE60040, unused: 48
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer del: 26: 1495262533246
2017/05/20 01:41:13 [debug] 28207#28207: *778 reusable connection: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http upstream temp fd: -1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http output filter "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http copy filter: "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 image filter
2017/05/20 01:41:13 [debug] 28207#28207: *778 xslt filter body
2017/05/20 01:41:13 [debug] 28207#28207: *778 http postpone filter "/bin/view/Main/WebHome?" 00007FFF05E0C790
2017/05/20 01:41:13 [debug] 28207#28207: *778 write old buf t:1 f:0 000056545CF2AAA0, pos 000056545CF2AB59, size: 1$
2017/05/20 01:41:13 [debug] 28207#28207: *778 write new buf t:0 f:0 0000000000000000, pos 0000000000000000, size: 0$
2017/05/20 01:41:13 [debug] 28207#28207: *778 http write filter: l:1 f:0 s:15
2017/05/20 01:41:13 [debug] 28207#28207: *778 http write filter limit 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2:1 create DATA frame 000056545CF261B0: len:15 flags:1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame out: 000056545CF261B0 sid:1 bl:0 len:15
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 9
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL buf copy: 15
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL to write: 101
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_write: 101
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2:1 DATA frame 000056545CF261B0 was sent

2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame sent: 000056545CF261B0 sid:1 bl:0 len:15
2017/05/20 01:41:13 [debug] 28207#28207: *778 http write filter 0000000000000000
2017/05/20 01:41:13 [debug] 28207#28207: *778 http copy filter: 0 "/bin/view/Main/WebHome?"
2017/05/20 01:41:13 [debug] 28207#28207: *778 http finalize request: 0, "/bin/view/Main/WebHome?" a:1, c:1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http request count:1 blk:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 close stream 1, queued 0, processing 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 http close request
2017/05/20 01:41:13 [debug] 28207#28207: *778 http log handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CF2AAA0
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CEC4140, unused: 2
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CEC5150, unused: 8
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CF25A80, unused: 1107
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CEC37F0, unused: 612
2017/05/20 01:41:13 [debug] 28207#28207: *778 post event 000056545CF022A0
2017/05/20 01:41:13 [debug] 28207#28207: *778 delete posted event 000056545CF022A0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 handle connection handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CE63A50, unused: 2960
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CF26A90
2017/05/20 01:41:13 [debug] 28207#28207: *778 reusable connection: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer add: 11: 180000:1495262653247
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 idle handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 reusable connection: 0
2017/05/20 01:41:13 [debug] 28207#28207: *778 posix_memalign: 000056545CE63A50:4096 @16
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 read handler
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: 9
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_read: -1
2017/05/20 01:41:13 [debug] 28207#28207: *778 SSL_get_error: 2
2017/05/20 01:41:13 [debug] 28207#28207: *778 process http2 frame type:4 f:1 l:0 sid:0
2017/05/20 01:41:13 [debug] 28207#28207: *778 http2 frame complete pos:000056545CF33139 end:000056545CF33139
2017/05/20 01:41:13 [debug] 28207#28207: *778 free: 000056545CE63A50, unused: 4016

2017/05/20 01:41:13 [debug] 28207#28207: *778 reusable connection: 1
2017/05/20 01:41:13 [debug] 28207#28207: *778 event timer: 11, old: 1495262653247, new: 1495262653334

-- RRamirezM - 20 May 2017

Looks like your service is not remaining running! It's showing Tasks:0, and active (exited) status. Here is what a running status would look like:
● foswiki.service - LSB: Start the foswiki backend server.
   Loaded: loaded (/etc/init.d/foswiki; bad; vendor preset: enabled)
   Active: active (running) since Sat 2017-05-20 17:05:11 EDT; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5662 ExecStart=/etc/init.d/foswiki start (code=exited, status=0/SUCCESS)
    Tasks: 2
   Memory: 30.9M
      CPU: 286ms
   CGroup: /system.slice/foswiki.service
           ├─5670 foswiki-fcgi-p
           └─5671 foswiki-fcg

Take a look at the results from journalctl -xe. You should see the AUTOCONFIGURE bootstrap messages, and/or errors that might say why the back end is not running.

-- Main.GeorgeClark - 20 May 2017 - 23:06

I got this from the journalctl:
Configuration file /etc/systemd/system/pm2.service is marked executable. Pl
May 21 00:43:14 HatAndSlash systemd[1]: Starting LSB: Start the foswiki backend server....
-- Subject: Unit foswiki.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit foswiki.service has begun starting up.
May 21 00:43:14 HatAndSlash foswiki[7396]:  * Starting Foswiki backend server foswiki
May 21 00:43:14 HatAndSlash foswiki[7396]: start-stop-daemon: unable to stat /var/www/foswiki/core/bin/foswiki.fcgi
May 21 00:43:14 HatAndSlash foswiki[7396]:    ...fail!
May 21 00:43:14 HatAndSlash systemd[1]: foswiki.service: Control process exited, code=exited status=1
May 21 00:43:14 HatAndSlash systemd[1]: Failed to start LSB: Start the foswiki backend server..
-- Subject: Unit foswiki.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit foswiki.service has failed.
--
-- The result is failed.
May 21 00:43:14 HatAndSlash systemd[1]: foswiki.service: Unit entered failed state.
May 21 00:43:14 HatAndSlash systemd[1]: foswiki.service: Failed with result 'exit-code'.
May 21 00:43:14 HatAndSlash sudo[7366]: pam_unix(sudo:session): session closed for user root
May 21 00:43:34 HatAndSlash sshd[7405]: Invalid user bbuser from 52.67.28.32
May 21 00:43:34 HatAndSlash sshd[7405]: input_userauth_request: invalid user bbuser [preauth]
May 21 00:43:34 HatAndSlash sshd[7405]: Received disconnect from 52.67.28.32 port 39988:11: Normal Shutdown, Thank
May 21 00:43:34 HatAndSlash sshd[7405]: Disconnected from 52.67.28.32 port 39988 [preauth]
May 21 00:43:35 HatAndSlash sudo[7407]:    bizar : TTY=pts/0 ; PWD=/home/bizar ; USER=root ; COMMAND=/bin/journalct
May 21 00:43:35 HatAndSlash sudo[7407]: pam_unix(sudo:session): session opened for user root by bizar(uid=0)

-- RRamirezM - 21 May 2017

I found the error, my tools/foswiki.defaults file was pointing to the path /var/www/foswiki/core instead of /var/www/foswiki/, but now I have this problem:
May 21 01:00:23 [[HatAndSlash][HatAndSlash]] systemd[1]: Starting LSB: Start the foswiki backend server.... 
 -- Subject: Unit foswiki.service has begun start-up 
 -- Defined-By: systemd 
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
 -- 
 -- Unit foswiki.service has begun starting up. 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   * Starting Foswiki backend server foswiki 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: Content-type: text/plain 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: **** ERROR **** 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: The following critical dependencies are missing from your installation: 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   ... CGI::Session: Can't locate CGI/Session.pm in @INC 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   ... Crypt::PasswdMD5: Can't locate Crypt/PasswdMD5.pm in @INC 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   ... File::Copy::Recursive: Can't locate File/Copy/Recursive.pm in @INC 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   ... JSON: Can't locate JSON.pm in @INC 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: Please install these modules and then ensure all dependencies are instal 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   -   viewing the [[System.PerlDependencyReport][System.PerlDependencyReport]] in your local Foswki,   or 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:   -   running the CLI shell script tools/dependencies from your server's c 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: You can get a complete list of Perl module dependencies by viewing Syste 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: on your local system or at http://foswiki.org/System/SystemRequirements. 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: Foswiki will not operate correctly unless the required dependencies are 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: Your current library search path @INC contains: 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /var/www/foswiki/lib 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     . 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /etc/perl 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/local/share/perl/5.22.1 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/lib/x86_64-linux-gnu/perl5/5.22 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/share/perl5 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/lib/x86_64-linux-gnu/perl/5.22 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/share/perl/5.22 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/local/lib/site_perl 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /usr/lib/x86_64-linux-gnu/perl-base 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     /var/www/foswiki/lib/CPAN/lib 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]: You can adjust the search path by editing bin/LocalLib.cfg 
 May 21 01:00:23 [[HatAndSlash][HatAndSlash]] foswiki[8371]:     ...done.

-- RRamirezM - 21 May 2017

I have found the answer to the previous problems by following instructions in this thread https://foswiki.org/Support/Question1866. But now the error is this one:
May 21 01:14:33 [[HatAndSlash][HatAndSlash]] sudo[21505]: pam_unix(sudo:session): session closed for user root 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] sudo[21545]:     bizar : TTY=pts/2 ; PWD=/home/bizar ; USER=root ; COMMAND=/usr/sbin/ser 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] sudo[21545]: pam_unix(sudo:session): session opened for user root by bizar(uid=0) 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] systemd[1]: Configuration file /etc/systemd/system/pm2.service is marked executable. Pl 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] systemd[1]: Starting LSB: Start the foswiki backend server.... 
 -- Subject: Unit foswiki.service has begun start-up 
 -- Defined-By: systemd 
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
 -- 
 -- Unit foswiki.service has begun starting up. 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:   * Starting Foswiki backend server foswiki 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Bootstrap Phase 1: $ENV1 = { 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:            'HOME' => '/var/www', 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:            'LANG' => 'en_US.UTF-8', 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:            'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin', 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:            'PWD' => '/', 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:            '_SYSTEMCTL_SKIP_REDIRECT' => 'true' 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]:          }; 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Found Bin dir: /var/www/foswiki/bin, Script name: foswiki.f 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[LocalesDir][LocalesDir]] = /var/www/foswiki/locale 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[PubDir][PubDir]] = /var/www/foswiki/pub 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[WorkingDir][WorkingDir]] = /var/www/foswiki/working 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[DataDir][DataDir]] = /var/www/foswiki/data 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[ToolsDir][ToolsDir]] = /var/www/foswiki/tools 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[ScriptDir][ScriptDir]] = /var/www/foswiki/bin 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: [[TemplateDir][TemplateDir]] = /var/www/foswiki/templates 
 May 21 01:14:38 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Set initial {Site}{Locale} to   en_US.UTF-8 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Store configured for [[PlainFile][PlainFile]] 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Detected [[FastCGI][FastCGI]], mod_perl or MS Windows. {Store}{SearchAlg 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Data Storage allows NFC filenames 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]: AUTOCONFIG: Detected OS UNIX:   [[DetailedOS][DetailedOS]]: linux 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]: bind/listen: Address already in use 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] foswiki[21575]:     ...fail! 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] systemd[1]: foswiki.service: Control process exited, code=exited status=1 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] systemd[1]: Failed to start LSB: Start the foswiki backend server.. 
 -- Subject: Unit foswiki.service has failed 
 -- Defined-By: systemd 
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel 
 -- 
 -- Unit foswiki.service has failed. 
 -- 
 -- The result is failed. 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] systemd[1]: foswiki.service: Unit entered failed state. 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] sudo[21545]: pam_unix(sudo:session): session closed for user root 
 May 21 01:14:39 [[HatAndSlash][HatAndSlash]] systemd[1]: foswiki.service: Failed with result 'exit-code'. 
 May 21 01:14:51 [[HatAndSlash][HatAndSlash]] sudo[21590]:     bizar : TTY=pts/2 ; PWD=/home/bizar ; USER=root ; COMMAND=/bin/systemct 
 May 21 01:14:51 [[HatAndSlash][HatAndSlash]] sudo[21590]: pam_unix(sudo:session): session opened for user root by bizar(uid=0) 
 May 21 01:14:51 [[HatAndSlash][HatAndSlash]] sudo[21590]: pam_unix(sudo:session): session closed for user root 
 May 21 01:14:59 [[HatAndSlash][HatAndSlash]] sudo[21592]:     bizar : TTY=pts/2 ; PWD=/home/bizar ; USER=root ; COMMAND=/bin/journalc 
 May 21 01:14:59 [[HatAndSlash][HatAndSlash]] sudo[21592]: pam_unix(sudo:session): session opened for user root by bizar(uid=0)

-- RRamirezM - 21 May 2017

I have been able to fix the previous issue as the error statement suggests:

May 21 01:14:39 HatAndSlash foswiki[21575]: bind/listen: Address already in use

The socket that foswiki expected to listen was in use, so I fixed that by stopping the service that was using it(such service was not necessary)

And now I'm able to see the wiki startup page

-- RRamirezM - 21 May 2017
 

QuestionForm edit

Subject Installation of Foswiki
Extension FastCGIEngineContrib
Version Foswiki 2.1.3
Status Answered
Related Topics FoswikiOnNginx, nginx
Topic revision: r7 - 21 May 2017, GeorgeClark - This page was cached on 09 Jan 2018 - 09:58.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License