Cannot connect to Gitblit at https://localhost:8443

655 views
Skip to first unread message

Rem

unread,
Apr 10, 2015, 10:49:53 AM4/10/15
to git...@googlegroups.com
Hi there, 

I am feeling a bit strange asking for help with this, because I couldn't see anybody having problem with it...

I simply can't access the web app at https://localhost:8443 .

I tried three different installation instructions (all the same really) , but it just doesn't work on my machine. 
To be precise I tried on a server then on my local PC. Managed to connect through http at 8080 on my local PC, but that's it.

I use Fedora. If anybody would have any suggestions, hints, I would much appreciate.

Thanks

Remi

Rem

unread,
Apr 10, 2015, 11:24:57 AM4/10/15
to git...@googlegroups.com
...I use the GO Linux version.

Zsombor

unread,
Apr 10, 2015, 11:43:34 AM4/10/15
to git...@googlegroups.com
I've had the same issue, with a CentOS server vs Ubuntu desktop. We ended up using http.
I'm still curious, what could be the issue - it seems that SSL is not initialized properly.

Best regards,
 Zsombor

--
You received this message because you are subscribed to the Google Groups "gitblit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitblit+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rem

unread,
Apr 10, 2015, 11:51:41 AM4/10/15
to git...@googlegroups.com, gzso...@gmail.com
Thanks for the reply! At least I know I am not alone.

Regards
Remi

James Moger

unread,
Apr 10, 2015, 12:22:38 PM4/10/15
to git...@googlegroups.com
I've had no problems serving https on either Ubuntu (my dev system) or CentOS (my deployment system).
I generally use Oracle Java, if that helps.

-J

Rem

unread,
Apr 13, 2015, 5:26:16 AM4/13/15
to git...@googlegroups.com
I use Oracle Java too. I have freshly updated it to run Gitblit. I have no special firewall configuration. Just regular Fedora installation.
Http works, but https doesn't. Tried switching off the proxy - didn't work either.

Remi

James Moger

unread,
Apr 13, 2015, 8:21:02 AM4/13/15
to git...@googlegroups.com
Send me your log output.

-J


--

Rem

unread,
Apr 13, 2015, 8:37:13 AM4/13/15
to git...@googlegroups.com
Sorry to be a pain.

I hope that is the right log:

[root@p597xp gitblit]# java -jar gitblit.jar --baseFolder data
2015-04-13 13:33:20 [INFO ] *****************************************************************
2015-04-13 13:33:20 [INFO ]             _____  _  _    _      _  _  _
2015-04-13 13:33:20 [INFO ]            |  __ \(_)| |  | |    | |(_)| |
2015-04-13 13:33:20 [INFO ]            | |  \/ _ | |_ | |__  | | _ | |_
2015-04-13 13:33:20 [INFO ]            | | __ | || __|| '_ \ | || || __|
2015-04-13 13:33:20 [INFO ]            | |_\ \| || |_ | |_) || || || |_
2015-04-13 13:33:20 [INFO ]             \____/|_| \__||_.__/ |_||_| \__|
2015-04-13 13:33:20 [INFO ]                          Gitblit v1.6.2
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] *****************************************************************
2015-04-13 13:33:20 [INFO ] Running on Linux (3.18.7-200.fc21.x86_64)
2015-04-13 13:33:20 [INFO ] Logging initialized @256ms
2015-04-13 13:33:20 [INFO ] Using JCE Unlimited Strength Jurisdiction Policy files
2015-04-13 13:33:20 [INFO ] Setting up HTTPS transport on port 8443
2015-04-13 13:33:20 [INFO ]    certificate alias = localhost
2015-04-13 13:33:20 [INFO ]    keyStorePath   = /opt/gitblit/data/serverKeyStore.jks
2015-04-13 13:33:20 [INFO ]    trustStorePath = /opt/gitblit/data/serverTrustStore.jks
2015-04-13 13:33:20 [INFO ]    crlPath        = /opt/gitblit/data/certs/caRevocationList.crl
2015-04-13 13:33:20 [INFO ] Shutdown Monitor listening on port 8081
2015-04-13 13:33:20 [INFO ] jetty-9.2.3.v20140905
2015-04-13 13:33:20 [INFO ] NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IRuntimeManager]----
2015-04-13 13:33:20 [INFO ] Basefolder  : /opt/gitblit/data
2015-04-13 13:33:20 [INFO ] Settings    : /opt/gitblit/data/gitblit.properties
2015-04-13 13:33:20 [INFO ] JVM timezone: Europe/London (BST +0100)
2015-04-13 13:33:20 [INFO ] App timezone: Europe/London (BST +0100)
2015-04-13 13:33:20 [INFO ] JVM locale  : en_GB
2015-04-13 13:33:20 [INFO ] App locale  : <client>
2015-04-13 13:33:20 [INFO ] PF4J runtime mode is 'deployment'
2015-04-13 13:33:20 [INFO ] Enabled plugins: []
2015-04-13 13:33:20 [INFO ] Disabled plugins: []
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.INotificationManager]----
2015-04-13 13:33:20 [WARN ] Mail service disabled.
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IUserManager]----
2015-04-13 13:33:20 [INFO ] ConfigUserService(/opt/gitblit/data/users.conf)
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IAuthenticationManager]----
2015-04-13 13:33:20 [INFO ] External authentication disabled.
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.transport.ssh.IPublicKeyManager]----
2015-04-13 13:33:20 [INFO ] FileKeyManager (/opt/gitblit/data/ssh)
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IRepositoryManager]----
2015-04-13 13:33:20 [INFO ] Repositories folder : /opt/gitblit/data/git
2015-04-13 13:33:20 [INFO ] Identifying repositories...
2015-04-13 13:33:20 [INFO ] 0 repositories identified with calculated folder sizes in 6 msecs
2015-04-13 13:33:20 [INFO ] Lucene will process indexed branches every 2 minutes.
2015-04-13 13:33:20 [INFO ] Garbage Collector (GC) is disabled.
2015-04-13 13:33:20 [INFO ] Mirror service is disabled.
2015-04-13 13:33:20 [INFO ] Alias UTF-9 & UTF-18 encodings as UTF-8 in JGit
2015-04-13 13:33:20 [INFO ] Preparing 14 day commit cache. please wait...
2015-04-13 13:33:20 [INFO ] 0 repositories identified with calculated folder sizes in 0 msecs
2015-04-13 13:33:20 [INFO ] built 14 day commit cache of 0 commits across 0 repositories in 1 msecs
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IProjectManager]----
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IFederationManager]----
2015-04-13 13:33:20 [INFO ] 
2015-04-13 13:33:20 [INFO ] ----[com.gitblit.manager.IGitblit]----
2015-04-13 13:33:20 [INFO ] Starting services manager...
2015-04-13 13:33:20 [INFO ] Federation passphrase is blank! This server can not be PULLED from.
2015-04-13 13:33:20 [INFO ] Fanout PubSub service is disabled.
2015-04-13 13:33:20 [INFO ] Git Daemon is listening on 0.0.0.0:9418
2015-04-13 13:33:21 [INFO ] SSH Daemon (NIO2) is listening on 0.0.0.0:29418
2015-04-13 13:33:21 [WARN ] No ticket service configured.
2015-04-13 13:33:21 [INFO ] 
2015-04-13 13:33:21 [INFO ] ----[com.gitblit.manager.IPluginManager]----
2015-04-13 13:33:21 [INFO ] No plugins
2015-04-13 13:33:21 [INFO ] 
2015-04-13 13:33:21 [INFO ] All managers started.
2015-04-13 13:33:21 [INFO ] 
2015-04-13 13:33:21 [INFO ] [GitBlitWebApp] init: Wicket core library initializer
2015-04-13 13:33:21 [INFO ] [GitBlitWebApp] init: Wicket extensions initializer
2015-04-13 13:33:21 [INFO ] [GitBlitWebApp] Started Wicket version 1.4.21 in deployment mode
2015-04-13 13:33:21 [INFO ] Started o.e.j.w.WebAppContext@eadd4fb{/,file:/opt/gitblit/data/temp/webapp/,AVAILABLE}{file:/opt/gitblit/gitblit.jar}
2015-04-13 13:33:21 [INFO ] Started ServerConnector@14dd7b39{SSL-HTTP/1.1}{0.0.0.0:8443}
2015-04-13 13:33:21 [INFO ] Started @1166ms
2015-04-13 13:34:20 [INFO ] 0 repositories identified with calculated folder sizes in 0 msecs

I also have /var/log/gitblit.log , but it's empty and never changes.

Thanks for your time.

Remi

James Moger

unread,
Apr 13, 2015, 12:39:14 PM4/13/15
to git...@googlegroups.com
Yup.  That looks fine.  You said you could browse http @ 8080 but not https @ 8443.  How about running http @ 8443 and seeing if that works.   I'm pretty sure this is a firewall issue.

-J

Rem

unread,
Apr 14, 2015, 4:02:55 AM4/14/15
to git...@googlegroups.com
Hi again, 

Yes, connecting over http 80 at the moment. Pulls and Pushes work fine and I am starting to like this application.
I switched http to 8443 and connected successfully. On the other hand, switching https to 80 didn't help.

I've tried adding the firewall rules for 8443 exclusively, but either I am doing it wrong (not an Linux expert) or I am doing it right, but it doesn't work.

James Moger

unread,
Apr 14, 2015, 7:50:49 AM4/14/15
to git...@googlegroups.com
Bizarre.  I can't explain nor reproduce what you are experiencing.

What if you deleted your trust/key stores and then restarted GO - this will generate new self-signed certs.

-J

Rainer Weinhold

unread,
Apr 15, 2015, 2:28:50 AM4/15/15
to git...@googlegroups.com
just my 2c : did you try using 127.0.0.1 as binding network interface?

--

Eduardo Guervos Narvaez

unread,
Apr 15, 2015, 3:30:20 AM4/15/15
to git...@googlegroups.com

Hi Rem.
1.- You need run this ( git config --global http.sslVerify false ) in the console of your git client.
2- And in your browser https://localhost:8443/ look the final slash!.

Rem

unread,
Apr 16, 2015, 4:02:29 AM4/16/15
to git...@googlegroups.com
Tried removing the:

serverKeyStore.jks
serverTrustStore.jks

I've run: git config --global http.sslVerify false  and confirmed it is added to the settings file.

Tried to bind https to the 127.0.0.1 

No luck. I'll have a look at the firewall settings again. Meanwhile I'll just use :80 and that should be Ok.
Thanks guys anyway. If I sort it out, I'll post a comment.

eddy....@publicisgroupemedia.co.uk

unread,
Apr 17, 2015, 8:25:11 AM4/17/15
to git...@googlegroups.com

I have not any problem browsing https on port 8443 on my Windows GO test system. I could also `git pull` from https, but `git push` to https fails with an invalid certificate error. If this helps.

Eddy

Eduardo Guervos Narvaez

unread,
Apr 17, 2015, 12:12:43 PM4/17/15
to git...@googlegroups.com

 git config --global http.sslVerify false

--

xiao helong

unread,
Jul 21, 2015, 10:40:17 PM7/21/15
to gitblit
https://localhost:8443/
use this it can be 
Reply all
Reply to author
Forward
0 new messages