Unable to start web call server with fresh install

Arif Butt

Member
Hi there

I have done a fresh installation of webcallserver but unable to start the service, getting the following error... kindly assist

[root@localhost FlashphonerWebCallServer-5.2.2042]# service webcallserver start
Redirecting to /bin/systemctl start webcallserver.service
Job for webcallserver.service failed because the control process exited with error code. See "systemctl status webcallserver.service" and "journalctl -xe" for d etails.

[root@localhost FlashphonerWebCallServer-5.2.2042]# service webcallserver status -l
Redirecting to /bin/systemctl status -l webcallserver.service
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2024-08-08 07 :10:50 EDT; 2s ago
Process: 7552 ExecStart=/bin/bash webcallserver start (code=exited, status=1/FAILURE)
Main PID: 3155 (code=exited, status=1/FAILURE)

Aug 08 07:10:50 localhost.localdomain systemd[1]: Failed to start Flashphoner WebCallServer.
Aug 08 07:10:50 localhost.localdomain systemd[1]: Unit webcallserver.service entered failed state.
Aug 08 07:10:50 localhost.localdomain systemd[1]: webcallserver.service failed.

[root@localhost FlashphonerWebCallServer-5.2.2042]# java -version
openjdk version "1.8.0_402"
OpenJDK Runtime Environment (build 1.8.0_402-b06)
OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)


Thnx
AB
 

Max

Administrator
Staff member
Hello.

Please use the command to get more details about service failure:
Code:
journalctl -xe
Try to fix a file write permissions
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./webcallserver set-permissions
Also try to detect IP addresses manually
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./webcallserver set-ip
If this does not help and service still does not start, try to start in standalone mode and check for any errors on the console
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./webcallserver start standalone
Press CTRL+C to stop
 
Last edited:

Arif Butt

Member
Hi there

this is the output of:

[root@localhost bin]# sudo ./webcallserver set-permissions
Permissions are set, please restart WCS

[root@localhost bin]# sudo ./webcallserver set-ip
IP adresses are already set, re-configure them? [yes/no] yes
We have found these IP on your server

External IP Local IPs
110.39.43.242 192.168.0.223

Is your server located in your LAN? [yes/no] yes
Thanks. We have configured:

ip = 192.168.0.223
ip_local = 192.168.0.223


Press any key to continue...
IP addresses are set, please restart WCS to apply

Service Start Failed

[root@localhost bin]# journalctl -xe
--
-- The start-up result is done.
Aug 09 06:32:08 localhost.localdomain sudo[1254]: pam_unix(sudo:session): session opened for user flashphoner by (uid
Aug 09 06:32:08 localhost.localdomain sudo[1254]: pam_unix(sudo:session): session closed for user flashphoner
Aug 09 06:32:08 localhost.localdomain systemd[1]: Removed slice User Slice of flashphoner.
-- Subject: Unit user-995.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-995.slice has finished shutting down.
Aug 09 06:32:08 localhost.localdomain bash[30763]: ERROR: FlashphonerWebCallServer cannot be started from user flashp
Aug 09 06:32:08 localhost.localdomain bash[30763]: [FAILED]
Aug 09 06:32:08 localhost.localdomain systemd[1]: webcallserver.service: control process exited, code=exited status=1
Aug 09 06:32:08 localhost.localdomain systemd[1]: Failed to start Flashphoner WebCallServer.
-- Subject: Unit webcallserver.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit webcallserver.service has failed.
--
-- The result is failed.
Aug 09 06:32:08 localhost.localdomain systemd[1]: Unit webcallserver.service entered failed state.
Aug 09 06:32:08 localhost.localdomain systemd[1]: webcallserver.service failed.
lines 4133-4155/4155 (END)

[root@localhost bin]# sudo ./webcallserver set-permissions
Permissions are set, please restart WCS
[root@localhost bin]# ^C
[root@localhost bin]# sudo ./webcallserver start standalone
FlashphonerWebCallServer-5.2.2042: starting

######### Start standalone mode #########

ERROR: FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[root@localhost bin]# [FAILED]

=======================

sudo ./webcallserver set-permissions already executed but did not help

Kindly assist

Thanx
AB
 

Max

Administrator
Staff member
Hello

Try to set permissions immediately before launch
sudo ./webcallserver set-permissions
sudo ./webcallserver start
 

Max

Administrator
Staff member
Please also check the log file /usr/local/FlashphonerWebCallServer/logs/startup.log when start fails. It should display what file permissions are wrong.
 

Arif Butt

Member
Here is the entry when I checked the log file /usr/local/FlashphonerWebCallServer/logs/startup.log when start fails:

Pls assist.

[2024-08-12 11:50:24] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2024-08-12 11:50:47] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client
[2024-08-12 11:50:47] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client2
[2024-08-12 11:50:57] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libvpx.so.6.2/ is not writable by flashphoner
[2024-08-12 11:50:57] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2024-08-12 11:51:19] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client
[2024-08-12 11:51:19] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client2
[2024-08-12 11:51:29] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libvpx.so.6.2/ is not writable by flashphoner
[2024-08-12 11:51:29] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2024-08-12 11:51:52] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client
[2024-08-12 11:51:52] INFO checkObjectPermissions - Skip excluded folder: /usr/local/FlashphonerWebCallServer/client2
[2024-08-12 11:52:03] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libvpx.so.6.2/ is not writable by flashphoner
[2024-08-12 11:52:03] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
 

Max

Administrator
Staff member
Try

sudo chmod -R 775 /usr/local/FlashphonerWebCallServer/lib

Or

sudo chown -R flashphoner:flashphoner /usr/local/FlashphonerWebCallServer/lib
 

Max

Administrator
Staff member
Please do

tree /usr/local/FlashphonerWebCallServer/lib/so

And paste or attach output here.
 
Last edited:

Arif Butt

Member
Hi, pls see the outputs:

[root@localhost logs]# sudo chmod 755 /usr/local/FlashphonerWebCallServer/server/lib/so/

[root@localhost bin]# sudo ./webcallserver start
FlashphonerWebCallServer-5.2.2042: starting
ERROR: FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[root@localhost bin]# [FAILED]
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]# sudo chmod -R 775 /usr/local/FlashphonerWebCallServer/lib
[root@localhost bin]# sudo ./webcallserver start
FlashphonerWebCallServer-5.2.2042: starting
ERROR: FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[root@localhost bin]# [FAILED]
[root@localhost bin]#
[root@localhost bin]# sudo chown -R flashphoner:flashphoner /usr/local/FlashphonerWebCallServer/lib
[root@localhost bin]# sudo ./webcallserver start FlashphonerWebCallServer-5.2.2042: starting
ERROR: FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[root@localhost bin]# [FAILED]


====================

[root@localhost ~]# tree /usr/local/FlashphonerWebCallServer/lib/so
/usr/local/FlashphonerWebCallServer/lib/so
├── libavcodec.so -> libavcodec.so.58.54.100
├── libavcodec.so.58 -> libavcodec.so.58.54.100
├── libavcodec.so.58.54.100
├── libavdevice.so -> libavdevice.so.58.8.100
├── libavdevice.so.58 -> libavdevice.so.58.8.100
├── libavdevice.so.58.8.100
├── libavfilter.so -> libavfilter.so.7.57.100
├── libavfilter.so.7 -> libavfilter.so.7.57.100
├── libavfilter.so.7.57.100
├── libavformat.so -> libavformat.so.58.29.100
├── libavformat.so.58 -> libavformat.so.58.29.100
├── libavformat.so.58.29.100
├── libavutil.so -> libavutil.so.56.31.100
├── libavutil.so.56 -> libavutil.so.56.31.100
├── libavutil.so.56.31.100
├── libbcg729.so -> libbcg729.so.0.0.0
├── libbcg729.so.0 -> libbcg729.so.0.0.0
├── libbcg729.so.0.0.0
├── libbuffer_provider.so
├── libcanvas.so
├── libcrypto.so.10
├── libcuda_wrapper.so
├── libfdk-aac.so -> libfdk-aac.so.2.0.0
├── libfdk-aac.so.2 -> libfdk-aac.so.2.0.0
├── libfdk-aac.so.2.0.0
├── libff_decoder.so
├── libff_encoder.so
├── libfpaj.so
├── libfpfaj.so
├── libfpgj.so
├── libfpgj.so2
├── libfpohd.so
├── libfpohe.so
├── libfpoj.so
├── libfpow.so
├── libfprj.so
├── libfpsj.so
├── libg722codec.so
├── libjni_decoder.so
├── libjni_encoder.so
├── libjpcap.so
├── libkvazaar.so -> libkvazaar.so.7.2.0
├── libkvazaar.so.7 -> libkvazaar.so.7.2.0
├── libkvazaar.so.7.2.0
├── libkvz_wrapper.so
├── libmutex_provider.so
├── libogg.so -> libogg.so.0.8.3
├── libogg.so.0 -> libogg.so.0.8.3
├── libogg.so.0.8.3
├── libopenh264_decoder.so
├── libopenh264_encoder.so
├── libopenh264.so -> libopenh264.so.2.1.0
├── libopenh264.so.2.1.0
├── libopenh264.so.6 -> libopenh264.so.2.1.0
├── libopus.so -> libopus.so.0.5.0
├── libopus.so.0 -> libopus.so.0.5.0
├── libopus.so.0.5.0
├── libpostproc.so -> libpostproc.so.55.5.100
├── libpostproc.so.55 -> libpostproc.so.55.5.100
├── libpostproc.so.55.5.100
├── libscaler.so
├── libsigar-amd64-linux.so
├── libsigar-x86-linux.so
├── libskija.so
├── libspeexdsp.so -> libspeexdsp.so.1.5.0
├── libspeexdsp.so.1 -> libspeexdsp.so.1.5.0
├── libspeexdsp.so.1.5.0
├── libspeex.so -> libspeex.so.1.5.0
├── libspeex.so.1 -> libspeex.so.1.5.0
├── libspeex.so.1.5.0
├── libsrt.so -> libsrt.so.1.4.3
├── libsrt.so.1.4 -> libsrt.so.1.4.3
├── libsrt.so.1.4.3
├── libsrt_wrapper.so
├── libssl.so.10
├── libs.version
├── libswresample.so -> libswresample.so.3.5.100
├── libswresample.so.3 -> libswresample.so.3.5.100
├── libswresample.so.3.5.100
├── libswscale.so -> libswscale.so.5.5.100
├── libswscale.so.5 -> libswscale.so.5.5.100
├── libswscale.so.5.5.100
├── libvorbisenc.so -> libvorbisenc.so.2.0.11
├── libvorbisenc.so.2 -> libvorbisenc.so.2.0.11
├── libvorbisenc.so.2.0.11
├── libvorbisfile.so -> libvorbisfile.so.3.3.7
├── libvorbisfile.so.3 -> libvorbisfile.so.3.3.7
├── libvorbisfile.so.3.3.7
├── libvorbis.so -> libvorbis.so.0.4.8
├── libvorbis.so.0 -> libvorbis.so.0.4.8
├── libvorbis.so.0.4.8
├── libvpx.so -> libvpx.so.6.2.0
├── libvpx.so.6 -> libvpx.so.6.2.0
├── libvpx.so.6.2 -> libvpx.so.6.2.0
├── libvpx.so.6.2.0
├── libx264_encoder.so
└── libyuvscaler.so

0 directories, 97 files
[root@localhost ~]#

Pls assist
 

Max

Administrator
Staff member
Hello

As per your report

[2024-08-12 11:50:57] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libvpx.so.6.2/ is not writable by flashphoner
This path seems wrong /usr/local/FlashphonerWebCallServer/server
There is no such path inside of normal server installation.

Please do
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./uninstall.sh
Make sure folder is empty or does not exist /usr/local/FlashphonerWebCallServer

Install again
Code:
sudo ./install.sh
 

Arif Butt

Member
HI there

I have removed the old installation and perform the new installation, but when starting service I am getting this error

New main PID 4434 does not belong to service, and PID file is not owned by root. Refusing.

Kindly suggest

AB
 

Arif Butt

Member
[root@localhost ~]# systemctl status webcallserver -l
● webcallserver.service - Flashphoner WebCallServer
Loaded: loaded (/etc/systemd/system/webcallserver.service; enabled; vendor pr eset: disabled)
Active: failed (Result: exit-code) since Thu 2024-08-15 08:58:32 EDT; 6min ag o
Process: 1072 ExecStart=/bin/bash webcallserver start (code=exited, status=1/F AILURE)
Main PID: 1072 (code=exited, status=1/FAILURE)

Aug 15 08:58:29 localhost.localdomain sudo[2477]: root : TTY=unknown ; PWD=/ usr/local/FlashphonerWebCallServer-5.2.1466/bin ; USER=flashphoner ; COMMAND=/bi n/echo -e [2024-08-15 08:58:28] INFO isServerHealthy - Server health check respo nse code:
Aug 15 08:58:30 localhost.localdomain sudo[2502]: root : TTY=unknown ; PWD=/ usr/local/FlashphonerWebCallServer-5.2.1466/bin ; USER=flashphoner ; COMMAND=/bi n/echo -e [2024-08-15 08:58:30] INFO isServerHealthy - Server health check respo nse code:
Aug 15 08:58:31 localhost.localdomain sudo[2531]: root : TTY=unknown ; PWD=/ usr/local/FlashphonerWebCallServer-5.2.1466/bin ; USER=flashphoner ; COMMAND=/bi n/echo -e [2024-08-15 08:58:31] INFO isServerHealthy - Server health check respo nse code:
Aug 15 08:58:32 localhost.localdomain bash[1072]: ERROR: FlashphonerWebCallServe r started, but is not healthy, please try to restart
Aug 15 08:58:32 localhost.localdomain sudo[2549]: root : TTY=unknown ; PWD=/ usr/local/FlashphonerWebCallServer-5.2.1466/bin ; USER=flashphoner ; COMMAND=/bi n/echo -e [2024-08-15 08:58:32] ERROR start - FlashphonerWebCallServer started, but is not healthy, please try to restart
Aug 15 08:58:32 localhost.localdomain bash[1072]: [FAILED]
Aug 15 08:58:32 localhost.localdomain systemd[1]: Refusing to accept PID outside of service control group, acquired through unsafe symlink chain: /usr/local/Fla shphonerWebCallServer/bin/FlashphonerMainWebCallServer.pid
Aug 15 08:58:32 localhost.localdomain systemd[1]: webcallserver.service: main pr ocess exited, code=exited, status=1/FAILURE
Aug 15 08:58:32 localhost.localdomain systemd[1]: Unit webcallserver.service ent ered failed state.
Aug 15 08:58:32 localhost.localdomain systemd[1]: webcallserver.service failed.
[root@localhost ~]#
 

Max

Administrator
Staff member
New main PID 4434 does not belong to service, and PID file is not owned by root. Refusing.
This is a message from systemd about the file where process pid is stored. Please update to the latest WCS build 5.2.2055 where the issue is fixed.
 

Arif Butt

Member
Finally it started... thanks

openjdk version "1.8.0_402"
OpenJDK Runtime Environment (build 1.8.0_402-b06)
OpenJDK 64-Bit Server VM (build 25.402-b06, mixed mode)
[2024-08-19 06:23:44] INFO startWithSudo - Starting FlashphonerWebCallServer-5.2.2055-dcf930f136fb272d5ef7950e300dfa51c58c94c5 as user flashphoner on centos 7
[2024-08-19 06:23:46] INFO waitForHealth - Will wait for server response at least 10 seconds
[2024-08-19 06:23:46] INFO isServerHealthy - Server health check URL http://localhost:8081/health-check response code: 000
[2024-08-19 06:23:47] INFO start - FlashphonerWebCallServer started, pid 23920
 
Top