Is there anyway to host a BombSquad server on Glitch?

I’m going to host a BombSquad server on my PC for a community but the biggest fear I have is having to share my IP. Is there anyway to host the server on glitch? and then have people access it by its address like bombsquadgh.glitch.me?

Here is a link to the site that has all bombsquad versions

1 Like

I believe @youngchief_btw did it once.

3 Likes

Very good to hear it’s possible! I’ll try to find it through their profile or something.

Edit: Found it, says do not remix though :thinking:
Bombchief (glitch.com)

2 Likes

Trying to host it using the official linux file but then it errors this:

Launching server subprocess...

Exception in thread Thread-1:

Traceback (most recent call last):

File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner

self.run()

File "/usr/lib/python3.7/threading.py", line 870, in run

self._target(*self._args, **self._kwargs)

File "bombsquad_server", line 305, in _bg_thread_main

self._run_server_cycle()

File "bombsquad_server", line 332, in _run_server_cycle

cwd='dist')

File "/usr/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)

File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)

PermissionError: [Errno 13] Permission denied: './bombsquad_headless'

>>> Server manager shutting down...
Waiting for subprocess exit...

Here is how the folders and files are placed

The start line is python3 bombsquad_server
Should I change it?

Here is the editor link btw, you should be able to see the files
bombsquadgh (glitch.com)

So, it is saying Error 13 (permission error) when it tries to execute bombsquad_headless (also idk what is with its contents, older versions of bombsquad linux server are the same.)

Should I try another version?

I’ll give you the details later today!! I’m busy rn

2 Likes

Also even setting up more crazy things is possible :wink:

2 Likes

Alright! Take your time, and thanks for coming here!

2 Likes

More Info:

  • Your gonna need a localhost tunnel setup on the project (that works with UDP, if you find a good one tell me!), to connect to the container due to the way Glitch works.
  • Glitch Boosting this project would be advised (especially if your gonna do resource-intensive tasks)
  • Also I updated the BombSquad server! (and also the reason for the errors has to do with a bug in env parser but it’s nothing to worry about)

Let me know if you have any questions!

2 Likes

Try running this in the terminal to mark the file as executable:

chmod +x ./bombsquad_headless
1 Like

That did fix the bombsquad_headless problem! But another one is here:

Launching server subprocess...
./bombsquad_headless: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "bombsquad_server", line 305, in _bg_thread_main
self._run_server_cycle()
File "bombsquad_server", line 337, in _run_server_cycle
self._run_subprocess_until_exit()
File "bombsquad_server", line 404, in _run_subprocess_until_exit
self._send_server_command(StartServerModeCommand(self._config))
File "bombsquad_server", line 394, in _send_server_command
self._subprocess.stdin.flush()
BrokenPipeError: [Errno 32] Broken pipe

>>> Stopping subprocess...
Subprocess stopped.
Server manager shutting down...

You know what’s the actual weird thing? It is programmed that the bombsquad_headless is not in a folder but it is actually under the dist/ folder. I’ll set it to just open bombsquad_headless in dist/. If I got a result, I’ll edit this reply

Edit: I ran the command in the terminal for the ./dist/bombsquad_headless not ./bombsquad_headless

@youngchief_btw also, I’m setting up the localhost tunnel using ngrok, didn’t figure it out much but I’m close! Thanks for the info btw!

1 Like

Uh I’m a little confused on how to do that with glitch since I cant really see the other folders? :sweat_smile: How can I do that with glitch? The sudo command isn’t recognized in the terminal I think, unless I’m doing it wrong

I’d recommend remixing my project again for a fresh start

1 Like

Alright! So, I remixed it but it says this error
/usr/bin/env: invalid option -- 'S'
Try '/usr/bin/env --help' for more information.

By the way, thanks to everyone that replied here!
Also, is there anything I should do? I know about the config and I wanna disable telnet, so I think commenting it will do the job? Also, I ran that command in the terminal:

Usage: /usr/bin/env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Set each NAME to VALUE in the environment and run COMMAND.

Mandatory arguments to long options are mandatory for short options too.
  -i, --ignore-environment  start with an empty environment
  -0, --null           end each output line with NUL, not newline
  -u, --unset=NAME     remove variable from the environment
      --help     display this help and exit
      --version  output version information and exit

A mere - implies -i.  If no COMMAND, print the resulting environment.

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/env>
or available locally via: info '(coreutils) env invocation' 

Should I set it to ignore environment? I won’t use telnet anyways

Comment out the thing I put in the .env
You should be fine

1 Like

Also make sure that tunnel is setup on the project or it will fail

1 Like

Alright so, tunnel is ready to be run. The env error was in the bombsquad_server where at the top of the file it has the #!/usr/bin/env -S python3.8 -O even though it looks okay. I can evade this by setting the start to be python3 instead of nothing.

Then I got a Module ‘yaml’ not found error but fixed it by installing it by pip3 install pyyaml.

Got that same error again: ./bombsquad_headless: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

Looking at this thread it says you should type ldconfig in the terminal, but then this error:
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied

Any ideas?

1 Like

Glitch doesn’t allow users to write outside of the /app folder. Could you play around with it and see if you could install it in the app folder?

2 Likes

Been trying to play around with it to use cache and config in a folder in the project, sometimes I do run the command and outputs nothing but when I enter the ldconfig command, it still says the same error

Edit: asking about the ldconfig on other platforms so we can progress. If we really need root access, then I’ll try contacting Glitch