Module errors
Errors
- Unable to load module ; . For more details, visit memgr.ph/modules.
- Failed to close module ; . For more details, visit memgr.ph/modules.
- Unable to overwrite an already loaded module . For more details, visit memgr.ph/modules.
- Module directory doesn't exist. For more details, visit memgr.ph/modules.
Warnings
Errors when loading or closing modules
When Memgraph is loading/closing modules, an error can occur if:
- The file could not be found: check if the file has been deleted.
- The file is not readable: make the file readable for the user
memgraph
. - The file had the wrong format: check if the file has the expected format.
- The file caused errors during loading.
Unable to overwrite an already loaded module
Module names need to be distinct. Try to rename your module and load it again
with CALL mg.load_all();
.
Module directory doesn't exist
Make sure that Memgraph is searching for the modules in the right directory. The
Memgraph configuration is available in /etc/memgraph/memgraph.conf
and you can
specify the directory with the --query-modules-directory
flag. The default
directory is /usr/lib/memgraph/query-modules
. If the configuration file is
altered, Memgraph needs to be restarted. To learn about all the configuration
options, check out the reference guide.
Unknown query module file
Query modules can be implemented using the Python or C API provided by Memgraph. Modules written in languages other than Python need to be compiled to a shared library so that they can be loaded when Memgraph starts. This means that you can write the procedures in any programming language which can work with C and can be compiled to the ELF shared library format.