cancel
Showing results for 
Search instead for 
Did you mean: 

Error while installing Alfresco on Dreamhost

jilingshu
Champ in-the-making
Champ in-the-making
hi there,
I use your installer package to install Alfresco on my Dreamhost PS. But I got these error:

Setup is now ready to begin installing Alfresco Community on your computer.

Do you want to continue? [Y/n]: Y

—————————————————————————-
Please wait while Setup installs Alfresco Community on your computer.

Installing
0% ______________ 50% ______________ 100%
########################################Warning: Problem running post-install step. Installation may not complete
correctly
Error running /home/fb_root/alfresco-3.4.b/java/bin/java -jar
/home/fb_root/alfresco-3.4.b/bin/alfresco-mmt.jar install
/home/fb_root/alfresco-3.4.b/amps
/home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco.war -directory -nobackup :
child process exited abnormally
Press [Enter] to continue :
#

I tried to run the command manually and got these:

[ps37575]$ /home/fb_root/alfresco-3.4.b/java/bin/java -jar /home/fb_root/alfresco-3.4.b/bin/alfresco-mmt.jar install /home/fb_root/alfresco-3.4.b/amps /home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco.war -directory -nobackup
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.simontuffs.onejar.Boot.run(Boot.java:287)
        at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 10150000 The following module properties need to be defined: [module.id, module.version, module.title, module.description]
        at org.alfresco.repo.module.ModuleDetailsImpl.<init>(ModuleDetailsImpl.java:185)
        at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromPropertiesStream(ModuleDetailsHelper.java:52)
        at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromPropertyLocation(ModuleDetailsHelper.java:75)
        at org.alfresco.repo.module.tool.ModuleDetailsHelper.createModuleDetailsFromWarAndId(ModuleDetailsHelper.java:96)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:265)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:165)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModules(ModuleManagementTool.java:148)
        at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:779)
        … 6 more
[ps37575]$

Could you tell me why this happened? How can I solve this problem? thx
21 REPLIES 21

mikeh
Star Contributor
Star Contributor
Could you list the contents of the "amps" folder please?

Thanks,
Mike

jilingshu
Champ in-the-making
Champ in-the-making
of course I can Smiley Happy
[ps37575]$ ls
alfresco-community-dod5015-3.4.b.amp  alfresco-community-spp-3.4.b.amp
alfresco-community-quickr-3.4.b.amp   alfresco-community-wcmqs-3.4.b.amp
[ps37575]$ pwd
/home/fb_root/alfresco-3.4.b/amps
[ps37575]$


BTW: I modified nothing. I just install it via your installer.

mikeh
Star Contributor
Star Contributor
Ok, sorry - could you also do "java -version" and "export" please (make sure export hasn't got anything sensitive - it shouldn't have)

Thanks,
Mike

jilingshu
Champ in-the-making
Champ in-the-making
hi,
[ps37575]$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
[ps37575]$ export
declare -x HOME="/home/fb_root"
declare -x LC_COLLATE="C"
declare -x LOGNAME="fb_root"
declare -x MAIL="/home/fb_root/Maildir/"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
declare -x PS1="[\\h]\$ "
declare -x PWD="/home/fb_root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="183.31.135.180 21129 22"
declare -x SSH_CONNECTION="183.31.135.180 21129 69.163.131.238 22"
declare -x SSH_TTY="/dev/pts/1"
declare -x TERM="xterm"
declare -x USER="fb_root"
[ps37575]$

I think these information is about the system installed JVM. But according to the command line, it seems like that the installer has used its own JVM. I have tried to uninstall the system ndn-java package and the problem is still there. I also tried to modify the command line  from
/home/fb_root/alfresco-3.4.b/java/bin/java -jar /home/fb_root/alfresco-3.4.b/bin/alfresco-mmt.jar install /home/fb_root/alfresco-3.4.b/amps /home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco.war -directory -nobackup
to
java -jar /home/fb_root/alfresco-3.4.b/bin/alfresco-mmt.jar install /home/fb_root/alfresco-3.4.b/amps /home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco.war -directory -nobackup
to make it use system JVM, but it took no effect.

jilingshu
Champ in-the-making
Champ in-the-making
This is the log file content:
04:44:29,183 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
04:44:29,190 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
04:44:29,191 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
04:44:29,191 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/home/fb_root/alfresco-3.4.b/tomcat/shared/classes/alfresco-global.properties]
04:44:29,482 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
04:44:30,141 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/version.properties]
04:44:30,416 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
04:44:30,476 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/module/org.alfresco.module.vti/context/vti.properties]
04:44:30,476 INFO  [org.alfresco.config.FixedPropertyPlaceholderConfigurer] Loading properties file from URL [file:/home/fb_root/alfresco-3.4.b/tomcat/shared/classes/alfresco/extension/custom-vti.properties]
04:44:30,574 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [alfresco/module/org.alfresco.module.quickr/context/lotus.properties] cannot be opened because it does not exist
        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:624)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:599)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:398)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.io.FileNotFoundException: class path resource [alfresco/module/org.alfresco.module.quickr/context/lotus.properties] cannot be opened because it does not exist
        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:141)
        at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
        at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
        … 31 more
04:44:48,275 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 257 Web Scripts (+0 failed), 265 URLs
04:44:48,277 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
04:44:48,277 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
04:44:48,502 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1933.8253ms)
04:44:48,600 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
04:44:48,760 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
04:44:48,951 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
04:44:48,962 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
04:44:49,247 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
04:44:49,257 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
[ps37575]$

mikeh
Star Contributor
Star Contributor
OK, that looks like the server started ok, but the Lotus module has failed to load - or there's a context file trying to reference the Quickr module's properties which shouldn't be.

I suspect it's a file called "custom-lotus-ws-context.xml" - you can comment out the bean definition that uses the reference.

Thanks,
Mike

jilingshu
Champ in-the-making
Champ in-the-making
hi,
I have deleted that file and it still cannot work.
I tried to install Alfresco on my own Debian and it worked well. Is there any way to solve this problem? thx!

BTW: The installation cannot be completed!

mikeh
Star Contributor
Star Contributor
Is it still the same error?

Mike

jilingshu
Champ in-the-making
Champ in-the-making
hi there,
It is the same error.
I ran the installer to install Alfersco. When it told me the error
Error running /home/fb_root/alfresco-3.4.b/java/bin/java -jar
/home/fb_root/alfresco-3.4.b/bin/alfresco-mmt.jar install
/home/fb_root/alfresco-3.4.b/amps
/home/fb_root/alfresco-3.4.b/tomcat/webapps/alfresco.war -directory -nobackup :
child process exited abnormally
Press [Enter] to continue :

I pressed 'Enter' and waited until it has done. And then I deleted the file
./tomcat/shared/classes/alfresco/extension/custom-lotus-ws-context.xml
and ran
[ps37575]$ ./alfresco.sh start
It started normally without any problems. But the Explorer is inaccessible, there is no an application like that, only Share can show me a dialog to ask my username and password. But whatever information i entered, it always told me a error said:
The remote server may be unavailable or your authentication details have not been recognized.

I think this problem is caused by the compact between my VPS Operating System and Alfresco. I tried to install it on other hosts and there is no any error. But unfortunately, I have already bought Dreamhost PS for a year so I have to use it. So I hope you can help me with this problem. thx