Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: Daily Data Availability Phase 2
-
Fix Version/s: Daily Data Availability Phase 2
-
Component/s: None
-
Labels:None
Description
/event-wrapper.sh setdatanotstarted.sh doesn't have permission for creating log file.
1) Ran tsaapp@tvvm-staging-xml1:/usr/local/tsa/bidmgr$ ./event-listener.sh -I138 -d 3
2)Check the logs
2011-09-30 00:16:08.816 INFO [FailoverTransport]: Successfully connected to tcp://event-msg-broker-01:61616
2011-09-30 00:16:09.363 (3) [main]: Waiting for messages...
2011-09-30 00:20:06.513 (3) [main]: Processing Event: SetDataAvailability:[ Data: 2011-09-29 TimeZoneIDs: 1,5,13,8 ]
2011-09-30 00:20:06.525 (3) [main]: Processing Event: SetDataAvailability:[ Data: 2011-09-29 TimeZoneIDs: 1,5,13,8 ]
2011-09-30 00:20:06.539 (3) [main]: Processing Event: SetDataAvailability:[ Data: 2011-09-29 TimeZoneIDs: 1,5,13,8 ]
2011-09-30 00:20:06.555 (3) [main]: Processing Event: RunAdmaxSummarizer:[ Date: 2011-09-29 TimeZoneIDs: 1,5,13,8 ]
2011-09-30 00:20:06.562 (3) [main]: Processing Event: RunAdmaxSummarizer:[ Date: 2011-09-29 TimeZoneIDs: 1,5,13,8 ]
2011-09-30 00:20:06.593 (3) [pool-1-thread-2]: Running command: /usr/local/tsa/bidmgr/event-wrapper.sh setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 1,5,13,8
2011-09-30 00:20:06.601 (3) [pool-1-thread-3]: Running command: /usr/local/tsa/bidmgr/event-wrapper.sh setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 1,5,13,8
2011-09-30 00:20:06.602 (3) [pool-1-thread-4]: Running command: /usr/local/tsa/bidmgr/event-wrapper.sh setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 1,5,13,8
2)tsaapp@tvvm-staging-xml1:/usr/local/tsa/bidmgr$ /usr/local/tsa/bidmgr/event-wrapper.sh setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 18
Executing setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 18: writing to /var/local/tsa/log/2011-09-30/setdatanotstarted.sh_d_3_T_2011_09_29__timezoneid_18_02:50:43.log
/usr/local/tsa/bidmgr/event-wrapper.sh: line 51: /var/local/tsa/log/2011-09-30/setdatanotstarted.sh_d_3_T_2011_09_29__timezoneid_18_02:50:43.log: Permission denied
2011-09-30 00:20:06.789 (3) [pool-1-thread-5]: Running command: /usr/local/tsa/bidmgr/event-wrapper.sh admax.sh -d 3 --timezoneid 1,5,13,8
Executing setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 1,5,13,8: writing to /var/local/tsa/log/2011-09-30/setdatanotstarted.sh_d_3_T_2011_09_29__timezoneid_1,5,13,8_00:20:07.log
/usr/local/tsa/bidmgr/event-wrapper.sh: line 51: /var/local/tsa/log/2011-09-30/setdatanotstarted.sh_d_3_T_2011_09_29__timezoneid_1,5,13,8_00:20:07.log: Permission denied
Executing setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 1,5,13,8: writing to /var/local/tsa/log/2011-09-30/setdatanotstarted.sh_d_3_T_2011_09_29__timezoneid_1,5,13,8_00:20:06.log
2011-09-30 00:20:07.445 (1) [pool-1-thread-4]: Exception [Error running command: ]:org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
at com.thesearchagency.event.EventListener$ProcessRunner.run(EventListener.java:835)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
3) Now check this separately, It works fine.
tsaapp@tvvm-staging-xml1:/usr/local/tsa/bidmgr$ ./setdatanotstarted.sh -d 3 -T 2011-09-29 --timezoneid 15
===== Setting not started records =====
2011-09-30 02:54:49.332 (3) [main]: Debug Level set to 3
2011-09-30 02:54:49.382 (3) [main]: Service URL: http://svc-useracctv2.svc.thesearchagency.com:8080/svc-useracctv2.0/UserAccountService2.0?wsdl
2011-09-30 02:54:52.205 (3) [main]: Got UserAccountService20 object.
Sep 30, 2011 2:54:52 AM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service
{urn:v2.UserAccountService.services.thesearchagency.com}UserAccountService2.0 from WSDL: http://svc-useracctv2.svc.thesearchagency.com:8080/svc-useracctv2.0/UserAccountService2.0?wsdl
2011-09-30 02:54:57.157 (3) [main]: Got UserAccountServiceEndPoint object.
2011-09-30 02:54:57.746 (3) [main]: DatabasePool with a limit of 80 created