Re: [gitorious] Gitorous ce installer behind proxy

173 views
Skip to first unread message

Thomas Kjeldahl Nilsson

unread,
Mar 19, 2013, 10:17:42 AM3/19/13
to gito...@googlegroups.com
Hi Frank,

good point. I've updated the ce-installer to prefer https over git: when performing the clone operations. Feel free to expand on your other problems.

regards,
Thomas


On 03/19/2013 03:01 PM, frank...@gmail.com wrote:
Hi am trying to install gitorious CE  from the ce-installer but having problems since I am sitting behind a proxy.

Has someone succeeded in installing gitorious behind a company firewall and give some advice?


One problem seams to be the usage of the git protocol

Trying to download the ce-installer via "git clone git://gitorious.org/gitorious/ce-installer.git" failed .
I had to use  "git clone git clone https://git.gitorious.org/gitorious/ce-installer.git" instead

Then when running the installer I run into the same problem again 
The installer script used the git protocol to and because of this it failed to

   ce-installer/modules/gitorious/manifests/core.pp:9:
  exec {"clone_gitorious_source":
    command => "git clone git://gitorious.org/gitorious/mainline.git ${gitorious::app_root}",
    creates => "${gitorious::app_root}",
    require => File["gitorious_root"],
  }


I started then editing these files and changing them to the http protocol   but run into other problems.


Any ideas how I could get gitorious running?


Frank





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


-- 
Best regards,
Thomas Kjeldahl Nilsson,
Partner & Programmer,
Gitorious AS
http://gitorious.com

frank...@gmail.com

unread,
Mar 19, 2013, 10:39:03 AM3/19/13
to gito...@googlegroups.com
I checked out the installer again, 
but now it will not install anything  it will just disable SELinux

Frank

Initialized empty Git repository in /root/gitorious/ce-installer/.git/
remote: Counting objects: 362, done
remote: Finding sources: 100% (362/362)
remote: Compressing objects: 100% (308/308)
remote: Compressing objects: 100% (308/308)
Receiving objects: 100% (362/362), 89.20 KiB, done.
Resolving deltas: 100% (176/176), done.
[root@abgit gitorious]# cd ce-installer/
[root@abgit ce-installer]# ./install
Starting the Gitorious installation...
Setting Gitorious hostname...
What hostname should this server and Gitorious instance have?
(Just hit enter for current hostname 'abgit.xxxx.com'):
NOTE: hostname must contain at least one period (.)

New hostname will be set to: abgit.xxxx.com
Server and Gitorious hostname set to 'abgit.xxx.com'.
Disabling SELinux...
setenforce: SELinux is disabled
[root@abgit ce-installer]# 

frank...@gmail.com

unread,
Mar 19, 2013, 11:17:42 AM3/19/13
to gito...@googlegroups.com

frank...@gmail.com

unread,
Mar 19, 2013, 11:27:59 AM3/19/13
to gito...@googlegroups.com
Okay  I tried it again.
The installer failed  during the puppet invocation
So I tried the puppet invocation manually  and as it failed I tried the commands on the command line

export GIT_SSL_NO_VERIFY=true 
cd /var/www/gitorious/app 
bin/bundle install 
git submodule update --init 
bin/rake db:migrate 
bin/rake assets:clear
touch /var/www/gitorious/deployed_tags/v2.4.12_requirements'

and bin/rake db:migrate was the first one to fail

[root@abgit app]# bin/rake db:migrate
(in /var/www/gitorious/app)
rake aborted!
Access denied for user 'gitorious'@'localhost' (using password: YES)
/var/www/gitorious/app/Rakefile:10:in `require'
(See full trace by running task with --trace)




Here the output from puppet



[root@abgit ce-installer]# puppet apply  --modulepath=modules manifests/site.pp
notice: /Stage[main]/Gitorious::Database/Exec[install_bundler]/returns: executed successfully
err: /Stage[main]//Node[gitorious-ce]/Gitorious::Version[v2.4.12]/Exec[post_version_upgrade]/returns: change from notrun to 0 failed: sh -c 'export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear && touch /var/www/gitorious/deployed_tags/v2.4.12_requirements' returned 1 instead of one of [0] at /root/gitorious/ce-installer/modules/gitorious/manifests/templates.pp:30
err: /Stage[main]/Gitorious::Sphinx/Exec[bootstrap_thinking_sphinx]/returns: change from notrun to 0 failed: /var/www/gitorious/app/bin/rake ts:config returned 1 instead of one of [0] at /root/gitorious/ce-

installer/modules/gitorious/manifests/sphinx.pp:16
notice: /Stage[main]/Gitorious::Sphinx/Cron[reindex_sphinx]: Dependency Exec[bootstrap_thinking_sphinx] has failures: true
warning: /Stage[main]/Gitorious::Sphinx/Cron[reindex_sphinx]: Skipping because of failed dependencies
err: /Stage[main]/Gitorious::Database/Exec[populate_database]/returns: change from notrun to 0 failed: /var/www/gitorious/app/bin/rake db:setup && touch /var/www/gitorious/app/tmp/database_populated returned 1 instead of one of [0] at /root/gitorious/ce-installer/modules/gitorious/manifests/database.pp:69
notice: /Stage[main]/Gitorious::Core/File[/etc/gitorious.conf]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Core/File[/etc/gitorious.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Nginx/File[/etc/nginx/nginx.conf]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Nginx/File[/etc/nginx/nginx.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Dependencies/Service[monit]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Dependencies/Service[monit]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Logrotate/Package[logrotate]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Logrotate/Package[logrotate]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Logrotate/File[/etc/logrotate.d/gitorious]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Logrotate/File[/etc/logrotate.d/gitorious]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Unicorn/File[unicorn.rb]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Unicorn/File[unicorn.rb]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Core/File[restart.txt]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Core/File[restart.txt]: Skipping because of failed dependencies
notice: Finished catalog run in 15.09 seconds

Thomas Kjeldahl Nilsson

unread,
Mar 19, 2013, 1:31:07 PM3/19/13
to gito...@googlegroups.com
Hi Frank,

I updated the installer today to account for todays security update, and
mistakenly commited a change to the "install" shellscript which probably
caused it to abort after the initial se linux update.

I pushed a revert to the problem commit - are you still experiencing
issues?

cheers,
Thomas

Thomas Kjeldahl Nilsson

unread,
Mar 20, 2013, 5:28:02 AM3/20/13
to gito...@googlegroups.com
Hi Bill,

what specifically do you get when you run the underlying commands manually? Ie.

/var/www/gitorious/app/bin/rake ts:config



and

export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear


cheers,
Thomas


On 03/20/2013 09:28 AM, Bill Peng wrote:

Hello Nilsson

I got the same problem when I clone newest commit 6bcdc50  and execute install script.
Than I executed    puppet apply --debug --modulepath=modules manifests/site.pp  and got the following  message.

Please help.

Thank you

debug: Exec[post_version_upgrade](provider=posix): Executing 'sh -c 'export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear && touch /var/www/gitorious/deployed_tags/v2.4.12_requirements''
debug: Executing 'sh -c 'export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear && touch /var/www/gitorious/deployed_tags/v2.4.12_requirements''
err: /Stage[main]//Node[gitorious-ce]/Gitorious::Version[v2.4.12]/Exec[post_version_upgrade]/returns: change from notrun to 0 failed: sh -c 'export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear && touch /var/www/gitorious/deployed_tags/v2.4.12_requirements' returned 1 instead of one of [0] at /root/Downloads/ce-installer/modules/gitorious/manifests/templates.pp:30
debug: /Schedule[puppet]: Skipping device resources because running on a host
debug: Exec[bootstrap_thinking_sphinx](provider=posix): Executing '/var/www/gitorious/app/bin/rake ts:config'
debug: Executing '/var/www/gitorious/app/bin/rake ts:config'
err: /Stage[main]/Gitorious::Sphinx/Exec[bootstrap_thinking_sphinx]/returns: change from notrun to 0 failed: /var/www/gitorious/app/bin/rake ts:config returned 1 instead of one of [0] at /root/Downloads/ce-installer/modules/gitorious/manifests/sphinx.pp:16
debug: Prefetching crontab resources for cron
notice: /Stage[main]/Gitorious::Sphinx/Cron[reindex_sphinx]: Dependency Exec[bootstrap_thinking_sphinx] has failures: true
--
--
To post to this group, send email to gito...@googlegroups.com
To unsubscribe from this group, send email to
gitorious+...@googlegroups.com
 
---
You received this message because you are subscribed to the Google Groups "Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitorious+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

彭家俊

unread,
Mar 20, 2013, 5:42:57 AM3/20/13
to gito...@googlegroups.com
HI Nilsson

I got the following message and I delete all data about gitorious from mysql database, and ......

Your installation of Gitorious Community Edition is complete.

Thank you very much !!!

/var/www/gitorious/app/bin/rake ts:config
(in /var/www/gitorious/app)
rake aborted!
Access denied for user 'gitorious'@'localhost' (using password: YES)
/var/www/gitorious/app/Rakefile:10:in `require'
(See full trace by running task with --trace)






2013/3/20 Thomas Kjeldahl Nilsson <tho...@gitorious.com>
You received this message because you are subscribed to a topic in the Google Groups "Gitorious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gitorious/6tTgSXAinck/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to gitorious+...@googlegroups.com.

frank...@gmail.com

unread,
Mar 20, 2013, 12:21:34 PM3/20/13
to gito...@googlegroups.com
Yes after clearing the database I could also successfully install gitoriois.

Thanks
Reply all
Reply to author
Forward
0 new messages