Impossible to connect

Added by Med BR 7 months ago

Impossible to connect
version of linshare: 2.1
os: debian 8.9 jessie
i have installed linshare plusoir and i followed the steps of the installation step by step
but impossible to connect to the inetrface admin and user.
see the overviews

/etc/default/tomcat8

  1. Run Tomcat as this user ID. Not setting this or leaving it blank will use the
  2. default of tomcat8.
    TOMCAT8_USER=tomcat8
  1. Run Tomcat as this group ID. Not setting this or leaving it blank will use
  2. the default of tomcat8.
    TOMCAT8_GROUP=tomcat8
  1. The home directory of the Java development kit (JDK). You need at least
  2. JDK version 8. If JAVA_HOME is not set, some common directories for
  3. OpenJDK and the Oracle JDK are tried.
    #JAVA_HOME=/usr/lib/jvm/java-8-openjdk
  1. You may pass JVM startup parameters to Java here. If unset, the default
  2. options will be: -Djava.awt.headless=true -XX:+UseConcMarkSweepGC #
  3. Use "-XX:+UseConcMarkSweepGC" to enable the CMS garbage collector (improved
  4. response time). If you use that option and you run Tomcat on a machine with
  5. exactly one CPU chip that contains one or two cores, you should also add
  6. the "-XX:+CMSIncrementalMode" option.
    #JAVA_OPTS="-Djava.awt.headless=true -XX:+UseConcMarkSweepGC" # Pour utiliser un fichier de configuration externe pour linshare, utilisez cette clé pour JAVA_OPS
    JAVA_OPTS = "$ {JAVA_OPTS} -Djava.awt.headless = true -Xms512m -Xmx2048m"
    JAVA_OPTS = "$ {JAVA_OPTS} -Dlinshare.config.path = fichier: / etc / linshare /"
    JAVA_OPTS = "$ {JAVA_OPTS} -Dlog4j.configuration = fichier: /etc/linshare/log4j.properties"
    JAVA_OPTS = "$ {JAVA_OPTS} -Dspring.profiles.active = default, jcloud, mongo"
  7. Sur Centos, n'utilisez qu'une seule instruction JAVA_OPTS. N'utilisez pas la syntaxe précédente, cela peut ne pas fonctionner.

2.jpg (59.5 kB)

1.jpg (136.8 kB)


Replies (6)

RE: Impossible to connect - Added by Frédéric MARTIN 7 months ago

Hi,

Just take a look to the Tomcat log file (catalina.out), It will help you to understand why the server is not running.

RE: Impossible to connect - Added by Med BR 7 months ago

thank you for your reply
I am new in this area how can I see the file catalina.out?

RE: Impossible to connect - Added by Frédéric MARTIN 7 months ago

LinShare's logs are available here : /var/log/tomcat/catalina.out.

RE: Impossible to connect - Added by Med BR 7 months ago

root@debian:/jclouds# tail -f /var/log/tomcat8/catalina.out

mai 30, 2018 5:00:41 PM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFOS: Using a shared selector for servlet write/read
mai 30, 2018 5:00:41 PM org.apache.catalina.startup.Catalina load
INFOS: Initialization processed in 3509 ms
mai 30, 2018 5:00:41 PM org.apache.catalina.core.StandardService startInternal
INFOS: Démarrage du service Catalina
mai 30, 2018 5:00:41 PM org.apache.catalina.core.StandardEngine startInternal
INFOS: Starting Servlet Engine: Apache Tomcat/8.0.14 (Debian)
mai 30, 2018 5:00:41 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Déploiement de l'archive /var/lib/tomcat8/webapps/linshare.war de l'application web
[INFO]:localhost-startStop-1:20180530.170144:org.springframework.web.context.ContextLoader:initWebApplicationContext:Root WebApplicationContext: initialization started
[INFO]:localhost-startStop-1:20180530.170145:org.springframework.web.context.support.XmlWebApplicationContext:prepareRefresh:Refreshing Root WebApplicationContext: startup date [Wed May 30 17:01:45 CEST 2018]; root of context hierarchy
[INFO]:localhost-startStop-1:20180530.170147:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-security-sso.xml]
[INFO]:localhost-startStop-1:20180530.170149:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-aop.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-storage-jcloud.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/OPTIONAL-springContext-jcloud.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-facade-ws-delegation.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-task-executor.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-jmx.xml]
[INFO]:localhost-startStop-1:20180530.170150:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-security.xml]
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.security.core.SpringSecurityCoreVersion:performVersionChecks:You are running with Spring Security Core 4.0.3.RELEASE
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.security.config.SecurityNamespaceHandler:<init>:Spring Security 'config' module version is 4.0.3.RELEASE
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-storage-jackrabbit-to-gridfs.xml]
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-webservice-admin.xml]
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[INFO]:localhost-startStop-1:20180530.170151:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-service-miscellaneous.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-webservice-uploadproposition.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-service.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-facade-ws-uploadrequest.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-facade-ws-user.xml]
[INFO]:localhost-startStop-1:20180530.170152:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-storage-jackrabbit.xml]
[INFO]:localhost-startStop-1:20180530.170153:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-facade-ws-safe.xml]
[INFO]:localhost-startStop-1:20180530.170153:org.springframework.beans.factory.xml.XmlBeanDefinitionReader:loadBeanDefinitions:Loading XML bean definitions from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-mongo.xml]
[ERROR]:localhost-startStop-1:20180530.170155:org.springframework.web.context.ContextLoader:initWebApplicationContext:Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [/var/lib/tomcat8/webapps/linshare/WEB-INF/classes/springContext-mongo.xml]; nested exception is java.lang.UnsupportedClassVersionError: org/linagora/linshare/mongo/repository/DocumentGarbageCollecteurMongoRepository : Unsupported major.minor version 52.0 (unable to load class org.linagora.linshare.mongo.repository.DocumentGarbageCollecteurMongoRepository)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:609)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:510)
        at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4832)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5256)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1703)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: org/linagora/linshare/mongo/repository/DocumentGarbageCollecteurMongoRepository : Unsupported major.minor version 52.0 (unable to load class org.linagora.linshare.mongo.repository.DocumentGarbageCollecteurMongoRepository)
        at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2476)
        at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:853)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1263)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1146)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
        at org.springframework.data.repository.config.RepositoryBeanNameGenerator.getRepositoryInterfaceFrom(RepositoryBeanNameGenerator.java:74)
        at org.springframework.data.repository.config.RepositoryBeanNameGenerator.generateBeanName(RepositoryBeanNameGenerator.java:54)
        at org.springframework.data.repository.config.RepositoryConfigurationDelegate.registerRepositoriesIn(RepositoryConfigurationDelegate.java:139)
        at org.springframework.data.repository.config.RepositoryBeanDefinitionParser.parse(RepositoryBeanDefinitionParser.java:74)
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:74)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1411)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
        ... 26 more
mai 30, 2018 5:01:55 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
mai 30, 2018 5:01:55 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Erreur de démarrage du contexte [/linshare] suite aux erreurs précédentes
[INFO]:localhost-startStop-1:20180530.170155:org.springframework.web.context.support.XmlWebApplicationContext:doClose:Closing Root WebApplicationContext: startup date [Wed May 30 17:01:45 CEST 2018]; root of context hierarchy
[WARN]:localhost-startStop-1:20180530.170155:org.springframework.web.context.support.XmlWebApplicationContext:doClose:Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Wed May 30 17:01:45 CEST 2018]; root of context hierarchy
        at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:415)
        at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:975)
        at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:934)
        at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:583)
        at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:116)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4873)
        at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5473)
        at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1703)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622)
        at java.lang.Thread.run(Thread.java:748)
mai 30, 2018 5:01:55 PM org.apache.catalina.startup.HostConfig deployWAR
INFOS: Deployment of web application archive /var/lib/tomcat8/webapps/linshare.war has finished in 73 396 ms
mai 30, 2018 5:01:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Déploiement du répertoire /var/lib/tomcat8/webapps/ROOT de l'application web
mai 30, 2018 5:01:57 PM org.apache.catalina.startup.HostConfig deployDirectory
INFOS: Deployment of web application directory /var/lib/tomcat8/webapps/ROOT has finished in 2 184 ms
mai 30, 2018 5:01:57 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["http-nio-8080"]
mai 30, 2018 5:01:57 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 76018 ms

RE: Impossible to connect - Added by Med BR 7 months ago

I'm blocking here: how to enable default authentication

On LinShare, you have two possible authentication mode, the first is the nominal mode, and the second is the sso mode. To start LinShare you must at least enable one of those two following modes :

    default : default authentication process.
    sso : Enable headers injection for SSO. This profile includes default profile capabilities

The default profile is jcloud with filesystem for tests purpose.

You can override this parameter using -Dspring.profiles.active=xxx Or you can use environment variable : SPRING_PROFILES_ACTIVE You must enable at least one authentication profile among authentication profiles and one profile among file data store profiles described below.

Available file data store profiles :

    jcloud : Using jcloud as file data store : Amazon S3, Swift, Ceph, filesystem (test only).

    gridfs : Using gridfs (mongodb) as file data store.

    jackrabbit2 : Using jackrabbit as file data store.

    jackrabbit-to-jcloud : Using Jcloud as new file data store, jackrabbit as fallback file data store.

    jackrabbit-to-gridfs : Using GridFS as new file data store, jackrabbit as fallback file data store.

Recommended profile for production is jcloud with Swift.

The default profile is jcloud with filesystem for tests purpose.

    Note:
    - We only use JackRabbit for the transition, it is deprecated.

RE: Impossible to connect - Added by Med BR 7 months ago

how to have a little documentation explain this paragraph ??

thank you in advance

(1-6/6)