MongoDB in MacOS after reboot connect ECONNREFUSED - database

After each restart of my macbook pro and trying to connect to MongoDB server, I'm getting this error "connect ECONNREFUSED 127.0.0.1:27017". So i should set the path for data and logs using "mongod --dbpath...." each time after restart to get the server working!
Is there any solution to ensure that the path will not be deleted after restarting the MacOS?

Related

When I tried to connect to SSH via VSCode getting error

The ssh host is using fedora16-OS which is way old and sadly cannot upgrade it. When connecting the host from VSCode is throwing error after downloading all the .tar in host.
[14:59:56.441] > Server did not start successfully. Full server log at /home/shree/.vscode-server/.784b0177c56c607789f9638da7b6bf3230d47a8c.log >>>
/var/home/shree/.vscode-server/bin/784b0177c56c607789f9638da7b6bf3230d47a8c/node: /lib64/libc.so.6: version GLIBC_2.16' not found (required by /var/home/shree/.v vscode-server/bin/784b0177c56c607789f9638da7b6bf3230d47a8c/node) /var/home/shree/.vscode-server/bin/784b0177c56c607789f9638da7b6bf3230d47a8c/node: /lib64/libc.so.6: version GLIBC_2.17' not found (required by /var/home/shree/.v
vscode-server/bin/784b0177c56c607789f9638da7b6bf3230d47a8c/node)
<<< End of server log

Ubuntu 18.04 issue with xrdp and user

Since morning I am facing some issue with the ubuntu xrdp. I have 3 users server, admin and root. server user is once which is configured during the installation. if is use root user then I am able to login but if I use other server its throw following error.
connecting to sesman ip 127.0.0.1
sesman connect ok
sending login info to session manager, please wait...
login successful for display 10
started connecting
connection problem, giving up
some problem
for admin user its show following error
Unable to determine failsafe session name. Possible causes:
xfconfd isn`t running ( D-Bus setup problem) environment variable $XDG_CONFIG_DIRS is set incorrectly (must include */ etc") or xfce4-session is installed incorrectly.
My Ubuntu version is: Ubuntu 18.04.4 LTS
It`s fresh setup and i also try to reinstall xrdp and its dependency packages but nothing works.
The output of $echo $XDG_CONFIG_DIRS is empty.
After digging in deep and doing lots of troubleshooting, I finally able to access RDP from other users also. I reinstall everything and then install vncserver and kill all the running process of xface from the terminal. Now it's working.

Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433 docker

I am using Docker to install SQL Server on Mac OS. But i have an error Error: Failed to connect to localhost:1433 - connect ECONNREFUSED 127.0.0.1:1433. I have set memory to 6GB, password is strong enough but it still not works.
I got the same issue when I've tried to connect Azure Data Studio to the container,
I used the command lsof -nP +c 15 | grep LISTEN
turns out that it listen on port 1401
So I wrote that in the field of the server "localhost, 1401"
and it works,
There is another solution,
which is in the docker PREFERENCES and its about the memory you have to give it at least 3.25 GB so that the SQL Server runs.

How to configure pgadmin4 (PostgreSQL)

When I finished installation postgresql-10.5 and ran pgadmin4 (that came installed with postgresql) I get a configuration error that says:
An error occurred initializing the application server:
Failed to launch application server, server thread existing
It then asks me to input a python path and an application path.
Can anybody help me and and advise what to do to run pgadmin4. I tried find problem solution, but nothing helped me(

MongoDB, issues with configuring and starting

I am new to mongoDB and i am trying to get it configured and running on my Ubuntu server. When i go and enter this command in my terminal
sudo service mongod start
I get the following output
start: Job is already running: mongod
So, when i try to enter the shell with
mongo
I get the following output
2015-02-24T14:54:39.557-0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-02-24T14:54:39.559-0800 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
I know I'm not working locally so I heard over to the mongod.conf file and change the following
port = 5000
# Listen to local interface only. Comment out to listen on all interfaces.
bind_ip = 10.0.1.51
Where bind_ip is now my ubuntu server and the port is 5000 as shown, so now i restart the service with
sudo service mongod restart
and outsputs
mongod start/running, process 1755
And now I try to renter back into shell with
mongo
and i still get the same error messages
MongoDB shell version: 2.6.7
connecting to: test
2015-02-24T15:01:26.229-0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2015-02-24T15:01:26.230-0800 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
Can someone help me out with this issue? I've been going through the forums and nothing appears to be working. Thanks.
If anyone is having trouble, i looked into mongod --help and found the following solutions
mongod --smallfiles
or
mongod --nojournal
hope this helps anyone.

Resources