• Resolved Megunticook

    (@megunticook)


    After having some odd problems with a dev server I built in Ubuntu using the Windows 10 subsystem for Linux, I decided to start from scratch and am running right back into the same problems (CSS doesn’t always load, sporadic “white screen”, pages become unresponsive). Can’t seem to figure out what the problem is.

    This is Ubuntu 18.04 LTS, NGINX 1.16.1, PHP 7.2.19, and MariaDB 10.1.41.

    I looked in the nginx error log and saw this:

    2019/08/21 15:33:31 [emerg] 2621#2621: io_setup() failed (38: Function not implemented)
    2019/08/21 15:34:25 [crit] 2621#2621: *3 connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
    2019/08/21 15:35:42 [error] 2621#2621: *3 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost"
    2019/08/21 16:29:47 [emerg] 2715#2715: io_setup() failed (38: Function not implemented)
    2019/08/21 16:36:02 [error] 2715#2715: *19 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-styles.php?c=0&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l1$2019/08/21 16:36:02 [error] 2715#2715: *13 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,jquery-ui-core,thickbox,plugin-install,underscore,wp-util,wp-a11y,updates,svg-painter&ver=5.2.2 HTTP/1.1", upstream: "fastcgi://uni$2019/08/21 16:37:19 [error] 2715#2715: *54 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l1$2019/08/21 16:37:20 [error] 2715#2715: *35 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,jquery-ui-core,jquery-&load%5B%5D=ui-widget,jquery-ui-$2019/08/21 16:41:04 [error] 2715#2715: *68 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-styles.php?c=1&dir=ltr&load%5B%5D=dashicons,admin-bar,common,forms,admin-menu,dashboard,list-tables,edit,revisions,media,themes,about,nav-menus,wp-pointer,widgets&load%5B%5D=,site-icon,l1$2019/08/21 16:41:04 [error] 2715#2715: *66 upstream timed out (110: Connection timed out) while reading upstream, client: 127.0.0.1, server: local.wp-sandbox.com, request: "GET /wp-admin/load-scripts.php?c=1&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comme

    I checked /run/php/php7.2-fpm.sock and that file exists in that location:

    doctor@ED-Workstation:/run/php$ ls -la
    total 0
    drwxr-xr-x 1 www-data www-data 512 Aug 21 15:34 .
    drwxr-xr-x 1 root     root     512 Aug 21 16:49 ..
    -rw-r--r-- 1 root     root       4 Aug 21 15:34 php7.2-fpm.pid
    srw-rw---- 1 nginx    nginx      0 Aug 21 15:34 php7.2-fpm.sock

    I notice the file name is colored pink. Does that mean it’s a symlink? What exactly is the problem here?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Pink is whatever you defined it to be. The s in the permissions block indicates symbolic link.

    You are asking for server help in a WordPress forum. You really should ask somewhere else for your server questions.

    Thread Starter Megunticook

    (@megunticook)

    Agreed, and I think I may have resolved this anyway since I posted.

    Seems to be a WSL issue, if anybody else runs into this and is looking for a solution, try using this in your location ~ \.php$ block:

    proxy_set_header X-Forwarded-Proto $scheme;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_index index.php;
    fastcgi_buffering off; # This must be here for WSL as of 11/28/2018
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘strangeness in fresh localhost install’ is closed to new replies.