GithubHelp home page GithubHelp logo

Cannot start server about beatuprcelyte HOT 20 CLOSED

geman220 avatar geman220 commented on August 10, 2024
Cannot start server

from beatuprcelyte.

Comments (20)

geman220 avatar geman220 commented on August 10, 2024 1

Resolved, the issue was address on the beatupserver.json was set to my WAN IP. I assumed that wouldn't be an issue since it's a local file I don't care about obscuring it at all, but if you use a DNS in BeatTogether.json you also need to use DNS in beatupserver.json

Thanks for the help!

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

Might be an IPv6 issue. Try running with ./beatupserver --ipv4

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

Thanks, it was due to IPv6 being disabled on my Ubuntu install. Enabling IPv6 resolved the issue. I would assume passing --ipv4 would have resolved it as well. That being said, going to myip:5000 doesn't work (port is forwarded) and in the console I see the following on each page refresh:

[wire.c] wire_accept(9) failed

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

The website is hosted on port 80. Port 5000 is the lobby host.

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

Is it possible to run the website on a different port? With localhost:port?

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

yes.

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

I appreciate the help, just to validate my Beat Together.json should read as follows:

{ "SelectedServer": "SelfHost", "Servers": [ { "ServerName": "SelfHost", "HostName": "MediaServer", "Port": 5000, "StatusUri": "http://myDNS:3131/status", } ] }

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024
  • HostName should be the IP or domain name of the server
  • Port should be 2328
  • drop the /status in StatusUri

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

The HostName should be the IP or domain name of the server, where? Like the WAN side IP / Domain or the LAN side IP / Domain name.

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

The same domain you set in StatusUri

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

Can't connect in Beat Saber, the server is unreachable. It could be a NAT hairpin issue potentially.

I'm assuming this json is accurate at least. If it's a hairpin issue I should be able to use my LAN IPs, and send this config to others.

{ "ServerName": "SelfHost", "HostName": "domainname.duckdns.org", "Port": 2328, "StatusUri": "http://domainname.duckdns.org:3131", "MaxPartySize": 5 } ] }

Edit: Should mention 3131 is forwarded and working, I forwarded 2328 as well.

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

Did you forward 5000 (note that 5000 and 2328 are UDP ports)?

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

Yes 5000, 3131, and 2328 are all forwarded to 192.168.0.37 TCP/UDP

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

So I setup the .json to use local IPs on the LAN, which I assume should work (obviously only locally and not over WAN but just to validate configuration). I see this error in the console:

[master.c] BAD MESSAGE TYPE: 0 is spammed a lot followed by:

[master.c] BAD MESSAGE TYPE: 0 [master.c] Invalid serial length: 11864 [pool.c] 1 room open [wire.c] wire_send_local(WireRoomSpawn) [instance.c] opening room (0,0) [instance.c] state (none) -> Lobby.Idle [net.c] MTU 0 -> 445 [instance.c] connect [::ffff:192.168.0.68]:60948 [instance.c] player slots (1/4): [⠁] [wire.c] wire_send_local(WireRoomSpawnResp) [master.c] Sending player to room A

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

What error (CFR-, MUR-, DCR-) specifically does Beat Saber give you? Does it work with the address field in beatupserver.json set to the server's local IP instead of public?

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

domainname.duckdns.org

CFR-3 Server Unreachable

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

[master.c] Invalid serial length: 11864
[pool.c] 1 room open
[wire.c] wire_send_local(WireRoomSpawn)
[instance.c] opening room (0,0)
[instance.c] state (none) -> Lobby.Idle
[net.c] MTU 0 -> 445
[instance.c] connect [::ffff:192.168.0.68]:51657
[instance.c] player slots (1/4): [⠁]
[wire.c] wire_send_local(WireRoomSpawnResp)
[master.c] Sending player to room A
[wire.c] wire_accept(6) failed
[instance.c] session timeout
[instance.c] disconnect AF_UNSPEC
[instance.c] player slots (0/4): [⠀]
[instance.c] closing room (0,0)
[wire.c] wire_send_local(WireRoomCloseNotify)
[pool.c] 0 rooms open

Seems like I'm connecting, it's saying 1/4, trying to send me to Room A then fails.

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

CFR-3 means the instance's address is either set wrong or unreachable due to firewall issues and such.

from beatuprcelyte.

geman220 avatar geman220 commented on August 10, 2024

Do the session logs not imply that I am successfully connecting here?

[instance.c] connect [::ffff:192.168.0.68]:51657
[instance.c] player slots (1/4): [⠁]
[wire.c] wire_send_local(WireRoomSpawnResp)
[master.c] Sending player to room A

I am certain the ports are forwarded, I've also validated again here https://canyouseeme.org/

from beatuprcelyte.

rcelyte avatar rcelyte commented on August 10, 2024

All those messages come from the master server connection. Your game's messages are never reaching the instance.

from beatuprcelyte.

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.