question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nginx and FastCGI - "Primary script unknown"

See original GitHub issue

Hi,

I’ve just downloaded the framework from the master branch and after running docker-compose up -d, I got the following error when requesting for http://localhost:

nginx_1  | 2017/06/01 12:25:31 [error] 7#7: *11 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://172.18.0.4:9000", host: "localhost"

nginx returns a 404 status code response with the text “File not found” in the content.

Im using Linux. Any ideas?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
teohhanhuicommented, Jun 8, 2017

Oh, okay. It’s actually a problem with the .zip archive not preserving the correct file permissions. I’d suggest you do a git clone instead (as you should). You could also use the tarball (.tar.gz).

4reactions
renan-tarantocommented, Jun 8, 2017

Solved. Cloning instead of downloading the zip solves. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nginx 1 FastCGI sent in stderr: “Primary script unknown”
The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive (or incorrect ...
Read more >
How to debug "FastCGI sent in stderr: Primary script unknown ...
To resolve "Primary script unknown" problem: if you see "GET /" without a correct php file name, then it's your nginx conf problem....
Read more >
FastCGI sent in stderr: "Primary script unknown" while reading ...
The error message “primary script unknown” is almost always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param directive ...
Read more >
[SOLVED] nginx + php-fpm - file not found, primary script ...
Hello, I just updated packages and now php-fpm seems not working at all. It gives the errors "File not found" in the browser,...
Read more >
FastCGI sent in stderr: "Primary script unknown
I'm running a nodejs project with nginx ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found