GithubHelp home page GithubHelp logo

Docker: Internal server error about imapsync HOT 6 CLOSED

xyzulu avatar xyzulu commented on June 9, 2024
Docker: Internal server error

from imapsync.

Comments (6)

gilleslamiral avatar gilleslamiral commented on June 9, 2024

The Docker online imapsync service is new. I haven't used it in production. It doesn't use the Apache server but a Perl module named Net::Server::HTTP
I was asking myself recently about the default timeout value of it. Well, I have an answer from you now.
I'll update the image with a better value than the default 60 seconds. 3600 should fix the issue.
https://metacpan.org/pod/Net::Server::HTTP :
...
timeout_header
Defaults to 15 - number of seconds to wait for parsing headers.
timeout_idle
Defaults to 60 - the number of seconds a request can be idle before the request is closed.

from imapsync.

xyzulu avatar xyzulu commented on June 9, 2024

That makes sense.. thanks!

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 9, 2024

Update made, have a go

 docker pull gilleslamiral/imapsync

from imapsync.

xyzulu avatar xyzulu commented on June 9, 2024

That has fixed the 500 error for sure.. I saw a process run for over 4 mins this time. Still, the docker implementation of https://imapsync.lamiral.info/X/ in my case doesn't give the usual 6s feedback. Yet, if I run the same sync with the same container on the same hardware via the cli.. I get plenty of feedback (visual progress).

It's not my specialty, but perhaps another web server ie nginx might be better in the container?? I think the web server part here is not optimal.

Edit: there is also Caddy

from imapsync.

gilleslamiral avatar gilleslamiral commented on June 9, 2024

With the Net::Server::HTTP server, the running feedback interval is not based on time, it is every 4 Kb of output. It's not my decision, I discovered it as you did. Anyway, the imap job is done, so that's not a first bug issue for me, even I did spend hours on it, just to understand where it comes from. I'll post a feature request to Net::Server::HTTP maintainers.

For Ngnix, I just know its name so not for now.
It could be Apache, I know it quite well, but I still have to learn, play and master the Docker way of it.

Caddy? I just learned the name...

from imapsync.

xyzulu avatar xyzulu commented on June 9, 2024

I did a big sync today.. so far so good.. thanks for your work on this docker version..

from imapsync.

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.