somebody help me?
Added by furong zhou over 11 years ago
#rake generate_session_store
Bundler could not find compatible versions for gem "mocha":
In Gemfile:
shoulda (~> 3.3.2) ruby depends on
mocha (= 0.10.5) ruby
mocha (0.13.3)
shoulda 3.3.2 and mocha 0.10.5 be installed
Unable to continue
Replies (26)
RE: somebody help me? - Added by Paresh Patel over 11 years ago
hi
only for one solution this problem is upgrade redmine
any question then reply me
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
I am trying to upgrade redmine when i get that error.
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
See #13194, same error, it was caused by a plugin specifying a different version of shoulda/mocha. Can you confirm you upgrade your redmine instance without any plugin ?
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
I there, I am not using any plugin, there is 1 plugin (code review) in my previous redmine instance, however it was not in use by anyonee. If necesary i could try to uninstall that plug in, but is that the problem?
Regards
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
Probably not, it doesn't seem to have a Gemfile. Can you try deleting the "Gemfile.lock" file, running "bundle install" again and then try your rake task ?
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
There is an strange problem now, i can't log in as root to try the proposed solution, apparently somehow password was changed, yet i didn't executed anything with root that could change root's pass (could rake do it?) and system admin says he didn't do it....
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
No redmine rake tasks cannot do that. Maybe just a typo or caps lock ?
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
That would be hard since i am copy-pasting the password and well i made sure already to not add extra chars such as line end or carriage return and also system admin said he couldn't log with root either, so i'll have to wait till night when we reboot the vps to try out this solution, but i hope it works.
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Ok, i have access again, but there is no gemfile.lock, there is however gemfile, is that the same? or do you mean the Gemfile.lock on the directory from the old redmine instalation? Regards!
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Jean-Baptiste Barth wrote:
Probably not, it doesn't seem to have a Gemfile. Can you try deleting the "Gemfile.lock" file, running "bundle install" again and then try your rake task ?
Hi there, when i run bundle install i get the following:
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/pg-0.15.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/pg-0.15.1/ext/gem_make.out
An error occured while installing pg (0.15.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.15.1'` succeeds before bundling.
However i'm not using posgress i think i could live without this gem, can i just simply edit the Gemfile to not check for that gem? Regards!
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
Bundler will only try to install "pg" if you have a "postgresql" defined database in your "config/database.yml". So fix your "config/database.yml", remove "Gemfile.lock", and re-run the "bundle install".
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Jean-Baptiste Barth wrote:
Bundler will only try to install "pg" if you have a "postgresql" defined database in your "config/database.yml". So fix your "config/database.yml", remove "Gemfile.lock", and re-run the "bundle install".
Hi, thanks a lot! , now everything worked with no obvious mistakes, however i restarted the application server and well, it still says that the redmine version is 1.3, did i do something wrong? regards!
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
If i run ps aux i get this:
root 1 0.0 0.0 10368 676 ? Ss Apr26 0:06 init [3]
root 2 0.0 0.0 0 0 ? S Apr26 0:00 [kthreadd/7874]
root 3 0.0 0.0 0 0 ? S Apr26 0:00 [khelper/7874]
root 116 0.0 0.0 12636 380 ? S<s Apr26 0:00 /sbin/udevd -d
root 703 0.0 0.0 5928 592 ? Ss Apr26 0:05 syslogd -m 0
wican 947 0.0 0.0 18900 564 ? Sl Apr26 7:54 /opt/csvn/bin/./wrapper-linux-x86-64 /opt/csvn/bin/../data/conf/csvn-wrapper.conf wrapper.syslog.ident=
wican 950 0.2 14.7 1012684 462764 ? Sl Apr26 34:20 /usr/java/jdk1.6.0_30/bin/java -XX:MaxPermSize=128m -Djetty.home=../appserver -Djetty.port=3343 -Djetty
named 1250 0.0 0.1 312684 5016 ? Ssl Apr26 0:11 /usr/sbin/named -u named
root 1280 0.0 0.0 62680 1112 ? Ss Apr26 0:00 /usr/sbin/sshd
root 1289 0.0 0.0 21660 792 ? Ss Apr26 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 1302 0.0 0.0 11944 1340 ? S Apr26 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/vps-1079881-6817.manage
mysql 1441 0.0 1.4 301260 45500 ? Sl Apr26 7:35 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var/lib/mysql/vps-10798
mailnull 1464 0.0 0.0 67500 2920 ? Ss Apr26 0:00 /usr/sbin/exim -bd -q60m
root 1484 0.0 1.5 154764 47588 ? Ss Apr26 2:28 /usr/local/cpanel/3rdparty/perl/514/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid -
root 1499 0.0 0.0 12420 772 ? Ss Apr26 0:33 /usr/sbin/dovecot
root 1500 0.0 0.0 19160 1236 ? S Apr26 0:15 dovecot-auth
root 1522 0.0 1.8 164376 57616 ? S Apr26 0:26 spamd child
dovecot 1568 0.0 0.0 38404 2768 ? S Apr26 0:28 pop3-login
dovecot 1569 0.0 0.0 38444 2788 ? S Apr26 0:09 pop3-login
dovecot 1570 0.0 0.0 38640 2948 ? S Apr26 0:06 imap-login
dovecot 1571 0.0 0.1 38828 3160 ? S Apr26 0:16 imap-login
postgres 1634 0.0 0.1 77324 3756 ? S Apr26 0:00 /opt/postgres/8.4/bin/postgres -D /opt/postgres/8.4/data
postgres 1636 0.0 0.0 77324 1196 ? Ss Apr26 1:42 postgres: writer process
postgres 1637 0.0 0.0 77324 988 ? Ss Apr26 1:20 postgres: wal writer process
postgres 1638 0.0 0.0 77456 1072 ? Ss Apr26 0:21 postgres: autovacuum launcher process
postgres 1639 0.0 0.0 48732 940 ? Ss Apr26 0:12 postgres: stats collector process
root 1651 0.0 0.0 38284 1504 ? Ss Apr26 0:01 pure-ftpd (SERVER)
root 1653 0.0 0.0 37036 1572 ? S Apr26 0:01 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/local/cpanel/bin/pureauth
root 1662 0.0 0.0 20884 1140 ? Ss Apr26 0:03 crond
root 1678 0.0 0.0 12932 1220 ? S Apr26 0:39 /usr/libexec/gam_server
root 1696 0.0 0.0 18748 480 ? Ss Apr26 0:00 /usr/sbin/atd
root 1797 0.0 0.0 27828 2836 ? S Apr26 0:08 cPhulkd - processor
root 1808 0.0 0.3 89876 11560 ? S Apr26 0:41 cpsrvd (SSL) - waiting for connections
root 1813 0.0 0.4 93412 13144 ? S Apr26 0:01 cpdavd - accepting connections on 2077 and 2078
root 1837 0.0 0.1 31648 4664 ? S Apr26 0:37 queueprocd - wait to process a task
root 1871 0.0 0.2 41324 7884 ? S Apr26 3:16 tailwatchd
root 1879 0.0 0.0 26240 2864 ? SN Apr26 0:01 cpanellogd - sleeping for logs
mailman 1894 0.0 0.2 93204 6612 ? Ss Apr26 0:00 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s start
root 2023 0.0 0.0 46756 764 ? Ss Apr26 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
root 2031 0.0 0.0 46756 496 ? S Apr26 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
mailman 2085 0.0 0.2 88540 7848 ? S Apr26 2:12 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunne
mailman 2086 0.0 0.2 88848 7780 ? S Apr26 2:17 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRun
mailman 2087 0.0 0.2 88536 7740 ? S Apr26 2:11 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRu
mailman 2088 0.0 0.2 88528 7876 ? S Apr26 2:10 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingR
mailman 2089 0.0 0.2 88856 7900 ? S Apr26 2:11 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunne
mailman 2090 0.0 0.2 91064 8344 ? S Apr26 2:18 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingR
mailman 2091 0.0 0.2 88888 8080 ? S Apr26 2:11 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRun
mailman 2092 0.0 0.2 88540 7820 ? S Apr26 0:00 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunn
wican 2971 0.0 0.0 9852 1244 ? S Apr26 0:00 /bin/sh /opt/jboss-as-7.1.0.CR1b/bin/./standalone.sh
wican 3026 0.1 17.9 2056932 564580 ? Sl Apr26 26:49 /usr/local/jdk/bin/java -server -Xms512m -Xmx1024m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true
root 17701 0.0 0.1 100576 5004 ? Sl 02:40 0:06 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock -x
ssinco 23581 0.0 0.0 17852 1920 ? S 10:02 0:00 imap
wican 23598 0.0 0.0 17968 2152 ? S 10:03 0:00 imap
ssinco 23600 0.0 0.0 18028 2272 ? S 10:03 0:00 imap
root 23994 0.0 0.1 88608 3860 ? Ss 10:16 0:00 sshd: root@notty
root 24000 0.0 0.0 54112 2236 ? Ss 10:16 0:00 /usr/libexec/openssh/sftp-server
root 24100 0.0 0.1 88016 3308 ? Ss 10:20 0:00 sshd: root@notty
root 24106 0.0 0.0 53928 2020 ? Ss 10:20 0:00 /usr/libexec/openssh/sftp-server
root 24822 0.0 0.1 88016 3204 ? Ss 10:40 0:00 sshd: wican [priv]
wican 24829 0.0 0.0 88156 1796 ? S 10:40 0:00 sshd: wican@notty
wican 24830 0.0 0.0 53928 2064 ? Ss 10:40 0:00 /usr/libexec/openssh/sftp-server
wican 25255 0.0 0.0 17640 1656 ? S 10:45 0:00 imap
ssinco 26105 0.0 0.0 17744 1708 ? S 10:58 0:00 imap
root 26292 0.0 0.2 107084 9316 ? Ss 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
root 26293 0.0 0.2 47644 8444 ? S 11:00 0:00 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
root 26299 0.0 0.1 102316 3224 ? S 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
root 26300 0.0 0.0 16916 1772 ? Ssl 11:00 0:00 PassengerWatchdog
root 26303 0.1 0.0 93820 2540 ? Sl 11:00 0:02 PassengerHelperAgent
root 26305 0.0 0.3 37140 10652 ? S 11:00 0:00 Passenger spawn server
nobody 26310 0.0 0.1 51556 3232 ? Sl 11:00 0:00 PassengerLoggingAgent
nobody 26316 0.0 0.2 107216 7308 ? S 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 26320 0.0 0.2 107220 7176 ? S 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
apache 26353 0.1 3.7 205596 118620 ? S 11:00 0:02 Rails: /var/www/redmine
nobody 26355 0.0 0.2 107220 7192 ? S 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 26360 0.0 0.2 107216 7180 ? S 11:00 0:00 /usr/local/apache/bin/httpd -k start -DSSL
root 26377 0.0 0.1 88164 3312 ? Ss 11:01 0:00 sshd: root@pts/1
root 26384 0.0 0.0 12180 1748 pts/1 Ss 11:01 0:00 -bash
wican 26437 0.0 0.1 75800 5612 ? Ss 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
wican 26438 0.0 0.1 75800 3544 ? S 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
wican 26439 0.0 0.1 75800 3544 ? S 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
wican 26440 0.0 0.1 75800 3544 ? S 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
wican 26441 0.0 0.1 75800 3544 ? S 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
wican 26442 0.0 0.1 75800 3544 ? S 11:01 0:00 /opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start
nobody 26679 0.0 0.2 107224 7284 ? S 11:09 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 26904 0.0 0.2 107220 6960 ? S 11:17 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 26947 0.0 0.2 107216 6956 ? S 11:18 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 26987 0.0 0.2 107220 6956 ? S 11:19 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 27032 0.0 0.2 107084 6384 ? S 11:21 0:00 /usr/local/apache/bin/httpd -k start -DSSL
nobody 27084 0.0 0.2 107084 6704 ? S 11:21 0:00 /usr/local/apache/bin/httpd -k start -DSSL
wican 27088 0.0 0.0 18464 2120 ? S 11:21 0:00 imap
ssinco 27110 0.0 0.0 17900 1932 ? S 11:22 0:00 imap
ssinco 27143 0.0 0.0 17852 1584 ? S 11:22 0:00 imap
root 27199 0.0 0.0 10740 980 pts/1 R+ 11:25 0:00 ps aux
However, my new directory for redmine is /var/www/redmine-2.3.0 how do I make the aplication server to get that directory and not the current one? Regards!
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
It seems your using passenger as an apache module, so you should look at the configuration of apache and change the "DocumentRoot" to point to the "public/" subdirectory of the new install.
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Jean-Baptiste Barth wrote:
It seems your using passenger as an apache module, so you should look at the configuration of apache and change the "DocumentRoot" to point to the "public/" subdirectory of the new install.
Thanks man! that solved it, redmine 2.3.0 is working now! You really helped me out!
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Omar Nuñez wrote:
Jean-Baptiste Barth wrote:
It seems your using passenger as an apache module, so you should look at the configuration of apache and change the "DocumentRoot" to point to the "public/" subdirectory of the new install.
Thanks man! that solved it, redmine 2.3.0 is working now! You really helped me out!
Well, almost everything is working fine, but the "settings" link gives me an internal error, i googled a bit and it seems that it could be an encoding problem, however i see nothing strange at my production log, is this a common problem?
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Omar Nuñez wrote:
Omar Nuñez wrote:
Jean-Baptiste Barth wrote:
It seems your using passenger as an apache module, so you should look at the configuration of apache and change the "DocumentRoot" to point to the "public/" subdirectory of the new install.
Thanks man! that solved it, redmine 2.3.0 is working now! You really helped me out!
Well, almost everything is working fine, but the "settings" link gives me an internal error, i googled a bit and it seems that it could be an encoding problem, however i see nothing strange at my production log, is this a common problem?
Hello again, i think this is related to ruby, i can't see my account either, will updating ruby fix the issue? (or will it just cause more issues itself? REGARDS!
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Omar Nuñez wrote:
Omar Nuñez wrote:
Omar Nuñez wrote:
Jean-Baptiste Barth wrote:
It seems your using passenger as an apache module, so you should look at the configuration of apache and change the "DocumentRoot" to point to the "public/" subdirectory of the new install.
Thanks man! that solved it, redmine 2.3.0 is working now! You really helped me out!
Well, almost everything is working fine, but the "settings" link gives me an internal error, i googled a bit and it seems that it could be an encoding problem, however i see nothing strange at my production log, is this a common problem?
Hello again, i think this is related to ruby, i can't see my account either, will updating ruby fix the issue? (or will it just cause more issues itself? REGARDS!
I found a patch that is supossed to solve this problem, however i can't apply the patch, i keep getting this:
When i run this:
patch -p0 < revert-r10844.diff
I get this:
can't find file to patch at input line 4
Perhaps you used the wrong p or --strip option?
|diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
|--- a/app/helpers/application_helper.rb
|+++ b/app/helpers/application_helper.rb
The text leading up to this was:
-------------------------
--------------------------
File to patch:
I don't know ruby and i don't know redmine (as you probably realized) sorry to bug you so much, is there any solution to this?
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
Try with patch -p1
instead of -p0
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Jean-Baptiste Barth wrote:
Try with
patch -p1
instead of-p0
Thanks again, with p1 i get
patching file app/helpers/application_helper.rb
Hunk #1 FAILED at 925.
1 out of 1 hunk FAILED -- saving rejects to file app/helpers/application_helper.rb.rej
patching file lib/redmine/i18n.rb
Hunk #1 FAILED at 87.
1 out of 1 hunk FAILED -- saving rejects to file lib/redmine/i18n.rb.rej
patching file test/unit/lib/redmine/i18n_test.rb
Hunk #1 FAILED at 194.
1 out of 1 hunk FAILED -- saving rejects to file test/unit/lib/redmine/i18n_test.rb.rej
Contents of such file is as follows:
- 194,210 **
assert valid_languages.first.is_a?(Symbol)
end
- def test_languages_options
- options = languages_options
-
- assert options.is_a?(Array)
- assert_equal valid_languages.size, options.size
- assert_nil options.detect {|option| !option.is_a?(Array)}
- assert_nil options.detect {|option| option.size != 2}
- assert_nil options.detect {|option| !option.first.is_a?(String) || !option.last.is_a?(String)}
- assert_include ["English", "en"], options
- end
-
def test_locales_validness
lang_files_count = Dir["#{Rails.root}/config/locales/*.yml"].size
assert_equal lang_files_count, valid_languages.size
--- 194,199 ----
assert valid_languages.first.is_a?(Symbol)
end
def test_locales_validness
lang_files_count = Dir["#{Rails.root}/config/locales/*.yml"].size
assert_equal lang_files_count, valid_languages.size
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
In that case, the best suggestion is you go back to 2.3.0. There's no database change between those two versions, so the switch is easy (just replace the files and you're done).
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Jean-Baptiste Barth wrote:
In that case, the best suggestion is you go back to 2.3.0. There's no database change between those two versions, so the switch is easy (just replace the files and you're done).
Thanks for your answer again, you really are the one to credit for getting this update to work. For this last issue, changing permisions on the directory worked, i'm still messing around and i am not redmine administrator so there might be a couple things broken, but so far seems to be ok, but again THANKS A LOT!!
RE: somebody help me? - Added by Jean-Baptiste Barth over 11 years ago
No problem, thanks for the kind words ;) I hope we can get those 2.3.1 problems sorted out quickly.
RE: somebody help me? - Added by Toshi MARUYAMA over 11 years ago
Omar Nuñez wrote:
Well, almost everything is working fine, but the "settings" link gives me an internal error, i googled a bit and it seems that it could be an encoding problem, however i see nothing strange at my production log, is this a common problem?
Did you clear cache?
Please see #13520#note-12 (note-12) and following notes.
RE: somebody help me? - Added by Omar Nuñez over 11 years ago
Yea redmine is apparently working nicely now. However i'd like to know something about plug ins. Is it normal to have some troubles with them when you put the plug in on the plug in folders (previous to installing?). That's because i'm "going" to install blacklogs plug in. When i drop it into plug ins folder, i get some ruby faults (caused by some gems), then when i run bundle install, those faults are gonne, but some parts of redmine, such as issue lists give me internal error (if i remove the folder from the plug ins folder the problem goes away). I'm wondering if running the install process for the plug in would solve that problem or just make it permanent, could someone advise about it?