Installation under Mac OS 10.8
Asked by Tim Myers:

Has anybody sucessfully installed Fish Eye / Crucible under Mac OS 10.8?

I'm unable to set the JAVA_HOME variable, it always comes back as Undefined Variable in response to the echo $JAVA_HOME command.

There's no .profile file in \~/ in Mac OS 10.8. I created one and added the lines as stated in the installation instructions but the JAVA_HOME variable remains undefined.

Help!

Thanks

Tim.


Answers:
author: rverschoor
body: I almost daily install FishEye/Crucible test instances on my MBP running OSX 10.7.4.  
For me they all run fine without having JAVA_HOME set.

If you still do want to define a JAVA_HOME you can indeed add it to \~/.profile, but the change won't take effect until you either login again, or run "source \~/.profile".

comments: author: Tim Myers
body: Thanks Rene - I'll give it a shot :)


author: Tim Myers
body: I got a little bit further...

Once I've run start.sh and gone to my wen browser I always get the 'Can't conenct to server' error in Safari. On running stop.sh the following appears:

FishEye not running? Problem connecting to 127.0.0.1:8078 : Connection refused

java.net.ConnectException: Connection refused

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)

at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)

at java.net.Socket.connect(Socket.java:529)

at java.net.Socket.connect(Socket.java:478)

at java.net.Socket.\<init\>(Socket.java:375)

at java.net.Socket.\<init\>(Socket.java:218)

at com.cenqua.fisheye.ctl.BaseRemoteCommand.sendCommand(BaseRemoteCommand.java:89)

at com.cenqua.fisheye.ctl.BaseRemoteCommand.mainImpl(BaseRemoteCommand.java:62)

at com.cenqua.fisheye.ctl.Stop.main(Stop.java:11)

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.cenqua.fisheye.FishEyeCtl.mainImpl(FishEyeCtl.java:98)

at com.cenqua.fisheye.FishEyeCtl.main(FishEyeCtl.java:41)

Firewall is off so it can't be that. Any idea what I'm doing wrong?

Thanks

Tim.


author: rverschoor
body: Try starting with "./run.sh" instead.  
This will start FishEye in the terminal window, so you can see what it logs.  
Wait for a message like this is displayed:

Server started on :8060 (http) (control port on 127.0.0.1:8059)

and then point your browser to 127.0.0.1:8060 (or another port, as it looks like you changed the configuration).  
To stop a FishEye that's started with run.sh you just use Control-C.


author: Tim Myers
body: That did the trick, thank you. I was able to see that the path to the config file wasn't found. Fixed that :) I dont' suppose you've ever connected Crucible to any of the GIT repositories on Assembla.com?


author: Sten Pittet
body: It should be fairly straightforward to connect Crucible to an Assembla Git repository. You will need to generate a key pair for ssh and upload the public key to assembla.

I just tried it and I only had to change the label generated by Crucible to make it shorter due to the limitation for the key on Assembla. The screenshot below shows where the magic happens;

![](https://img.skitch.com/20120904-xkdhc51u68h5i5e5ae3a5x23ct.jpg)


author: Tim Myers
body: Thanks for the help :)

Still not connecting :( When I run Test Connection it fails with the following:


author: Tim Myers
body: Thanks for your help, I really appreciate it, I'm pretty much a newbie when it comes to this stuff. Key upload seemed to be ok, I truncated the key as you advised and Assembla accepted it but when I run Test Connection I get the follwing:

Fisheye is using '/usr/bin/ssh' to authenticate with SSH authenticated repositories.

Error testing connection.  
Error talking to repository:   

<br />

at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:158)  
at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:444)  
at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:538)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Connection failed.


author: Jeremy Largman
body: I just ran into the same problem on OS 10.8, with Java not being installed. Actually I had run 'atlas-package', and it couldn't find my java. After putzing around trying to find the java bin, I ran java -version and that prompted a download of the JDK.

I guess Apple's trying to outsmart itself - basically, just go to a command line and enter the command 'java' to start a download of the JDK.