Confluence: pid file found but no matching process was found. Stop aborted.

I am trying to stop confluence through ./stop-confluence.sh but it is showing error like this “PID file found but no matching process was found. Stop aborted.” so I try to kill that process with “kill -9 pid” but it showing that “PID: no process found”. Can anyone please give me any idea what is going … Read moreConfluence: pid file found but no matching process was found. Stop aborted.

How to drop a PostgreSQL database if there are active connections to it?

I need to write a script that will drop a PostgreSQL database. There may be a lot of connections to it, but the script should ignore that. The standard DROP DATABASE db_name query doesn’t work when there are open connections. How can I solve the problem? This will drop existing connections except for yours: Query pg_stat_activity and get the … Read moreHow to drop a PostgreSQL database if there are active connections to it?

Permission denied in Postgres

I added the user myuserto Postgres. Then I added the database mydatabase in the pgAdmin III GUI and restored from a backup file. So the owner of mydatabase is the superuser postgres. Then I tried to give all rights to access and modify mydatabase to myuser. I logged into psql as user postgres: psql -d template1 -U postgres and then I ran this query: GRANT ALL PRIVILEGES … Read morePermission denied in Postgres

Connect to Amazon EC2 Instance from Nautilus without Using Password File

Lately, I have been working frequently with a couple EC2 instances. Remote editing on these instances has become a day-to-day task for me. These instances are based on Amazon Linux. I am so used to the “Ubuntu” way of remote editing, which I have described here. With EC2 instances, however, this method seems to be impossible — as I need … Read moreConnect to Amazon EC2 Instance from Nautilus without Using Password File

How To Configure Custom Connection Options for your SSH Client

Introduction SSH, or secure shell, is the most common way of connecting to Linux hosts for remote administration. Although the basics of connecting to a single host are often rather straight forward, this can become unwieldy and a much more complicated task when you begin working with a large number of remote systems. Fortunately, OpenSSH … Read moreHow To Configure Custom Connection Options for your SSH Client

Connecting to Amazon EC2 Instance on Windows 10 bash – Permission denied (publickey)

I am trying to connect to my Amazon EC2 Instance using bash on Windows 10. I have already downloaded MyKey.pem It show me this message @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0555 for ‘MyKey.pem’ are too open. It is required that your private key files are NOT accessible by others. This … Read moreConnecting to Amazon EC2 Instance on Windows 10 bash – Permission denied (publickey)

Ubuntu: Failed to start Nvidia Persistence Daemon

The nvidia-persistenced group/user is created by the install script in the nvidia-utils package (or equivalent if you use one from the AUR). Reinstalling nvidia-utils will recreate the needed nvidia-persistenced group/user. Without reinstalling you can directly run both commands referenced in the link: sudo getent group nvidia-persistenced &>/dev/null || groupadd -g 143 nvidia-persistenced sudo getent passwd nvidia-persistenced &>/dev/null … Read moreUbuntu: Failed to start Nvidia Persistence Daemon