ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.27k stars 628 forks source link

Impossible to access the ant media server #3143

Open cezane opened 3 years ago

cezane commented 3 years ago

No access to the ant media server

Short description

I already installed the ant media server three times, on an Ubuntu 18.04, following the installation steps. At the end of installation, I cannot access the media server.

Environment

sudo service antmedia status
● antmedia.service - AntMedia
   Loaded: loaded (/lib/systemd/system/antmedia.service; enabled; vendor preset:
   Active: active (running) since Fri 2021-04-09 18:20:20 UTC; 3min 15s ago
  Process: 8992 ExecStart=/usr/bin/jsvc -home ${JAVA_HOME} -user antmedia -cwd $
 Main PID: 9004 (jsvc)
    Tasks: 16 (limit: 36000)
   CGroup: /system.slice/antmedia.service
           ├─9004 jsvc.exec -home /usr/lib/jvm/java-11-openjdk-amd64 -user antme
           └─9006 jsvc.exec -home /usr/lib/jvm/java-11-openjdk-amd64 -user antme

Apr 09 18:20:19 new-ant systemd[1]: Starting AntMedia...
Apr 09 18:20:20 new-ant systemd[1]: Started AntMedia.
sudo ufw disable 
Firewall stopped and disabled on system startup

Expected behavior

I should access the media server page.

Actual behavior

Unable to connect... Firefox can’t establish a connection to the server at...

curl localhost:5080 curl: (7) Failed to connect to localhost port 5080: Connection refused

SelimEmre commented 3 years ago

Hi @cezane,

Maybe there is an issue with installation. Could you please share your ant-media-server.log file? You can find ant-media-server.log file on /usr/local/antmedia/log folder.

cezane commented 3 years ago

Hello, @SelimEmre .

There is no such file in the log folder. There is a file named antmedia-error.log, but it is empty:

ubuntu@new-ant:~$ ls /usr/local/antmedia/log
antmedia-error.log
ubuntu@new-ant:~$ cat /usr/local/antmedia/log/antmedia-error.log 
SelimEmre commented 3 years ago

Ok, could you please add antmedia-server.log file?

cezane commented 3 years ago

Unfortunately, as I mentioned in the last comment, there is no antmedia-server.log file in the machine. The the unique file existent in the /usr/local/antmedia/log dir is the empty antmedia-error.log.

SelimEmre commented 3 years ago

Sorry, it was my mistake. I just meant antmedia-error.log file :)

cezane commented 3 years ago

Ok. No problem. =) But the antmedia-error.log file is empty:

ls -la /usr/local/antmedia/log/antmedia-error.log 
-rw-r--r-- 1 root root 0 Apr  9 18:20 /usr/local/antmedia/log/antmedia-error.log
ubuntu@new-ant:~$ cat /usr/local/antmedia/log/antmedia-error.log 
ubuntu@new-ant:~$ 
mekya commented 3 years ago

It seems that Ant Media Server is not installed correctly on your system.

Are you sure that you follow the instructions in the same way? https://github.com/ant-media/Ant-Media-Server/wiki/Installation

Even if it does not help you, we may schedule a meeting and take a look at your server