Code Monkey home page Code Monkey logo

Comments (6)

vkholodkov avatar vkholodkov commented on August 18, 2024

This could happen either because temporary directory specified by upload_store directive is not accessible by Nginx or because a backend has returned error 503.

from nginx-upload-module.

zhynxn avatar zhynxn commented on August 18, 2024

Hi Valery,
Do you mean the proxy_pass http:localhost:8080 is not accessible?

I tried to use passenger_enabled on (I installed passenger).
Then I got another error
The page is temporarily unavailable

Could you point me how to solve the problem?
Thank you so much.
Yanxin

On Mon, Mar 28, 2011 at 3:06 AM, vkholodkov <
[email protected]>wrote:

This could happen either because temporary directory specified by
upload_store directive is not accessible by Nginx or because a backend has
returned error 503.

Reply to this email directly or view it on GitHub:
https://github.com/vkholodkov/nginx-upload-module/issues/9#comment_925378

from nginx-upload-module.

vkholodkov avatar vkholodkov commented on August 18, 2024

Let's say you specified upload_store /var/tmp;
If /var/tmp does not exist, Nginx will return 503.

Likewise, if proxied web server in proxy_pass returned 503, Nginx will return 503.

from nginx-upload-module.

zhynxn avatar zhynxn commented on August 18, 2024

Hi Valery,
I use root to run nginx.
However, in error.log, I find the error msg:
8 2011/03/28 12:43:53 [error] 15977#0: _1 failed to create output file
"/home/virus/tmp/0000000001" for "index. html" (_13: Permission denied*),
client: 127.0.0.1, server: , request: "POST /upload HTTP/1.1", host:
"127.0.0. 1", referrer: "http://127.0.0.1/"

Do you think it is the reason to cause upload failure?
How to solve it then?
Thank you very much.
Yanxin

On Mon, Mar 28, 2011 at 8:50 AM, vkholodkov <
[email protected]>wrote:

Let's say you specified upload_store /var/tmp;
If /var/tmp does not exist, Nginx will return 503.

Likewise, if proxied web server in proxy_pass returned 503, Nginx will
return 503.

Reply to this email directly or view it on GitHub:
https://github.com/vkholodkov/nginx-upload-module/issues/9#comment_926608

from nginx-upload-module.

zhynxn avatar zhynxn commented on August 18, 2024

Hello Valery,
You are right. I do not change the permission for /tmp previously.

Now I change the the files and configs. I encountered other problems then.
I posed my config and files in the ruby forum
http://www.ruby-forum.com/topic/1379755#989690

Could you look at it and help me to locate the problem ?
Thank you so much.
Yanxin

On Mon, Mar 28, 2011 at 12:47 PM, Yanxin Zhang [email protected] wrote:

Hi Valery,
I use root to run nginx.
However, in error.log, I find the error msg:
8 2011/03/28 12:43:53 [error] 15977#0: _1 failed to create output file
"/home/virus/tmp/0000000001" for "index. html" (_13: Permission denied
*), client: 127.0.0.1, server: , request: "POST /upload HTTP/1.1", host:
"127.0.0. 1", referrer: "http://127.0.0.1/"

Do you think it is the reason to cause upload failure?
How to solve it then?
Thank you very much.
Yanxin

On Mon, Mar 28, 2011 at 8:50 AM, vkholodkov <
[email protected]>wrote:

Let's say you specified upload_store /var/tmp;
If /var/tmp does not exist, Nginx will return 503.

Likewise, if proxied web server in proxy_pass returned 503, Nginx will
return 503.

Reply to this email directly or view it on GitHub:
https://github.com/vkholodkov/nginx-upload-module/issues/9#comment_926608

from nginx-upload-module.

zhynxn avatar zhynxn commented on August 18, 2024

Hello,
I finally realized
I do not need to start backend server 8080 at all.

Although I still have error "502 Bad Gateway"

342 2011/03/28 17:47:44 [error] 30032#0: *1 connect() failed (111:
Connection refused) while connecting to upstream, client: 127.0.0.1,
server: , request: "POST /upload HTTP/1.1", upstream: "http://127.0.0.
1:8080/upload", host: "127.0.0.1", referrer: "http://127.0.0.1/upload.html"

But the file is uploaded into /tmp already.

what a magic!!

BTW, how to fix this error then?

On Mon, Mar 28, 2011 at 4:31 PM, Yanxin Zhang [email protected] wrote:

Hello Valery,
You are right. I do not change the permission for /tmp previously.

Now I change the the files and configs. I encountered other problems then.
I posed my config and files in the ruby forum
http://www.ruby-forum.com/topic/1379755#989690

Could you look at it and help me to locate the problem ?
Thank you so much.
Yanxin

On Mon, Mar 28, 2011 at 12:47 PM, Yanxin Zhang [email protected] wrote:

Hi Valery,
I use root to run nginx.
However, in error.log, I find the error msg:
8 2011/03/28 12:43:53 [error] 15977#0: _1 failed to create output file
"/home/virus/tmp/0000000001" for "index. html" (_13: Permission
denied*), client: 127.0.0.1, server: , request: "POST /upload HTTP/1.1",
host: "127.0.0. 1", referrer: "http://127.0.0.1/"

Do you think it is the reason to cause upload failure?
How to solve it then?
Thank you very much.
Yanxin

On Mon, Mar 28, 2011 at 8:50 AM, vkholodkov <
[email protected]>wrote:

Let's say you specified upload_store /var/tmp;
If /var/tmp does not exist, Nginx will return 503.

Likewise, if proxied web server in proxy_pass returned 503, Nginx will
return 503.

Reply to this email directly or view it on GitHub:
https://github.com/vkholodkov/nginx-upload-module/issues/9#comment_926608

from nginx-upload-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.