Skip to main content
42 votes
Accepted

MySQL (MariaDB) Not Starting

If you haven't any real data in your database then clear all in /var/lib/mysql. After that try again to run command mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql to initialize ...
Mikhail Khirgiy's user avatar
28 votes

sudo rejects password that is correct

Another possible cause is that systemd-homed is not running. Check it's status with systemctl status systemd-homed If it says something other than active, use systemctl start systemd-homed to start ...
LukeLR's user avatar
  • 389
23 votes

How to determine which packages need upgrading in Arch Linux?

checkupdates The bash script checkupdates, included with the pacman-contrib package, provides a safe way to check for upgrades to installed packages without running a system update at the same time. ...
Panagiotis Dimopoulos's user avatar
20 votes

How do you use systemd's journalctl patterns

journalctl -v 239 supports filtering with -g From journactl man page -g, --grep= Filter output to entries where the MESSAGE= field matches the specified regular expression. PERL-...
Dave's user avatar
  • 356
19 votes

sar: enable data collecting

On Ubuntu 16.04 I just ran into this same issue. After some grousing around I found I needed to enable the service by editing the file /etc/default/sysstat Change ENABLED="false" to true: # Should ...
Gregory Martin's user avatar
18 votes

Connected to openvpn, but no Internet connection

I checked your logs and haven't find any problems. But you said that there is No firewall on the server. It could cause problems, because you should enable forwarding for working NAT. Here is output ...
Alexander Tolkachev's user avatar
17 votes
Accepted

"failed to open stream: Read-only file system" when trying to create file outside webroot with php

I found from the following link that the Systemd php-fpm service may be configured to block any write action on certain folders and subfolders, and /usr is impacted by this. You may want to move you ...
Nover's user avatar
  • 186
12 votes
Accepted

How can I create separate configuration files for php (cli) and php-fpm on an arch linux

I have found a few tweaks to solve my problem. First: load a separate php.ini files: A user in a arch linux forum posted this from the man php page: FILES php-cli.ini The configuration file ...
Fiete's user avatar
  • 331
11 votes

sar: enable data collecting

The sysstat service and associated timers need to be started: systemctl start sysstat sysstat-collect.timer sysstat-summary.timer To auto-start on next system startup: systemctl enable sysstat ...
Tom Hale's user avatar
  • 1,165
11 votes
Accepted

How to remove a root CA certificate?

I couldn't find any remakes in the documentation, too. However, it seems that the command trust treats certificates added manually to the system-wide trust store as read-only certificates and does not ...
sven.to's user avatar
  • 228
11 votes

open() "/run/nginx.pid" failed (13: Permission denied)

sudo nginx -t This comment should have been an answer imo. Run nginx -t as root. This is a red herring. – Michael Hampton Nov 15 at 0:27
alexandru's user avatar
  • 111
10 votes

Is Arch Linux suitable for server environment?

I am running several Archlinux Servers since 2013 in an production environment and it works like a charm. Sure you have to make sure that updates are going well by running them often and to always ...
白川 マセル's user avatar
10 votes

MySQL (MariaDB) Not Starting

cd /var/lib/mysql ls rm -r * mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql systemctl start mysqld systemctl start mysql.service systemctl start mariadb mysql Then it works ...
Chopin's user avatar
  • 101
9 votes
Accepted

Install vagrant plugin on archlinux

I was seeing similar errors as well as segfaults in vagrant's bundled ruby. Downgrading from vagrant-substrate from 605.0566498-2 to 599.d7cedfe-2 fixed this for me.
Tim's user avatar
  • 106
9 votes

kube-proxy won't start in Minikube because of permission denied issue with /proc/sys/net/netfilter/nf_conntrack_max

change maxPerCore to 0 in configMap of kube-proxy to leave the limit as-is and ignore conntrack-min
Mehdi Shakeri's user avatar
8 votes
Accepted

NetworkManager & dnsmasq - ignore auto DNS settings

I'm not using dnsmasq, but I had a similar issue. The solution for me was: Put the DNS servers you want in /etc/resolv.conf (ref) # IPv4 nameservers: nameserver 1.1.1.1 nameserver 1.0.0.1 # IPv6 ...
tsj's user avatar
  • 208
8 votes

Pacman doesn't work in Docker image

EDIT3: This is now fixed, and glibc has been added to /etc/pacman.conf as a HoldPkg to prevent an official image from failing in the future. EDIT2: Add this before & after running pacman anywhere ...
sickcodes's user avatar
7 votes

Ping: sendmsg: operation not permitted error after installing iptables on Arch GNU/Linux

To me, on Debian 9, it helped just to reinstall ping: apt-get install --reinstall iputils-ping
David Ferenczy Rogožan's user avatar
7 votes

MySQL (MariaDB) Not Starting

You need to run mysql_install_db to initialize MySQL data directory.
Tero Kilkanen's user avatar
5 votes

MySQL (MariaDB) Not Starting

Faced same problem. This got resolved after following below steps: Uninstalled the mariadb maridb-server packages Removed the directory /var/lib/mysql. Reinstalled the Mariadb, Mariadb-server ...
ragul rangarajan's user avatar
5 votes
Accepted

Connected to openvpn, but no Internet connection

When you create a VPN connection between your client and VPN server, a private network is formed between the two, with address starting with 192.168.x.x, 10.x.x.x or 172.16.x.x. When you want to ...
Tero Kilkanen's user avatar
5 votes

Pacman doesn't work in Docker image

As long as I understood it is because of privilege configuration with the Docker and running a container. When we login to the OS, it seems we are root but infact we do not have the right root ...
Shakiba Moshiri's user avatar
4 votes

sshd service fails to start

Just follow this, mkdir -p /var/run/sshd and /usr/sbin/sshd -ddd This should fix your issue.
Aman Juman's user avatar
4 votes

Introspection of initramfs systemd services - How?

https://freedesktop.org/wiki/Software/systemd/Debugging/ suggests using journalctl -b to view log messages from boot.
ptman's user avatar
  • 29.2k
4 votes

kube-proxy won't start in Minikube because of permission denied issue with /proc/sys/net/netfilter/nf_conntrack_max

Getting the same issue although using kind. FWIW it helps downgrading the kernel to 5.11.
Kim's user avatar
  • 41
4 votes

kube-proxy won't start in Minikube because of permission denied issue with /proc/sys/net/netfilter/nf_conntrack_max

There's a known bug in kind (see issue #2240), caused by a change in version 5.12.2 of the kernel to make nf_conntrack_max read-only in non-init network namespaces (more info in the relevant commit) A ...
Joe Malt's user avatar
  • 141
3 votes

How can I create separate configuration files for php (cli) and php-fpm on an arch linux

You can always do this for the cli version: php -c /path/to/your/php.ini and leave the defaults with the ones served over php-fpm. Or even better, add this to your login scripts # ~/.bashrc # ...
the_architecht's user avatar
3 votes

Is Arch Linux suitable for server environment?

The main difference of server distros is that you get security updates only, while on arch, you get major revisions of the packages too, which may break stuff. If you want to make arch suitable for ...
Adrian Lopez's user avatar
3 votes

Cloning an existing ArchLinux installation to another machine

I've done such things with rsync several times. First you should boot new machine with Arch Linux ISO and create a partition and format and mount it to /mnt. Then rsync -aAXxv root@SOURCEMACHINE:/ /...
sparse's user avatar
  • 81

Only top scored, non community-wiki answers of a minimum length are eligible