New answers tagged

2

i have by mistake emptetied my databases for where can i get database backups. Wherevery you did put them. my server team told i do not have backup activated now what to do to solve my issue According to one culture the honorable thing now would be to commit suicide due to demonstrated incompetence. YOU did not activate backups, now you whine. ...


1

In the end, we decided to use the git method, and changing IPs was the least of our troubles. :) The procedure: Use Puppet to install and set up etckeeper, and create a repo for each server on our Gitlab instance. We chose to use a gitignore that ignored everything except select files and directories. Have team members create a branch (with a common ...


1

+1 for rng-tools In case you are stuck in situation as I am - not having permissions to install new software (rng-tools) on a headless server with virtually no input hardware (sound card, keyboard, mouse) attached. You can run this simple code from another terminal connect to same server, to add to the entropy. It does not matters if you start running this ...


1

I recently resolved a similar issue, where Ansible would encounter "UNREACHABLE!" errors only for tasks requiring file transfers (e.g. copy, template) while connecting just fine for anything else. I found adding the following directive under the [ssh_connection] section helped: scp_if_ssh = True As you might guess, the issue was related to the target ...


0

Uninstall sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5 Remove directory sudo rm -rf /etc/mysql /var/lib/mysql Clean-up sudo apt-get autoremove sudo apt-get autoclean


0

It worked for me using sudo apt-get purge mysql* sudo apt-get autoremove


1

TLDR: By default behaviour of postfix, your email was bounced (i.e. your sender will get non-delivery message) and postfix won't keep the email even in the queue. Based on both logs from mercury and ALex_hha, I can concluded that there are different behavior when mail was delivered by virtual daemon (ALex_hha case) or local daemon (mercury case). When ...


0

This was a very simple fix where I just had to install libpam-ldapd on the client side instead of installing libpam-ldap on the client side. Once I ran that it gave me the option to use starttls.


0

You will probably want to brush up on the hcitool flags. My first guess would be that you are not completing the authentication but debug/verbose or logs are the best place to start looking. http://linuxcommand.org/man_pages/hcitool1.html


1

apt-cache policy php5 will show you the available versions on Debian systems. Then you can install with apt-get install -y php5=whatever_version. On Fedora deriviatives you can use yum --showduplicates list php does the same and you can install a specific version using yum install -y php-whatever_version If the version you need is not available after ...


1

Create a virtual machine with virtualbox or VmWare Workstation (paid) and download an older version of CentOS 5 then download PHP 5.2.17 and install it normally .


1

I try to answer the questions in reverse order: 2. Why do I get this? DOWN-ROOT: Error sending script execution signal to background process When the down-root plugin is used, the main process will fork() before it drops the root privileges. The module will then remain in a wait state until it receives a message from the main process via pipe to ...


0

It sounds like possibly you don't have the package cifs-utils installed on the clients. I see that you were already trying to connectd with cifs, which typically is a great way to troubleshoot osx-to-linux shares (cifs://<host>... rather than smb... for future readers), as a test or alternative. If you have it already though, read on... You and the ...


0

Set up two partitions, one for GPU, one for CPU jobs. Use MaxCPUsPerNode for each. Set up the nodes using the CPUs Parameter. All MaxCPUsPerNode added should be less or qual than this (available CPUs/Cores/Threads) Use SelectTypeParameters=CR_CPU Use SchedulerType=sched/backfill


0

I also have issues with shares betwwen a linux client and OSx server (10.11.5). Adding these lines to the global section of the smb.conf should clear the error message you are getting. However I do not believe you will be able to connect: add: client use spnego = no client ntlmv2 auth = no to /etc/samba/smb.conf (this is the location on my linux box). ...


0

Very old post at this point, but its the top google result so I thought I would update with my solution... There must be a blank line after COMMIT or iptables-restore will fail with a "no command specified" error at the line COMMIT is on.


0

Looks like you have a typo here. Looks at the error message warning: connect to transport private/amavis: Connection refused You instruct postfix to send email via transport amavis, but in your master.cf, you define transport smtp-amavis smtp-amavis unix - - - - 2 smtp ... Check if you have define transport amavis somewhere else in ...


1

Well, if you want to disable the default ubuntu user (a reasonable thing to do), you will need to add another user to the system that you will use to connect via SSH. Needless to say, this second user should have sudo privileges.


3

Oh no! You did something kinda bad... Please read: http://nex7.blogspot.com/2013/03/readme1st.html Two issues to note: Under RAIDZ1|2|3, the zpool command reflects the size of the disks comprising the pool, including parity. zfs list will show usable space. That's where the discrepancy comes from. Also, what you ended up doing was... expanding a 4-disk ...


0

Try to increase the values of: ThreadLimit ThreadsPerChild on Httpd.conf file


1

Should I be aware of any potential problems or increased risk of breakage. After switching to "dist-upgrade", if you use the Ubuntu repos, then I believe you'll start getting kernel updates which you did not before. Unfortunately kernel updates are a risk factor in the situation you describe. In your situation, it might make sense to a) configure your ...


0

It would be possible to use Netcat to listen to a specific port (12345 in the example provided) and then check its output for what was received such as: while test 1 # infinite loop do nc -l localhost 12345 > /tmp/12345.log # check for start grep start /tmp/12345.log > /dev/null if test $? -eq 0 then startJob& ...


0

Wireshark (and tshark) uses different formats for describing display filters and capture filters. The one you are using is a display filter. You can find more information on how to capture HTTP here.


1

Use mohit's answer, but refer to https://dev.mysql.com/downloads/repo/apt/ for the current mysql-apt-config. Click "Download" at the bottom. Then copy the link from "No thanks, just start my download." at the bottom


1

There are several ways to install diff-versioned software on the same server but (I think) the best variant is packing your application into different Docker containers.


1

You have several choices: Cheap USB 2.0 stick: not recommended because they are slow and the writes will kill most of them pretty quickly, exception: a read-only system like SmartOS (for ZFS) or ESXi (no ZFS, just as an example) which only writes at bootup or once an hour and keeps everything else in RAM or your data pools. More expensive USB 3.0 stick ...


2

For something of this scale, use a separate drive or pair of drives for the OS. Perhaps the M.2 SSD slot is the most appropriate. Give ZFS the full disks and don't attempt to spread the OS across those drives. For home-scale, don't listen to all of the suggestions to get a ZIL and L2ARC. The ZIL is only useful for synchronous writes, and the L2ARC is ...


1

When you do echo "invalid crt" | openssl x509 -noout -modulus | openssl md5 &>> error.log the only the stderr of the second openssl command is written to error.log. Use this: echo "invalid crt" | (openssl x509 -noout -modulus | openssl md5) &>> error.log so that both openssl processes are run in a subshell, and the subshell's stderr ...


0

Use cmd &> file.log : $ blahblah &> /tmp/blah.log $ echo $? 127 $ cat /tmp/blah.log bash: blahblah: command not found To append, use cmd >>file.log 2>&1 $ wrongcmd >>/tmp/blah.log 2>&1 $ cat /tmp/blah.log bash: blahblah: command not found bash: wrongcmd: command not found


0

Azure OS gallery images for Linux are 29GB as you discovered (Windows OS gallery images are 127GB). There are a few tools and blog posts floating around describing methods to increase the OS disk volume size. I'm not going to recommend a tool, but I'll point to the Microsoft TechNet article published here which utilizes the PowerShell Update-AzureDisk ...


2

You have your source port locked at 3389. This should be set to *, as it represents traffic origination port. Your other settings look fine.


0

The short answer is: NO. At the very end, you should really consider: - Configure software RAID on Linux VMs in Azure . Definitely a good solution not only in case of need to extend the disk space, it also improves throughput.


0

Check Any port blocking from Antivirus running on Host machine or VM's, Also try disabling Antivirus once.


0

This sounds like a routing loop. Do your instances happen to have multiple vNICs attached? Also, check you local routing table on each host. You should see something similar to this: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 ...


1

I have a working setup running on 16.04 (linux 4.4.0-22) that is very similar. Apart from LACP rate and 1G (eno1+) vs 10G SFP+ (eno49+) the biggest difference seems to be the use of auto bond0. # /etc/modprobe.d/bonding.conf alias bond0 bonding options bonding mode=4 miimon=100 lacp_rate=1 Some of these options may be redundant. # ...


0

Even the latest distribution of Ubuntu (16.04 LTS) runs grep version 2.24. If you want to run a 2.5 version, pull down the deb package and install locally, i.e. cd /tmp wget http://launchpadlibrarian.net/40224290/grep_2.5.4-4build1_amd64.deb sudo dpkg -i ./grep_2.5.4-4build1_amd64.deb sudo apt-get install -f ...now you have access to fun stuff like ...


1

As you're configuring sudo, it's quite natural that it only affects what you can do with sudo. I see no reason why it shouldn't be possible to make pam use sudo. If it's only a static set of devices, you can define them in /etc/fstab, if you just add the user option, any user can mount them. If you really want users to be able to mount anything (but ...


-3

To remove SUID or SGID from Directories using the numeric mode, an administrator should use an extra 0 digit in their octal permissions, for example: chmode 00755 TargetDirectory/


0

First of all, this is strongly dis-recommended (if that's English!) by Microsoft (and you're supporting Microsoft clients). Second, you'd have done that when you put in place your AD, as your domain controller would have skipped the creation of its own DNS. It's anyway possible to do it, if your BIND DNS is compatible. If you're clients are slow to login, ...


0

Your upstream distribution (in this case Ubuntu) provides and supports a particular set of packages. It would be much more advantageous to upgrade your whole distribution to get a newer version of grep (or really any other package.) The way to do it, if you choose to go this route, is to create your own .deb package with the newer version. Place that ...


1

Check your mysql error log. tail -100 /var/log/mysql/error.log If your log says (like mine did): InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) failed; errno 12 [ERROR] InnoDB: Cannot allocate memory for the buffer pool You don't have enough memory to use the default buffer size of 128M Edit the config file ...


0

Delete all duplicated lines except COMMIT /sbin/iptables-save | awk '!COMMIT||!x[$0]++' | /sbin/iptables-restore


0

In Ubuntu, you can simply do ls -lh and it will provide you a human readable result. Also like this ls /path/to/tmp -lh


1

du -s /log/* /log/.??*|sort -n will show you what takes the most space and you can reuse that same approach for the subdirectories that you find big to drill down your investigation. When there is disk usage that is not accounted for in the file listing, it means that some program is still writing to a file that was removed. The only way to free that space ...


0

I have a similar problem with some configs and I just solved it. Try to get them from: /usr/share/doc/fail2ban/dist-config You can copy jail.conf and fail2ban.conf to /etc/fail2ban There are other many other sources in folders action.d/ and filter.d/ and you can copy then into /etc/fail2ban/ corresponding folder (as you said).


-2

Folks, this is solved for after updated zlib-devel in centos. - Mohammed Azfar


0

Go to this Importing a VM into Amazon EC2 as an Image And dig deeper, you will see this VM Import/Export Prerequisites. Although it doesn't mentioned Ubuntu 16.04 in there, you should file a ticket to AWS to ask them whether they accept 16.04 . You can try to meet ALL the VM creation before submitting the image. There is a Ubuntu 16.04 AMI found here ...


0

I came up with an ugly hack for which I'd rather not get any credit, but hopefully it'll help people get started and do more important things while waiting for a proper answer/fix: auto bond0 iface bond0 inet manual pre-up modprobe bonding mode=4 miimon=100 pre-up ifconfig bond0 up pre-up ip link set eno1 master bond0 pre-up ...


0

You should list your files in /etc/fail2ban: ls -lh /etc/fail2ban There should be a jail.conf and fail2ban.conf along with their respective jail.d , fail2ban.d, filter.d and action.d directories for the .conf files. filter.d and action.d should be populated with several default .conf files for different services. The error is telling you there are no ...


0

The fact is a RAID should be ininfluent here, because RAID works on a lower level than partitions. ntfsundete works only with NTFS partitions. Indeed, there is extundelete and other data recovery tools for ext4, but they won't help in this case, because files weren't deleted, but corrupted. You should restore your data from backup then request an hardware ...



Top 50 recent answers are included