ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] В надежде запустить redmine
@ 2010-07-04 16:02 Di
  2010-07-06 21:09 ` Alexey I. Froloff
  0 siblings, 1 reply; 5+ messages in thread
From: Di @ 2010-07-04 16:02 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 4986 bytes --]

Доброго времени суток!

Попробовал заставить работать redmine, но не преуспел.

# redmine-rake db:migrate db:migrate_plugins
redmine-rake: processing `test2'...
(in /usr/share/redmine)
rake aborted!
production_maintenance database is not configured

(See full trace by running task with --trace)
redmine-rake: WARNING: `rake SCHEMA=/dev/null 
RAILS_ENV=production_maintenance X_ALT_SITEID=test2 
RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins' exited with 1

С другой стороны,
rake SCHEMA=/dev/null RAILS_ENV=production X_ALT_SITEID=test2 
RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins
заканчивается успешно.

# cat /etc/redmine/test2/database.yml
production:
  adapter: sqlite3
  database: /tmp/test2
  encoding: utf8

# ll /tmp
drwxrwxrwt  7 root root 4096 Jul  4 18:29 ./

# rpm -qa | grep ruby
ruby-racc-runtime-1.4.6-alt1.1
ruby-nokogiri-1.4.0-alt1
ruby-prof-0.7.3-alt1
ruby-activerecord-2.3.8-alt1
ruby-actionmailer-2.3.8-alt1
ruby-json-1.1.7-alt1
ruby-fcgi-0.8.7-alt2
ruby-mongrel-1.1.5-alt5
ruby-rmagick-2.11.0-alt1
ruby-builder-2.1.2-alt3
ruby-xml-simple-1.0.12-alt1
ruby-tzinfo-0.3.13-alt1
ruby-stdlibs-1.9.1-alt1.r26040.1
sqlite3-ruby-1.3.0-alt1
ruby-tool-rdoc-1.9.1-alt1.r26040.1
ruby-tool-irb-1.9.1-alt1.r26040.1
ruby-test-unit-2.0.6-alt2
ruby-rack-1.1.0-alt2
ruby-gem_plugin-0.2.3-alt2
ruby-openid-2.1.8-alt1
rubytree-0.5.2-alt1
ruby-activerecord-sqlite3-adapter-2.3.8-alt1
ruby-tmail-1.2.3.1-alt2
libxml-ruby-1.1.3-alt1
ruby-i18n-0.3.7-alt2
ruby-activesupport-2.3.8-alt1
ruby-actionpack-2.3.8-alt1.1
ruby-activeresource-2.3.8-alt1
ruby-railties-2.3.8-alt1
ruby-rails-2.3.8-alt1
ruby-mongrel_cluster-1.0.5-alt4
libruby-devel-1.9.1-alt1.r26040.1
ruby-memcache-client-1.7.4-alt1
libruby-1.9.1-alt1.r26040.1
rpm-build-ruby-0.1.0-alt1
ruby-1.9.1-alt1.r26040.1
ruby-rake-0.8.4-alt1
ruby-rack-handler-webrick-1.1.0-alt2
ruby-coderay-0.9.2-alt1
ruby-daemons-1.0.10-alt2
ruby-text-format-1.0.0-alt3
# rpm -qa | grep sqlite
libsqlite-2.8.17-alt2
libsqlite3-3.6.23.1-alt3
sqlite3-ruby-1.3.0-alt1
ruby-activerecord-sqlite3-adapter-2.3.8-alt1
sqlite-2.8.17-alt2
python-module-pysqlite2-2.4.1-alt1.1
sqlite3-3.6.23.1-alt3

С трейсом:

# rake SCHEMA=/dev/null RAILS_ENV=production_maintenance 
X_ALT_SITEID=test2 RAILS_ETC=/etc/redmine/test2 db:migrate 
db:migrate_plugins --trace
(in /usr/share/redmine)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
production_maintenance database is not configured
/usr/share/ruby/vendor_ruby/1.9/active_record/connection_adapters/abstract/connection_specification.rb:62:in 
`establish_connection'
/usr/share/ruby/vendor_ruby/1.9/active_record/connection_adapters/abstract/connection_specification.rb:55:in 
`establish_connection'
/usr/share/ruby/vendor_ruby/1.9/initializer.rb:450:in `initialize_database'
/usr/share/ruby/vendor_ruby/1.9/initializer.rb:147:in `process'
/usr/share/ruby/vendor_ruby/1.9/initializer.rb:119:in `run'
/usr/share/redmine/config/environment.rb:33:in `<top (required)>'
/usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in 
`require'
/usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in 
`block in require'
/usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:521:in 
`new_constants_in'
/usr/share/ruby/vendor_ruby/1.9/active_support/dependencies.rb:156:in 
`require'
/usr/share/ruby/vendor_ruby/1.9/tasks/misc.rake:4:in `block in <top 
(required)>'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:617:in `call'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:617:in `block in execute'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:612:in `each'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:612:in `execute'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:578:in `block in 
invoke_with_call_chain'
/usr/share/ruby/1.9/monitor.rb:190:in `mon_synchronize'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:571:in `invoke_with_call_chain'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:588:in `block in 
invoke_prerequisites'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:585:in `each'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:585:in `invoke_prerequisites'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:577:in `block in 
invoke_with_call_chain'
/usr/share/ruby/1.9/monitor.rb:190:in `mon_synchronize'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:571:in `invoke_with_call_chain'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:564:in `invoke'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2027:in `invoke_task'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2005:in `block (2 levels) in 
top_level'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2005:in `each'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2005:in `block in top_level'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2044:in 
`standard_exception_handling'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:1999:in `top_level'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:1977:in `block in run'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:2044:in 
`standard_exception_handling'
/usr/share/ruby/vendor_ruby/1.9/rake.rb:1974:in `run'
/usr/bin/rake:27:in `<main>'



[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 366 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] В надежде запустить redmine
  2010-07-04 16:02 [sisyphus] В надежде запустить redmine Di
@ 2010-07-06 21:09 ` Alexey I. Froloff
  2010-07-07  7:54   ` Денис Ягофаров
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2010-07-06 21:09 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

On Sun, Jul 04, 2010 at 07:02:32PM +0300, Di wrote:
> rake aborted!
> production_maintenance database is not configured
В README всё написано.  Надо настроить базу ещё в одном конфиге.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] В надежде запустить redmine
  2010-07-06 21:09 ` Alexey I. Froloff
@ 2010-07-07  7:54   ` Денис Ягофаров
  2010-07-09 18:30     ` Alexey I. Froloff
  0 siblings, 1 reply; 5+ messages in thread
From: Денис Ягофаров @ 2010-07-07  7:54 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]

07.07.2010 00:09, Alexey I. Froloff пишет:
> On Sun, Jul 04, 2010 at 07:02:32PM +0300, Di wrote:
>    
>> rake aborted!
>> production_maintenance database is not configured
>>      
> В README всё написано.  Надо настроить базу ещё в одном конфиге

Всё так и было настроено.

(прикрепил конфиги)

drwxrwxrwt  7 root root     4096 Jul  6 23:08 ./
-rw-rw-rw-     1 root root 210944 Jul  4 20:13 /tmp/test2

Вроде, с конфигами всё хорошо... как и с правами =\

Пробую настроить:
# pwd
/usr/share/redmine

# rake SCHEMA=/dev/null RAILS_ENV=production_maintenance 
X_ALT_SITEID=test2 RAILS_ETC=/etc/redmine/test2 db:migrate 
db:migrate_plugins
(in /usr/share/redmine)
rake aborted!
production_maintenance database is not configured

(See full trace by running task with --trace)

# rake SCHEMA=/dev/null RAILS_ENV=production X_ALT_SITEID=test2 
RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins
(in /usr/share/redmine)

# rake SCHEMA=/dev/null RAILS_ENV=maintenance X_ALT_SITEID=test2 
RAILS_ETC=/etc/redmine/test2 db:migrate db:migrate_plugins
(in /usr/share/redmine)
rake aborted!
undefined method `[]' for nil:NilClass

(See full trace by running task with --trace)

Т.е. БД он заполняет в режиме production, но как раз полезную штуку с 
режимами production/maintenance и разделением прав, сделать не 
получается. Может, это связано с тем, что я sqlite использую (хотя, это 
было очень странно)?






[-- Attachment #2: database.yml --]
[-- Type: text/plain, Size: 68 bytes --]

production:
 adapter: sqlite3
 database: /tmp/test2
 encoding: utf8

[-- Attachment #3: database-maintenance.yml --]
[-- Type: text/plain, Size: 68 bytes --]

production:
 adapter: sqlite3
 database: /tmp/test2
 encoding: utf8

[-- Attachment #4: denyago.vcf --]
[-- Type: text/x-vcard, Size: 370 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] В надежде запустить redmine
  2010-07-07  7:54   ` Денис Ягофаров
@ 2010-07-09 18:30     ` Alexey I. Froloff
  2010-07-10  8:49       ` Денис Ягофаров
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey I. Froloff @ 2010-07-09 18:30 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

On Wed, Jul 07, 2010 at 10:54:01AM +0300, Денис Ягофаров wrote:
> # rake SCHEMA=/dev/null RAILS_ENV=production_maintenance 
                                    ^^^^^^^^^^^^^^^^^^^^^^

> production:
  ^^^^^^^^^^
>  adapter: sqlite3

> production:
  ^^^^^^^^^^
>  adapter: sqlite3

В файле database-maintenance.yml надо использовать
production_maintenance.

-- 
Regards,    --
Sir Raorn.   --- http://thousandsofhate.blogspot.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [sisyphus] В надежде запустить redmine
  2010-07-09 18:30     ` Alexey I. Froloff
@ 2010-07-10  8:49       ` Денис Ягофаров
  0 siblings, 0 replies; 5+ messages in thread
From: Денис Ягофаров @ 2010-07-10  8:49 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

09.07.2010 21:30, Alexey I. Froloff пишет:
> On Wed, Jul 07, 2010 at 10:54:01AM +0300, Денис Ягофаров wrote:
>    
>> # rake SCHEMA=/dev/null RAILS_ENV=production_maintenance
>>      
> В файле database-maintenance.yml надо использовать
> production_maintenance.
>    

Спасибо! Проблема решена.

[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 370 bytes --]

begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80445201209
tel;cell:80662933760
note;quoted-printable:xmmp: denyago@gmail.com=0D=0A=
	xmmp: diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-10  8:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-04 16:02 [sisyphus] В надежде запустить redmine Di
2010-07-06 21:09 ` Alexey I. Froloff
2010-07-07  7:54   ` Денис Ягофаров
2010-07-09 18:30     ` Alexey I. Froloff
2010-07-10  8:49       ` Денис Ягофаров

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git