Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start button not starting the server #22

Open
andreazanardo2002 opened this issue Dec 31, 2024 · 8 comments
Open

Start button not starting the server #22

andreazanardo2002 opened this issue Dec 31, 2024 · 8 comments

Comments

@andreazanardo2002
Copy link

Hello,
I have installed your SRT server but when I create from the web page a new SRT server I’m not able to “Start” it. When I press the START button it doesn’t start

@cannonbeach
Copy link
Owner

Hello @andreazanardo2002, it is likely you've missed a step in the setup process or are running an unsupported OS. Please confirm that you've run the setup script of setupopensrthub.sh and then send me the output of the setupopensrthub.sh script along with the following:

Make sure you are in /var/app directory and using the root user:
root@server:/var/app:$ sudo pm2 stop opensrthub
root@server:/var/app:$ sudo nodejs server.js

@ahbosch
Copy link

ahbosch commented Jan 31, 2025

I have the same issue, I have started a stream before, and it was working, but after rebooting the server, the start button doesn't work.

Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy

I used your commands to stop and start the server with no luck.

{ clickTime: 2025-01-31T19:15:34.703Z }
start button pressed:  4
.json
fullfile=/opt/srthub/configs/1738293815.json, fileprefix=1738293815, configindex=1 uid=4
.json
fullfile=/opt/srthub/configs/1738294070.json, fileprefix=1738294070, configindex=2 uid=4
.json
fullfile=/opt/srthub/configs/1738349191.json, fileprefix=1738349191, configindex=3 uid=4
.json
fullfile=/opt/srthub/configs/1738350861.json, fileprefix=1738350861, configindex=4 uid=4
this service maps to current file:  /opt/srthub/configs/1738350861.json
the file prefix is:  1738350861
debug: updated: sourcemode=srtpush, outputmode=udp
start command:  sudo docker run -itd --net=host --name srthub1738350861 --restart=unless-stopped --log-opt max-size=25m -v /opt/srthub:/opt/srthub -v /opt/srthub/configs:/opt/srthub/configs -v /opt/srthub/status:/opt/srthub/status -v /var/www/html:/var/www/html dockersrthub /usr/bin/srthub 1738350861
Unable to run Docker
{"status":"failed"}
getting signal status:  1
get_service_status: checking configindex  1  looking for  1
get_service_status: checking for /opt/srthub/configs/1738293815.json
debug: initial: sourcemode=srt, outputmode=udp
corestatus file does not exist: /opt/srthub/status/corestatus_1738293815.json
get_service_status: checking configindex  2  looking for  1
get_service_status: checking configindex  3  looking for  1
get_service_status: checking configindex  4  looking for  1
getting signal status:  2

not sure if you wanted to see all of the setup script, but here are the last couple of lines:

Selecting previously unselected package libcrypt-dev:amd64.
(Reading database ... 4759 files and directories currently installed.)
Preparing to unpack .../libcrypt-dev_1%3a4.4.27-1_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.27-1) ...
Setting up libcrypt-dev:amd64 (1:4.4.27-1) ...
 ---> Removed intermediate container e7aac5a47fe8
 ---> ab47dbf6189e
Step 12/12 : ADD srthub /usr/bin/srthub
 ---> 1223cbedf88c
Successfully built 1223cbedf88c
Successfully tagged dockersrthub:latest
/home/ubuntu/opensrthub
Docker Package Built and Installed

@cannonbeach
Copy link
Owner

cannonbeach commented Jan 31, 2025 via email

@ahbosch
Copy link

ahbosch commented Jan 31, 2025

Got it working, the problem was the official Docker was also installed, removed the official docker
https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine

And then just re-run the command: sudo ./setupopensrthub.sh

Started up instantly.

@andreazanardo2002
Copy link
Author

Hello @andreazanardo2002, it is likely you've missed a step in the setup process or are running an unsupported OS. Please confirm that you've run the setup script of setupopensrthub.sh and then send me the output of the setupopensrthub.sh script along with the following:

Make sure you are in /var/app directory and using the root user: root@server:/var/app:$ sudo pm2 stop opensrthub root@server:/var/app:$ sudo nodejs server.js

It says srthub: libavcodec.a was not compiled correctly - please check manually, aborting installation!

@ahbosch
Copy link

ahbosch commented Jan 31, 2025

Have you tried:
sudo apt-get install -y ffmpeg

@cannonbeach
Copy link
Owner

cannonbeach commented Jan 31, 2025 via email

@ahbosch
Copy link

ahbosch commented Jan 31, 2025

It was installed with Ubuntu as I saw the docker folder so thought I needed to install it, should have done a bare installation and let your script do its work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants