unable to start crucible due to errors
Asked by Michael Allan:

I'm trying to get Crucible to run but I'm stuck with some errors and the web interface can't start.

I followed the instructions for installation and I'm getting this error:

```
2014-12-03 11:47:37,682 INFO  - Starting database...2014-12-03 11:47:40,723 INFO  - Database started.2014-12-03 11:47:41,794 INFO  - Starting plugin system...2014-12-03 11:47:43,835 ERROR - No default permission scheme exists2014-12-03 11:47:43,906 ERROR - The Web context could not be startedorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'feCruHostApplication' defined in URL [jar:file:/XXX/atlassian/fecru-3.6.1/fisheye.jar!/com/atlassian/fecru/applinks/FeCruHostApplication.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.cenqua.crucible.model.managers.ProjectManager]: : Error creating bean with name 'projectManager' defined in URL [jar:file:/XXX/atlassian/fecru-3.6.1/fisheye.jar!/com/cenqua/crucible/model/managers/impl/DefaultProjectManager.class]: Invocation of init method failed; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value: com.cenqua.crucible.model.Project.permissionScheme; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectManager' defined in URL [jar:file:/XXX/atlassian/fecru-3.6.1/fisheye.jar!/com/cenqua/crucible/model/managers/impl/DefaultProjectManager.class]: Invocation of init method failed; nested exception is org.hibernate.PropertyValueException: not-null property references a null or transient value: com.cenqua.crucible.model.Project.permissionSchemeRelated cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'backup': Requested bean is currently in creation: Is there an unresolvable circular reference?Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'authenticationConfigurationManagerFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'typeAccessorServiceFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'entityLinkServiceFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'manifestRetrieverFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?Related cause: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'applicationLinkServiceFactoryBean': Requested bean is currently in creation: Is there an unresolvable circular reference?    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
```

I found this page which seems to be the same error <https://confluence.atlassian.com/display/FISHKB/FishEye+Fails+to+Start%3A+No+default+permission+scheme+exists>

That page only suggests that the there is file corruption but I find that to be very unlikely. I verified the md5sum of the zip file. I extracted it using "unzip" and using the Red Hat File explorer extract functionality and both result in the same issue.


Answers:
author: Felipe Kraemer
body: Hi Michael,

The error being reported here is the same as the one mentioned in the KB article you've found, so you're probably facing that problem.

Can you please download Crucible again and use [7-Zip](http://www.7-zip.org/download.html) in order to extract the zip?

This will probably fix the problem.

Kind regards,  
Felipe Kraemer


author: Michael Allan
body: Using 7 zip does fix the problem. But why is this @Felipe Kraemer? It is not very friendly to Linux users to force them to use 7-Zip which is a program made for windows. It's also not documented on the Linux install documentation that you MUST use 7-zip (<https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Linux+and+Mac>). Atlassian should not be using special compression software for their distribution in my opinion.


author: Felipe Kraemer
body: Hi Michael,

It's hard to say why it works with 7-Zip and not with other programs, but the problem seems to happen because long paths could not be extracted properly.

I have investigated this and I've found a [Confluence 5.4 installation guide](https://confluence.atlassian.com/display/CONF54/Installing+the+Confluence+EAR-WAR+Edition) which says:
> *Please check your unzip program before extracting the downloaded zip file. Some archive-extract programs cause errors when unzipping the Confluence zip file:*
>
> * *Windows users must avoid the Windows built-in unzip utility, as it doesn't extract all the files. Use a third-party unzip program like [7Zip](http://www.7-zip.org/) or [Winzip](http://www.winzip.com/).*
> * *Solaris users will need to use [GNU tar](http://www.gnu.org/software/tar/#downloading) to handle the long file names.*

Although 7-Zip was not suggested for Linux users, maybe the problem you've faced is similar to what happens in other operating systems?

Looks like this applies to FishEye/Crucible as well, so I have edited these documents in order to include this information:

* <https://confluence.atlassian.com/display/CRUCIBLE/Installing+Crucible+on+Linux+and+Mac>
* <https://confluence.atlassian.com/display/FISHEYE/Installing+FishEye+on+Linux+and+Mac>

Kind regards,  
Felipe Kraemer

comments: author: Michael Allan
body: Thank you for updating the documentation. This has been a good experience for me and I'm happy with the outcome. I look forward to working more with Atlassian products :)


author: Jeremy Swenson
body: > *Solaris users will need to use [GNU tar](http://www.gnu.org/software/tar/#downloading) to handle the long file names.*

I'm trying this on an AWS Linux instance. The tar command doesn't work with a .zip file. I'm I missing something?


Tags: fisheye-crucible-administration