pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

pgadmin: 404 Not Found: The requested URL was not found on the server

Open IgorLytkin opened this issue 1 year ago • 6 comments

Please note that security bugs or issues should be reported to [email protected].

I see erros in pgAdmin docker container log

To Reproduce

Steps to reproduce the behavior:

  1. Go to Portianer
  2. Click on container with pgAdmin, then Logs
  3. See the error

Expected behavior No error

A clear and concise description of what you expected to happen.

Error message 2024-07-18 07:55:15,724: ERROR pgadmin: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again. Traceback (most recent call last): File "/venv/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib/python3.12/site-packages/flask/app.py", line 854, in dispatch_request self.raise_routing_exception(req) File "/venv/lib/python3.12/site-packages/flask/app.py", line 463, in raise_routing_exception raise request.routing_exception # type: ignore[misc] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib/python3.12/site-packages/flask/ctx.py", line 362, in match_request result = self.url_adapter.match(return_rule=True) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 629, in match raise NotFound() from None werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

If possible, include the full, unedited text of any error messages displayed.

Desktop (please complete the following information):

  • OS: Ubuntu, Docker
  • Version: 22.04 LTS
  • Mode: Server
  • Browser Yandex browser
  • Package type: docker

IgorLytkin avatar Jul 18 '24 08:07 IgorLytkin

@IgorLytkin What is docker image are you using? Can you please share docket command?

yogeshmahajan-1903 avatar Jul 19 '24 10:07 yogeshmahajan-1903

services:
  db:
    image: postgres:16.3
    restart: always
    env_file:
      - stack.env
    ports:
      - 54320:5432
    volumes:
      - db_data:/var/lib/postgresql/data
  db_beta7:
    image: postgres:17beta2
    restart: always
    env_file:
      - stack.env
    ports:
      - 54321:5432
    volumes:
      - db_beta7_data:/var/lib/postgresql/data
  pgadmin:
    image: dpage/pgadmin4:snapshot
    restart: always
    env_file:
      - stack.env

    ports:
      - "8888:80"
    extra_hosts:
      - "singularity:127.0.0.1"
    volumes:
      - pgadmin-data:/var/lib/pgadmin

volumes:
  db_data:
  db_beta7_data:
  pgadmin-data:```

IgorLytkin avatar Jul 31 '24 12:07 IgorLytkin

Hi @IgorLytkin Is there any particular scenario where you are getting this error log?

anilsahoo20 avatar Aug 02 '24 11:08 anilsahoo20

Whta you mean? I have errors every time, when i start my stack of containers. For example, i see it now

2024-08-02 15:06:28,357: ERROR	pgadmin:	404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/flask/app.py", line 854, in dispatch_request
    self.raise_routing_exception(req)
  File "/venv/lib/python3.12/site-packages/flask/app.py", line 463, in raise_routing_exception
    raise request.routing_exception  # type: ignore[misc]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/flask/ctx.py", line 362, in match_request
    result = self.url_adapter.match(return_rule=True)  # type: ignore
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/venv/lib/python3.12/site-packages/werkzeug/routing/map.py", line 629, in match
    raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.```

IgorLytkin avatar Aug 02 '24 15:08 IgorLytkin

@IgorLytkin,

This error occurs when any API call to the pgAdmin server fails. Please browse the pgAdmin; in the developer tools, please check the network tab, where you can find if any API calls fail. Please provide that details.

khushboovashi avatar Aug 08 '24 09:08 khushboovashi

No response from the user. Closing.

adityatoshniwal avatar Aug 23 '24 10:08 adityatoshniwal