Probléme d'accés linshare

Added by Med BR 8 months ago

Bonjour
j'ai suivi le tutoriel https://github.com/linagora/linshare/blob/master/documentation/FR/installation/linshare-install.md de A à Z
après plusieurs tentative d'installation
impossible d'accéder a linterface admin ni a user
version de linshare: 2.1
version de systéme: debian 8.9

/etc/linshare/linshare.properties

  • Domain
  1. If true, we can search an user during authentication process using his uid or his mail (as a login).
  2. By default, false, only the mail is used.
  3. Be careful if you have multiples directories, login must be unique !!!
    linshare.multidomain.enable=false
  • Async task management
  1. ThreadPoolTaskExecutor for AsyncTask like uploads.
    #linshare.ThreadPoolTaskExecutor.corePoolSize=10
    #linshare.ThreadPoolTaskExecutor.maxPoolSize=30
  1. enable file size validation on rest API (thread entries, documents and flow).
    linshare.rest.files.size.validation=true
  • LinThumbnail configuration
    linshare.linthumbnail.remote.mode=false
    linshare.linthumbnail.dropwizard.server=http://0.0.0.0:8090/linthumbnail?mimeType=%1$s
  1. key to disable thumbnail generation
    linshare.documents.thumbnail.pdf.enable=true
    linshare.documents.thumbnail.enable=true
  1. SafeDetail properties value
    safe.detail.country.code=FR
    safe.detail.control.key=58
    safe.detail.iufsc=test.iufsc
  • Domain
  1. If true, we can search an user during authentication process using his uid or his mail (as a login).
  2. By default, false, only the mail is used.
  3. Be careful if you have multiples directories, login must be unique !!!
    linshare.multidomain.enable=false
  • Async task management
  1. ThreadPoolTaskExecutor for AsyncTask like uploads.
    #linshare.ThreadPoolTaskExecutor.corePoolSize=10
    #linshare.ThreadPoolTaskExecutor.maxPoolSize=30
  1. enable file size validation on rest API (thread entries, documents and flow).
    linshare.rest.files.size.validation=true
  • LinThumbnail configuration
    linshare.linthumbnail.remote.mode=false
    linshare.linthumbnail.dropwizard.server=http://0.0.0.0:8090/linthumbnail?mimeType=%1$s
  1. key to disable thumbnail generation
    linshare.documents.thumbnail.pdf.enable=true
    linshare.documents.thumbnail.enable=true
  1. SafeDetail properties value
    safe.detail.country.code=FR
    safe.detail.control.key=58
    safe.detail.iufsc=test.iufsc

/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.

log tomcat :
06-May-2018 15:17:01.387 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.401 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.404 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:01.405 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:01.415 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.416 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.416 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:01.417 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:01.419 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.420 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/var/lib/tomcat8/$
06-May-2018 15:17:01.421 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:01.422 AVERTISSEMENT [main] org.apache.catalina.startup.ClassLoaderFactory.validateFile Problem with directory [/usr/share/tomcat$
06-May-2018 15:17:03.757 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.14 (Debian)
06-May-2018 15:17:03.761 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 3 2017 17:51:58 UTC
06-May-2018 15:17:03.763 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.14.0
06-May-2018 15:17:03.766 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
06-May-2018 15:17:03.767 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.16.0-4-amd64
06-May-2018 15:17:03.767 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
06-May-2018 15:17:03.768 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd6$
06-May-2018 15:17:03.769 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_151-8u151-b12-1~deb9u1-b12
06-May-2018 15:17:03.770 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
06-May-2018 15:17:03.771 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /var/lib/tomcat8
06-May-2018 15:17:03.775 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat8
06-May-2018 15:17:03.776 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=$
06-May-2018 15:17:03.777 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.$
06-May-2018 15:17:03.777 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
06-May-2018 15:17:03.778 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC
06-May-2018 15:17:03.778 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
06-May-2018 15:17:03.780 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org$
06-May-2018 15:17:03.780 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/var/lib/tomcat8
06-May-2018 15:17:03.781 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomca$
06-May-2018 15:17:03.784 INFOS [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/tmp/tomcat8-to$
06-May-2018 15:17:03.786 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.$
06-May-2018 15:17:03.786 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], $
06-May-2018 15:17:03.788 INFOS [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [fals$
06-May-2018 15:17:03.808 INFOS [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2l $
06-May-2018 15:17:04.314 INFOS [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
06-May-2018 15:17:04.386 INFOS [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
06-May-2018 15:17:04.404 INFOS [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2852 ms
06-May-2018 15:17:04.584 INFOS [main] org.apache.catalina.core.StandardService.startInternal Démarrage du service Catalina
06-May-2018 15:17:04.585 INFOS [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.14 (Debian)
06-May-2018 15:17:04.635 INFOS [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Déploiement du répertoire /var/lib/to$
06-May-2018 15:17:05.617 AVERTISSEMENT [localhost-startStop-1] org.apache.tomcat.util.scan.StandardJarScanner.scan Failed to scan [file:/usr/share/$

06-May-2018 15:21:18.809 INFOS [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types de$
06-May-2018 15:21:19.415 INFOS [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationConte$
06-May-2018 15:21:40.906 GRAVE [localhost-startStop-2] org.apache.catalina.core.StandardContext.listenerStart Exception lors de l'envoi de l'évènem$
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'enciphermentService' defined in file [/var/lib/$
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:211)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:222)
at org.linagora.linshare.core.utils.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:56)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.$
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.$
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:678)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:520)
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:4745)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'LINSHARE_HOME' in string value "${LINSHARE_HOME}/var/lib/linshare/tmp"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:174)
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:162)
at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:126)
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer$PlaceholderResolvingStringValueResolver.resolveStringValue(Proper$
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveStringValue(BeanDefinitionVisitor.java:282)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.resolveValue(BeanDefinitionVisitor.java:204)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitGenericArgumentValues(BeanDefinitionVisitor.java:159)
at org.springframework.beans.factory.config.BeanDefinitionVisitor.visitBeanDefinition(BeanDefinitionVisitor.java:85)
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:208)
... 23 more

06-May-2018 15:21:40.990 INFOS [localhost-startStop-2] org.apache.catalina.core.ApplicationContext.log Closing Spring root WebApplicationContext
06-May-2018 15:33:11.762 INFOS [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types de$
06-May-2018 15:33:12.123 INFOS [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationConte$

Merci d'avance

2.jpg (59.5 kB)

1.jpg (136.8 kB)


Replies (2)

RE: Probléme d'accés linshare - Added by Frédéric MARTIN 7 months ago

Bonjour,

Lorsque vous rencontrez l'erreur suivante, cela signifie que le fichier de configuration linshare.properties n'est pas lu.

Could not resolve placeholder 'LINSHARE_HOME' in string value "${LINSHARE_HOME}/var/lib/linshare/tmp

Vérifiez votre clé de configuration :

-Dlinshare.config.path=file:/etc/linshare/

RE: Probléme d'accés linshare - Added by Med BR 7 months ago

ma clé de configuration est bien configurer

JAVA_OPTS="${JAVA_OPTS} -Dlinshare.config.path=file:/etc/linshare/" 
JAVA_OPTS="${JAVA_OPTS} -Dlog4j.configuration=file:/etc/linshare/log4j.properties" 
JAVA_OPTS="${JAVA_OPTS} -Dspring.profiles.active=default,jcloud,mongo,batches" 

(1-2/2)