Newest 'centos7' Questions

Q&A for system and network administrators

lsyncd not sync until restart lsyncd service

I have a Centos 7 guest that is running in VirtualBox on a Windows 10 host. I have created a shared folder so that Ubuntu can see a folder that lives on my Windows 10 host. I then set it up so that ...

Configure: error: Curl library not found on centos 7

I want to install zabbix 2.4.5, but when I type: ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 I get some problem: Configure: ...

Mime-types when using IP and not the domain

I have a Centos 7 (VPS) installation. Running apache One site installed. When i use https://www.domainname.com the site is working correctly But when using https://ipnumber the site is not working ...

CentOS 7 / Apache / mod_wsgi - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2727: ordinal not in range(128)

I've deployed a Python web application (uses Pyramid) in Apache (httpd) using mod_wsgi. After starting the Apache service the error below (from Apache log) occurs when we make a http request to the ...

With a Windows folder share, how do I use Linux's mount command to gain access to the files when there is a return code of “-115”?

I am running Linux CentOS 7.3. I have a Windows laptop with a windows file share named "foldera." The Windows laptop has an IP address of x.x.x.x. I have accessed it interactively from the CentOS 7....

mkswap: Device or resource busy

I've made a partition on CentOS7 and rebooted. However when I now issue mkswap on that partition I get a busy message: mkswap /dev/sdb1 /dev/sdb1: Device or resource busy What's the problem? ==== ...

Can Linux machines joined to active directory update its DNS records?

Well question is above, but to explain my setup: Mikrotik as gateway running DHCP (DNS set to AD) Windows 2012 as Active Directory and DNS CentOs7 as client I let CentOs pickup IP from DHCP on ...

Unable to access vm guest running apache using macvtap behind router

Setup Host OS is Centos7 running libvirt. I have multiple guests running using macvtap as an interface to a bridged bonded interface (br0). br0 is a bridge of bond0, which includes two ethernet ...

Unable to create iqn at targetcli?

I want to make a san on my virtual machines, I have already configured a server1 as Server target with theses steps: - create lvm on server1 - install targetcli - create blocks - create iqn using: ...

Ip6tables centos 7 rule not working

The following rules were working for ipv4 addresses in iptables but using the same rules in ip6tables is not working. Currently all ipv6 addresses are being blocked. This rule set should allow https ...

warning: couchdb: unable to open supervise/ok: file does not exist - Runit

I was trying to run couchdb with runit, and I encountered the error above. Even this, this and many others didn't help me in knowing what the problem is. Here was what I did to produce the problem. ...

CentOS 7: Fresh Install Firewalld doesn't work at all (Fatal Error: No IPv4 and IPv6 firewall)

I have the following problem. I just did an dvd CenOS 7 installation. After I boot into the system I normally login as the root user. From there I'm trying to configure Firewall on my server. As I'm ...

Adding public key to ~/.ssh/authorized_keys still need password

I've misplaced my password for a CentOS VPS I manage. I'm able to use a rescue tool to log in, mount, and chroot into the machine. Through this, I have tried to add my public key to /root/.ssh/...

CentOs 7: http won't start at boot if it listens to a specific IP address

I have this in my httpd.conf: Listen 216.XX.YY.ZZZZ:80 Just to make sure, I made sure httpd is enabled at boot: systemctl httpd enable When the system boots, I have: systemctl status httpd ● ...

SSH key authentication login issue with PAM

After setting up key authentication for SSH i'm having the following error : ssh remoteHost System is going down. Connection to remoteHostAddress closed by remote host. Connection to ...

CentOS 7 LDAP SSH Error “cannot find name for group ID”

I'm running a CentOS 7 VirtualBox instance. I have LDAP authentication set up through our company Active Directory server. Note: The AD server DOES NOT have Unix extensions installed. What I'm ...

How to enable CONFIG_NETFILTER_XT_MATCH_IPVS for Docker in CentOS 7?

When I run wget https://raw.githubusercontent.com/docker/docker/master/contrib/check-config.sh a tool, for checking for Docker configuration errors, I get an error saying ...

After CentOS7 upgrade: Docker services not reachable anymore

After a rather large upgrade to my CentOS7 system yesterday my Docker service are not reachable anymore. From localhost curl localhost => curl: (56) Recv failure: Connection reset by peer. The (...

php-fpm user unable to run node commands

I have a vagrant instance running CentOS7. This vagrant instance is running Nginx to host websites locally on my mac. I have php-fpm running to support processing of php files. Finally, I have a php ...

Number of inodes explodes on reiserfs after certain number is reached/quota exceeded

I am using a CentOS 7 machine as a BackupPC server to pull in backups from my two frontend servers once per night. Last night the backups failed so I checked the server to see where the problem is. ...

Setting FQDN with external domain name

I have a Centos 7 server which has tens of domain names and IPs. The IP addresses are pointing to my server. Each domain name is pointing to its own IP via A record. I want to configure my FQDN in ...

Centos 2 interfaces routing

I have two remote ESXi server in different datacenter. On both I installed 2 VM pfsense with a site2site VPN with OpenVPN to connect the 2 subnet 192.168.1.0/24 and 192.168.2.0/24 over internet. I ...

Apache restart everyweek at certain interval

I've apache configured on CentOS 7 machine and I see these errors in messages and looks like the http process is failing to reload and finally the service is failing. No cronjobs configured in entire ...

Remote SSH command hangs, but only when executed through Jenkins

Disclaimer: I'm a bit new to the community, please be gentle :) I'm having an SSH issue that I just can't seem to explain. As a bit of background, here's the problem that I'm solving: There are ...

Facing resolution issue with Intel HD Graphics 530

We have installed CentOS 7.3 on HP 280 G2 Microtower PC (W7C53PT) which comes with Intel® Core™ i3-6100 with Intel HD Graphics 530 (3.7 GHz, 3 MB cache, 2 cores). CentOS 7 is running fine but its ...

auditd keeps writing to my disk

auditd -n keeps writing and using resources for the stuff below. What is it, and is it necessary for this script to be constantly writing stuff? I am running Cenots 7 and Plex Onyx...if it is not ...

Can I use single Let's Encrypt SSL certificate for subdomains on different servers?

Currently I'm able to get a single Let's Encrypt SSL certificate working on one server with multiple subdomains. eg. m.example.com, www.example.com, example.com on Server A However, in order to use ...

Allow certain files from a specific IP?

I recently got into apache and i'm trying to do something that I can't figure out how to do. I have two sites : siteA and siteB. SiteA has access to his site and to SiteB. SiteB on the other hand has ...

Run rc.local only once Mongodb is running in CentOs 7

I have the following script in my rc.local: This runs the services on ports 8080, 8081, 8082, 8083. They are actually node servers that NEED mongod to startup. So, I edited /lib/systemd/system/rc-...

Is $GROUP supposed to be populated by default on Linux?

I'm running a 3rd party install script on Centos 7.3 and its failing because $GROUP is not populated. [vagrant@puppet vagrant]$ echo $USER vagrant [vagrant@puppet vagrant]$ echo $GROUP [vagrant@...

Strategies to resize root partition

I currently have a CentOS 7 that appears to have been incorrectly partitioned, such that I've run out of space in /root. In normal circumstances, I'd migrated the roles running on this box and fix it. ...

Where does the bash PATH on CentOS 7 get /usr/local/bin from?

I've just spun up a brand new CentOS 7 VM (bash version 4.2.46) with Vagrant using the centos/7 box, and when I'm logged in as the vagrant user, this is my PATH: /usr/local/bin:/usr/bin:/usr/local/...

Networking Issue with Linux under Azure Site Recovery

I am trying to protect some on-prem CentOS 7.2 VMs running in Hyper-V using Azure Site Recovery. I have the replications to Azure running successfully, but when doing a test failover I cannot get ...

Wait for systemd oneshot service to finish

I am doing some server provisioning and I need to run a script AFTER installation as it requires the system to be fully functional, include services. So I cannot put it inside the %post section of my ...

Is it safe to install httpd-devel on CentOS7? [closed]

I tried to install mod_GeoIP using the method on this website: http://www.pcrepairmansblog.com/install-mod_geoip2-on-apache2-in-centos-7/ but at the point where I need to install httpd-devel it ...

Centos7 Apache Ideal permissions for non root users

Created a non-root account so the user can login and upload files to the public directory (which works) except there's difficulty when adding a CMS.. constant write permissions (when maintaining the ...

apache stopped unexpectedly

Suddenly I found apache on my server is stopped !! I don't know the reason I found those 2 lines on apache error_log and don't know if they are related to the problem happened or not [mpm_event:...

mount.nfs: assigning subnets in /etc/export is not working

I have installed nfs-server on centos and edited my /etc/exports as follows /data 10.25.0.0/25(rw,sync,no_root_squash). when I try to connect from my client with ip address 10.25.44.144, the ...

KVM virtual machine won't start and gives the following error

I have a kvm virtual machine with a web-server. Yesterday, without doing any modification on the server or the host, this virtual machine stopped responding. As far i can see it freezes at boot time, ...

Puppet,git: Unable to clone

My puppet master has code as below vcsrepo {'/var/www/html': ensure => 'present', provider => 'git', source => "https://github.com/wikimedia/...

FreeIPA : Installer not resolving domain name from hosts file

I have been having an issue while installing FreeIPA. The problem is that every time I run the installer the FreeIPA application does not read from the host file rather tries to resolve the domain ...

Can not upload files via vsftpd server for virtual_user mode

My server is Centos 7. My config file vsftp.conf I use virtual_use_local_privs=YES to make sure use virtual user privilages. And I use root privilage to upload chown_uploads=YES chown_username=...

gnome session in centos core version

I invited the IT guys outside our team to install a CentOS server version in our server. The CentOS is supposed to be the Core version. I inspect the os-release file, it gives: NAME="CentOS Linux" ...

High Load Average But CPU And Memory Are Not Used NGINX

First of all I want to explain what I am using the server for. This server is used to deliver downloadable files. Specially video games which I upload to the server and then users can download it ...

Unbound Syntax Error

I am trying to use unbound to forward requests to a pair of dns servers, while answering a small hand full of queries locally. In testing this out, I have built the following configuration at /etc/...

CentOS 7 LDAP Authentication: “Permission denied”

I'm running a CentOS 7 VirtualBox instance. I am trying to set up LDAP authentication through our company Active Directory server. Note: The AD server DOES NOT have Unix extensions installed. Setup: ...

SSH fails after Port change on CentOS 7 with Plesk

After changing the port. And restarting the SSH service, it failed on me. I got the following info when I ran systemctl status sshd.service: sshd.service: main process exited, code=exited, status=...

Why is my unix socket created with a different ACL mask to other files?

I am deploying an Nodejs Express app. It is going to run as on the same box as an Nginx server, which will proxy requests to it via a unix socket. The question is not specific to Nodejs, however. The ...

CentOS 7 Bind (Named) not starting [on hold]

I'm trying to create a web server via Google Cloud Computing and Plesk. I installed the panel successfully. I can't start bind. When i dig the logs I see one of my (first entered domain - there is no ...

Empty files inside /var/lib/jenkins directory in CentOS/Linux

I am using Jenkins on centOS/Linux server. Now I am facing the same problem like this. I have tried uninstalling Jenkins more than 2 times, but still getting the same empty file on the /var/lib/...
Translating... 0%