matrix-registration icon indicating copy to clipboard operation
matrix-registration copied to clipboard

404 Error ehwn i try to connect matrix-registration on port 5000

Open alexdatur opened this issue 3 years ago • 1 comments

How did you install matrix-registration?

docker

What python version are you running?

What version of matrix-registration are you running?

0.9.2-dev2

Your config.yml

server_location: "http://localhost:8008" server_name: "matrix.." registration_shared_secret: "---" # see your synapse's homeserver.yaml admin_api_shared_secret: "---" # to generate tokens via the web api base_url: "/register" # e.g. "/element" for https://example.tld/element/register client_redirect: "https://app.element.io/#/login" client_logo: "static/images/element-logo.png" # use '{cwd}' for current working directory db: "sqlite:////data/db.sqlite3" host: "0.0.0.0" port: 5000 rate_limit: ["100 per day", "10 per minute"] allow_cors: false ip_logging: false logging: disable_existing_loggers: false version: 1 root: level: DEBUG handlers: [console, file] formatters: brief: format: '%(name)s - %(levelname)s - %(message)s' precise: format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s' handlers: console: class: logging.StreamHandler level: INFO formatter: brief stream: ext://sys.stdout file: class: logging.handlers.RotatingFileHandler formatter: precise level: INFO filename: /data/m_reg.log maxBytes: 10485760 # 10MB backupCount: 3 encoding: utf8

password requirements

password: min_length: 8

username requirements

username: validation_regex: [] #list of regexes that the selected username must match. Example: '[a-zA-Z].[a-zA-Z]' invalidation_regex: [] #list of regexes that the selected username must NOT match. Example: '(admin|support)'

Your error log

waitress - INFO - Serving on http://0.0.0.0:5000

Area of your issue?

installation

What happened

When i creat a container with config, there no errors in logs, but when i try to connect internal to my server to check registration page it shows:Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Steps to reproduce

No response

cant execute to console of container. in logs - 2022-09-01 08:13:02,279 - waitress - INFO - Serving on http://0.0.0.0:5000/

But in web interface - Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

alexdatur avatar Aug 31 '22 12:08 alexdatur

sounds like you aren't launching the docker container with that port exposed to the host.

williamkray avatar Sep 01 '22 17:09 williamkray

sounds like you aren't launching the docker container with that port exposed to the host.

Sounds you can't tell application layer 404 error code from network layer connection error.

paboum avatar Dec 10 '22 23:12 paboum

Closing due to lack of activity, if your issue is still relevant feel free to reopen

xelantro avatar Dec 10 '22 23:12 xelantro

Yes, it does reoccur, why do you think I'm wasting time talking to you? No logs, no verbose mode, no tests. Here, mr. docker, expose yourself to this:

# curl localhost:5000
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>

paboum avatar Dec 10 '22 23:12 paboum

sounds like you aren't launching the docker container with that port exposed to the host.

Sounds you can't tell application layer 404 error code from network layer connection error.

You were very rude to me when I was trying to help you, so good luck troubleshooting this obviously user-error problem. You can still get a 404 if you're serving something else on your hosts port 5000.

I've identified your problem by the way, so that should give you a clue that the solution is available based on the conversation here. Have fun 😉

williamkray avatar Dec 11 '22 01:12 williamkray