Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: Giraffe
-
Fix Version/s: Giraffe
-
Component/s: Admax Deployment Service
-
Labels:None
-
Environment:
Ops-utils RC
-
Sprint:Sprint 8
Description
Adrefresher throws logging error while running the script for any option.
The following error is seen on running the script:
[TSAApp@aml-qa4-core1 ops-utils]$ ./ad-refresher.sh -su atul.sanagar@thesearchagency.com -sp Test123 -sr qa4amltest -s http://aml-qa4-front1:8080/sapi/rest/ -m baac1c46-321a-4e6e-95ca-63b0f70c005d,827a58d3-6857-4603-bb85-ae68726bbe92,874a90f7-b4ee-4f56-b0be-5bc0c134f850,07ac0334-f004-4a46-a9f7-9770da610fe9,3e224068-5dda-46f7-840c-582acc3cebc4,e3ad2865-1fe5-459d-92a6-90fcf41a91cc,1fcca0ec-c775-4c4d-92f6-943a4b4618ce,7e1dc61b-915f-431f-8d95-3e39ad280b6b,37d1a5f7-75d5-480e-ad38-d351b80f4cf0,07ed1a32-3943-45f6-b331-38d1c28a6343 -ra
10:29:32,856 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
10:29:32,856 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
10:29:32,856 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/usr/local/tsa/ops-utils-1.0.2-RC1/libs/ops-utils-shaded-jar-1.0.2-RC1.jar!/logback.xml]
10:29:32,874 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@214a55f2 - URL [jar:file:/usr/local/tsa/ops-utils-1.0.2-RC1/libs/ops-utils-shaded-jar-1.0.2-RC1.jar!/logback.xml] is not of type file
10:29:33,013 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
10:29:33,019 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
10:29:33,022 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
10:29:33,081 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
10:29:33,082 |INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern /var/log/tsa/campaign-service/campaign-service%d
10:29:33,086 |
.log'.
10:29:33,086 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight.
10:29:33,091 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Thu Dec 22 10:29:33 UTC 2016
10:29:33,093 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
10:29:33,116 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: /var/log/tsa/campaign-service/campaign-service.log
10:29:33,116 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [/var/log/tsa/campaign-service/campaign-service.log]
10:29:33,117 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Failed to create parent directories for [/var/log/tsa/campaign-service/campaign-service.log]
10:29:33,118 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/var/log/tsa/campaign-service/campaign-service.log,true) call failed. java.io.FileNotFoundException: /var/log/tsa/campaign-service/campaign-service.log (No such file or directory)
at java.io.FileNotFoundException: /var/log/tsa/campaign-service/campaign-service.log (No such file or directory)
at at java.io.FileOutputStream.openAppend(Native Method)
at at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
at at ch.qos.logback.core.recovery.ResilientFileOutputStream.<init>(ResilientFileOutputStream.java:28)
at at ch.qos.logback.core.FileAppender.openFile(FileAppender.java:148)
at at ch.qos.logback.core.FileAppender.start(FileAppender.java:108)
at at ch.qos.logback.core.rolling.RollingFileAppender.start(RollingFileAppender.java:86)
at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
at at org.apache.log4j.Category.<init>(Category.java:56)
at at org.apache.log4j.Logger.<init>(Logger.java:36)
at at org.apache.log4j.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:62)
at at org.apache.log4j.Logger.getLogger(Logger.java:40)
at at org.apache.log4j.Logger.getLogger(Logger.java:48)
at at com.admaxlocal.ops.ads.refresher.AdRefresher.<init>(AdRefresher.java:31)
at at com.admaxlocal.ops.ads.refresher.AdRefresher.main(AdRefresher.java:34)
10:29:33,118 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [ch.qos.logback] to OFF
10:29:33,118 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.eclipse.jetty.server] to WARN
10:29:33,119 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework] to WARN
10:29:33,119 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] to ERROR
10:29:33,119 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.cxf] to INFO
10:29:33,119 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.resultsettable] to OFF
10:29:33,119 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.sqlonly] to INFO
10:29:33,120 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.audit] to OFF
10:29:33,120 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.sqltiming] to OFF
10:29:33,120 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.connection] to OFF
10:29:33,120 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.resultset] to OFF
10:29:33,120 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.thesearchagency] to INFO
10:29:33,121 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [com.thesearchagency.services.campaign] to DEBUG
10:29:33,121 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
10:29:33,121 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]
10:29:33,122 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
10:29:33,122 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@2b20bf2c - Registering current configuration as safe fallback point
Note:
No logging about ads that has been unassigned though Ads are being refreshed/migrated.