[
https://issues.apache.org/jira/browse/SOLR-10154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871576#comment-15871576
]
Jan Høydahl commented on SOLR-10154:
------------------------------------
{noformat}
run-example:
[java] log4j:ERROR setFile(null,true) call failed.
[java] java.io.FileNotFoundException: /solr.log (Permission denied)
[java] at java.io.FileOutputStream.open0(Native Method)
[java] at java.io.FileOutputStream.open(FileOutputStream.java:270)
[java] at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
[java] at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
[java] at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
[java] at
org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
[java] at
org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
[java] at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
[java] at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
[java] at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
[java] at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
[java] at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
[java] at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
[java] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
[java] at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
[java] at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
[java] at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
[java] at
org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
[java] at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
[java] at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:38)
[java] at org.eclipse.jetty.util.log.Slf4jLog.<init>(Slf4jLog.java:32)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[java] at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[java] at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
[java] at java.lang.Class.newInstance(Class.java:442)
[java] at org.eclipse.jetty.util.log.Log.initialized(Log.java:177)
[java] at org.eclipse.jetty.util.log.Log.getLogger(Log.java:310)
[java] at org.eclipse.jetty.util.log.Log.getLogger(Log.java:300)
[java] at
org.eclipse.jetty.xml.XmlConfiguration.<clinit>(XmlConfiguration.java:81)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at java.lang.reflect.Method.invoke(Method.java:498)
[java] at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
[java] at org.eclipse.jetty.start.Main.start(Main.java:457)
[java] at org.eclipse.jetty.start.Main.main(Main.java:75)
[java] 2017-02-17 10:54:19.382 INFO (main) [ ] o.e.j.s.Server
jetty-9.3.14.v20161028
[java] 2017-02-17 10:54:19.766 ERROR (main) [ ]
o.a.s.s.StartupLoggingUtils Missing Java Option solr.log.dir. Logging may be
missing or incomplete.
[java] 2017-02-17 10:54:19.771 INFO (main) [ ]
o.a.s.s.SolrDispatchFilter ___ _ Welcome to Apache Solr™ version
6.5.0-SNAPSHOT a81b227cd220118db365904535bc30d4d4cbd718 - janhoy - 2017-02-17
10:54:14
[java] 2017-02-17 10:54:19.771 INFO (main) [ ]
o.a.s.s.SolrDispatchFilter / __| ___| |_ _ Starting in standalone mode on
port 8983
[java] 2017-02-17 10:54:19.771 INFO (main) [ ]
o.a.s.s.SolrDispatchFilter \__ \/ _ \ | '_| Install dir: null
[java] 2017-02-17 10:54:19.801 INFO (main) [ ]
o.a.s.s.SolrDispatchFilter |___/\___/_|_| Start time:
2017-02-17T09:54:19.775Z
[java] 2017-02-17 10:54:19.819 INFO (main) [ ]
o.a.s.c.SolrResourceLoader Using system property solr.solr.home:
/Users/janhoy/git/lucene-solr/solr/server/solr
[java] 2017-02-17 10:54:19.825 INFO (main) [ ] o.a.s.c.SolrXmlConfig
Loading container configuration from
/Users/janhoy/git/lucene-solr/solr/server/solr/solr.xml
[java] 2017-02-17 10:54:20.180 INFO (main) [ ]
o.a.s.u.UpdateShardHandler Creating UpdateShardHandler HTTP client with params:
socketTimeout=600000&connTimeout=60000&retry=true
[java] 2017-02-17 10:54:20.321 INFO (main) [ ]
o.a.s.c.CorePropertiesLocator Found 0 core definitions underneath
/Users/janhoy/git/lucene-solr/solr/server/solr
[java] 2017-02-17 10:54:20.445 INFO (main) [ ] o.e.j.s.Server Started
@1631ms
[java] 2017-02-17 10:55:05.649 INFO (qtp1495242910-18) [ ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/cores
params={indexInfo=false&wt=json&_=1487325305493} status=0 QTime=56
[java] 2017-02-17 10:55:05.704 INFO (qtp1495242910-17) [ ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/system
params={wt=json&_=1487325305494} status=0 QTime=110
[java] 2017-02-17 10:55:05.725 INFO (qtp1495242910-11) [ ]
o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/info/system
params={wt=json&_=1487325305494} status=0 QTime=14
{noformat}
> ant run-example fails to start due to missing solr.log.dir
> ----------------------------------------------------------
>
> Key: SOLR-10154
> URL: https://issues.apache.org/jira/browse/SOLR-10154
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Build
> Affects Versions: 6.4.1
> Reporter: Jan Høydahl
>
> Running {{ant run-example}} fails to start. Problem is that this solr
> instance is not started using bin/solr and thus does not have proper
> variables such as {{solr.install.dir}} and {{solr.log.dir}}. Error output in
> next comment.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]