I have already referred the below links and read the commands: http://community.webfaction.com/questions/7958/gitolite-and-gitlab http://community.webfaction.com/questions/5995/i-would-like-to-install-gitlabhq-on-webfaction I want to know if there is 1 single guide for installing gitlabhq in webfaction. Both of the above links provides great commands but all scattered and not in order. Is there a full consolidated version in one single order? Also after executing these commands has anyone been successful to install gitlabhq. asked 14 May '12, 01:51 talktoari |
The answer by ArrantSquid here is the most up-to-date guide as of now. answered 14 May '12, 02:05 neeravk Thanks for your response. No I haven't tried it yet but I have gone through the guide. I just wanted to make sure that if I start and follow that in order, I will be able to get it up and running in my web faction account. Let me know.
(14 May '12, 02:26)
talktoari
No, you need to select a custom app(listening on port) for the new app. You would also need to make one more to reserve a port for your redis installation
I have not personally tried with 1.9.3 that is installed but Gitlab itself recommends Ruby 1.9.2 https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
Yes, the installation covers all the needed packages already.
(14 May '12, 02:37)
neeravk
Thanks Neerav. I will follow that whole process and will ask if any problems faced.
(14 May '12, 04:51)
talktoari
Everything worked fine till the step: bundle install --without development test After that when I run: bundle exec rake db:setup RAILS_ENV=production I get an error: Access denied for user 'root'@'localhost' (using password: YES). Please provide the root password for your mysql installation
Tasks: TOP => db:setup => db:schema:load_if_ruby => db:create (See full trace by running task with --trace) After that i created a new DB from the webfaction control panel and then I edited my config/database.yml file to change the prod env to use the current db and db_user. Now i get the error: [gitlab@web301 gitlabhq]$ bundle exec rake db:setup RAILS_ENV=production dnsoft_gitlabhq already exists rake aborted! ERR operation not permitted Tasks: TOP => db:schema:load => environment (See full trace by running task with --trace) What should be done to resolve this problem? How can I run the "rake db:setup" command? Also i did not understand your comment, "You would also need to make one more to reserve a port for your redis installation" How do I make my redis use the custom port? Last question, If I logout / close my ssh session to the current ssh user, since gitosis is running, when I issue ssh gitlab_user@server.com I could not go and login to the home dir of my gitlab_user. I get an error about PTY not free for channel 0 or something. How can I login to my home dir and continue the steps further?
(14 May '12, 14:26)
talktoari
Can you run with --trace and copy the full trace here?
You need to specify that in your redis.conf, you need to edit the "port 6379" line.
You need to login as your main user then do: "su - gitlab" to login as gitlab.
(14 May '12, 22:51)
neeravk
Thanks Neerav. Here is what I have done and still get the error.
Here is the error: Invoke db:setup (first_time)
Invoke db:schema:load_if_ruby (first_time)
Invoke db:create (first_time)
Invoke db:load_config (first_time)
Invoke rails_env (first_time)
Execute rails_env
Execute db:load_config
Execute db:create
dnsoft_gitlabhq already exists
Execute db:schema:load_if_ruby
Invoke db:schema:load (first_time)
Invoke environment (first_time)
Execute environment
rake aborted!
ERR operation not permitted
/home/gitlab/.rvm/gems/ruby-1.9.2-p290/gems/redis-2.2.2/lib/redis/client.rb:47:in
(15 May '12, 01:21)
talktoari
The problem appears to be of the redis server. Tried the below command: [gitlab@web301 gitlabhq]$ redis-cli ping
Also looks like redis is still running on port 6379. The redis-cli shows the same. [gitlab@web301 gitlabhq]$ redis-cli redis 127.0.0.1:6379> exit How can this be rectified to have my bundle exec rake db:setup work fine?
(15 May '12, 01:56)
talktoari
Yes, it seems your redis server is not running, can you start it and then try the rake command?
(15 May '12, 02:15)
neeravk
I had executed the command redis-server /home/gitlab/redis.conf Also verified that ps -ef | Grep redis listed my command But it is giving the same error
(15 May '12, 04:51)
talktoari
That is actually someone else's redis that they are running on the default port. You can verify yours is working correctly by: redis-cli -p $YOURPORT ping If this is working, you need to run: export REDIS_URL=redis://127.0.0.1:<YOURPORT>/0 before running your rake command.
(15 May '12, 05:09)
neeravk
Thanks a lot Neerav. Your guidance is really helpful. This command responded with "PONG" confirming the redis for my port is running fine.
Ran the export command and then the rake commands and all worked fine.
Even ran the below commands and all worked OK
After this I linked this app to the subdomain I had added earlier. I had mapped it to "/". Tried opening:
It asked for username and password. Provided the username and password as created by db:seed_fu And my homepage opens for gitlabhq. But there is one problem: As soon as I click new project, it gives me an error saying page cannot be found. not sure what is the problem here. If all login and homepage and even admin profile is visible then what could go wrong?
(15 May '12, 06:22)
talktoari
Looks like the projects/new link does not work fine. I want ask whether webfaction has a plan to have a 1-click install for gitlabhq in near future?
(15 May '12, 13:00)
talktoari
We do not have any plans to add this to our supported installers. You may submit a support ticket if you would like us to investigate further.
(15 May '12, 18:15)
johns
showing 5 of 13
show 8 more comments
|
I documented the steps I took to get gitlab working... answered 09 Nov '14, 02:25 mogga |