FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!

hyuk

Member
I have flashphoner 5.2.1555 version installed.

Error starting server using flashphoner user.
"FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!"

sudo ./webcallserver set-permissions
I tried using the command, but there is no change.

sudo ./webcallserver set-root-mode enable
It works normally when used after changing to the root user.

What's the matter?

Below is the error I am getting.



Feb 15 14:28:47 localhost.localdomain sudo[80568]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1555/bin ; USER=flashphoner ; COMMAND=/bin/test -w /usr/local/FlashphonerWebCallServer/server/lib/sshd-core-0.14.0.jar
Feb 15 14:28:47 localhost.localdomain sudo[80583]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1555/bin ; USER=flashphoner ; COMMAND=/bin/test -w /usr/local/FlashphonerWebCallServer/server/lib/pkts-buffers-3.0.2.jar
Feb 15 14:28:47 localhost.localdomain sudo[80599]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1555/bin ; USER=flashphoner ; COMMAND=/bin/test -w /usr/local/FlashphonerWebCallServer/server/lib/so/
Feb 15 14:28:47 localhost.localdomain sudo[80626]: root : TTY=unknown ; PWD=/usr/local/FlashphonerWebCallServer-5.2.1555/bin ; USER=flashphoner ; COMMAND=/bin/test -w /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/
Feb 15 14:28:47 localhost.localdomain bash[78840]: ERROR: FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
Feb 15 14:28:47 localhost.localdomain bash[78840]: [FAILED]
Feb 15 14:28:47 localhost.localdomain systemd[1]: webcallserver.service: control process exited, code=exited status=1
Feb 15 14:28:47 localhost.localdomain systemd[1]: Failed to start Flashphoner WebCallServer.
Feb 15 14:28:47 localhost.localdomain systemd[1]: Unit webcallserver.service entered failed state.
Feb 15 14:28:47 localhost.localdomain systemd[1]: webcallserver.service failed.









startup.log

[2023-02-15 14:18:01] INFO changeService - Service parameters is changed successfully
[2023-02-15 14:18:01] INFO setRootMode - Non root mode is set
[2023-02-15 14:21:30] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:21:31] INFO setPermissions - Permissions are set, please restart WCS
[2023-02-15 14:21:48] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:21:48] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2023-02-15 14:23:50] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:23:50] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2023-02-15 14:28:40] INFO setIp - IP addresses are set
[2023-02-15 14:28:47] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:28:47] ERROR startServer - FlashphonerWebCallServer cannot be started from user flashphoner, please fix the permissions to the folders or run 'webcallserver set-permissions'!
[2023-02-15 14:30:41] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:30:42] INFO setPermissions - Permissions are set, please restart WCS
[2023-02-15 14:31:27] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/server/lib/so/libfdk-aac.so.2/ is not writable by flashphoner
[2023-02-15 14:31:27] 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
Good day.
We cannot reproduce the problem by installing the build 5.2.1555 from scratch or by updating from previous build.
So please try to install the build from scratch and copy a setting needed. If the problem is still reproducing, provide SSH access to the server using this form. If you cannot provide the access, please deploy a server instance in some public cloud (AWS, Google etc), reproduce the problem and provide access to this public instance.
 

hyuk

Member
I did a fresh install, but the problem is the same.
ssh connection information passed.
Please let me know if you need anything more.
 

Max

Administrator
Staff member
Unfortunately, the server seems unavailable:
1676446851362.png

Please send a proper credentials.
 

hyuk

Member
Before writing the above, it was being blocked by the firewall. Would you like to try again?
 

Max

Administrator
Staff member
Seems you've mixed installation archive and installation dir. Your server installation folder looks like
1676448447157.png

But it should look like
1676448502808.png

So you must do the following:
1. Uninstall WCS:
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./uninstall.sh
2. Remove the folder if it was not removed during uninstalling
Code:
sudo rm -rf /usr/local/FlashphonerWebCallServer
sudo rm -rf /usr/local/FlashphonerWebCallServer-5.2.1555
3. Go to a home dir and download installation archive
Code:
cd ~
wget https://flashphoner.com/downloads/builds/WCS/5.2/FlashphonerWebCallServer-5.2.1555.tar.gz
4. Unpack the archive to the home dir (not to /usr/local!)
Code:
tar -xzf FlashphonerWebCallServer-5.2.1555.tar.gz
5. Change to unpacked dir and start installation
Code:
cd ~/FlashphonerWebCallServer-5.2.1555
sudo ./install.sh
6. After installation, start the server
Code:
cd /usr/local/FlashphonerWebCallServer/bin
sudo ./webcallserver start
If it started successfully, stop it
Code:
sudo ./webcallserver stop
and start the service
Code:
systemctl start webcallserver
 
Top