AirenSoft / OvenMediaEngine

OvenMediaEngine (OME) is a Sub-Second Latency Live Streaming Server with Large-Scale and High-Definition. #WebRTC #LLHLS
https://OvenMediaEngine.com/ome
GNU Affero General Public License v3.0
2.53k stars 1.06k forks source link

Dev version can not start service #70

Closed janyo1201 closed 4 years ago

janyo1201 commented 4 years ago

hi i test the dev version ,after install finish , try systemctl start ovenmediaengine, get error

● ovenmediaengine.service - OvenMediaEngine Loaded: loaded (/lib/systemd/system/ovenmediaengine.service; linked; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2020-02-05 18:51:12 CST; 4s ago Process: 26636 ExecStart=/usr/bin/OvenMediaEngine -d (code=exited, status=1/FAILURE)

Feb 05 18:51:12 webrtc21 systemd[1]: Starting OvenMediaEngine... Feb 05 18:51:12 webrtc21 systemd[1]: ovenmediaengine.service: Control process exited, code=exited status=1 Feb 05 18:51:12 webrtc21 systemd[1]: ovenmediaengine.service: Failed with result 'exit-code'. Feb 05 18:51:12 webrtc21 systemd[1]: Failed to start OvenMediaEngine.

getroot commented 4 years ago

Write /var/log/ovenmediaengine/ovemediaengine.log here please.

janyo1201 commented 4 years ago

root@webrtc21:/var/log/ovenmediaengine# cat ovenmediaengine.log

[2020-02-05 20:23:10.933] I 366 Config | config_manager.cpp:141 | Trying to set logfile in directory... (/var/log/ovenmediaengine) [2020-02-05 20:23:10.934] I 366 Config | config_manager.cpp:50 | Trying to load configurations... (/usr/share/ovenmediaengine/conf/Server.xml) [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:206 | OvenMediaEngine v0.9.1 (build: 19060300) is started on [webrtc21] (Linux x86_64 - 4.15.0-55-generic, #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019) [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:208 | With modules: [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:209 | FFmpeg 3.4.2 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:210 | Configuration: --prefix=/opt/ovenmediaengine --enable-gpl --enable-nonfree --extra-cflags=-I/opt/ovenmediaengine/include --extra-ldflags='-L/opt/ovenmediaengine/lib -Wl,-rpath,/opt/ovenmediaengine/lib' --extra-libs=-ldl --enable-shared --disable-static --disable-debug --disable-doc --disable-programs --disable-avdevice --disable-dct --disable-dwt --disable-error-resilience --disable-lsp --disable-lzo --disable-rdft --disable-faan --disable-pixelutils --disable-everything --enable-zlib --enable-libopus --enable-libvpx --enable-libfdk_aac --enable-libx264 --enable-encoder='libvpx_vp8,libvpx_vp9,libopus,libfdk_aac,libx264' --enable-decoder='aac,aac_latm,aac_fixed,h264' --enable-parser='aac,aac_latm,aac_fixed,h264' --enable-filter='asetnsamples,aresample,aformat,channelmap,channelsplit,scale,transpose,fps,settb,asettb' [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:211 | libavformat: 57.83.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:212 | libavcodec: 57.107.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:213 | libavutil: 55.78.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:214 | libavfilter: 6.107.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:215 | libswresample: 2.9.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:216 | libswscale: 4.8.100 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:217 | SRT: 1.3.3 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:218 | SRTP: libsrtp2 2.2.0 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:219 | OpenSSL: OpenSSL 1.1.0g 2 Nov 2017 [2020-02-05 20:23:10.940] I 366 OvenMediaEngine | main.cpp:220 | Configuration: compiler: gcc -DDSO_DLFCN -DHAVE_DLFCN_H -DNDEBUG -DOPENSSL_THREADS -DOPENSSL_NO_STATIC_ENGINE -DOPENSSL_PIC -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DRC4_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPADLOCK_ASM -DPOLY1305_ASM -DOPENSSLDIR="\"/opt/ovenmediaengine\"" -DENGINESDIR="\"/opt/ovenmediaengine/lib/engines-1.1\"" -Wa,--noexecstack [2020-02-05 20:23:10.952] I 366 Monitor | monitoring.cpp:26 | Create HostMetrics(default) for monitoring [2020-02-05 20:23:10.952] I 366 OvenMediaEngine | main.cpp:131 | Trying to create a module MediaRouter for host [default]... [2020-02-05 20:23:10.952] I 366 MediaRouter | media_router.cpp:40 | Trying to start media router... [2020-02-05 20:23:10.952] I 366 MediaRouter | media_router.cpp:57 | Media router is started. [2020-02-05 20:23:10.952] I 366 OvenMediaEngine | main.cpp:132 | Trying to create a module Transcoder for host [default]... [2020-02-05 20:23:10.952] I 366 OvenMediaEngine | main.cpp:133 | Trying to create a module RTMP Provider for host [default]... [2020-02-05 20:23:10.952] I 366 RtmpProvider | rtmp_provider.cpp:52 | RTMP Provider is listening on 0.0.0.0:1935... [2020-02-05 20:23:10.952] I 366 RtmpProvider | rtmp_server.cpp:28 | Trying to start RTMP server on 0.0.0.0:1935... [2020-02-05 20:23:10.953] I 366 OvenMediaEngine | main.cpp:134 | Trying to create a module OVT Provider for host [default]... [2020-02-05 20:23:10.953] I 366 OvenMediaEngine | main.cpp:135 | Trying to create a module RTSP Provider for host [default]... [2020-02-05 20:23:10.954] I 366 RtspProvider | rtsp_provider.cpp:43 | RTSP Provider is listening on 0.0.0.0:0... [2020-02-05 20:23:10.954] I 366 OvenMediaEngine | main.cpp:136 | Trying to create a module RTSPC Provider for host [default]... [2020-02-05 20:23:10.954] I 366 OvenMediaEngine | main.cpp:137 | Trying to create a module WebRTC Publisher for host [default]... [2020-02-05 20:23:10.955] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10000/UDP [2020-02-05 20:23:10.956] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10001/UDP [2020-02-05 20:23:10.956] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10002/UDP [2020-02-05 20:23:10.956] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10003/UDP [2020-02-05 20:23:10.956] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10004/UDP [2020-02-05 20:23:10.956] I 366 Ice | ice_port.cpp:89 | ICE port is bounded on 0.0.0.0:10005/UDP [2020-02-05 20:23:10.956] I 366 WebRTC | webrtc_publisher.cpp:54 | WebRTC Publisher is listening on 0.0.0.0:3333... [2020-02-05 20:23:10.957] I 366 Signalling | rtc_signalling_server.cpp:56 | P2P is disabled [2020-02-05 20:23:10.957] I 366 Publisher | publisher.cpp:15 | Trying to start publisher 1 [2020-02-05 20:23:10.957] I 366 OvenMediaEngine | main.cpp:138 | Trying to create a module HLS Publisher for host [default]... [2020-02-05 20:23:10.958] I 366 Publisher | publisher.cpp:15 | Trying to start publisher 3 [2020-02-05 20:23:10.958] I 366 OvenMediaEngine | main.cpp:139 | Trying to create a module MPEG-DASH Publisher for host [default]... [2020-02-05 20:23:10.959] I 366 Publisher | publisher.cpp:15 | Trying to start publisher 4 [2020-02-05 20:23:10.959] I 366 OvenMediaEngine | main.cpp:140 | Trying to create a module Low-Latency MPEG-DASH Publisher for host [default]... [2020-02-05 20:23:10.959] I 366 Publisher | publisher.cpp:15 | Trying to start publisher 5 [2020-02-05 20:23:10.959] I 366 OvenMediaEngine | main.cpp:141 | Trying to create a module OVT Publisher for host [default]... [2020-02-05 20:23:10.960] I 366 OVT | ovt_publisher.cpp:49 | Trying to start relay server on 0.0.0.0:9000 [2020-02-05 20:23:10.960] I 366 Publisher | publisher.cpp:15 | Trying to start publisher 6 [2020-02-05 20:23:10.960] I 366 OvenMediaEngine | main.cpp:166 | All modules are initialized successfully [2020-02-05 20:23:10.960] I 366 Monitor | host_metrics.cpp:27 | Create ApplicationMetrics(#default#app) for monitoring [2020-02-05 20:23:10.960] I 366 Orchestrator | orchestrator.cpp:836 | Trying to create an application: [#default#app] [2020-02-05 20:23:10.962] I 366 WebRTC | rtc_application.cpp:99 | WebRTC Application [#default#app] Started [2020-02-05 20:23:10.962] I 366 OVT | ovt_application.cpp:28 | Ovt Application [#default#app] Started

getroot commented 4 years ago

It seems to work normally on LOG. We'll test a bit more. Please understand that the DEV branch is not complete. If you can analyze the problem, please contribute.

getroot commented 4 years ago

This problem is solved. You can check out the dev branch.

$ git pull $ make release $ sudo make install $ systemctl deamon-reload $ systemctl start ovenmediaengine

getroot commented 4 years ago

This issue has been closed since it has been inactive for quite some time. If you want to continue discussing this issue, please feel free to reopen it.