Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 629154 - www-apps/redmine-3.4.0 - rake aborted! LoadError: cannot load such file -- action_dispatch/xml_params_parser
Summary: www-apps/redmine-3.4.0 - rake aborted! LoadError: cannot load such file -- ac...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-28 08:52 UTC by Sebastian Thomae
Modified: 2018-01-20 20:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Thomae 2017-08-28 08:52:02 UTC
this version of redmine has a dependency to action_dispatcher/xml_param_parser which doesn't exist anymore in the portage tree.

rake aborted!
LoadError: cannot load such file -- action_dispatch/xml_params_parser
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-08-28 09:19:19 UTC
1) Please attach the entire build log to this bug report.
2) Please post your `emerge --info` output in a comment.`
Comment 2 Sebastian Thomae 2017-08-28 09:49:31 UTC
Build Log:

root# emerge --config "=www-apps/redmine-3.4.0"


Configuring pkg...

 * 
 * Initializing database.
 * 
 * Generating a session store secret.
rake aborted!
LoadError: cannot load such file -- action_dispatch/xml_params_parser
/mount/redmine/current/config/application.rb:4:in `<top (required)>'
/mount/redmine/current/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
 * ERROR: www-apps/redmine-3.4.0::gentoo failed (config phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 115:  Called pkg_config
 *   environment, line 4386:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake generate_secret_token || die;
 * 
 * If you need support, post the output of `emerge --info '=www-apps/redmine-3.4.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/redmine-3.4.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =redmine-3.4.0
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-3.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-3.4.0/temp/environment'.
 * Working directory: '/var/lib/redmine'
 * S: '/var/tmp/portage/www-apps/redmine-3.4.0/work/redmine-3.4.0'
Comment 3 Sebastian Thomae 2017-08-28 09:50:37 UTC
emerge --info:

Portage 2.3.6 (python 3.4.5-final-0, hardened/linux/amd64, gcc-4.9.4, glibc-2.23-r4, 4.9.34-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2667_v3_@_3.20GHz-with-gentoo-2.3
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 28 Aug 2017 00:15:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /mount/portage
    sync-type: rsync
    sync-uri: rsync://rsync-gentoo.local/gentoo-portage
    priority: -1000

local
    location: /usr/local/overlays/local
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs 4 --load-average 3 --keep-going --autounmask-write y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri gdbm hardened iconv ipv6 justify mmx modules multilib ncurses nls nping nptl openmp pam pax_kernel pcre pie readline seccomp session sse sse2 ssl ssp symlink tcpd unicode urandom xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev vesa vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Azamat H. Hackimov 2017-08-28 12:51:04 UTC
Hello.

Can you please check that dev-ruby/actionpack-xml_parser is installed on system?
Comment 5 Sebastian Thomae 2017-08-28 13:01:38 UTC
that package was installed as part of redmines dependencies
Comment 6 Azamat H. Hackimov 2017-08-28 17:59:24 UTC
Can you post output of these commands:

cd /var/lib/redmine && ruby -S rake generate_secret_token --trace
Comment 7 Sebastian Thomae 2017-08-29 05:09:36 UTC
Since the bug report i realized redmine via "git clone", "bundle install" and a puma server behind an nginx proxy (redmine is critical for my company), but i have the old command line buffer ;-)

As you wish:

root# ruby -S rake generate_secret_token --trace
rake aborted!
LoadError: cannot load such file -- action_dispatch/xml_params_parser
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/mount/redmine/current/config/application.rb:4:in `<top (required)>'
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/lib64/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/mount/redmine/current/Rakefile:5:in `<top (required)>'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:689:in `raw_load_rakefile'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:93:in `load_rakefile'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:77:in `block in run'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/usr/lib64/ruby/gems/2.2.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/usr/bin/rake:9:in `load'
/usr/bin/rake:9:in `<main>'
Comment 8 Azamat H. Hackimov 2017-08-29 06:59:08 UTC
You have mixed installation with bundle and portage gems.

You have installation in /mount/redmine/ which somehow tries to pull update process to itself. 

I suggest to clean up system from bundle installation and try again.
Comment 9 Azamat H. Hackimov 2017-08-29 07:00:50 UTC
...and, since current redmine installation is critical to your company, it's better to do in new clean system.
Comment 10 Sebastian Thomae 2017-08-29 08:46:41 UTC
i have stripped all installed gems from the system before trying to install redmine via portage.

i have the default install directory of /var/lib/redmine as a symlink to a special logical volume mounted under /mount/redmine/current (that is the only non standard thing i did)
Comment 11 Azamat H. Hackimov 2017-08-29 10:29:15 UTC
OK, I got it. It seems you have installed dev-ruby/actionpack-xml_parser:2, but redmine requires dev-ruby/actionpack-xml_parser:0. Remove slot 2, mask it and install 0, after that switch to rails-4.2 (eselect rails set <number>).

Meanwhile I'll commit proper fix in ebuilds.
Comment 12 Azamat H. Hackimov 2017-09-11 07:52:57 UTC
Fixed in 3.2.7-r1, 3.3.4-r1, 3.4.2-r1.
Comment 13 Oleksandr Trotsenko 2018-01-20 20:44:20 UTC
Not sure if this is applicable, but I'll give it a shot (I am rather new at Gentoo bugtracker, please, bear with me if I do something stupid).

Seems like the corresponding Pull request is still not committed (https://github.com/gentoo/gentoo/pull/6520)

I had to manually download the 2 commits and apply them to my local portage tree to get it running.