New answers tagged

0

Overall OP's attempt will fail: even if the interface is put in the new network namespace, then the address assignment will be attempted in the initial namespace and fail. Only the manual method should be used, and everything configured with pre-up/up/down. Then it's simply juggling around ifupdown. To avoid de-synchronization between interface state (...


0

lighttpd doesn't support .htaccess files like Apache httpd does. That's where the "light" in "lighttpd" comes into play. This stackoverflow question might help


1

The folders in the respective /sys/class/hwmon/hwmon*/ contain a device/ symlink that points to the device the sensor is registered with. After enumerating the sensors you can retrieve vendor, path or serial from that subfolder (e.g. start with /sys/class/hwmon/hwmon*/device/modalias). Instead of working around the output format of sensors or reading sysfs ...


1

I figured it out and that was due to slow DNS resolving problem of the server. It took around even 5 minutes to send a single email to Gmail. I fixed it by changing the location of the server to another place.


3

From apt-cache depends aide we can see that it's only reccomended: [~]$ apt-cache depends aide aide Conflicts: aide-dynamic Conflicts: aide-xen Recommends: aide-common Suggests: figlet If it said Depends: aide-common it would be a hard requirement. Recommends is only a soft dependency, so you can choose to ignore it. If we from there go on to man ...


1

You stated that the site is working but fails on a deep url so I would assume the config is ok for the moment and check the apache logs at /var/log/apache/error.log (might be /var/log/httpd/error.log) In there there should be a more detailed error which lead you to whats wrong.


1

After hours and hours I was able to solve the problem The MTU of the docker's bridge network has to match to the MTU of host's the network adapter In my case the MTU of eth0 (host) was set to 1450 while MTU of docker0 was set to 1500 You can change the MTU by either editing your docker.service as described in https://stackoverflow.com/questions/35300497/...


0

Change entire home dir is another option: usermod -d /var/www/websites yourusername


0

If someone still arrives to this question, ipmitool works fine on HP servers as well. After installing the tool, get the list of users: $ ipmitool user list 1 ID Name Callin Link Auth IPMI Msg Channel Priv Limit 1 true false false NO ACCESS 2 root true true true ADMINISTRATOR ...


0

This is what helped me in a similar situation: Create a new folder somewhere on your machine, like so (of course, you can name the folder anything you want): $ mkdir ~/log_files Change ownership of this folder to mysql: $ chown mysql: ~/log_files Set the the variable general_log_file to the folder you just created in your mysql console, like so: mysql&...


0

Try ansible.builtin.script out! Runs a local script on a remote node after transferring it.


0

By following the installation guide on openstack official website we were having issues regarding database connectivity along with some missing packages. OpenStack Docs: Install and configure for Ubuntu But following this link the installation was completed without the above errors Ubuntu 20.04 LTS : OpenStack Victoria : Configure Designate Still facing some ...


0

It turns out, the people who provided the infrastructure did put some sort of outbound connection rate limiter that was triggered by incessant reverse DNS requests by a DCM4CHEE docker container. I was assured repeatedly that no such mechanism was actiavted in their firewall and I had not thought about checking outbound DNS connections so I did not notice ...


0

554 5.7.1 Message refused by DNSBL check. bl.nsZones.com Looks like you do have a more specific status message now. The list maintainer mentioned there does have a website that lists criteria on why you might be on their list: Open Relay, Hijacked PCs, Spam Source, Dynamic, ADSL, Cable, no PTR Networks Lookup your IP in that DBL (or use their web form) to ...


4

Precise can be found on old-releases.ubuntu.com, where all the obsolete Ubuntu versions dwell. However, Precise went EoL in 2017, five years ago. There might be a good reason to use that version, but more often than not there isn't any.


0

So the only way forward is to use trusty as precise is now considered an outdated dist. Dont use old-releases.ubuntu.com if you can get away with it try and make a way with the newest repository's.


0

I would monitor several resources of your EC2 instance. By default, you can only see CPU. If you install the CloudWatch Agent, you can collect additional metrics like RAM or Disk, which the hypervisor can't directly guess. Then you can review the metrics around the time your instance fails, to check for some unexpected resource consumption. I've had some ...


0

When your origin server has proper SSL certificate (for example Letsencrypt), you need to use Cloudflare's Full (strict) in the SSL/TLS / Overview page. Your edge certificates need to match the domains used in your server. Also, to properly allow Certbot to validate domains, you need to have either: A) "Always use HTTPS" off in SSL/TLS / Edge ...


0

I had faced this issue in PHPMailer after migrating from php 5.5 to php 5.6. The issue is to do with default TLS version used by openssl. I am not an expert in openssl, but here is the solution that worked for me. The error logged in my php error log was PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\...


0

If this was a physical machine, I would suspect a dying hard drive. If sda is a RAID then it makes sense for it to not support smartctl, and you should check the raid logs next. If this was a physical drive that was suppose to support smartctl, then this message means that the drive controller and/or media is failing so badly that smartctl no longer works ...


0

I am facing the same issue after installing wine, I removed Ubuntu 16.04 and tried  Ubuntu 18.04, Ubuntu 20.04 but no luck, facing the same issue again and again. Then I changed my Hard drive, the issue was fixed.


0

I would not have used a Linux system for a FreeBSD zpool (because this is TrueNAS, a BSD system and has nothing to do with Linux) " I would also like to try and speed up the resilvering if possible " In fact, no, or rather, it depends on the version of zfs you are using. The more modern ones have (by themselves, you don't have to do anything) a ...


2

If they're running docker as root, and they can control the daemon, they're already root. Trying to grant them limited sudo permissions is pointless and you're better off granting them full root access to their machines. In addition to which, it is nearly impossible without a wrapper to grant them permission to execute rm $HOME/* as root securely. I'd just ...


0

I had this issue, I tried many solutions, and came to the ultimate conclusion it was an apparmor issue. I solved this by installing reconfiguring the slapd profile. So first I had to install app-armor profiles apt install apparmor-profiles Secondly, I had to reconfigure the profile. So you will either need two ssh sessions open or do this in a screen ...


0

So, if your SFTP server is like mine you have to generate the key pair in Linux: ssh-keygen -t rsa and then convert the PUB key to PEM format with this: ssh-keygen -e -f id_rsa.pub > id_rsa_pem.pub and then import the PEM key on the SFTP server and attach to the account.


0

To allow remote connections, you must edit the MongoDB configuration file — /etc/mongod.conf — to additionally bind MongoDB to your machine's publicly-routable IP address. This way, your MongoDB installation will be able to listen to connections made to your MongoDB server from remote machines. # network interfaces net: port: 27017 bindIp: 127.0.0.1,...


0

I just used: /etc/init.d/postgresql reload


-2

The official comment in /etc/resolv.conf clearly stated that the file shouldn't be edit. In newer Ubuntu server, you should check the file in /etc/netplan. Check the network gateway configuration in there, especially if you don't use dhcp.


0

I finally noticed something that helped solve this. When I examined the output of ps aux | grep nginx after starting with systemctl, I saw something like the following... $ ps aux | grep nginx root 30369 0.0 0.0 142168 2004 ? Ss 21:31 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; www-data 30370 0.0 0.1 144464 ...


0

If you're using syslog or syslog-ng, you need to make sure something like this is part of the shared postrotate scripts: sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript syslog writes files to inodes, not file names, so if you don't bounce syslog, it continues to write to the same inode (...


0

My case was not an IP address issue, but this post is the first that shows up when searching nginx serving the wrong root. My nginx was configured with 3 different domain names with 3 different server blocks each with a different root. 1 of the domain names was serving from the wrong root. In my case I discovered that one of my server blocks contained these ...


0

When I tried to run my server config I found that it was unable to reassign same port thus I reboot server and got fixed the issue. ubuntu@VPNSERVER:/etc/openvpn$ sudo openvpn server.conf Fri May 28 18:09:18 2021 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 27 2021 Fri May 28 18:09:18 2021 ...


2

With bash, you can do this: df -h | { read -r line; echo "$line"; sort -k 6,6; } That reads (consumes) and prints the first (header) line, then sort will consume all the rest.


0

Multiple files are included in alphabetical order. Shell-style (fnmatch()) wildcard characters can be used in the filename or directory parts of the path to include several files at once, in alphabetical order.


0

#Below version is for python 2 only sudo apt remove python-pip -y #Python3 version of pip sudo apt install -y python3-pip #Setting as default version sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1


0

Setup the new disk the way you want it (with taid and one missing disk), then transfer everything to that new disk. Now add the original disk to the raid and let it mirror.


1

Save the "Last-Modified" header contents from the last test.zip you downloaded, and add a "If-Modified-Since" header to your next wget request using the date string you received. The server will answer with a 304 if there's no test.zip more recent. As an alternative, you could leave test.zip in the current directory, then using wget with ...


0

You might take a look at this stackoverflow question. In short, you've got two pips that aren't playing nicely together. If you uninstall one, you might be able to manage with the other. There are too many viable solutions in the answers to justify writing them out here. Maybe just sudo apt-get remove pip3 and trying to find your existing pip. Personally, I'...


0

The mysqld service runs as the mysql user by default as is specified in the service file. There is no reason to run it as root as doing so wouldn't provide anything that isn't there with it running as the mysql user. PostgreSQL and MongoDB also run as their respective users and not as root. There's no reason to fix what isn't broken.


1

as A.B stated, you have to resize the partition first. Since this is the last partition on the disk, it can be done easily. I tend to prefer parted over fdisk in these situations. parted /dev/sde resizepart 3 100% And here is an actual dialog I had (just changed the diskname and partition number to match yours) while resizing from 44To to 50To. Note that ...


0

If ssh-agent is not running by default, the packager and system administrator have not set it up for you. As this is a matter of personal preference and important to security, not enabled by default makes sense to me. How tos exist of how to set it up in many environments. ssh-agent usage of printing out shell variables to evaluate is not typical of most ...


0

Implement IPv6. Put A in an external facing /64 net. Allow in firewall as desired. Any IPv6 host on the internet can access A directly. IPv4 is more complicated. It is possible to get client IP address via layer 7 tricks, HTTD Forwarded header, or the PROXY protocol. But you still would need some method to traverse the NAT from the proxy at B to the backend ...


0

I haven't fully investigated the issue here, but see no one has answered in 3 days, so offering an observation: I would expect Apache to communicate to php via the specific user sock. Specifically, expect this line: SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost" to be: SetHandler "proxy:unix:/var/lib/dpkg/alternatives/...


0

Not sure if this was the best approach but was finally able to get the server joined to the domain. haproxy.cfg frontend DC bind *:88 bind *:135 bind *:138 bind *:139 bind *:389 bind *:464 bind *:636 bind *:1389 bind *:3268 bind *:3269 mode tcp option tcplog default_backend DC_Backend backend DC_Backend ...


0

After installing this missing package the issue was finally resolved pip install python-zunclient Hope this helps someone!


0

It sounds like your windows firewall may be blocking the traffic to Ubuntu VM. This shouldn't happen, but I have seen this reported on some help sites. So maybe you have to set the windows firewall to 'allow'. Or, perhaps you need to configure 'host-only' adapter on VirtualBox. There seem to be a whole slew of fixes on that page. Here is another page ...


0

I think I found the perfect tool - frp. Seems to do exactly what I wanted.


1

If using systemd, there is a configuration item explicitly for this. http://manpages.ubuntu.com/manpages/xenial/en/man5/systemd.exec.5.html [Service] RuntimeDirectory=sphinx If set, one or more directories by the specified names will be created below /run, and will be owned by the user and group specified in User= and Group=


0

If you use ssh-agent an attacker can get the unencrypted key from memory. See https://www.netspi.com/blog/technical/network-penetration-testing/stealing-unencrypted-ssh-agent-keys-from-memory/


0

Sounds like a DNS issue. Did you also change the A record in DNS settings for that domain to point to the new server's IP. If you have then maybe changes are not propagated yet. EDIT: Where you change DNS records depends on where the domain's nameservers are (it's usually where the domain is registered). Chances are high that it's on digital ocean as well. ...


Top 50 recent answers are included