Coder Social home page Coder Social logo

upload large WHL files about devpi HOT 9 OPEN

Jimmyshi7 avatar Jimmyshi7 commented on September 22, 2024
upload large WHL files

from devpi.

Comments (9)

fschulze avatar fschulze commented on September 22, 2024

Do you have a web server like nginx as a proxy in front of devpi-server? If so, you have to allow bigger uploads there. For nginx the setting is client_max_body_size. You should also check the error logs on the server side to see why the connection was reset.

from devpi.

Jimmyshi7 avatar Jimmyshi7 commented on September 22, 2024

@fschulze
Thanks for your reply.
I have checked. I do not have any web server in front of devpi-server. It seems that the error is occur in devpi client. Beacuse it didn't print any error message in devpi-server when I execute upload.

Do you have a web server like nginx as a proxy in front of devpi-server? If so, you have to allow bigger uploads there. For nginx the setting is client_max_body_size. You should also check the error logs on the server side to see why the connection was reset.

from devpi.

fschulze avatar fschulze commented on September 22, 2024

Is this a one time error, or does it always happen when you try to upload? Is devpi-server on the same machine, or remote? The error is a connection related error, so it might have been a network glitch.

from devpi.

Jimmyshi7 avatar Jimmyshi7 commented on September 22, 2024

Always when upload large WHL files. If the size of WHL is not so large, it can upload successfully. Devpi-server is on the same machine.

from devpi.

fschulze avatar fschulze commented on September 22, 2024

Try setting a bigger limit on devpi-server with --max-request-body-size 2147483648 (the default is 1073741824), that will pass the max_request_body_size setting to waitress. Please let me know if that fixes your issue, but leave this ticket open, so I can add the information to the documentation, where it is currently missing.

from devpi.

Jimmyshi7 avatar Jimmyshi7 commented on September 22, 2024

--max-request-body-size 2147483648

It worked! The large WHL file has been uploaded successfully. Thank you very much!

from devpi.

fschulze avatar fschulze commented on September 22, 2024

There also seems to be a bug in waitress. It should return 413 Content Too Large instead of aborting/resetting the connection.

from devpi.

SyedSameer95 avatar SyedSameer95 commented on September 22, 2024

Hello. I am having a similar problem while uploading files bigger than 1 GB to devpi using postgres. I have tried using the --max-request-body-size, and increased rhe max_wal_size in postgres, but keep getting the following error:

pg8000.exceptions.DatabaseError: {'S': 'ERROR', 'V': 'ERROR', 'C': '54000', 'M': 'out of memory', 'D': 'Cannot enlarge string buffer containing 0 bytes by 1391196735 more bytes.', 'W': 'COPY files, line 1, column data', 'F': 'stringinfo.c', 'L': '303', 'R': 'enlargeStringInfo'}

Any idea how I could solve this issue ? Thanks

from devpi.

fschulze avatar fschulze commented on September 22, 2024

@SyedSameer95 this seems to be caused by the way devpi-postgresql stores binaries, see the just created #1029

from devpi.

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.