[GH-ISSUE #1540] Transfer requests incorrectly #1168

Closed
opened 2026-02-26 06:36:02 +03:00 by kerem · 8 comments
Owner

Originally created by @saeed-raeisi on GitHub (Oct 31, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1540

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • No
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    -No

Describe the bug
Requests are sent incorrectly when working with odoo
And causes the user to move and cancel sessions

I used portainer and odoo image without any problems with multiple users at the same time

I used nginx proxy manager to redirect ports
But I got into trouble
User A logs in but has user B account ???? !!!

Nginx Proxy Manager Version
2.9.9

Expected behavior
Only requests are sent correctly

Operating System
ubuntu 20 server
portainer last version

Originally created by @saeed-raeisi on GitHub (Oct 31, 2021). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1540 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - No - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? -No **Describe the bug** Requests are sent incorrectly when working with odoo And causes the user to move and cancel sessions I used portainer and odoo image without any problems with multiple users at the same time I used nginx proxy manager to redirect ports But I got into trouble User A logs in but has user B account ???? !!! **Nginx Proxy Manager Version** 2.9.9 **Expected behavior** Only requests are sent correctly **Operating System** ubuntu 20 server portainer last version
kerem 2026-02-26 06:36:02 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@chaptergy commented on GitHub (Oct 31, 2021):

I assume with Udo image you mean odoo image? And you are talking about odoo erp? How does you setup look, do you have three odoo instances each on 8071, 8070 and 8069?

What requests are incorrectly sent? Where are they supposed to go and where do they go? You can view the logs inside your container at /data/logs/proxy_host-x_access.log, replacing x with the host id. The host ID can be viewed when clicking on the tree dots next to the host, the dropdown contain Proxy Host #x.

I really can't think of a way a proxy would be able to log you in as some other user, as the proxy does not retain any states and could store e.g. an access token from a different account to return it on some other request. That has to be an issue with the software itself. Maybe if you are running NPM and your odoo container on the same host using localhost as the target host would be better than using the domain again?

<!-- gh-comment-id:955728589 --> @chaptergy commented on GitHub (Oct 31, 2021): I assume with `Udo image` you mean `odoo image`? And you are talking about [odoo erp](https://www.odoo.com/)? How does you setup look, do you have three odoo instances each on 8071, 8070 and 8069? What requests are incorrectly sent? Where are they supposed to go and where do they go? You can view the logs inside your container at `/data/logs/proxy_host-x_access.log`, replacing `x` with the host id. The host ID can be viewed when clicking on the tree dots next to the host, the dropdown contain `Proxy Host #x`. I really can't think of a way a proxy would be able to log you in as some other user, as the proxy does not retain any states and could store e.g. an access token from a different account to return it on some other request. That has to be an issue with the software itself. Maybe if you are running NPM and your odoo container on the same host using `localhost` as the target host would be better than using the domain again?
Author
Owner

@saeed-raeisi commented on GitHub (Oct 31, 2021):

Hi yes it meant odoo
I have three separate stacks using portainer
For complete separation
The problem started exactly when I used portainer, nginx proxy manager
And this has already been reported by another team
My goal is simply to research where the problem comes from.

<!-- gh-comment-id:955788307 --> @saeed-raeisi commented on GitHub (Oct 31, 2021): Hi yes it meant odoo I have three separate stacks using portainer For complete separation The problem started exactly when I used portainer, nginx proxy manager And this has already been reported by another team My goal is simply to research where the problem comes from.
Author
Owner

@chaptergy commented on GitHub (Oct 31, 2021):

Have you personally heard about another team reporting this issue? Or is this something you could provide a link to?
Let me know if you have found anything or if you have any additional information as I have no clue as well what could be happening on your npm instance

<!-- gh-comment-id:955802426 --> @chaptergy commented on GitHub (Oct 31, 2021): Have you personally heard about another team reporting this issue? Or is this something you could provide a link to? Let me know if you have found anything or if you have any additional information as I have no clue as well what could be happening on your npm instance
Author
Owner

@saeed-raeisi commented on GitHub (Nov 1, 2021):

Yes, I heard about another team, but they said that after two weeks, the problem was solved and they did not follow up.

This problem was repeated for us today. And I am somewhat checking the logs

But what is clear:
User requests are moved.
Sessions are canceled.
And have csrf token error

We have been working with another server for several months without any problems
The current server with portainer is nginx proxy manager

But the previous config server was done manually and has not been a problem to date

<!-- gh-comment-id:955985721 --> @saeed-raeisi commented on GitHub (Nov 1, 2021): Yes, I heard about another team, but they said that after two weeks, the problem was solved and they did not follow up. This problem was repeated for us today. And I am somewhat checking the logs But what is clear: User requests are moved. Sessions are canceled. And have csrf token error We have been working with another server for several months without any problems The current server with portainer is nginx proxy manager But the previous config server was done manually and has not been a problem to date
Author
Owner

@saeed-raeisi commented on GitHub (Nov 1, 2021):

My goal is to identify the cause of the problem

It may be from odoo or any other program.

Do you have a solution to help me diagnose?
User B If he works with the system for a while but user D is active

Suddenly user B logs into account D and user D himself encounters csrf error, closing session

<!-- gh-comment-id:955987498 --> @saeed-raeisi commented on GitHub (Nov 1, 2021): My goal is to identify the cause of the problem It may be from odoo or any other program. Do you have a solution to help me diagnose? User B If he works with the system for a while but user D is active Suddenly user B logs into account D and user D himself encounters csrf error, closing session
Author
Owner

@chaptergy commented on GitHub (Nov 1, 2021):

As I have said in my first response, use the access logs to start diagnosing what might be happening.

Maybe this could have to do with caching, you could add a custom location / using the same target data as on the main page of the proxy host, click on the cog and add the following config to disable caching both in nginx as well as in the browser:

add_header Last-Modified $date_gmt;
add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;

As Nginx Proxy Manager is just a user interface to generate nginx config files, you might have more luck when researching this issue in connection with nginx, not nginx proxy manager specifically.

<!-- gh-comment-id:956013082 --> @chaptergy commented on GitHub (Nov 1, 2021): As I have said in my first response, use the access logs to start diagnosing what might be happening. Maybe this could have to do with caching, you could add a custom location `/` using the same target data as on the main page of the proxy host, click on the cog and add the following config to disable caching both in nginx as well as in the browser: ```nginx add_header Last-Modified $date_gmt; add_header Cache-Control 'private no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; if_modified_since off; expires off; etag off; ``` As Nginx Proxy Manager is just a user interface to generate nginx config files, you might have more luck when researching this issue in connection with nginx, not nginx proxy manager specifically.
Author
Owner

@saeed-raeisi commented on GitHub (Nov 3, 2021):

Hi, I have assigned one of the technical teams to investigate these cases
We are currently using bitnami
And we have no problem, I will close this issue, but if the technical team results are related to nginx proxy manager, I will send them here.

<!-- gh-comment-id:958762602 --> @saeed-raeisi commented on GitHub (Nov 3, 2021): Hi, I have assigned one of the technical teams to investigate these cases We are currently using [bitnami](https://bitnami.com/stack/odoo) And we have no problem, I will close this issue, but if the technical team results are related to nginx proxy manager, I will send them here.
Author
Owner

@Inovvia commented on GitHub (Aug 10, 2022):

To anyone that experiences this issue while using Odoo and Nginx Proxy Manager. I found that the solution was to disable cache assets.
image

<!-- gh-comment-id:1210472399 --> @Inovvia commented on GitHub (Aug 10, 2022): To anyone that experiences this issue while using Odoo and Nginx Proxy Manager. I found that the solution was to disable cache assets. ![image](https://user-images.githubusercontent.com/70137651/183878117-64230846-72cf-4edd-8c63-a9b7e9b75ca4.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#1168
No description provided.