Giter Club home page Giter Club logo

Comments (7)

xelantro avatar xelantro commented on May 21, 2024

Your base_url: 'https://matrix.sleser.de/element/register' is wrong.
It should be base_url: '/element' for https://matrix.sleser.de/element/register
I'm not sure weather this is the core issue, but try changing that

from matrix-registration.

Loxatan avatar Loxatan commented on May 21, 2024

Hey, thanks for your fast replay.
I changed it to '/element' but i still got the same error

root@vmd76330:~# matrix-registration --config-path /etc/matrix-synapse/registration/config.yaml serve
Traceback (most recent call last):
  File "/usr/local/bin/matrix-registration", line 8, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/flask/cli.py", line 586, in main
    return super(FlaskGroup, self).main(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/flask/cli.py", line 426, in decorator
    return __ctx.invoke(f, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/matrix_registration/app.py", line 58, in run_server
    serve(app, host=config.config.host, port=config.config.port, url_prefix=config.config.base_url)
  File "/usr/local/lib/python3.9/dist-packages/waitress/__init__.py", line 12, in serve
    server = _server(app, **kw)
  File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 81, in create_server
    last_serv = TcpWSGIServer(
  File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 239, in __init__
    self.bind_server_socket()
  File "/usr/local/lib/python3.9/dist-packages/waitress/server.py", line 368, in bind_server_socket
    self.bind(sockaddr)
  File "/usr/local/lib/python3.9/dist-packages/waitress/wasyncore.py", line 398, in bind
    return self.socket.bind(addr)
OSError: [Errno 99] Cannot assign requested address

i had to change the bind_addresses in my homerserver.yaml config: ['::1', '127.0.0.1'] to 'localhost', otherwise the server did not start, can it be a similar problem? In the matrix-registration config its host = 'localhost', but maybe in another module?

from matrix-registration.

xelantro avatar xelantro commented on May 21, 2024

Ok so the error serve(app, host=config.config.host, port=config.config.port, url_prefix=config.config.base_url) indicates that you have problems in either:

  • host (try changing that to the ip that ping localhost gives you or 0.0.0.0)
  • port (is 5000 still free?)
  • base_url (you fixed that)

from matrix-registration.

Loxatan avatar Loxatan commented on May 21, 2024

ping localhost gave me 127.0.0.1 and i changed it.
Now it works and i can open http://localhost:5000/register.
Thank you very much.

Now I just need to make it accessible via the domain, that doesn't work yet. So neither from the server nor from the computer.
I have so far no firewall, maybe an idea what it could be?

from matrix-registration.

Loxatan avatar Loxatan commented on May 21, 2024

I found the error, is because I use https, adjusted the Ngnix Matrix.conf and now I get to the page, however I can not interact with it.
image

from matrix-registration.

xelantro avatar xelantro commented on May 21, 2024

You set base_url: '/element' but you seem to want it to be https://matrix.sleser.de/register?lang=de not https://matrix.sleser.de/element/register?lang=de right? (judjing from your location ~ ^/(static|register) nginx config)
If so you need to set it to base_url: ''

from matrix-registration.

Loxatan avatar Loxatan commented on May 21, 2024

Okay i guess i understand it now..
I changed it and now it works fine, thank you very much, you saved my evening.
Thank you for your patience :)

from matrix-registration.

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.