Connection lost message displays before session timeout with Nginx (OD-2641)
Robin Shen opened 2 weeks ago

If Nginx is configured as frontend of OneDev. The connection lost message often displays even if session is not timed out.

  • OneDev commented 2 weeks ago

    State changed as code fixing the issue is committed (bf76d776)

  • OneDev changed state to 'Closed' 2 weeks ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 2 weeks ago

    State changed as build OD-6906 (13.1.6) is successful

  • OneDev changed state to 'Released' 2 weeks ago
    Previous Value Current Value
    Closed
    Released
  • bufferUnderrun commented 1 week ago

    Hi @robin

    I've updated from v13.1.0 to v13.1.6 and I have this error message whereas it should be fixed.

    image.png

    image_2.png

    I confirm that onedev is behind an nginx instance

  • bufferUnderrun changed state to 'Open' 1 week ago
    Previous Value Current Value
    Released
    Open
  • Robin Shen commented 1 week ago

    Is this happening if connect to port 6610 directly? If not, please share your nginx installation details including OS, version, and config files.

  • bufferUnderrun commented 1 week ago

    It's a nixos config file but you can see this quite the same as regulard nginx config.

        services.nginx.virtualHosts."xxxxx.fr" = {
            extraConfig = ''
                access_log    /var/log/nginx/xxxxx.fr.access.log;
                error_log     /var/log/nginx/xxxxxx.fr.error.log error;
    
                client_max_body_size 1000M;
            '';
            locations."/wicket/websocket" = {
                proxyPass = "http://localhost:6610/wicket/websocket";
                proxyWebsockets = true;
            };
            locations."/~server" = {
                proxyPass = "http://localhost:6610/~server";
                proxyWebsockets = true;
            };
            locations."/" = {
                proxyPass = "http://localhost:6610/";
            };
            forceSSL = true;
            enableACME = true;
        };
    
  • Robin Shen commented 6 days ago

    Is this happening connecting to 6610 port? What is your current session timeout, and how long this messages appears after no activity?

  • bufferUnderrun commented 6 days ago

    The nginx session timeout is set to its default (60sec).

    I didn't update nginx or change its configuration but only OneDev.

    So I would say there is a regression from OneDev

  • Robin Shen commented 5 days ago

    Is this happening connecting to 6610 port? What is your current session timeout, and how long this messages appears after no activity?

    I did not get enough information. For session timeout, I mean the timeout you specified in OneDev system settings.

  • bufferUnderrun commented 5 days ago

    Is this happening connecting to 6610 port

    I didn't test to 6610 directly since I need to change some conf on my server.

    and how long this messages appears after no activity?

    Hard to say : OneDev is always loaded in a tab of my browser. I'm working on other tabs and when I come back (several minutes after), I see the error message.

    I will check by always seeing that tab...

  • bufferUnderrun commented 5 days ago

    I mean the timeout you specified in OneDev system settings.

    oh sorry, I didn't know there was a such setting and never changed it.

    30min, and I would say that I'm seeing the error message after that time.

    image_3.png

    I don't want to be disconnected at all, just want the same behaviour I had before updating to v13.1.6

  • Robin Shen commented 4 days ago

    Session timeout is both for resource and secuirty reason. Nevertheless, I added an improvement request OD-2653 so that user can decide whether or not to expire the session after certain period of time.

  • Robin Shen changed state to 'Closed' 4 days ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
13.1.4, 13.1.5
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2641
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover