New answers tagged

0

That won't work if it is a script someone else has written which is complaining (as if often the case using Docker, for example). In that case, you should ensure that the following command is run before bower: # echo '{ "allow_root": true }' > /root/.bowerrc See here for a more in-depth explanation: ...


2

The /proc/mdstat output is very clear: you are using RAID1. You have three software RAID1 arrays, to be more precise.


0

http://comments.gmane.org/gmane.comp.encryption.openssl.user/43587 suggests this simple command: openssl crl2pkcs7 -nocrl -certfile CHAINED.pem | openssl pkcs7 -print_certs -text -noout It indeed worked for me, but I don't understand the details so can't say if there are any caveats.


0

What are you using to manage the virtual IP on the other side (.164) ? Can you not use the same mechanism on the 10.X.X.X side to make a virtual default gateway for the servers ? The only slightly more tricky part is making sure that in scenarios where the virtual IP has switched from one proxy to the other (say a network failure on a NIC) that the ...


0

As usual, this was due to a stupid error. The check script file was installed onto the nagios server instead of the client server. This nagios config is controlled by puppet and some custom checks are installed on the nagios server and some are installed on the client server. I followed the example of another custom check script which I installed. The only ...


0

I had a similar problem today, I was running apache 2.4.10-10+deb8u1, but my virtualhost was a copy from a server running 2.2.16-6+squeeze15, and I found one line that was no longer working, Require Valid-user needed to be changed to Require valid-user (CAPS removed), and this made my apache run again. I found this error in /var/log/syslog (on ...


1

It's simple: if named is running with -t <directory> flag, then it's chrooted. Otherwise - it's not.


0

Using Azure's new portal: Open your VM. Go to Network interfaces in the Settings window Click on your network interface In the network interface window, there is a "Network security group" section In the network security group's settings click on "Inbound security rules" Add a new rule I'm not sure if there is a shorter way of getting there.. Next time ...


0

This looks like a DNS entry problem. If you run dig address.com mx do you see a response that includes the mail server for address.com. If not, fix your DNS first then try again.


1

Part 1 - Update sysctl.conf Edit /etc/sysctl.conf, add the line below: net.ipv4.ip_forward=0 Make sure there are no other ip_forward lines in the file or under /etc/sysctl.d: grep -r ip_forward /etc/sysctl.d If you find any, delete or comment them by putting a # at the start of the line. Part 2 - Ensure there's no other configuration that ...


4

No, unless you can find the private key you'll need to generate a new request (and hang on to that private key).


0

Just increase the maximum number of files that can be open by the same user within the same session accordingly. Source: http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/


0

You need to use the full path to your ruby binary at the top of your script. You can't use /usr/bin/env ruby as the interpreter, because NRPE is going to run with no ENV. This can be simulated by running your script through env -i, as the nagios/nrpe user: env -i /usr/lib/nagios/plugins/check_disk_usage.rb


0

Set the parent directory's permission to what you want it to be, then configure the umask for when users create new files. You should have a good use case as to why you would want those permissions, though..


0

https://www.netroby.com/view/3630#.U2mTfHVdUc0 http://unix.stackexchange.com/questions/128220/how-do-i-set-my-dns-when-resolv-conf-is-being-overwritten You can write nameserver in the config right before the DNS server with nameserver x.x.x.x


1

Assuming you are using Ubuntu and a connection named "Wired connection" edit /etc/NetworkManager/system-connections/Wired connection and add the following: [ipv4] method=auto dns-search=a1.domain.com;a2.domain.com;a3.domain.com;


1

I made wrong assumptions about the internet connection of my company. Port 27017 is blocked. I solved the problem by using an open port instead.


0

In the CloudFlare DNS settings, make sure that you have a "gray" cloud for the mail A record, in order for connections to that host to bypass CloudFlare and go to your mail server directly. CloudFlare does not proxy SMTP traffic. An example of a working domain:


2

Tomcat needs the certificate stored in a Java keystore. You however have set keystoreFile to a cert file. You need to import your certificate into a JKS keystore and change the keystoreFile parameter to that file. Java comes with keytool utility. The keytool programm covers everything you need to deal with JKS. Take a look at this website for the most ...


0

Seems like the issue had been linked to the line prerequisite_check in the script which was placed before all variables had been setup. I moved the check down to below the point where the cron primer is linked and everything worked fine. It is strange that a script so commonly used has such an error without anyone reporting it. I assume the bug had been ...


1

My understanding is that you deleted the cluster when uninstalling and it isn't recreated automatically. Recreating the cluster should solve the problem: mkdir /var/lib/postgresql/9.3/main chown postgres /var/lib/postgresql/9.3/main su postgres /usr/lib/postgresql/9.3/bin/pg_ctl -D /var/lib/postgresql/9.3/main initdb You may need to substitute postgres ...


2

I was finally able to get this working by placing auth [success=done new_authtok_reqd=done default=die] pam_google_authenticator.so nullok at the top of /etc/pam.d/sshd. According to the pam.d man page: success=done means that if Google Authenticator signs off, no more authentication will be performed, meaning no additional password prompt. default=die ...


0

HP ProLiant gen8 is quite new and a year ago I couldn't configure any raid because the kernel that was the latest at that moment didn't have the RAID driver required. HP works closely to Microsoft interests. In the gen7 it do work, so I guess it's matter of time that it can work. In the meantime focus on configuring LVM to work as a RAID 1.


0

If your system has only 2 HDDs and you still see 2 HDDs after setting up the RAID1 array, you didn't get it right. After the RAID config is done, you should only see one 500GB HDD. What kind of HP server have you got? Is the RAID controller HPs own (some sort of Smart Array) or aftermarket?


0

Ubuntu or any Linux OS is basically built with group of packages. The desktop version have packages more suitable to desktop users where as server installation have packages for server users. Now the question is if someone has installed Desktop then by installing which packages the system can also work as server. so request all experts to provide one by one ...


1

You should create a RAID 1 array using your hardware raid controller. It will them present that array to the OS as a single disk. You should then install your OS onto that disk using LVM if you want.


1

If it is not listed in the supported OS list, then there are reasons behind it and you should think twice before installing it, even if it is possible. Because, in such a case, may be you won't get any OS support contract or patch/update for the OS. If you understand the consequences and want to go ahead, I guess there are materials available online. A ...


0

When I run doveadm user user@example.com I got: field value uid 5000 gid 5000 home /var/tmp/vmail_chroot//home/vmail/qkiz.pl/g33k mail sdbox:~/sdbox There is no directory like /var/tmp/vmail_chroot//home/vmail/qkiz.pl/g33k Line mail_chroot = /var/tmp/vmail_chroot/ brokes config. After disabling it everything works fine.


0

Here's an awk based solution that doesn't rely on intermediate files. cat bundle.crt | awk '{ if ($0 == "-----BEGIN CERTIFICATE-----") cert="" else if ($0 == "-----END CERTIFICATE-----") print cert else cert=cert$0 }' | while read CERT; do echo "$CERT" | base64 -d | openssl x509 -inform DER -text -noout done It works by reading PEM blocks from ...


1

This is way out of scope for the New Relic agents and what they can offer. There are plugins available for New Relic, but this type of task (software inventory) is better suited to another application. I'd place it in the realm of configuration management.


0

There are many types of acl. src means the client IP and not the interface IP (local address). I use localip acl type for that purpose: acl from_eth0 localip A.B.C.D acl from_eth1 localip E.F.G.H tcp_outgoing_address A.B.C.D from_eth0 tcp_outgoing_address E.F.G.H from_eth1 tcp_outgoing_address 1.2.3.4 # default ACL types are described in doc page. ...


2

try ifconfig -a. Typically ifconfig alone won't show interfaces that are not "up".


1

For any custom NRPE command to work, you need to add an additional command definition for it in your local NRPE config (usually /etc/nagios/nrpe_local.cfg), like: command[disk_usage]=/usr/lib/nagios/plugins/disk_usage.rb Then restart NRPE and try again with: check_nrpe -H localhost -c disk_usage


2

Based on some of the comments, I chose to install ibus 1.5.12. I'm using Ubuntu 14.04, and based on the reply from @Fabio, this worked for me here is the source location: https://launchpad.net/~tista/+archive/ubuntu/wayland/+build/8927526 gir1.2-ibus-1.0_1.5.12+git20160201-0ubuntu1-xenial1_amd64.deb ibus_1.5.12+git20160201-0ubuntu1-xenial1_amd64.deb ...


0

Function prerequisite_check definition says, basename, cut, date and aws commands should be available. Script is unable to find aws command when running from crontab. Hence, you are hitting error. In crontab, you need to modify PATH variable to include path to aws executable, by writing them before your cron lines. You can use below syntax to add path ...


0

I solved it in another way, by installing the ca-certificate. Copy your *.crt file to `/usr/local/share/ca-certificates/ run sudo update-ca-certificates This solution works with Ubuntu 14.04 at least.


2

Try to add this line in /etc/network/interfaces pre-down ip route change default via 10.255.255.1 dev eth0 src 82.82.82.82


2

I guess the key word here is TERMINATE. You might be able to get away with stopping and starting your instance again immediately. If it's EBS backed it will be a new instance and will be EXACTLY the same, other than the external IP address. Note that in this case you need to STOP your instance, NOT terminate. Terminate deletes the EBS disk. To be safe, or ...


2

If the EBS volume that backed the terminated instance is still around, you have a chance at restoring the data. Otherwise, all is lost. This is reason number 2,274,738 to: 1) Never deploy things outside of your configuration management system and 2) Always have backups.


0

Set your ~/.ssh/config to include 'ForwardAgent yes'. Also grant all on db.* to 'user'@'127.0.0.1' identified by 'password'


0

First sudo apt-get install build-essential sudo apt-get source apt-get source sudo apt-get build-dep audit cd audit-2.3.2 Then: fix 'debian/rules' file. You need to remove '–disable-listener' option. Finally: sudo dpkg-buildpackage -b cd ../ sudo dpkg -i auditd_2.3.2-2ubuntu1_amd64.deb And if you need plugins: sudo dpkg -i ...


1

In general: packages.ubuntu.com contains a home page for each package. That home page has a number of interesting sections, including in the right column a number of links, one of which is to the home page of the original open source project but you can also download both the original source and the modified Debian/Ubuntu sources that were used to build ...


0

Bit of a shot in the dark but I've seen this before and managed to debug it. Its a real bizarre edgecase though. If your clocksource is set to jiffies certain processors do not stay in sync with one another, leading to a situation where the time on one processor differs from the time on another processor. It can be out be a difference of only 1 second for ...


0

The mention of 127.0.0.1 sounds like you are using the SSH tunnelling feature of SequelPro. See How to reliably keep an SSH tunnel open for solutions to this problem. You can be certain this issue issue if the next time it happens, you disconnect your SSH session to the server, re-connect, and it works.


0

Looks like you're having issues connecting through SSH or maintaining the SSH tunnel, these errors are usually reported to /var/log/auth.log. Probably SequelPRO tries to use a connection that is no longer available, stalled. You may also try to manually set the SSH tunnel: http://www.sequelpro.com/docs/Set_up_an_SSH_Tunnel — if this works, then it's surely ...


2

Looks like packets from 'some_problem_place' are not reaching your webserver at all. You can debug this using tcpdump (i assume that you know outer network interface on your webserver): On server run sudo tcpdump -ni "outer inferface" src host "IP of some_problem_place" . For example: sudo tcpdump -ni eth0 src host 11.22.33.44 On client try to access your ...


1

The man page for rsync notes that Beginning in version 2.6.4, multiple --compare-dest directories may be provided, which will cause rsync to search the list in the order specified for an exact match. If a match is found that differs only in attributes, a local copy is made and the attributes updated. If a match ...


0

If you're looking for instantaneous update of content, anything you run will need a service that stays in contact with configured peers. This requires monitoring and management. Having been down this road before, I'd suggest setting up test environments and running website performance testing tools against any selected solution. Many of the solutions have ...


0

you could try unison. It must be triggered after changing a file, but you can use a regular cronjob for it. After initialisation it recognises changed/added/deleted files and updates this information on the other server.


0

OK, thanks to the bridge guys, I found the answer. My main problem was that I didn't realize that the "TX queue" means the bridge is transmitting TO the guest (i.e. the Windows virtio driver.) Basically the Windows virtio driver I was using was crashing. I was pointed at these: https://bugs.launchpad.net/ubuntu/+source/qemu-kvm/+bug/1325560 ...



Top 50 recent answers are included