Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loklak does not start because of missing library #577

Closed
Orbiter opened this issue Jun 13, 2016 · 4 comments
Closed

loklak does not start because of missing library #577

Orbiter opened this issue Jun 13, 2016 · 4 comments
Assignees

Comments

@Orbiter
Copy link
Member

Orbiter commented Jun 13, 2016

on loklak.org, loklak fails to start!

with 10993ac we can see now this error

loklak@host000:/tmp$ tail -1000 loklak_201606130751.log 
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/or/RendererMap
    at org.apache.log4j.Hierarchy.<init>(Hierarchy.java:97)
    at org.apache.log4j.LogManager.<clinit>(LogManager.java:82)
    at org.apache.log4j.Logger.getLogger(Logger.java:104)
    at org.elasticsearch.common.logging.log4j.Log4jESLoggerFactory.newInstance(Log4jESLoggerFactory.java:38)
    at org.elasticsearch.common.logging.ESLoggerFactory.newInstance(ESLoggerFactory.java:82)
    at org.elasticsearch.common.logging.ESLoggerFactory.getLogger(ESLoggerFactory.java:66)
    at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:121)
    at org.elasticsearch.common.settings.Settings.<clinit>(Settings.java:63)
    at org.loklak.data.ElasticsearchClient.<init>(ElasticsearchClient.java:110)
    at org.loklak.data.DAO.init(DAO.java:203)
    at org.loklak.LoklakServer.main(LoklakServer.java:215)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.or.RendererMap
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 11 more

The cause is this pull request here:
498c5f5

We need either that library back again or another solution.

@rmader
Copy link
Contributor

rmader commented Jun 13, 2016

Please clear your installation directory and rebuild. That error should not occur then.
(i mean ant clean)

But indeed, there's still some logging going on there which for some reason does not yet go to the general log.

I get alot of these:
Jun 13, 2016 3:35:30 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "set-cookie: fm=0; Expires=Mon, 13 Jun 2016 13:35:20 GMT; Path=/; Domain=.twitter.com; Secure; HTTPOnly". Invalid 'expires' attribute: Mon, 13 Jun 2016 13:35:20 GMT Jun 13, 2016 3:35:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "set-cookie: fm=0; Expires=Mon, 13 Jun 2016 13:35:21 GMT; Path=/; Domain=.twitter.com; Secure; HTTPOnly". Invalid 'expires' attribute: Mon, 13 Jun 2016 13:35:21 GMT

I disabled the normal output because there's still some rough edges in the code not yet using the log system. Will try to get them in.

Edit: httpclient now also logs to loklak.log (#581)

@rmader rmader closed this as completed Jun 13, 2016
@rmader
Copy link
Contributor

rmader commented Jun 13, 2016

By the way, the travis build system is now able to check if loklak starts up fine. So all new push requests are checked before they are merged.
So if the startup fails, the problem should usually be searched for on the user system.

@Orbiter
Copy link
Member Author

Orbiter commented Jun 13, 2016

ok, lets include the 'clean' in bin/upgrade.sh

@rmader
Copy link
Contributor

rmader commented Jun 13, 2016

done, #584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants