Solve Proxmox CloudLinux Kernel Care GPG Error

apt-key adv --keyserver subkeys.pgp.net --recv-key E58FE9B3FE3B0470525159BD6DC3D600CDEF74BB
 apt-get install dirmngr

 

UPDATE: 

This issue may be caused by a buggy package installation script causing incorrect repositories to be added to the software sources repository list. If after troubleshooting the issue remains unresolved contact your vendors by opening a support ticket with the error details.

 

Other error message:

gpg: failed to start the dirmngr ‘/usr/bin/dirmngr’: No such file or directory

 

References:

https://unix.stackexchange.com/questions/401547/gpg-keyserver-receive-failed-no-dirmngr

https://serverfault.com/questions/337278/debian-how-can-i-securely-get-debian-archive-keyring-so-that-i-can-do-an-apt-g

Proxmox disable swap unless totally out of RAM

The defautl vm.swappiness value for Proxmox 5.2.x is 60

 

Run this command in Shell in order to reduce swappiness to an absolute necessity when the system is out of RAM.

 sysctl -w vm.swappiness=0

 

https://forum.proxmox.com/threads/disable-swap-on-host.25623/

https://forum.proxmox.com/threads/proxmox-is-using-swap-with-lot-of-ram-available.41994/

Other performance tips

Proxmox OpenVZ SWAP and Performance

 

The public key is not available: NO_PUBKEY 68818C72E52529D4

After adding a mongodb you may experience an error about the GPG PUB KEY like teh following.

W: GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/testing Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 68818C72E52529D4
E: The repository ‘http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/testing Release’ is not signed.

You can fix this issue by adding the PUB KEY for MongoDB’s repository.

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68818C72E52529D4

Try update again

apt update

Meteor Remote MongoDB

I don’t like to use big repeating command and I was searching for a solution where I will be setting a variable embedded with something so every time I start my meteor app; the MONGO_URL will set to environment automatically. So this what I did:

In the package.json file I replaced the start parameter as below:

"scripts": {
    "start": "MONGO_URL=mongodb://username:password@host_url:portnumber/dbname meteor run"
  },

 

Credits: https://stackoverflow.com/questions/38713003/how-to-connect-to-external-mongodb-instance-in-meteor

Fix: Error: Cannot find module ‘@babel/runtime/helpers/builtin/objectSpread’

Another common error:

Error: Cannot find module ‘@babel/runtime/helpers/builtin/interopRequireDefault’

How to fix:

This has been traced in the forums as an incompatibility with the latest version of @babel/runtime. Change the corresponding line in the package.json file

  "dependencies": {
    "@babel/runtime": "7.0.0-beta.55",

and then do

meteor npm install

Credits:

https://stackoverflow.com/questions/51684918/meteor-error-cannot-find-module-babel-runtime-helpers-builtin-interoprequired

 

 

Proxmox XFCE4 Setup with Ubuntu + VNC Server

Configure your instance using this guide to install the necessary packages and setup VNC to start on reboot.

Tip: You will want to connect via SSH tunnel to your VNC server. That is the safest way to do it.

Specify the resolution using this format

vncserver :1 -geometry 1600x1200

 

Credit: https://stackoverflow.com/questions/15816/changing-the-resolution-of-a-vnc-session-in-linux#1083668

Fix Gitlab won’t start, database system is shut down, failed to load.

When you have issues with GitLab you will want to check the status to see which component of gitlab is not working as expected. Do this using the following command:

sudo gitlab-ctl status

Verify the log files of the component to obtain details about the failure. Log files for Omnibus installation of gitlab are located under.

/var/log/gitlab/

Within this location there are several subfolders that container log files.

You will can to examine the file that is named current for the component.

Example, suppose we are fixing database is shutdown error.

sudo nano /var/log/gitlab/postgresql/current

When we examine this log file we discover there is an issue with reading the cacert.pem file. This is causing the database to be unable to startup.

 FATAL: could not load root certificate file "/opt/gitlab/embedded/ssl/certs/cacert.pem": No such file or directory
 LOG: database system is shut down

If the file is missing then you need to restore it from your backups.

If the file is there the error could be caused by a permission error.

Change the files permission  using the commands below and restart gitlab.

sudo chmod 644 /opt/gitlab/embedded/ssl/certs/cacert.pem
sudo gitlab-ctl restart

Verify that gitlab is started correctly

sudo gitlab-ctl status

 

 

References:

https://forum.gitlab.com/t/postgresql-ssl-certificate-issues/16606

https://about.gitlab.com/2015/04/23/gitlab-7-dot-10-dot-0-omnibus-patch-release/

 

Fix Discord App Black Screen Crash Virtualbox

Windows, Linux (Ubuntu, Mint, Debian etc…), MacOS may be affected by this issue if you are using running a guest operating system and trying to use Discord.

In order to resolve this issue follow these simple steps.

  1. First shutdown your Virtualbox guest instance.
  2. Next go to select you Virtualbox and click the Settings icons in toolbar.
  3. Go to Display panel and uncheck ‘Enable 3D Acceleration’
  4. Click OK to save the settings

Now restart your Virtualbox guest instance and try startup Discord again.

Note: As this entry is being created the latest version of Discord is 0.0.5 for Linux.

 

Credits:

https://www.reddit.com/r/discordapp/comments/567z0n/tiny7_issues_with_discord_in_virtualbox/