Code Monkey home page Code Monkey logo

Comments (4)

pigfu avatar pigfu commented on July 18, 2024

I had the same problem. How did you solve it?

from nginx-upload-module.

kocian avatar kocian commented on July 18, 2024

I had the same problem. How did you solve it?

I dont remember, sorry

from nginx-upload-module.

fdintino avatar fdintino commented on July 18, 2024

@pigfu this ticket was opened against a very old version of nginx-upload-module. If you're experiencing a similar issue with the latest version, could you provide an example of your config and a capture of the requests, so I can try to reproduce (and thus fix) the issue?

from nginx-upload-module.

pigfu avatar pigfu commented on July 18, 2024

I encountered this problem in v1.8 and v1.2,It's is caused by [upload_pass /nginxupload.php?$args],if my configuration is [upload_pass /nginxupload.php],The nginx works well.

config:

location /upload {

		# Pass altered request body to this location
		upload_pass   /nginxupload.php?$args;

		# Store files to this directory
		# The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should exist
		upload_store /tmp ;

		# Allow uploaded files to be read only by user
		upload_store_access all:rw;

		# Set specified fields in request body
		upload_set_form_field $upload_field_name.name "$upload_file_name";
		upload_set_form_field $upload_field_name.content_type "$upload_content_type";
		upload_set_form_field $upload_field_name.path "$upload_tmp_path";

		# Inform backend about hash and size of a file
		upload_aggregate_form_field "$upload_field_name.md5" "$upload_file_md5";
		upload_aggregate_form_field "$upload_field_name.size" "$upload_file_size";

		upload_pass_form_field "^submit$|^description$";
		upload_pass_args on;
		upload_cleanup 400 404 499 500-505;
		track_uploads proxied 30s;
	}

coredump:

Core was generated by `nginx: worker process '.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000004ecadb in ngx_http_upload_eval_state_path (r=0x1c6f150) at ../nginx_modules/nginx-upload-module-2.255/ngx_http_upload_module.c:959

warning: Source file is more recent than executable.
959 if(ulcf->state_store_path == NULL){
(gdb) bt
#0 0x00000000004ecadb in ngx_http_upload_eval_state_path (r=0x1c6f150) at ../nginx_modules/nginx-upload-module-2.255/ngx_http_upload_module.c:959
#1 ngx_http_upload_handler (r=0x1c6f150) at ../nginx_modules/nginx-upload-module-2.255/ngx_http_upload_module.c:857
#2 0x0000000000489768 in ngx_http_core_content_phase (r=0x1c6f150, ph=0x1ce1a48) at src/http/ngx_http_core_module.c:1386
#3 0x0000000000483e13 in ngx_http_core_run_phases (r=0x1c6f150) at src/http/ngx_http_core_module.c:860
#4 0x0000000000483f26 in ngx_http_handler (r=) at src/http/ngx_http_core_module.c:843
#5 0x000000000048f60a in ngx_http_process_request (r=0x1c6f150) at src/http/ngx_http_request.c:1921
#6 0x000000000048fc48 in ngx_http_process_request_headers (rev=) at src/http/ngx_http_request.c:1348
#7 0x00000000004901b8 in ngx_http_process_request_line (rev=0x7fa9d2a04490) at src/http/ngx_http_request.c:1028
#8 0x00000000004907b8 in ngx_http_wait_request_handler (rev=0x7fa9d2a04490) at src/http/ngx_http_request.c:503
#9 0x0000000000478e3f in ngx_epoll_process_events (cycle=0x1b676e0, timer=, flags=) at src/event/modules/ngx_epoll_module.c:902
#10 0x000000000046f4ab in ngx_process_events_and_timers (cycle=0x1b676e0) at src/event/ngx_event.c:242
#11 0x0000000000476e22 in ngx_worker_process_cycle (cycle=0x1b676e0, data=) at src/os/unix/ngx_process_cycle.c:749
#12 0x0000000000475571 in ngx_spawn_process (cycle=0x1b676e0, proc=0x476d8f <ngx_worker_process_cycle>, data=0x1, name=0x68ee22 "worker process", respawn=-3)
at src/os/unix/ngx_process.c:198
#13 0x00000000004762aa in ngx_start_worker_processes (cycle=0x1b676e0, n=2, type=-3) at src/os/unix/ngx_process_cycle.c:358
#14 0x00000000004774b6 in ngx_master_process_cycle (cycle=0x1b676e0) at src/os/unix/ngx_process_cycle.c:130
#15 0x0000000000450e41 in main (argc=, argv=) at src/core/nginx.c:375

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.