Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run ticgitweb on Ubuntu 10.10 #19

Closed
alecthegeek opened this issue Apr 9, 2011 · 22 comments
Closed

Cannot run ticgitweb on Ubuntu 10.10 #19

alecthegeek opened this issue Apr 9, 2011 · 22 comments
Labels

Comments

@alecthegeek
Copy link

After installing ticgit-ng as per the readme and being able to run ti successfully I am unable to run the web interface:

$ ticgitweb
You need to install ticgit before we can proceed
/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.2/bin/ticgitweb:27: uninitialized constant TicGit (NameError)

@jeffWelling
Copy link
Owner

Ah. This looks familiar.
I thought this had been patched already... At least, this specific problem.

I can't say for sure if ticgitweb would run or not because I don't use it myself, it's kind of a legacy app from previous maintainers, but ticgit itself hasn't been changed in a way that should effect ticgitweb so.. shrugs I can't say for sure.
I'll fix this, but before I sink into another bug I have to do some chores around the house, shouldn't take an hour.
I'll bring up that VM from the other issue and see if I can poke and prod ticgitweb until it works.
The documentation should also be mostly accurate, there was a maintainer working with me not to long ago (CodeGnome) who I believe had ticgitweb in a functioning state, and had updated the appropriate documentation accordingly.

I'll post back with the results of my poking and prodding :)

@jeffWelling
Copy link
Owner

I believe this should be fixed with TicGit-ng version 1.0.2.3, just pushed to rubygems, rubyforge, and Github now.
Try it out and let me know if it works for you?
After making this small change, I was able to run ticgitweb with one command.

@jeffWelling
Copy link
Owner

Oh no, perhaps I pushed too soon, trying it on my VM instead of my deving box, it seems to silently fail.
Does this happen for you as well?
It seems like it may be a ubuntu-specific issue, as this isn't appearing on my deving box which is Debian.

@alecthegeek
Copy link
Author

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It fails silently for me as well.

I also tried specifying a port of 2000 and it still failed.


Alec Clews
Personal alec.clews@gmail.com Melbourne, Australia
Jabber: alecclews@jabber.org PGPKey ID: 0x9BBBFC7C
Blog http://alecthegeek.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2hBFsACgkQP+e5j5u7/Hz1mgCgkeE2BfBvR2a0tbjj1O6hsOkA
LGsAnR5E4gLkBgmfpQOHFz0hAGVS3lEn
=V15a
-----END PGP SIGNATURE-----

@jeffWelling
Copy link
Owner

Hmmm.
So, just for posterity I want to ask, how are you calling ticgitweb?
I ask because on my Ubuntu system I run into this bug
#16

And I'm wondering if you are also seeing that bug?

Because if you are that means you have to call it (both ti and ticgitweb) from a full path, such as
/var/lib/gems/1.8/bin/ticgitweb
Which is silently failing. Now, here's the strange part, at least to me. That file, isn't actually ticgitweb, it's some file that rubygems places there which I assume (based on the premise that the 'ti' file in that directory is also not the real 'ti' file, yet the system works) it's loading the real file. Doing locate bin/ticgitweb results in

/home/jeff/ticgit/bin/ticgitweb
/var/lib/gems/1.8/bin/ticgitweb
/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.2/bin/ticgitweb
/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.3/bin/ticgitweb

So, if I call /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.3/bin/ticgitweb then it starts up without problems on 0.0.0.0:4567 .
Why it's failing when you call the first one though, I have no idea. I'm still investigating but my present unfamiliarity with sinatra and what is going on with that file have me thinking this could take a while to work out.

Checking my Debian vm, that strange file exists there as well, so I take it that this is a result of rubygems packaging as the file indicated.

So currently we know that this problem appears to be Ubuntu specific (and perhaps doesn't have anything to do with the mystery file), even though it does work if you call ticgitweb by its absolute path.

I'm going to have to sleep on it, and perhaps post to programmers.stackexchange.com to try to get help with this one. Will post back when I find out more. For the time being as a work-around you can add this alias to your ~/.bashrc file.
alias ticgitweb=/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.3/bin/ticgitweb
With that alias, calling ticgitweb results in a running server on my Ubuntu VM.
...reaches for a larger banging utensil

@alecthegeek
Copy link
Author

It's not working that well for me

$ locate -br '^ticgitweb$'
/var/lib/gems/1.8/bin/ticgitweb
/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.2/bin/ticgitweb

$/var/lib/gems/1.8/gems/TicGit-ng-1.0.2.2/bin/ticgitweb
You need to install ticgit before we can proceed

@jeffWelling
Copy link
Owner

Can you try installing / updating to version 1.0.2.3?
$ sudo gem update
I think.
And then for posterity
$ sudo updatedb
And then try the locate again. Mine showed version 1.0.2.2 and version 1.0.2.3 .

If that doesn't do it, we'll have to wait for someone to respond to the question on answers.launchpad.net . I'm still trying to figure out what to do about that "You need to install ticgit before we can proceed" message.

@alecthegeek
Copy link
Author

Success:

  1. gem update did not work so I just did an install
  2. I added /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.3/bin to the PATH. I suspect this was significant

Now runs

w00t!

@alecthegeek
Copy link
Author

For the benefit of posterity. As gem update does not work you can remove the previous version by running

sudo gem uninstall TicGit-ng -v 1.0.2.2

@jeffWelling
Copy link
Owner

Awesome!

Gem update didn't work? Hmm. That might be something to look into. Is
it just for Ticgit that it's not working or is it all gems (not my
problem)? Lol

Yeah the path thing seems to be the crux of this whole problem, but I
don't yet know why rubygems isn't adding that to the path when you
install it.
Still looking into it, but I'm glad you got it working :)

On 2011-04-10, at 6:14 PM, alecthegeek
reply@reply.github.com
wrote:

Success:

  1. gem update did not work so I just did an install
  2. I added /var/lib/gems/1.8/gems/TicGit-ng-1.0.2.3/bin to the PATH. I suspect this was significant

Now runs

w00t!

Reply to this email directly or view it on GitHub:
#19 (comment)

@alecthegeek
Copy link
Author

Only the TicGit Gem did not upgrade. Sinatra upgraded fine....

@jeffWelling
Copy link
Owner

How did you originally install ticgit? Did you download and install
the gem from github or rubyforge?
Were there any error messages indicating what failed?

On 2011-04-10, at 6:59 PM, alecthegeek
reply@reply.github.com
wrote:

Only the TicGit Gem did not upgrade. Sinatra upgraded fine....

Reply to this email directly or view it on GitHub:
#19 (comment)

@alecthegeek
Copy link
Author

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/04/11 09:11, jeffWelling wrote:

How did you originally install ticgit? Did you download and install
the gem from github or rubyforge?

I installed from the command line as per the README

sudo gem install ......

Also note that ticgit has not been installed from the Ubuntu repos

Were there any error messages indicating what failed?

AFAIK the only problem was installing sass gem, which needed the --pre flag


Alec Clews
Personal alec.clews@gmail.com Melbourne, Australia
Jabber: alecclews@jabber.org PGPKey ID: 0x9BBBFC7C
Blog http://alecthegeek.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2iSnUACgkQP+e5j5u7/Hy5pQCeIB7QsVobLHvoKXhqzVwurAbX
syEAnRg0jUoObVKoh0oPVqnu3/Rn8NDv
=mQLW
-----END PGP SIGNATURE-----

@jeffWelling
Copy link
Owner

Oh sorry, I meant were there any error messages when you tried to update the TicGit-ng gem but it failed?

@alecthegeek
Copy link
Author

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No -- just said nothing to update

On 11/04/11 11:00, jeffWelling wrote:

Oh sorry, I meant were there any error messages when you tried to update the TicGit-ng gem but it failed?


Alec Clews
Personal alec.clews@gmail.com Melbourne, Australia
Jabber: alecclews@jabber.org PGPKey ID: 0x9BBBFC7C
Blog http://alecthegeek.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2iVhAACgkQP+e5j5u7/HxSpgCghOdqMNpIpuD6seDeYoULhfCL
w2sAnjdfPbq4/CJLpFV+hAKKCQziC5+v
=0pUB
-----END PGP SIGNATURE-----

@jeffWelling
Copy link
Owner

Does this comment still stand then?
#19 (comment)

Does the output still only list 1.0.2.2?

lol Lets make this easier, what's the output of ti --version? If it says 1.0.2.3 then I'm chasing my tail lol

@alecthegeek
Copy link
Author

$ ti --version
1.0.2.3

@jeffWelling
Copy link
Owner

So it turns out the solution is to manually add the rubygems bin dir to your path. This will be noted in the documentation.

@alecthegeek
Copy link
Author

See commit d674110

@jeffWelling
Copy link
Owner

The problem of not being able to simply call ticgitweb has been resolved completely for (crosses fingers) all platforms. There was a misconfiguration in sinatra that was preventing it from starting because it wasn't being called directly. Thanks to the friendly folks at the sinatra google group for pointing this out to me.

@jeffWelling
Copy link
Owner

*resolved completely in version 1.0.2.4 for all platforms

@alecthegeek
Copy link
Author

Tested and working.

Gem also upgrades (but 1.0.2.3 is not removed)
And correctly issues an error message if not located in a git repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants