New answers tagged

0

The solution you're are looking for calls watchdog. BTW. Linux uses a watchdog deamon, too, to ensure services are up and running. A Discussion about it and fragments of solutions for scripts can be found here: https://unix.stackexchange.com/questions/55318/watchdog-script-to-keep-an-application-running 4 You to know and Steps to solve the problem: Your ...


0

This was most likely built on a different OS version, one that had a newer version of gcc/g++/libstdc++ You can either chase down a newer version of libstdc++ and put it somewhere that your app can find it (using LD_LIBRARY_PATH) or build from source. Personally I’d not chase this stuff down and I’d run it under docker. There seems to be an official image ...


0

I had this problem, which was caused by a conflict arised from google-chrome package installed on my system. So, I removed google-chrome and the problem was removed.


1

The ILO has a web interface. You can use that to connect to the console. You can also SSH to the ILO and run textcons to bring up a text console, depending on the CentOS run level and GUI situation.


0

I put it before the virtualhost LoadModule wsgi_module /usr/lib64/apache2/modules/mod_wsgi.so <VirtualHost 69.16.201.27:443> ServerName blue.domain.com ....


0

Late answer, but I was having the same issue and was looking for a solution. For CentOS you can install the package libmemcached / sudo yum install libmemcached. Now the pitfall: memcdump is not available, it is named memdump in CentOS. Same for memccat, it is memcat. It seems this is due in Ubuntu memdump being already taken.


0

The top answer on this question solved this problem. Thanks to @Micheal Hampton for pointing out the multipath problem!


1

There is a way, but it is quite tricky and might mess up your servers, so be very careful. Nomenclature: online : your system that is connected to the repositories offline: your system that is not connected Steps: Compress your rpm database from the offline system and transfer it to the online system: cd /var/lib/rpm/ tar -cvzf /tmp/rpmdb.tgz * scp /tmp/...


0

By default OpenLDAP logs to local4. /etc/rsyslog.d/slapd.conf local4.* /var/log/messages For logging you'll also want to set olcLogLevel to an appropriate value in cn=config. olcDBIndex is your friend. Under CentOS7 the standard thing to do is use mdb rather than bdb. Though even on CentOS6 you should have an hdb.


1

When SELinux is enabled, your containers' volumes should be placed in subdirectories of /var/lib/docker/volumes. Volumes in your home directory will have SELinux contexts that do not allow Docker containers to access them.


1

You need to shutdown the container, delete ./mysql/mysql.sock from the host and start it again. For some reason there already is a socket file there and it needs to be removed to start the service correctly.


0

The error is quite clear, you either have to stop your other mysql service or change the port in your config file: [mysqld] port= 1234


0

For future readers: this may actually be related to the clients having a stateful firewall blocking the responses from the tftp server. The firewall won't see the responses as established or related connections, and therefore drop/block.


0

I had the same issue. Replaced a faulty drive (after failing and removing from RAID 1), but then could not add it back. Was getting resource busy all the time. SOLVED AS FOLLOWS... The problem was that the system had mapped my new disk as md126 and md127 (not sure why). So I had these two extra drives showing up unconnected, but present in cat /proc/mdstat....


0

yum doesn't have exactly that output. history shows all transactions and can undo them, list installed shows current version, and update shows the new packages to be installed after dependency resolution. Write a yum plugin that prints the output you want if you like. However, a person at the prompt is tedious and doesn't scale. Consider instead enabling ...


0

Nothing will happen to your running service unless you stop or restart it.


0

ip rule add from 10.8.8.200/26 table rt3 the /26 part is telling the machine that it should be sending out the result in the same netmask as the interface receiving it. we just edited this part and changed it to /32 so it represents the same interface and ip it received it. the 255.255.255.255 or /32 means only one host could be assigned and it is the ...


2

You have a syntax error; 1y4400 is not a valid TTL. Remove y, update serial and rndc reload.


3

Neither. Install the new OS in the new hardware, and then migrate your workload.


1

The PHP core packages installed are the from the IUS repo (php71u) so that means you should install php71u-bcmath to have that module wire up with the IUS PHP installation. php-bcmath is the default CentOS PHP module so it will conflict. php71-php-bcmath may be from the SCLo repo which doesn't explicitly conflict with the IUS PHP, but is not the one you ...


0

Have you tried putting the user into the /etc/cron.allow file (create it yourself, if it doesn't exist, yet)? http://www.madirish.net/294


0

Put you development team to a hold, you are about to change the configuration. Create a directory on your new drive or a location with enough space, in my case, to give some future location independence, will use a link instead of an absolute location. mkdir /drive2/repos # create a new base directory ln -fs /drive2/repos /repos # create a link on the ...


1

Steps to troubleshoot your issue: Run the tcpdump and check the traffic. Do you see incoming TCP-SYN packets? If don't or you see incoming TCP-SYN packets and repeated sent TCP-SYN-ACK - check a network device before your server. You see incoming TCP-SYN packets, but don't see any replies. Check the firewall with iptables-save -c. The order of rules is very ...


1

I suggest to test out with a small SOHO router if you can or remove DPI from your router. As it work in the LAN and not via the WAN please know that some enterprise class router do DPI, deep packet inspection, and can have difficulty when large number of traffic passtru them. I had similar issue with a old Cisco ASA and the mail server of a customer that ...


0

Some instructions for troubleshutting: Run netstat to see the connections and the process that are attached to each socket: sudo netstat -nlpt Check that the process corresponds to what you think should be listening and serving (Apache) Check system limits with ulimit, to see if the maximum number of processes has been reached: ulimit -a Try to access ...


1

Using parted in Knoppix as root worked for me. knoppix@microknoppix $ su root@microknoppix $ parted <device> (parted) print This will list the partitions on the device. Use the command rm # where # is the entry in the returned list. It will tell you it can’t. Do it again and then type print again. It will show a blank where the partition used to ...


0

You will have to build a NAT solution, you may use IPtables for this purpose. Here is a good article for you: RedHat iptables You may also do something fancy and use LVS. This will essentially enable you to forward packets to multiple destination and work as a load-balancer.


0

Based on https://www.centos.org/forums/viewtopic.php?t=60252, in CentOS 7, you can make the power button shut down the system by uncommenting the line in /etc/systemd/logind.conf: [Login] HandlePowerKey=poweroff (To quote from the config file: see logind.conf(5) for details.)


1

yum provides is very close to rpm -qf , but yum can search in non-installed packages . rpm will search only on installed package . [user@whome.local ~]$ yum provides /usr/bin/alien Loaded plugins: fastestmirror, langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Loading mirror speeds from cached hostfile * base: centos....


0

I was able to solve the problem by following the excellent cPanel documentation, I hope it can help someone else. Remembering that the includename.conf files can not count the VirtualHost tag, just the content inside it. https://documentation.cpanel.net/display/EA4/Modify+Apache+Virtual+Hosts+with+Include+Files


0

The ld.so(8) man page explains: LD_LIBRARY_PATH A list of directories in which to search for ELF libraries at execution time. The items in the list are separated by either colons or semicolons, and there is no support for escaping either separator. This variable is ...


0

Additionally to the answer posted by @wurtel, logcheck needs to write the .offset files. We need to create them, and make them read-/writeable with for the logcheck user only: touch /var/log/messages.offset chmod 600 /var/log/messages.offset chown logcheck /var/log/messages.offset touch /var/log/secure.offset chmod 600 /var/log/secure.offset chown logcheck ...


1

Use the --changelog option to rpm to view the package changelog. For example: rpm -q --changelog chrony | less


10

Another option (albeit definitely not the best answer): make a dummy rpm file with the name in question. You will need rpmbuild installed, and a dummy tarball. mkdir ~/rpmbuild/{RPMS,SOURCES} touch empty.txt tar -zcf ~/rpmbuild/SOURCES/example.tar.gz empty.txt Write the dummy spec file. This one works for me on Fedora 29. It should be good on CentOS 7 too....


27

"I've installed foobar version 2, compiled from sources" Take the extra effort when adding custom software to your system and package your additions in a RPM. See Martin Streicher, 2010-01-12, Building and distributing packages, IBM on how to do that. Then install that resulting RPM so it can and will play nice with your package manager's conflict and ...


6

This is not how rpm works. rpm uses a db where it stores which rpms are installed on the system. If you install some files manually, rpm does not know about it. The best way to solve this is to install foobar 2 with an rpm. Other solutions would only be workaround and would not work in the long run.


3

May rpm --nodeps be the answer you're looking for? It was discussed in an older thread here on Serverfault. (tell yum to ignore a single dependency)


2

The nginx source tarball doesn't include a systemd unit. If you insist on running a copy built by yourself from source then you will need to provide the systemd unit file yourself. You can find one in the RPM package. BTW your explanation of why you aren't doing this doesn't make much sense; almost everyone actually needs most of the modules you have ...


1

My suggestion is instead of building it from source, you can follow their installation on RHEL/CentOS on their site http://nginx.org/en/linux_packages.html#RHEL-CentOS Can you also provide some logs so we can figure out your issue?


0

Add NM_CONTROLLED=no to your configuration files and enable the 'network' service at startup. chkconfig network on Then disable the NetworkManager service. /bin/systemctl disable NetworkManager.service Restart your machine.


0

Ok, I just had to reset the previously configured switch module and the network connected automatically with no problem!


2

This is a really old question but I found it trying to resolve the same issue. I think I have found the solution (at least it worked for me). I found that if I remove the "user" option the problem goes away. Or, if I use "user,exec" in place of just "user". I finally found at the bottom on one version of the man page: user Allow an ordinary user to ...


0

You have an obsolete PHP version installed, which is blocking your CentOS upgrade. To resolve the problem, upgrade to a Remi repository containing a current PHP version. Then try the CentOS 6-7 upgrade again.


1

Red Hat does provide support of a major version upgrade from RHEL 6 to 7, but only in some specific scenario's with some rather strict requirements. The same also holds also for CentOS 6 --> 7 upgrades See the Migration PLanning Guide for the current requirements and details, but one requirement is that: Your system includes only the following package ...


-1

There is not an officially supported direct upgrade path from CentOS 6.x to 7.x so the process is to backup the CentOS 6.x server, followed by a new install of CentOS 7.x and then import the back up data from you old CentOS 6.x server.


1

Requires: iproute(x86-64) = mptcp_v0.94-5.fc24 Installed: iproute-4.11.0-14.el7.x86_64 The version tags indicate this is a Fedora 24 package you are attempting to use on CentOS 7. This will not work. Find an equivalent el7 package. Or compile it yourself against el7.


0

Do not use the new disk /dev/sdc. Extend the existing virtual disk backing /dev/sdb, resize its partition, and resize the file system on /dev/sdb1. Multiple disks is only practical if you are using LVM, or have multiple file systems at different mount points.


0

If you're having this problem with a Synology NAS, then check that the vers= option specified to mount and the min/max SMB versions on the NAS are compatible. Specifically, I'm using vers=2.0, but my Synology Diskstation was triggering the Host is down error. I found a page, Windows 10 access to NAS share. SMB 1.0 and 3.0, on the Synology website that ...


Top 50 recent answers are included