When installing ejabberd-24.02, it seems the compiled .beam files are not installed, thus ejabberd will fail to start at all. ============================================= # q list ejabberd /usr/lib/sysusers.d/acct-group-ejabberd.conf /usr/lib/sysusers.d/acct-user-ejabberd.conf /var/lib/ejabberd/.keep_acct-user_ejabberd-0 /lib/systemd/system/ejabberd.service /var/log/ejabberd/.keep_net-im_ejabberd-0 /var/lib/ejabberd/.keep_net-im_ejabberd-0 /usr/lib64/ejabberd/COPYING /usr/lib64/ejabberd/include/translate.hrl /usr/lib64/ejabberd/include/pubsub.hrl /usr/lib64/ejabberd/include/mqtt.hrl /usr/lib64/ejabberd/include/mod_vcard.hrl /usr/lib64/ejabberd/include/mod_shared_roster.hrl /usr/lib64/ejabberd/include/mod_roster.hrl /usr/lib64/ejabberd/include/mod_proxy65.hrl /usr/lib64/ejabberd/include/mod_push.hrl /usr/lib64/ejabberd/include/mod_private.hrl /usr/lib64/ejabberd/include/mod_privacy.hrl /usr/lib64/ejabberd/include/mod_muc_room.hrl /usr/lib64/ejabberd/include/mod_offline.hrl /usr/lib64/ejabberd/include/mod_matrix_gw.hrl /usr/lib64/ejabberd/include/mod_muc.hrl /usr/lib64/ejabberd/include/mod_mam.hrl /usr/lib64/ejabberd/include/mod_caps.hrl /usr/lib64/ejabberd/include/mod_last.hrl /usr/lib64/ejabberd/include/mod_announce.hrl /usr/lib64/ejabberd/include/http_bind.hrl /usr/lib64/ejabberd/include/logger.hrl /usr/lib64/ejabberd/include/ejabberd_web_admin.hrl /usr/lib64/ejabberd/include/eldap.hrl /usr/lib64/ejabberd/include/ejabberd_stacktrace.hrl /usr/lib64/ejabberd/include/ejabberd_sql_pt.hrl /usr/lib64/ejabberd/include/ejabberd_sql.hrl /usr/lib64/ejabberd/include/ejabberd_sm.hrl /usr/lib64/ejabberd/include/ejabberd_router.hrl /usr/lib64/ejabberd/include/ejabberd_http.hrl /usr/lib64/ejabberd/include/ejabberd_oauth.hrl /usr/lib64/ejabberd/include/ejabberd_ctl.hrl /usr/lib64/ejabberd/include/ejabberd_auth.hrl /usr/lib64/ejabberd/include/ejabberd_commands.hrl /usr/lib64/ejabberd/include/bosh.hrl /usr/lib64/ejabberd/include/ELDAPv3.hrl /usr/lib64/ejabberd/priv/bin/captcha.sh /usr/lib64/ejabberd/priv/js/muc.js /usr/lib64/ejabberd/priv/js/admin.js /usr/lib64/ejabberd/priv/img/vcss.png /usr/lib64/ejabberd/priv/img/valid-xhtml10.png /usr/lib64/ejabberd/priv/img/powered-by-erlang.png /usr/lib64/ejabberd/priv/img/powered-by-ejabberd.png /usr/lib64/ejabberd/priv/img/oauth-logo.png /usr/lib64/ejabberd/priv/img/favicon.png /usr/lib64/ejabberd/priv/img/bosh-logo.png /usr/lib64/ejabberd/priv/img/admin-logo.png /usr/lib64/ejabberd/priv/img/admin-logo-fill.png /usr/lib64/ejabberd/priv/css/register.css /usr/lib64/ejabberd/priv/css/oauth.css /usr/lib64/ejabberd/priv/css/bosh.css /usr/lib64/ejabberd/priv/css/muc.css /usr/lib64/ejabberd/priv/css/admin.css /usr/lib64/ejabberd/priv/msgs/zh.msg /usr/lib64/ejabberd/priv/msgs/wa.msg /usr/lib64/ejabberd/priv/msgs/vi.msg /usr/lib64/ejabberd/priv/msgs/tr.msg /usr/lib64/ejabberd/priv/msgs/th.msg /usr/lib64/ejabberd/priv/msgs/uk.msg /usr/lib64/ejabberd/priv/msgs/sv.msg /usr/lib64/ejabberd/priv/msgs/sq.msg /usr/lib64/ejabberd/priv/msgs/ru.msg /usr/lib64/ejabberd/priv/msgs/pt-br.msg /usr/lib64/ejabberd/priv/msgs/sk.msg /usr/lib64/ejabberd/priv/msgs/pt.msg /usr/lib64/ejabberd/priv/msgs/pl.msg /usr/lib64/ejabberd/priv/msgs/no.msg /usr/lib64/ejabberd/priv/msgs/nl.msg /usr/lib64/ejabberd/priv/msgs/ja.msg /usr/lib64/ejabberd/priv/msgs/it.msg /usr/lib64/ejabberd/priv/msgs/id.msg /usr/lib64/ejabberd/priv/msgs/he.msg /usr/lib64/ejabberd/priv/msgs/hu.msg /usr/lib64/ejabberd/priv/msgs/gl.msg /usr/lib64/ejabberd/priv/msgs/fr.msg /usr/lib64/ejabberd/priv/msgs/el.msg /usr/lib64/ejabberd/priv/msgs/de.msg /usr/lib64/ejabberd/priv/msgs/es.msg /usr/lib64/ejabberd/priv/msgs/eo.msg /usr/lib64/ejabberd/priv/msgs/cs.msg /usr/lib64/ejabberd/priv/msgs/ar.msg /usr/lib64/ejabberd/priv/msgs/ca.msg /usr/lib64/ejabberd/priv/msgs/bg.msg /usr/share/doc/ejabberd-24.02/CHANGELOG.md.bz2 /usr/share/doc/ejabberd-24.02/README.md.bz2 /usr/share/doc/ejabberd-24.02/html/COPYING /usr/share/man/man5/ejabberd.yml.5.bz2 /usr/sbin/ejabberdctl /etc/logrotate.d/ejabberd /etc/init.d/ejabberd /etc/conf.d/ejabberd /etc/ejabberd/inetrc /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd/ejabberd.yml ====================================== # emerge --info Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-13, glibc-2.39-r2, 6.6.20-gentoo x86_64) ================================================================= System uname: Linux-6.6.20-gentoo-x86_64-Intel-R-_Core-TM-_i5-8259U_CPU_@_2.30GHz-with-glibc2.39 KiB Mem: 16251848 total, 1593004 free KiB Swap: 16777212 total, 16392956 free Timestamp of repository gentoo: Tue, 12 Mar 2024 06:15:00 +0000 Head commit of repository gentoo: 25c6608ca04a3cf127e16e4ff29b0835119eac35 sh bash 5.2_p26 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.3::gentoo dev-build/libtool: 2.4.7-r2::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.3.2::gentoo dev-lang/perl: 5.38.2-r2::gentoo dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo sys-apps/baselayout: 2.14-r2::gentoo sys-apps/openrc: 0.53::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.7::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 4 sync-rsync-verify-metamanifest: yes localrepo location: /var/db/repos/localrepo masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="no-source-code @FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O3 -fomit-frame-pointer -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/php/apache2-php8.2/ext-active/ /etc/php/apache2-php8.3/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cgi-php8.3/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/cli-php8.3/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/fpm-php8.3/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/php/phpdbg-php8.3/ext-active/ /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O3 -fomit-frame-pointer -pipe" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O3 -fomit-frame-pointer -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O3 -fomit-frame-pointer -pipe" GENTOO_MIRRORS="http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="de_DE.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" LINGUAS="de de_DE en en_GB en_US" MAKEOPTS="-j6" PKGDIR="/var/cache/binpkgs" 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" SHELL="/bin/bash" USE="acl aes amd64 avx avx2 bzip2 caps cet cli crypt dri dvb f16c fma3 fortran gdbm hardened iconv idn iproute2 ipv6 libtirpc lzma maildir mmx mmxext ncurses nftables nls openmp pam pclmul pcre pic pie png popcnt postgres rdrand readline seccomp split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 syslog test-rust udev unicode usb vhosts xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-4" LUA_TARGETS="lua5-4 lua5-3" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS Reproducible: Always
net-im/ejabberd-24.02::gentoo USE="captcha ldap postgres zlib -debug -full-xml -mssql -mysql -odbc -pam -redis -roster-gw (-selinux) -sip -sqlite -stun"
it seems that not only are the files in ebin not installed but everything is installed under /usr/lib64/ejabberd/ instead of /usr/lib64/ejabberd-24.02/ moving the files to the right directory and manually copying the beam files (ebin folder) from the work directory seems to make it work,..
(In reply to Daniel Kenzelmann from comment #2) > it seems that not only are the files in ebin not installed but everything is > installed under /usr/lib64/ejabberd/ instead of /usr/lib64/ejabberd-24.02/ > > moving the files to the right directory and manually copying the beam files > (ebin folder) from the work directory seems to make it work,.. I didn't have any opportunity to investigate deeply but did also encounter ejabberd failing to start because ejabberd_ctl could not be found. If all of the beam files were incorrectly installed ot not installed, that would likely create the observed symptoms, but at the time, lacking the time for a proper investigation, I just rolled back to 23.10.
Additional comment here: I additionally faced an issue where as it seems that conversations did somehow "half-connect" to 24.02? and thus had issues connecting later on to older versions of ejabberd (SASL downgrade protection etc), that forced me to go to 24.02. Thus I would suggest that this should be fixed asap otherwise people will have clients that are no longer able to connect even if you downgrade again..
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f38ed16bd83f84025945271f3a6d660ab0438bfa commit f38ed16bd83f84025945271f3a6d660ab0438bfa Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2024-03-12 19:26:57 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-03-12 19:31:17 +0000 net-im/ejabberd: pass --with-rebar=rebar to use rebar 2 ejabberd 24.02 started to use rebar 3 as default build system. This broke the ebuild, since rebar.eclass sill uses rebar 2. Passing --with-rebar=rebar switches this back to rebar 2. Thanks to Holger Weiß for pointing this out. Closes: https://bugs.gentoo.org/926799 Signed-off-by: Florian Schmaus <flow@gentoo.org> net-im/ejabberd/{ejabberd-24.02.ebuild => ejabberd-24.02-r1.ebuild} | 1 + 1 file changed, 1 insertion(+)