Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load 'well_known' #193

Closed
adventurist opened this issue Jul 1, 2023 · 2 comments
Closed

Failed to load 'well_known' #193

adventurist opened this issue Jul 1, 2023 · 2 comments
Labels
build Related to compiling, linking, packaging and distribution.

Comments

@adventurist
Copy link

Specs:

OS: Pop!_OS 22.04 LTS
Kernel: 5.18.10-76051810-generic
Arch: x86_64
Compiler: clang version 14.0.0-1ubuntu1

Setup

I successfully compiled the server using the steps described here: #192, except with the following configure command:
./configure --disable-opencl --with-included-rocksdb --prefix=$HOME/.construct/

Running

construct/construct host.tld

Issues

Library not found

Initially, I had this error:

:Failed to load '/home/logicp/.construct/lib/libircd_matrix' :filesystem error: /home/logicp/.construct/lib/libircd_matrix.so: No such file or directory [] []

I worked around it by symlinking: ln -s /data/stronglogic/construct/matrix/.libs /home/logicp/.construct/lib

'well_known' module not loading

Running it again, I encountered the "failed to load 'well_known' error".

Output

:43.223310            0  WARNING *                0 *          :DEADSTART
:43.223312            0   NOTICE *                0 *          :DEADSTART
:43.223318            0     INFO *                0 *          :DEADSTART
:43.223320            0     INFO *                0 *          :Construct 0.9.578 configured: Fri Jun 30 17:55:55 2023; compiled: Fri Jun 30 17:52:43 2023; executed: Fri Jun 30 20:12:43 2023; 
:43.223324            0     INFO *                0 *          :clang++ 14.0.0 SD-6 202002. glibcxx 20220421. glibc 6.2.35. boost 1.74.0. RocksDB 7.4.5. sodium 1.0.18. OpenSSL 1.1.1o  3 May 2022. magic 541.
:43.223329            0     INFO *                0 *          :Linked: glibc 2.35. boost 0. RocksDB 7.4.5. sodium 1.0.18. OpenSSL 3.0.2 15 Mar 2022. magic 541.
:43.223332            0     INFO *                0 *          :Linux pop-os 5.18.10-76051810-generic #202207071639~1659108431~22.04~c9172fb SMP PREEMPT_DYNAMIC Fri J x86_64
:43.223340            0     INFO fs               0 *          :VFS iou:nn aio:y preadv2:y pwritev2:y SYNC:y DSYNC:y HIPRI:y NOWAIT:y APPEND:y RWH:y RWF:n 
:43.223375            0     INFO *                0 *          :x86_64 GenuineIntel physical sse2:yy sse3:yy ssse3:yy sse4a:nn sse4.1:yy sse4.2:yy avx:yy avx2:yy avx512f:nn tsc:constant
:43.223405            0     INFO *                0 *          :L1i 0.00 B (0) L1d 0.00 B (0) L2 256.00 KiB (262144) L3 0.00 B (0) RAM 62.51 GiB (67118288896) SWAP 4.00 GiB (4294438912)
:43.223459            0   NOTICE *                0 *          :IRCd READY
:43.223525            2   NOTICE *                1 main       :IRCd START
:43.226249            2     INFO fs               1 main       :AIO id:0 fd:16 max_events:32 max_submit:32 compat:1 incompat:0 len:32 nr:255
:43.226320            2     INFO magick           1 main       :Initializing Magick Library version API:2565120 [1.3.38] ABI:0 [GraphicsMagick 1.3.38 2022-03-26 Q16 http://www.GraphicsMagick.org/]
:43.226326            2  WARNING magick           1 main       :Magick Library version mismatch headers:2565120 library:0
:43.226450            2  WARNING ircd             1 main       :Linked OpenSSL version 'OpenSSL 1.1.1o  3 May 2022' is not the compiled OpenSSL version 'OpenSSL 3.0.2 15 Mar 2022'
:43.226505            2  WARNING net              1 main       :IPv6 is disabled by the configuration. Not checking for usable interfaces.
:43.227164            2     INFO db               1 main       :Using database directory at `/home/logicp/.construct/var/db/construct'
:43.228722            2     INFO modules          1 main       :Loaded module libircd_matrix :Matrix Chat Protocol
:43.229367          408     INFO m                1 main       :Secret key for host.tld at `/data/stronglogic/construct/host.tld.ed25519'. Public key is G3EstYAkmoqc6ZV29IE28k+vF1eO2P5NB8GAIPgYjbA identified as 'ed25519:G3EstYAk'
:43.229383          408     INFO db               1 main       :Using database directory at `/home/logicp/.construct/var/db/construct/host.tld'
:43.253005          423     INFO db               1 main       :Opening database "events" @ `/home/logicp/.construct/var/db/construct/host.tld/events/0' with 22 columns...
:43.303045          911     INFO db               1 main       :[events] Opened database @ `/home/logicp/.construct/var/db/construct/host.tld/events/0' with 22 columns at sequence number 0.
:43.303500          911     INFO fs               1 main       :Raised resource limit for number of open files from 1024 to 65535
:43.312718          931  WARNING modules          1 main       :Candidate for module 'well_known' failed :filesystem error: /home/logicp/.construct/lib/modules/construct/well_known.so: No such file or directory [] []
:43.312740          931    ERROR modules          1 main       :Failed to load 'well_known' :error :No valid module by name `well_known'
:43.312778          931     INFO db               1 main       :[events] closing database @ `/home/logicp/.construct/var/db/construct/host.tld/events/0'...
:43.326730          984     INFO db               1 main       :[events] closed database @ `/home/logicp/.construct/var/db/construct/host.tld/events/0' at sequence number 0.
:43.326963          984 CRITICAL m                1 main       :Failed to start server 'host.tld' on network 'host.tld' :error :No valid module by name `well_known'
:43.326963          984 CRITICAL m                1 main       :Failed to start server 'host.tld' on network 'host.tld' :error :No valid module by name `well_known'
:43.399064         1125 CRITICAL ircd             1 main       :IRCd main :error :error :No valid module by name `well_known'
:43.399064         1125 CRITICAL ircd             1 main       :IRCd main :error :error :No valid module by name `well_known'
:43.399138         1126   NOTICE *                0 *          :IRCd HALT

Any help is appreciated!

@jevolk jevolk added the build Related to compiling, linking, packaging and distribution. label Jul 1, 2023
@jevolk
Copy link
Member

jevolk commented Jul 1, 2023

compiled the server using the steps described here: #192

Did you also type make install? The files will be installed to /home/logicp/.construct/.

If you move the files after install you might be able to set some environment variables when running the program, for example IRCD_PREFIX=/data/stronglogic/construct/ ./bin/construct ... and there are other variables covering specific components if necessary; this is all not recommended though and I would first advise configuring a good prefix and installing to it.

@adventurist
Copy link
Author

I'm a fool.

Thanks for those additional tips! And thanks for all your work on this project.. I'm looking forward to getting deeper into Matrix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to compiling, linking, packaging and distribution.
Projects
None yet
Development

No branches or pull requests

2 participants