Trouble installing on Centos 7
Hello, Im trying to install LinShare 2.2.1 on CentOS 7 using the linshare-install-centos-7.md guide posted here on GitHub.
I was able to get through all the steps and all of the services are running, but I notice when I hit the URL the pages comes up all mal-formed, and the formatting appears to be broken. I'm also not sure if it's related but this message appears during the TomCat startup:
Jan 05 14:22:02 linshare.local server[15413]: SEVERE: The web application [/linshare] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
It is also not creating the catalina log file at /var/tomcat/logs/catalina.out, but from what i've read this may be normal with the current version of CentOS & TomCat.
Hello, Can you activate the log4j debug mode on log4j.properties to get the logs. https://github.com/linagora/linshare/blob/master/documentation/EN/installation/linshare-install-centos-7.md#tomcat-7-configuration
I'm not seeing what I need to update to enable this?
I updated the last line in the file from log4j.category.org.linagora.linshare=info to log4j.category.org.linagora.linshare=DEBUG but either way it's not generating the log file. I did pull a dump from the most recent startup on the catalina.out file which appears to have a bunch of errors in it:
Jan 12 11:11:00 PRLS01 server: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'entryService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entryService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'documentEntryService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'documentEntryBusinessService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryBusinessService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Cannot resolve reference to bean 'thumbnailGeneratorService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thumbnailGeneratorService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) Jan 12 11:11:00 PRLS01 server: ... 40 more Jan 12 11:11:00 PRLS01 server: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entryService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'documentEntryService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'documentEntryBusinessService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryBusinessService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Cannot resolve reference to bean 'thumbnailGeneratorService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thumbnailGeneratorService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) Jan 12 11:11:00 PRLS01 server: ... 52 more Jan 12 11:11:00 PRLS01 server: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-service.xml]: Cannot resolve reference to bean 'documentEntryBusinessService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryBusinessService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Cannot resolve reference to bean 'thumbnailGeneratorService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thumbnailGeneratorService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) Jan 12 11:11:00 PRLS01 server: ... 64 more Jan 12 11:11:00 PRLS01 server: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'documentEntryBusinessService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Cannot resolve reference to bean 'thumbnailGeneratorService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thumbnailGeneratorService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) Jan 12 11:11:00 PRLS01 server: ... 76 more Jan 12 11:11:00 PRLS01 server: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thumbnailGeneratorService' defined in file [/var/lib/tomcat/webapps/linshare/WEB-INF/classes/springContext-business-service.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) Jan 12 11:11:00 PRLS01 server: at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) Jan 12 11:11:00 PRLS01 server: ... 88 more Jan 12 11:11:00 PRLS01 server: Caused by: java.lang.IllegalStateException: officeHome doesn't exist or is not a directory: Jan 12 11:11:00 PRLS01 server: at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.buildOfficeManager(DefaultOfficeManagerConfiguration.java:160) Jan 12 11:11:00 PRLS01 server: at org.linagora.LinThumbnail.ServiceOfficeManager.startOfficeManager(ServiceOfficeManager.java:77) Jan 12 11:11:00 PRLS01 server: at org.linagora.LinThumbnail.impl.ThumbnailServiceImpl.start(ThumbnailServiceImpl.java:56) Jan 12 11:11:00 PRLS01 server: at org.linagora.linshare.core.business.service.impl.ThumbnailGeneratorBusinessServiceImpl.start(ThumbnailGeneratorBusinessServiceImpl.java:137)
I'm not sure where to start but after staring at all this for a day now the only thing that keeps catching my eye over and over is this specific subset or messages:
Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-1] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-2] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-5] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-7] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-8] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-9] but has failed to stop it. This is very likely to create a memory leak. Jan 12 22:18:13 PRLS01 server: Jan 12, 2019 10:18:13 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads Jan 12 22:18:13 PRLS01 server: SEVERE: The web application [/linshare] appears to have started a thread named [org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
Can you show me your Linshare.propertties, please ?
Sure:
(*Note that I intentionally had to change all my Line comments (#) to "-" to prevent GitHub from trying to post this with header formatting, that is not they way it exists on the system.)
In order to use an external configuration file for linshare, use this key for JAVA_OPS
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms512m -Xmx2048m"
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"
On Centos, use only one JAVA_OPTS statement. Do not use the previous syntax, it may not work.
If you want to change the location of tmp directory
JAVA_OPTS="${JAVA_OPTS} -Djava.io.tmpdir=/tmp/"
Or you can use environment variable : SPRING_PROFILES_ACTIVE or -Dspring.profiles.active property
to configure which profile you want to use.
You must enable at least one authentication profile among authentication profiles,
one profile among file data store profiles and one among mongodb profiles described below.
Available authentication profiles :
* default : default authentication process.* sso : Enable headers injection for SSO. This profile includes default profile capabilitiesAvailable file data store profiles :
* jcloud : Using jcloud as file data store : Amazon S3, Swift, Ceph, filesystem.* gridfs : Using gridfs (mongodb) as file data store.* jackrabbit2 : Using jackrabbit as file data store. (deprecated)* jackrabbit-to-jcloud : Using Jcloud as new file data store, jackrabbit as fallback file data store.* jackrabbit-to-gridfs : Using Jcloud as new file data store, jackrabbit as fallback file data store.Recommended profile for production is jcloud with Swift.Available mongodb profiles :
* mongo : mongo with authentication disable* mongo-auth : mongo with authentication enableAdditional profiles :
* batches : if this profile is enable (by default it should be), it will enable all Quartz jobs (cron tasks).-------------------- MAIL CONFIGURATION TO SEND MAIL INFORMATION TO USER
mail.smtp.host=
mail.smtp.port=25
- use 25 default port for plain text mode
- use 587 default port if you use starttls mode
- use 465 default port if you use ssl mode mail.smtp.user=user mail.smtp.password=password mail.smtp.auth.needed=false mail.smtp.charset=UTF-8
- StartTls mode (Set to true to enable it) mail.smtp.starttls.enable=false
- SSL Mode (If you enable SSL Mode it will override startTls mode) mail.smtp.ssl.enable=false
-------------------- DATASTORE -uncomment this line to encrypt the files -linshare.datastore.class=org.linagora.linshare.core.dao.EncDbDataStore
-------------------- DATABASE --- PostgreSQL linshare.db.username=
linshare.db.password= linshare.db.driver.class=org.postgresql.Driver linshare.db.url=jdbc:postgresql://localhost:5432/linshare linshare.db.dialect=org.hibernate.dialect.PostgreSQLDialect -show sql command in console (true in debug mode) linshare.db.show_sql=false -format sql command in console (true in debug mode) linshare.db.format_sql=false -generate statistics with hibernate linshare.db.gen_stats=false
- can be create, create-drop, update, validate, choose validate for production linshare.db.hbm2ddl.auto=validate
-------------------- GENERAL PROPERTIES
------- Storage options --------
---- Global storage options ----
- available storage mode :
- filesystem : storing documents on file system for local storage.
- swift-keystone : storing documents into swift without region support (generic)
Limitation : maximum size file size is 5GB
- openstack-swift : storing documents into openstack swift with region support.(regionId will be mandatory)
Limitation : maximum size file size is 5GB
- s3 : storing documents into Amazon S3.
Limitation : maximum size file size is 5GBlinshare.documents.storage.mode=filesystem linshare.documents.storage.bucket=e0531829-8a75-49f8-bb30-4539574d66c7
- Temporary directory : local work directory to encrypt/decrypt data linshare.encipherment.tmp.dir=/var/lib/linshare/tmp
---- File system storage options - default backend---- linshare.documents.storage.filesystem.directory=/var/lib/linshare/filesystemstorage
-------- Extended storage options --------
---- JackRabbit storage options ----
- JackRabbit is deprecated but is is still in LinShare for upgrade purpose from v1 to v2.
- you have to uncomment and set the directory parameter according to your previous configuration file.
- linshare.files.directory=${LINSHARE_HOME}/var/lib/linshare/repository
- linshare.db.persistence_manager=org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager
---- Object storage options ---- linshare.documents.storage.identity=identity
- NB : For OpenStack Swift, format is diferent
- linshare.documents.storage.identity=tenant_name:user_name linshare.documents.storage.credential=password linshare.documents.storage.endpoint=http://127.0.0.1:5000/v2.0
- required if your are using using Swift with region (openstack-swift)
- linshare.documents.storage.regionId=
---- GridFS storage options ---- linshare.mongo.host=127.0.0.1 linshare.mongo.port=27017 linshare.mongo.user=linshare linshare.mongo.password=linshare linshare.mongo.database=linshare
linshare.mongo.gridfs.smallfiles.host=127.0.0.1 linshare.mongo.gridfs.smallfiles.port=27017 linshare.mongo.gridfs.smallfiles.user=linshare linshare.mongo.gridfs.smallfiles.password=linshare linshare.mongo.gridfs.smallfiles.database=linshare-files
---- Extended GridFS storage options ----
- Store all files in MongoDB GridFS. Not recommended. linshare.mongo.gridfs.bigfiles.host=127.0.0.1 linshare.mongo.gridfs.bigfiles.port=27017 linshare.mongo.gridfs.bigfiles.user=linshare linshare.mongo.gridfs.bigfiles.password=linshare linshare.mongo.gridfs.bigfiles.database=linshare-bigfiles
------- Storage options - end --------
- webservice webservice.attachment-memory-threshold=4000000 webservice.attachment-directory=/tmp/
--------------------- VIRUS SCANNER -uncomment those properties if you want to enable clamav virus scanner feature -virusscanner.clamav.host=localhost -virusscanner.clamav.port=3310
- Every file which size is over than the value below (in bytes) will skip the virus scanner.
- virusscanner.limit.filesize=50000000
--------------------- SSO
- LemonLDAP::NG / SiteMinder HTTP request authenticator sso.header.user=Auth-User
- comma separated list of ip address to be trusted : sso.header.allowfrom.enable=true sso.header.allowfrom=127.0.0.1
-------------------** Syntax for CRON
Field Mandatory Allowed Values Allowed Special Characters
- Second yes 0-59 , - * /
- Minutes yes 0-59 , - * /
- Hours yes 0-23 , - * /
- Day of month yes 1-31 , - * ? / L W
- Month yes 1-2 or JAN-DEC , - * /
- Day of week yes 1-7 or SUN-SAT , - * ? / L #
Year no empty, 1970-2099 , - * / - Legend : ? : no specific value
: L : last: W : weekday--------- Document cleaner job.document.cleaner.activation=false job.document.cleaner.cron.expression=0 0 0 1 1 ?
--------- Domain
- If true, we can search an user during authentication process using his uid or his mail (as a login).
- By default, false, only the mail is used.
- Be careful if you have multiples directories, login must be unique !!! linshare.multidomain.enable=false
------------------- Async task management
ThreadPoolTaskExecutor for AsyncTask like uploads. -linshare.ThreadPoolTaskExecutor.corePoolSize=10 -linshare.ThreadPoolTaskExecutor.maxPoolSize=30
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
- key to disable thumbnail generation linshare.documents.thumbnail.pdf.enable=false linshare.documents.thumbnail.enable=false
Any chance there are any updates on this?
Can you send me the content of /etc/sysconfig/tomcat and your linshare.properties into downloadable file please
Yes:
https://drive.google.com/file/d/1snQtPUZ49NJ8Ib34cH0iNFGtVykNufhL/view?usp=sharing
ok, replace log4j.rootCategory=INFO, CONSOLE by log4j.rootCategory=INFO, LINSHARE in log4j.properties, and copy it into /etc/linshare and restart please.
Alright, I made that change and rebooted the server.
ok, can you send me the content of /var/log/tomcat8/linshare.log please
I have included that log file along with the log4 properties file and a screenshot of the current behavior.
https://drive.google.com/file/d/1BeGQGyDGbrvKoRsH2cCa4oikm8osvZZ7/view?usp=sharing
Hello, I created a second virtual machine with a fresh installation of CentOS 7 and followed the same instructions but using version 2.0.1 as advertised on your main website just to test the potability of a version problem, but displays the same behavior.
Anybody out there that can shed some light? I'm sure its something silly like a config file or reverse proxy issue?
@yazidsebahi were you able to get anything from those logs or have any pointers? maybe someone else that can help?
hello @ericdude101, sorry for the delay we have been busy lately, your backend seems to start correctly without error, you can confirm that by using cURL to authenticate for example. It works perfectly on Debian distribution, We will investigate more about CentOs.
Hello,
I made an effort to follow your recommendation and installed on Debian which yielded nearly the same result. The admin interface has color now when I launch it, but it shows like it's already logged in and nothing works.
What advice do you have for me now? I would really like to get this product working, but it's proving to be a difficult task unfortunately.
@yazidsebahi Any information or thoughts? - it's odd that i'm running into the exact same problem on ubuntu seeing as to how it's the preferred OS
Hi, can you send us your configuration files, version of linshare components, and logs from tomcat ?