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

Error While Executing Command - cb --soft_reset #377

Closed
aadewojo opened this issue Feb 25, 2020 · 16 comments
Closed

Error While Executing Command - cb --soft_reset #377

aadewojo opened this issue Feb 25, 2020 · 16 comments

Comments

@aadewojo
Copy link

Hi,
Please I am having issues trying to finish the initial setup of cbtool. Whenever I run the following command ./cb --soft_reset, I get this error
Checking "Log Store"..... Error while executing the command line "rsyslogd -f /home/ubuntu/cbtool/lib/auxiliary//../../stores/root_rsyslog.conf -i /home/ubuntu/cbtool/lib/auxiliary//../../stores/rsyslog.pid" (returncode = 1) :rsyslogd: error reading pid file, cannot start up
rsyslogd: run failed with error -3000 (see rsyslog.h or try http://www.rsyslog.com/e/3000 to learn what that number means)

I have checked rsyslogd and found just one value in it.

Please help.

Thanks.

@maugustosilva
Copy link
Collaborator

Interesting... which OS distro/version are you using at the moment? can you confirm that it was not a transient error (e.g., did you try to re-run cb --soft_reset or even cb --hard_reset)?

@aadewojo
Copy link
Author

I am using ubuntu,
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

I can confirm it is not a transient error. I have run both soft and hard reset and none worked.

@aadewojo
Copy link
Author

I have just created another VM and tried running it on it and I got a different error.
Cbtool version is "0bd620b7"
Parsing "cloud definitions" file..... "/home/ubuntu/cbtool/lib/auxiliary//../..//configs/ubuntu_cloud_definitions.txt" opened and parsed successfully.

Checking "Object Store".....An Object Store of the kind "Redis" (shared) on node 10.5.5.195, TCP port 6379, database id "0" seems to be running.
Checking "Log Store".....A Log Store of the kind "rsyslog" (private) on node 10.5.5.195, UDP port 5114 seems to be running.
ERROR:root:network_functions.py/Nethashget.nmap nethashget - Unable to connect to TCP port 27017 on host 10.5.5.195: [Errno 111] Connection refused
Checking "Metric Store"..... Unable to detect a shared MongoDB server daemon running. Please try to start one (e.g., /usr/local/bin/mongod -f /etc/mongod.conf --pidfilepath /var/run/mongod.pid)

@maugustosilva
Copy link
Collaborator

ah, this might be an installer bug that we thought we had solved. Try the following (post the output here)

netstat -puntl | grep "6379\|27001"
sudo systemctl restart redis; sudo systemctl restart mongodb

If afterwards, you see MongoDB/Redis listening on the appropriate ports (try again netstat -puntl | grep "6379\|27001"), then you just restart CB.

@aadewojo
Copy link
Author

After the first run of netstat as root user
ubuntu@vmtest-1:/cbtool$ sudo -s
root@vmtest-1:
/cbtool# netstat -puntl | grep "6379|27001"
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 26518/redis-server
tcp6 0 0 ::1:6379 :::* LISTEN 26518/redis-server

After I did systemctl for redis and mongodb. This is the result below
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN 16814/redis-server
tcp6 0 0 ::1:6379 :::* LISTEN 16814/redi

I then did a hard-reset and it has started working.

Things to note, after I sent you the error, I did the following:

  • created the db path for mongo db, because it was complaining that it didn't find it.
  • I did a restart of mongodb, although it usually stalls at a point, I don't know why.

Based on the above, I don't know if it also helped.

Thank you for the help.

@aadewojo
Copy link
Author

Please can I ask, is the GUI and API service daemon URL supposed to be accessible? I tried the URL in a web browser and it tells me it can't load the page.

@maugustosilva
Copy link
Collaborator

Yes, the URL is supposed to be accessible... when you started the cb, did you see a pid for the process that implements the URL (it should appear on the startup messages)?

@aadewojo
Copy link
Author

aadewojo commented Mar 2, 2020

Yes, I saw the PID, is there something I should do with that? Could it be because we have two networks configured? In the installation of OpenStack, we needed to create both external and internal network. If I try to use the external network address in the private configuration file of cb, cb doesn't run, but if I leave it as IP_AUTO, it runs fine. However, I can see that the IP addresses are those of the internal network.

@maugustosilva
Copy link
Collaborator

Apologies for the long hiatus. Just in case you still didn't solve the problem (and did not gave up CB entirely :-) ) , I wrote a small tutorial on how to debug the GUI on the FAQ (https://github.com/ibmcb/cbtool/wiki/FAQ-U#wiki-uq24). Let me know if it helps.

@aadewojo
Copy link
Author

aadewojo commented Apr 8, 2020 via email

@maugustosilva
Copy link
Collaborator

ok, understood. So on /tmp/restart_cb_gui_ubuntu debug, I assume you see no errors, and the code is left running there, right? Next question, when you, on a different terminal, issues a net stat -puntl | grep <PORT NUMBER OF THE GUI> what is the result?

@aadewojo
Copy link
Author

aadewojo commented Apr 13, 2020 via email

@aadewojo
Copy link
Author

aadewojo commented Apr 13, 2020 via email

@maugustosilva
Copy link
Collaborator

So, ok, the GUI daemon is listening on port 8080 (you can do a ps aux | grep 25222 and confirm it)... Now, when you try to access via browser, you still see the error, I presume... does the (GUI) process crashes while you attempt access?

@maugustosilva
Copy link
Collaborator

By the way, feel free to talk to us on Gitter (https://gitter.im/ibmcb-project/community#)... faster/more agile than exchanging emails :-)

@ibmcb
Copy link
Collaborator

ibmcb commented May 6, 2020

I have been talking with @aadewojo on Gitter and I believe this particular issue has been solved. Will close it for now (feel free to open it if needed)

@ibmcb ibmcb closed this as completed May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants