lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Stoney (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-13392) Unable to start prometheus-exporter in 7x branch
Date Thu, 11 Apr 2019 14:42:00 GMT

    [ https://issues.apache.org/jira/browse/SOLR-13392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16815451#comment-16815451
] 

Karl Stoney edited comment on SOLR-13392 at 4/11/19 2:41 PM:
-------------------------------------------------------------

[~ichattopadhyaya] it is a fresh clone, it's built in a dockerfile, there's not even any cache,
let alone straggling files:

It's the same build process we used on to build the older commit `26b498d0a9d25626a15e25b0cf97c8339114263a`

```
    git clone https://github.com/apache/lucene-solr.git -b $SOLR_BRANCH && \
    cd lucene-solr && \
    ant clean && \
    ant ivy-bootstrap && \
    cd solr && \
    git reset --hard $SOLR_COMMIT && \
    ant -file build.xml prepare-release-no-sign && \
    cp package/solr-*-SNAPSHOT.tgz /usr/local/autotrader/app/solr.tgz && \
    rm -rf /usr/local/autotrader/app/lucene-solr && \
    mkdir -p /opt/solr && \
    tar -C /opt/solr --extract --file /usr/local/autotrader/app/solr.tgz --strip-components=1
&& \
    rm -Rf /opt/solr/docs/
```


was (Author: kstoney):
[~ichattopadhyaya] it is a fresh clone, it's built in a dockerfile, there's not even any maven
cache, let alone straggling files:

It's the same build process we used on to build the older commit `26b498d0a9d25626a15e25b0cf97c8339114263a`

```
    git clone https://github.com/apache/lucene-solr.git -b $SOLR_BRANCH && \
    cd lucene-solr && \
    ant clean && \
    ant ivy-bootstrap && \
    cd solr && \
    git reset --hard $SOLR_COMMIT && \
    ant -file build.xml prepare-release-no-sign && \
    cp package/solr-*-SNAPSHOT.tgz /usr/local/autotrader/app/solr.tgz && \
    rm -rf /usr/local/autotrader/app/lucene-solr && \
    mkdir -p /opt/solr && \
    tar -C /opt/solr --extract --file /usr/local/autotrader/app/solr.tgz --strip-components=1
&& \
    rm -Rf /opt/solr/docs/
```

> Unable to start prometheus-exporter in 7x branch
> ------------------------------------------------
>
>                 Key: SOLR-13392
>                 URL: https://issues.apache.org/jira/browse/SOLR-13392
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>    Affects Versions: 7.7.2
>            Reporter: Karl Stoney
>            Priority: Major
>
> Hi, 
> prometheus-exporter doesn't start in branch 7x on commit 7dfe1c093b65f77407c2df4c2a1120a213aef166,
it does work on 26b498d0a9d25626a15e25b0cf97c8339114263a so something has changed between
those two commits causing this.
> I am presuming it is https://github.com/apache/lucene-solr/commit/e1eeafb5dc077976646b06f4cba4d77534963fa9#diff-3f7b27f0f087632739effa2aa508d77eR34
> INFO  - 2019-04-10 23:52:30.979; org.apache.solr.core.SolrResourceLoader; solr home defaulted
to 'solr/' (could not find system property or JNDI)
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/util/IOUtils
>         at org.apache.solr.core.SolrResourceLoader.close(SolrResourceLoader.java:881)
>         at org.apache.solr.prometheus.exporter.SolrExporter.loadMetricsConfiguration(SolrExporter.java:221)
>         at org.apache.solr.prometheus.exporter.SolrExporter.main(SolrExporter.java:205)
> Caused by: java.lang.ClassNotFoundException: org.apache.lucene.util.IOUtils
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         ... 3 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message