Permission issue when launching WCS service

Max

Administrator
Staff member
Can we configure ssh on 8081 port as the ssh 22 port is not exposed via internet?
Please use the port which is not busy by WCS. 8081 is not suitable because it required a lot of configuration changes (flashphoner.properties and database.yml).
You can also use a port from media ports range (31001-32000) if TCP ports are opened. WCS just skips the port if it is busy by another application.
If you can't set up SSH access to the server, please deploy a staging one with the same hardware configuration, reproduce the problem and provide SSH acccess to the staging instance.
If this is not possible, please reproduce the problem using demo example and collect a report as described here including client debug logs. Report archive should be collected by report.sh script. Then, send the report using this form.
 
Last edited:

Arif Butt

Member
We have tried to perform the disabling of port 8081 in our inhouse system as defined in post , but somehow now stuck, can you check the system as we are unable to login to CLI and getting the following:

[root@xms ~]# ssh -p 2001 admin@localhost
ssh: connect to host localhost port 2001: Connection refused
[root@xms ~]#


Pls check the SSH access information to the server in the private form of this thread.

Thnx
AB
 

Max

Administrator
Staff member
Unfortunately, we can't access the server using credentials provided:
1655946551425.png

Please check if the instance running and accepting SSH connections, or check the credentials.
ssh: connect to host localhost port 2001: Connection refused
Please check if WCS is running
Code:
pgrep -afn com.flashphoner.server.Server
and listening the CLI port 2001
Code:
netstat -nlp | grep java | grep 2001
If not, please check startup.log file and server_logs/flashphoner.log file.
 

Arif Butt

Member
Sorry but we had a power shutdown due to rain and therefore the servers were down... now its restored... kindly retry to login...

Thnx
AB
 

Max

Administrator
Staff member
WCS is not started on server: you've made a copy of flashphoner.properies file as root, so permissions must be fixed:
Code:
sudo /usr/local/FlashphonerWebCallServer/bin/webcallserver set-permissions
sudo systemctl restart webcallserver
Then CLI should be available.
 

Arif Butt

Member
Hi there

Kindly assist, we performed the steps but still server is showing not healthy in startup log as follows:

[2022-06-23 07:09:39] INFO isServerRunning - Server is running, pid 30360
[2022-06-23 07:09:39] INFO stop - FlashphonerWebCallServer stopped
[2022-06-23 07:10:08] INFO checkJavaOptions - Checking JVM options
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
[2022-06-23 07:10:11] INFO startWithSudo - Starting FlashphonerWebCallServer as user flashphoner
[2022-06-23 07:10:14] INFO waitForHealth - Will wait for server response at least 10 seconds
[2022-06-23 07:10:14] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:15] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:16] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:18] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:19] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:20] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:21] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:23] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:24] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:25] INFO isServerHealthy - Server health check response code:
[2022-06-23 07:10:26] ERROR start - FlashphonerWebCallServer started, but is not healthy, please try to restart



earlier we saw this error also...

[2022-06-23 06:49:01] ERROR checkObjectPermissions - /usr/local/FlashphonerWebCallServer/bin/FlashphonerMainWebCallServer.pid is not owned or writable by flashphoner
 

Arif Butt

Member
Still showing following

[root@xms FlashphonerWebCallServer]# ssh -p 2001 admin@localhost
ssh: connect to host localhost port 2001: Connection refused

[root@xms FlashphonerWebCallServer]#
 

Max

Administrator
Staff member
We checked the server. Seems like there was a WCS process started from command line. After the following steps:
Code:
sudo  /usr/local/FlashphonerWebCallServer/bin/webcallserver stop
sudo systemctl restart webcallserver
WCS is running
1656031379386.png

and CLI is accessible
1656031415884.png
 

Arif Butt

Member
Thanks it seems working now...

As we have been facing issues recently Please provide a guideline on what is the best way on how to set permissions for flashphoner user? The provided script for set-permissions apparently not working smoothly...

Thnx
AB
 

Max

Administrator
Staff member
The provided script for set-permissions apparently not working smoothly...
This is the only way to set permissions
Code:
sudo ./webcallserver set-permissions
The command checks all the default directories and all the directories set in flashphoner.properties file.
If the command does not work, please provide SSH access to the server where the command does not set permissions properly.
Also you can easily switch to root mode in latest builds (since 5.2.1255):
Code:
sudo ./webcallserver set-root-mode enable
In this case, there should not be a problem with permissions.
 
Last edited:
Top