Thanks a lot :). It worked.
Thanks,
Pravein
On Thu, Mar 16, 2017 at 10:39 PM, William Di Luigi <williamdiluigi@xxxxxxxxx
wrote:
Change:
"contest_listen_address": [""],
"contest_listen_port": [8888],
To:
"contest_listen_address": ["", ""],
"contest_listen_port": [8888, 18888],
On Thu, Mar 16, 2017 at 3:24 PM Pravein GK <praveingk@xxxxxxxxx> wrote:
I tried to start manually and got the below error :
2017-03-13-02-41-08.log 2017-03-15-22-32-56.log
2017-03-15-22-34-29.log 2017-03-15-22-43-50.log 2017-03-16-02-29-09.log
last.log
ncl@node2:/var/local/log/cms/ProxyService-1$ cmsContestWebServer 1
2017-03-16 07:16:52,760 - INFO [<unknown>] Using configuration file
/usr/local/etc/cms.conf.
Contests available:
1 - ID: 1 - Name: Test - Description: Test 2017 (default)
Insert the row number next to the contest you want to load (not the id): 1
*2017-03-16 07:16:56,550 - CRITICAL [<unknown>] Wrong shard number for
cms.server.contest.server, or missing address/port configuration. Please
check contest_listen_address and contest_listen_port in cms.conf.*
Below is my cms.conf pertaining to contest_listen_address :
"
"_section": "ContestWebServer",
"_help": "Listening HTTP addresses and ports for the CWSs listed
above",
"_help": "in core_services. If you access them through a proxy
(acting",
"_help": "as a load balancer) running on the same host you could put",
"_help": "127.0.0.1 here for additional security.",
"contest_listen_address": [""],
"contest_listen_port": [8888],
"
Should the contest_listen_address be changed to add the ipaddress of
each host?
Also, Changing the contestwebserver port to 21001 had the same result too.
Thanks,
Pravein
On Thu, Mar 16, 2017 at 6:06 PM, Stefano Maggiolo <s.maggiolo@xxxxxxxxx>
wrote:
Looks like the problem is that you are trying to use the same port for
both :)
Change the second 21000 to 21001!
On 16 March 2017 at 09:57, William Di Luigi <williamdiluigi@xxxxxxxxx>
wrote:
It probably gets killed before writing any log... Try to start it
manually and see the output:
$ cmsContestWebServer 1
On Thu, Mar 16, 2017 at 10:33 AM Pravein GK <praveingk@xxxxxxxxx> wrote:
Hi Stefano and William,
Thanks for the reply.
There is no directory ContestWebServer-1 in /var/local/log/cms
The only log I see of the error in Resourceservice is :
2017-03-16 02:30:01,458 - INFO [Resource,0 1
ResourceService::_restart_services]
Restarting (ContestWebServer, 1)...
2017-03-16 02:30:06,463 - INFO [Resource,0 1
ResourceService::_restart_services]
Restarting (ContestWebServer, 1)...
2017-03-16 02:30:11,465 - INFO [Resource,0 1
ResourceService::_restart_services]
Restarting (ContestWebServer, 1)...
2017-03-16 02:30:16,467 - INFO [Resource,0 1
ResourceService::_restart_services]
Restarting (ContestWebServer, 1)...
2017-03-16 02:30:21,477 - INFO [Resource,0 1
ResourceService::_restart_services]
Restarting (ContestWebServer, 1)...
(ContestWebServer,0) is working fine btw.
In the cms.conf, I had just replicated like below . Am i missing any
other config ?:
"ContestWebServer": [["n1", 21000],
["n2", 21000]],
Thanks,
Pravein
ᐧ
On Thu, Mar 16, 2017 at 5:17 PM, Stefano Maggiolo <s.maggiolo@xxxxxxxxx>
wrote:
Hi Pravein,
You should take a look at the logs for cws1 to see if it starts and dies
immediately (and you'll also see the reason) or if it is a problem with RS
not being able to launch it (if so, maybe logs of RS could say something
about it).
On 16 Mar 2017 6:16 am, "Pravein GK" <praveingk@xxxxxxxxx> wrote:
Hi,
I am trying to run multiple ContestWebServers (2 for now.)
I see a problem that only 1 contestwebserver is running in the main
server nd others are restarting.
*2017-03-15 23:16:45,644 - INFO [Resource,0] Restarting
(ContestWebServer, 1)...*
*2017-03-15 23:16:50,649 - INFO [Resource,0] Restarting
(ContestWebServer, 1)...*
*2017-03-15 23:16:55,645 - INFO [Resource,0] Restarting
(ContestWebServer, 1)...*
*2017-03-15 23:17:00,646 - INFO [Resource,0] Restarting
(ContestWebServer, 1)...*
Any way to fix that?
Thanks,
Pravein
ᐧ