RabbitMQ server error - rabbitmq
UPDATED error message
I am getting a BOOT FAILED error every time I try to start the rabbitmq server. Does anybody know how I can fix this? I have attached the error message. I have tried a few different things including uninstalling and reinstalling it and am now getting a new error message, but am at a loss for what to try next. Any suggestions are much appreciated! Thank you!!
BOOT FAILED
===========
Error description:
{error,
{schema_integrity_check_failed,
[{table_missing,rabbit_exchange_serial},
{table_missing,rabbit_runtime_parameters},
{table_missing,rabbit_durable_queue},
{table_missing,rabbit_queue},
{table_missing,gm_group},
{table_missing,mirrored_sup_childspec}]}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit#localhost.log
/usr/local/var/log/rabbitmq/rabbit#localhost-sasl.log
Stack trace:
[{rabbit_mnesia,ensure_schema_integrity,0,
[{file,"src/rabbit_mnesia.erl"},{line,519}]},
{rabbit_mnesia,init_db,3,[{file,"src/rabbit_mnesia.erl"},{line,450}]},
{rabbit_mnesia,init_db_and_upgrade,3,
[{file,"src/rabbit_mnesia.erl"},{line,458}]},
{rabbit_mnesia,init,0,[{file,"src/rabbit_mnesia.erl"},{line,99}]},
{rabbit,'-run_boot_step/1-lc$^1/1-1-',1,
[{file,"src/rabbit.erl"},{line,488}]},
{rabbit,run_boot_step,1,[{file,"src/rabbit.erl"},{line,487}]},
{rabbit,'-start/2-lc$^0/1-0-',1,[{file,"src/rabbit.erl"},{line,453}]},
{rabbit,start,2,[{file,"src/rabbit.erl"},{line,453}]}]
BOOT FAILED
===========
Error description:
{could_not_start,rabbit,
{bad_return,
{{rabbit,start,[normal,[]]},
{'EXIT',
{rabbit,failure_during_boot,
{error,
{schema_integrity_check_failed,
[{table_missing,rabbit_exchange_serial},
{table_missing,rabbit_runtime_parameters},
{table_missing,rabbit_durable_queue},
{table_missing,rabbit_queue},
{table_missing,gm_group},
{table_missing,mirrored_sup_childspec}]}}}}}}}
Log files (may contain more information):
/usr/local/var/log/rabbitmq/rabbit#localhost.log
/usr/local/var/log/rabbitmq/rabbit#localhost-sasl.log
{"init terminating in do_boot",{rabbit,failure_during_boot,{could_not_start,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot,{error,{schema_integrity_check_failed,[{table_missing,rabbit_exchange_serial},{table_missing,rabbit_runtime_parameters},{table_missing,rabbit_durable_queue},{table_missing,rabbit_queue},{table_missing,gm_group},{table_missing,mirrored_sup_childspec}]}}}}}}}}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
I don't know how rabbitmq works, but the error message looks clear: it tries to delete the directory /usr/local/var/lib/rabbitmq/mnesia/rabbit#localhost-plugins-expand, and fails because the process has nt the access right to delete the file /usr/local/var/lib/rabbitmq/mnesia/rabbit#localhost-plugins-expand/amqp_client-3.1.3/ebin/amqp_auth_mechanisms.beam.
Take a look at who is the owner of this file and directory, what are the access right to them.
This occurred for me during a rabbitmq upgrade with brew.
It was easier for me to just remove the directory all together and install from scratch.
sudo rm -rf /usr/local/var/rabbitmq/
brew uninstall rabbitmq;
brew install rabbitmq
rabbitmq-server
Got this to work. Just delete the database directory and restart server. Note if you had brew installed, database might still be outside Cellar directory. So need to manually delete directory and restart.
Related
Lynis wont work, 'error: Unknown option 'ssl-certificate-paths-to-ignore' found (with value: /etc/letsencrypt/archive:)
How do I correct/get rid of the following error? It prevents me from executing any lynis commands. Output of "Sudo lynis show version" or any lynis command: "Error: Unknown option 'ssl-certificate-paths-to-ignore' found (with value: /etc/letsencrypt/archive:)". Background: Installed lynis, but couldn't figure out how to use it - got stuck on changing the parameters following a guide. Tried using another guide (https://adamtheautomator.com/lynis/), which included installing lynis again, and got this error Tried purging and removing lynis, but got this error again after reinstalling, because thought the error had occured when I had first tried to install and configure lynis. During the purge got: "Purging configuration files for lynis (3.0.8-100) ... dpkg: warning: while removing lynis, directory '/etc/lynis' not empty so not removed Purging configuration files for menu (2.1.47ubuntu4) ...".
Manjaro update error: failed to update core (unable to lock database)
I am a noob on an i5 desktop. I could not update my system. Terminal reads as follows, after I type and enter "sudo pacman -Syu" [sudo] password for user-name: ******** :: Synchronizing package databases... error: failed to update core (unable to lock database) error: failed to update extra (unable to lock database) error: failed to update community (unable to lock database) error: failed to update multilib (unable to lock database) error: failed to synchronize all databases Help!!
I'm sorry, this is already covered in the wiki... sudo rm /var/lib/pacman/db.lck pacman-ArchWiki: "Failed to init transaction (unable to lock database)" error
If you've already deleted /var/lib/pacman/db.lck, like OP posted, and still got the same problem, try this: sudo rm /var/tmp/pamac/dbs/db.lck
This can be solved by quitting Software Update program from task manager. This worked for me.
How to fix 'unknown user 'redis' in statoverride file'
I'm installing redis, everytime I run this command sudo apt install redis-server I got an unrecoverable fatal error I already tried many solutions to completly remove redis, redis-server, but nothing worked, this is the error dpkg: unrecoverable fatal error, aborting: unknown user 'redis' in statoverride file E: Sub-process /usr/bin/dpkg returned an error code (2)
I solved it by opening the statoverride file using sudo nano /var/lib/dpkg/statoverride then removing the line with the user called "redis" along with any blank lines.
How can I solve this problem of installation xampp on fedora?
When I run xampp on fedora this error is showing up on application log Starting Apache Web Server... Exit code: 8 Stdout: apache config test fails, aborting Stderr: httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 10 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/libphp7.so into server: libnsl.so.1: cannot open shared object file: No such file or directory can anyone tell me how can I solve this?
it seems you're missing libnsl. install it through this command: sudo dnf install libnsl In case this doesn't work you can then download it manually: Visit https://pkgs.org/ In the search box (pkgs.org of course) type libnsl.so.1 and choose the appropriate OS. The version shown might be higher e.g libnsl-2.28-9.fc29.x86_64.rpm, but it doesn't matter, the file needed is also included in this very package. In the terminal, navigate to the directory where the .rpm was downloaded. Type the following command to install it: sudo rpm libnsl-2.XX-X.fc29.x86_64.rpm Upon completion everything should be working fine.
A quick Google search returns this: https://www.reddit.com/r/Fedora/comments/8hlhlv/xampp_with_fedora_28/ The suggested fix is installing libnsl from this source: https://www.rpmfind.net/linux/rpm2html/search.php?query=libnsl.so.1%28%29%2864bit%29&submit=Search+...&system=fedora&arch=
Getting an error while starting rabbitmq
I just installed the rabbitmq and getting an error while starting it. Not sure why is this error coming up. [root#astroHeka run]# /etc/init.d/rabbitmq-server start Starting rabbitmq-server: rmdir: failed to remove `/var/run/rabbitmq': Directory not empty FAILED - check /var/log/rabbitmq/startup_{log, _err} rabbitmq-server. I manually removed the folder and tried restarting but still the same issue.