drcapulet / warehouse Goto Github PK
View Code? Open in Web Editor NEWA complete rewrite of http://github.com/entp/warehouse that is built for Git.
A complete rewrite of http://github.com/entp/warehouse that is built for Git.
Same commits mirroring. Slightly changer error message.
gitmaster@ps12894:~/git.x-demon.org 0_o $ RAILS_ENV=production /opt/ruby-enterprise/bin/rake warehouse:sync --trace
(in /home/gitmaster/git.x-demon.org)
** Invoke warehouse:sync (first_time)
** Execute warehouse:sync
xdemon-pkgbuilds
^[[dmaster: 87% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | ETA: 00:00rake aborted! 100% |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| ETA: 00:00:00
undefined method +' for nil:NilClass /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:131:in
create_payload_for_hooks'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:118:in each' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:118:in
create_payload_for_hooks'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:80:in process' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:41:in
each'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:41:in process' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:31:in
process'
./app/models/repository.rb:26:in sync_revisions' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in
process'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in each' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in
process'
/home/gitmaster/git.x-demon.org/lib/tasks/syncer.rake:7
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in
synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:in
load'
/opt/ruby-enterprise/bin/rake:19
gem 'compass'
gem 'compass', '0.8.17'
When I try to run warehouse with the defaults in wrehouse.yml I get this error from passenger:
Error message:
private method `gsub' called for nil:NilClass
Exception class:
NoMethodError
Application root:
/var/www/warehouse
I tried replacing the host lines with my own domainname, but no dice. I think I must just be missing some important configuration element here, but I can't figure it out. Is Warehouse.yml even what I should be messing with?
Thanks!
Nate
Well i got a similar problem as:
#9
I used a ubuntu server 10.10 from scratch.
I used the following commands:
# Install git
sudo apt-get install git
# Install requirements for python
sudo apt-get install libxslt-dev libxml2-dev
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install build-essential
# Install MySQL
sudo apt-get install mysql-server mysql-client
sudo apt-get install libmysql-ruby libmysqlclient-dev
# Install python
sudo apt-get install python
# Install python-setuptools
sudo apt-get install python-setuptools
# Install Ruby
sudo apt-get install ruby
sudo apt-get install ruby1.8-dev
# Install RubyGems
sudo apt-get install rubygems
# Install rake
sudo apt-get install rake
# Install Pygments
sudo easy_install Pygments
# Time to get Gitosis
mkdir ~/src
cd ~/src
cd gitosis
sudo python setup.py install
nano /tmp/id_rsa.pub
#Paste the your rsa_pub key in the file and save it
sudo -H -u git gitosis-init < /tmp/id_rsa.pub
#Setting permissions right
sudo chmod 755 /home/git/repositories/gitosis-admin.git/hooks/post-update
# BACK TO LOCAL MACHINE
# Go the preffered directory
git clone git@YOUR_SERVER_HOSTNAME:gitosis-admin.git
# EDIT THE FILE LOCALLY and PUSH IT BACK
# TIME TO INSTALL Warehouse
sudo mkdir /home/git/warehouse
cd /home/git/warehouse
#Get warehouse
sudo git clone git://github.com/drcapulet/warehouse.git
sudo mv warehouse/* /home/git/warehouse
sudo rm -rf warehouse
# Installing it using ruby
sudo gem install bundler
/var/lib/gems/1.8/bin/bundle install
# Time for some configing
sudo rm config/database.yml
sudo cp config/database.mysql_sample.yml config/database.yml
# Edit the configuration file
sudo nano config/database.yml
sudo nano config/warehouse.yml
# Make the tables according to configuration
mysql -u <username here> -p
create database gitserver;
create database gitserver_test;
create database gitserver_dev;
quit;
# Populate the database
sudo RAILS_ENV=production rake db:schema:load
sudo RAILS_ENV=development rake db:schema:load
cd /home/git/warehouse
sudo script/server production
RAILS_ENV=production rake warehouse:sync[/home/git/repositories]
# The Error Message
The final command reports:
Repository with the path of /home/git/repositories could not be found. Exiting
So my repo is in : /home/git/repositories/ (containing gitosis-admin.git and test.git)
Things I tried
- log_syncer is true (the solution in the other thread)
- Using script/console production
- Adding my user and the git user to the same group
- Modifying file/folder permissions
- Putting files in the default sync folders (so by running RAILS_ENV=production rake warehouse:sync)
The rest works fine, but the website keeps saying:
Some revisions need to be synced. You can do this by syncing through the command line or in the repository admin.
Help would be appreciated. Furthermore Warehouse great!
When i'm tryin to sync repos, i get following error:
gitmaster@ps12894:~/git.x-demon.org ^_^ $ RAILS_ENV=production /opt/ruby-enterprise/bin/rake warehouse:sync --trace
(in /home/gitmaster/git.x-demon.org)
** Invoke warehouse:sync (first_time)
** Execute warehouse:sync
pkgbuilds
rake aborted! 100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| ETA: 00:00:00
undefined local variable or method root_url' for #<Warehouse::Syncer:0x3e0b2c8> /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:131:in
create_payload_for_hooks'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:118:in each' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:118:in
create_payload_for_hooks'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:80:in process' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:41:in
each'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:41:in process' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:31:in
process'
./app/models/repository.rb:26:in sync_revisions' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in
process'
/home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in each' /home/gitmaster/git.x-demon.org/lib/warehouse/syncer.rb:33:in
process'
/home/gitmaster/git.x-demon.org/lib/tasks/syncer.rake:7
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in each' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
execute'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in invoke_with_call_chain' /opt/ruby-enterprise/lib/ruby/1.8/monitor.rb:242:in
synchronize'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in invoke_with_call_chain' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in
invoke'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in invoke_task' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in each' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in
top_level'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in run' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /opt/ruby-enterprise/bin/rake:19:in
load'
/opt/ruby-enterprise/bin/rake:19
And if i sync for second / third / etc time, i got x2 / x3 / etc commits in my webinterface.
Is it just some sort of pre-fetch or this should be run on every repo update?
(I accidentally closed the issue):
radialflux 2 minutes ago | link | edit | delete
I cannot get to the point to add a repo - could you give me a hint? I went to 0.0.0.0:3000 and just get a blank page regardless of the enviroment (actuall in production I get the std 500)
radialflux just now | link | edit | delete
Actually, I get this:
Unknown action
No action responded to index. Actions:
I followed the instructions and started the application - i get NoMethodError (undefined method `head' for nil:NilClass): any thoughts on what i did wrong?
Installed by instruction, tryin' to start it. But with passenger i get nothing (just infinity load) and with webrick...
gitmaster@ps12894:~/git.x-demon.org 0_o $ ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-05-15 23:23:35] INFO WEBrick 1.3.1
[2010-05-15 23:23:35] INFO ruby 1.8.7 (2009-12-24) [x86_64-linux]
[2010-05-15 23:23:35] INFO WEBrick::HTTPServer#start: pid=31302 port=3000
Processing ApplicationController#index (for 95.165.187.253 at 2010-05-15 23:23:52) [GET]
ActionController::UnknownAction (No action responded to index. Actions: ):
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:617:in call_filters' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:610:in
perform_action_without_benchmark'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/benchmarking.rb:68:in
perform_action_without_rescue'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/rescue.rb:160:in perform_action_without_flash' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/flash.rb:146:in
perform_action'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in send' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:532:in
process_without_filters'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/filters.rb:606:in process_without_compass' compass (0.8.17) lib/compass/app_integration/rails/action_controller.rb:7:in
process'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:391:in process' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:386:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:437:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:87:in
dispatch'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:121:in _call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:130 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:29:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
cache'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:9:in cache' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/query_cache.rb:28:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in call' haml (3.0.4) lib/sass/plugin/rack.rb:41:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/string_coercion.rb:25:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/params_parser.rb:15:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/session/cookie_store.rb:93:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/failsafe.rb:26:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:114:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/reloader.rb:34:in
run'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:108:in call' /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/static.rb:31:in
call'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/rack/log_tailer.rb:17:in call' /opt/ruby-enterprise/lib/ruby/1.8/webrick/httpserver.rb:104:in
service'
/opt/ruby-enterprise/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:173:in
start_thread'
/opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:162:in start' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:162:in
start_thread'
/opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:95:in start' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:92:in
each'
/opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:92:in start' /opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:23:in
start'
/opt/ruby-enterprise/lib/ruby/1.8/webrick/server.rb:82:in `start'
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
Rendering rescues/layout (not_found)
I have ~10 repositories in ~/repositories/ (all is bare repos, left from gitolite installation)
when i try to sync i get this error.
DEPRECATION WARNING: require "activeresource" is deprecated and will be removed in Rails 3. Use require "active_resource" instead.. (called from /var/lib/gems/1.8/gems/activeresource-2.3.5/lib/activeresource.rb:2)
Repository with the path of /var/lib/gems/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin could not be found. Exiting
running warehouse under ubuntuserver
I tried to run the sync command after adding a repo. I get the following error:
macbook:warehouse danny$ rake warehouse:sync
(in /Users/danny/Dropbox/SVN/railsapps/warehouse)
Survey Manager
The syncer had a problem syncing, try changing the git timeout in warehouse.yml. It tried to run:
0
I changed the timeout in warehouse.yml from 60 to 600 but got the same error.
The dashboard seems to show the last details:
Survey Managerlatest commit: 32c27852dd43b85e47a6f2d09642fc9221e9f817 needs to be synced
but that's all.
Thanks,
Danny
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.