on 01-20-2015 12:15 PM
Good afternoon!
I`ve got a problem.
When I creationg rshost service with dbsvc - it creates service, but it does not listening any port.
What am I doing wrong?
dbsvc.exe -as -s auto -t Standalone -sn RelayServer -w RelayServer "C:\Program Files\RelayServer\ias_relay_server\server\rshost.exe" -q -qc -f "C:\Program Files\RelayServer\ias_relay_server\server\rs.config" -o "C:\Program Files\RelayServer\ias_relay_server\server\log.txt"
[options]
start = auto
verbosity = 2
[relay_server]
enable = yes
host = IP host
http_port = 80
https_port = 443
description = Machine #1 in RS farm
[backend_farm]
enable = yes
id = afaria
client_security = on
backend_security= on
description = Afaria Farm (Master + Slave)
[backend_farm]
enable = yes
id = enrollpackage
client_security = on
backend_security= on
description = Afaria Enroll + Package Server
#-----------------
# Backend servers
#-----------------
[backend_server]
enable = yes
farm = afaria
id = id1
mac = mac1
token = 123
[backend_server]
enable = yes
farm = afaria
id = id2
mac = mac2
token = 456
[backend_server]
enable = yes
farm = enrollpackage
id = Enrollpackage
mac = mac3
token = 789
Please share the C:\Program Files\RelayServer\ias_relay_server\server\log.txt
so we can see what the error is
1. First comment start = auto by doing this #start = auto
2. Restart the service and share the log.txt file
Note: When you stop the service make sure there are not other rshost.exe instances are running.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
Can you please translate "Íîâàÿ çàïèñàííàÿ êîíôèãóðàöèÿ â ñîâìåñòíîé ïàìÿòè" ?
Since you mentioned the ports are not listening, I wanted to check if the ports are binded in IIS. In IIS, select your Relay server app i.e ias_relay_server -> Click on Browse apllication for http and https from right pane. You should have port 80 and 443 configured here.
Thanks,
Sejal
Good afternoon!
These lettres mean something like "new configuration in memory", I don`t know, how would it be in english version of Afaria.
Do you mean, that I must have 80 and 443 ports here?
Could you help with manual, where I could get info about this step?
Hi Sergey,
Please confirm below:
1. Ensure that the Relay Server Service is run by an account that is member of the local Administrators group.
2. Ensure there is only a single instance of the rshost.exe is running in the memory.
3. As Ali mentioned please comment start = auto line in the RS.config file by doing this #start = auto. Then please restart the service and share the log file.
Thank you,
Sejal
Hi Sergey
You actually set up the environment expecting the Relay Server to listen to ports 80 and 443.
http_port = 80
https_port = 443
When we talk about what ports the Relay Server listens to, what they are, essentially are the ports the IIS Web server (or in some cases, the Apache Web server) you configure the Relay server to work with,
That's all the ports that the rshost side need to listen to.
Now, on the other side you have got some RSOE instances (you need at least two) to work with the Relay. If you add the RSOE processes and what sort of logs are observed when things are not working we'll get a better picture of what does not work. So, the RSOE command including parameters would help a lot here too.
Here is my command:
C:\Program Files\RelayServer\ias_relay_server\server> .\dbsvc.exe -as -s auto -t Standalone -sn RelayServer -w RelayServer "C:\Program Files\RelayServer\ias_relay_server\server\rshost.exe" -q -qc -f "C:\Program Files\RelayServer\ias_relay_server\server\rs.config" -o "C:\Program Files\RelayServer\ias_relay_server\server\log.txt"
May be it is mistake somewhere here?
If your problem is still the same, that there is nothing listening on the port on the Relay Server, then your problem is with your IIS. If you mean that you cannot connect to the Afaria backend server from the browser, then the problem appears to be with your RSOE.
Relay Server does not listen on its own, but uses IIS or Apache (on linux) to listen/receive commands. There is a component which should be installed on your Afaria server, which opens a connection from the backend (Afaria) server to the Relay Server. I do not see these connecting to the Relay Server in your log. Have you also done the configuration of the RSOE on the Afaria server?
As a test, you can start the RSOE from command prompt like this:
<PathToRSOE.exe>\rsoe.exe -id Enrollpackage -f enrollpackage -t 789 -cs "host=127.0.0.1;port=80" -cr "host=<RelayServerIPAddressOrDNSName>;port=80;url_suffix=/ias_relay_server/server/rs_server.dll"
replace <PathToRSOE.exe> with the location of the rsoe, the default is "c:\progra~2\afaria\bin\rsoutboundenabler\"
replace <RelayServerIPAddressOrDNSName> with the IP address or dns name of the relay server.
Other problems with your RS.config file from above:
Hi Sergey,
You can find details about the rsoe.exe syntax in the links below
An example of options for Afaria server (this could be the content of a configuration file as well):
-id <Afaria server transmitter ID>
-f <name of the farm>
-cs "host=<IP address of server name>;port=<port number>"
-cr "host=<IP address or relay server name>;port=<port number>;url_suffix=/ias_relay_server/server/rs_server.dll"
-v 0
-o "C:\afaria_rsoe.log" -os 5120000
You can find the transmitter ID value of your Afaria server in the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Afaria\Afaria\Server\TransmitterId
The port number in -cs is the same you have specified in the Afaria Admin console in Server>Configuration>Device Communication.
Note that you need an outbound enabler for each Afaria component you have installed (for example Package Server, Enrollment Server, API service) and the data that you put in the correspondent configuration file (in particular -id and -f) have to match what in the Relay Server configuration file.
Thank you,
Mirco
Hi Sergey,
Can you please confirm that you have binded both, HTTP and HTTPS ports in your IIS?
Thanks,
Sejal Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.