Recent Questions - Server Fault |
- site2site wireguard with docker : routing problems
- OpenVidu/Kurento: Unable to create media pipeline for session
- finding which tier 1 or isp to connect to to reduce latency
- How do I configure routing for non-knative service in a Knative & Istio installed k8 cluster?
- Double check if an SSH account is SFTP-only and chrooted
- nginx: Use of proxy_set_header results in failed upstream connections
- Nginx location matching with regex year/month/day/*
- Amavis and Spamassassin error with '.pre' files (using iRedMail)
- Filesystem to protect the storage medium
- Kubernetes network polices are not enforced unless the network-plugin daemon-sets are restarted. Why?
- Cannot ping succesfully from PC to another PC
- cisco sg550X support m-lag and
- Strongswan to Cisco ASA with multiple right subnet
- Virtnetwork Cannot Start Virtualizor KVM
- Windows 10 arp cache getting stuck after failed attempts when target machines are offline
- How to extract specific emails from Exchange Online using PowerShell and move or sort them?
- logoff sessions except console
- Ubuntu 14.04 can only access outside networks if using DHCP, not static IPs
- Raid 10, Logical device are missing
- nginx sending incomplete response
- On a system with 64GB mem the Linux Buffer run full while copying with dd to dev null and io stops till manual drop_caches
- Connection refused HTTPS on Apache
- installed post-installation script returned error exit status 1
- Running su with -c gives unrecognized command error
- What would cause a PHP app to segfault intermittently under load?
- Publishing a web app listening on two different ports with TMG
- iptables forwarding a port between 2 networks with 2 ethernet cards
- SSH connection gives no prompt, unresponsive
- asterisk system function not working in dialplan
- IIS Admin Service stuck at "Starting" status
site2site wireguard with docker : routing problems Posted: 13 Jun 2021 02:08 AM PDT Disclaimer: repost from stackoverflow: https://stackoverflow.com/questions/67917278/site2site-wireguard-with-docker-routing-problems I am trying to have two containers, running on two RPI, act as a site-to-site VPN between Network 1 and Network 2. With the setup below, I am able to ping from within the container each other network:
But if I try to ping 192.168.1.1 from the System1 host (192.168.10.100) I have errors (see below image to visualize what I am trying to do). I understand I have to add a static route on system1 host (192.168.10.100) to direct the traffic for 192.168.1.0/24 through the wireguard container (172.17.0.5), thus I run: but the ping to 192.168.1.1 still fails. by running tcpdump on the container 2 I see that some packets are indeed reaching the container : so I guess it is not a routing problem on system 1. Can anyone tell me how to diagnose this further?
System 1 - wg0.conf System 2 - wg0.conf | |||||||||||||||
OpenVidu/Kurento: Unable to create media pipeline for session Posted: 13 Jun 2021 12:22 AM PDT Our OV 2.17.0 on premises (Ubuntu 18 server) works well for a while (a day or two), then stop working. I can create a new session, etc using REST, but any attempt to join newly created session failed with the server event "unable to create media pipeline for session XXX". Restart the server helps. Then it works for another 2 days and everything repeats. I also see that all old sessions stay in memory (I have 10-11 sessions after the crash), although it's obvious that at that moment no connections were made to them for hours. I expected based on the another thread in this forum, that old sessions should be auto-destroyed. Not sure if that connected to the issue I'm facing. Please find the logs of both Kurento and OpenVidu here. Logs were recorded after the moment when server was failed for a while, before the restart. | |||||||||||||||
finding which tier 1 or isp to connect to to reduce latency Posted: 12 Jun 2021 10:40 PM PDT I am looking to connect to 4 location p,q,r,s. I a ntrying to find the set of locations where I should connect to (isp or pop) to minimize latency . Is it lower latency to connect to a tier 1 network which would connect to 4 ip p,p,r,s ? Is there a lower latency path to connect p,q,r,s through a tier 2 network ? how do I find this? | |||||||||||||||
How do I configure routing for non-knative service in a Knative & Istio installed k8 cluster? Posted: 12 Jun 2021 09:23 PM PDT I have a Knative installed with Istio as networking layer (without injection) The kubernetes cluster is using Istio ingress gateway as default ingress. Most Knative service's routing are managed automatically by Knative & Istio. However I am trying to run a nifi native kubernetes services on the same cluster, how do I setup the ingress configuration on Istio ingress gateway for the services. Any reference to share? Or is it possible to setup 2 ingress (1 Istio, 1 nginx) in the cluster, and have the native k8 service uses the nginx ingress? I'm doing that cause istio is quite new to me and Knative abstracted the Istio networking element when deploying knative services but not the native k8 services. Hope my question makes sense. Thank you. | |||||||||||||||
Double check if an SSH account is SFTP-only and chrooted Posted: 12 Jun 2021 08:07 PM PDT Note that this question is not about how to do chroot or make an account SFTP only. The question is about whether there are specific ways for a sysadmin to check if a chrooted and SFTP-only account is correctly set. Usually I do chroot or SFTP-only settings following some online resources such as this one: https://wiki.archlinux.org/title/SFTP_chroot. But the issue is, unlike simply changing an option from No to Yes in a configuration file, I need to complete multiple steps to finish the chroot or SFTP-only settings. Since this is such a fundamentally important security setting, I am always thinking: Is my configuration correct? Do I miss something minor but critical? Currently what I am doing to verify the correctness is very simple:
Are these two things the only things a sysadmin needs to do to be 100% sure that the settings are correct? | |||||||||||||||
nginx: Use of proxy_set_header results in failed upstream connections Posted: 12 Jun 2021 08:02 PM PDT I have a very basic nginx reverse proxy setup for openstreetmaps: There is a line to set User-Agent header because OSM requires it and I need compatibility with a client that doesn't send a user agent string. However, when nginx sets this header, approximately 10% of requests fail (nginx returns 502 to client), and my nginx error log fills up with this: Without the proxy_set_header, everything is fine. The requests in this case are all being made from chrome, so the User-Agent as seen by the OSM servers should be the same in both cases. nginx version is 1.19.10 (windows). What am I doing wrong? | |||||||||||||||
Nginx location matching with regex year/month/day/* Posted: 13 Jun 2021 12:03 AM PDT I have some old url pattern to redirect to new location in nginx. A typical clean url looks like Im roughly trying to match number of digit in each block like: Where exactly Im going wrong please.. | |||||||||||||||
Amavis and Spamassassin error with '.pre' files (using iRedMail) Posted: 12 Jun 2021 11:30 PM PDT I installed iRedMail which would install amavis and spamassassin. When I test sending and receiving email, I have an error in the
when I run this line:
This is also the output of
I looked up in the If I disbale the amavis using:
and then restarting the service: | |||||||||||||||
Filesystem to protect the storage medium Posted: 12 Jun 2021 07:15 PM PDT I'm working on an embedded system which will act as a server, the problem is the environment where it will run is so aggressive and it will suffer abrupt power interruptions. So I'm planning to mount the root filesystem as fake-writable using OverlayFS. The idea comes from RaspberryPi, where the devs have a mechanism to enable/disable the mounting of rootfs as OverlayFS (as you can see it can be enabled by using raspi-config script) My question is ... would this help to protect the physical device from corruption? Or even the filesystem itself? My idea is to extend the life of the physical device and I think I can do this avoiding write operations, but the system cannot be purely read-only because some programs need to see the FS as writable, that's why I'm thinking in OverlayFS. What do you think? Do you have some other idea on how to tackle this problem? Thank you all. PS: The system I have to use is Debian Buster. | |||||||||||||||
Posted: 13 Jun 2021 02:42 AM PDT I have only one network policy in my cluster in prod namespace that allows only ingress rules. The network plugin is weave-net. No rules are configured for Egress so I am expecting egress traffic will be blocked. But until I restart the network daemon-set pods the rule has no effect. I know by best practices I should have default ingress and egress rules. But I want to understand the reason of this behavior. Is this step always required to restart the network-plugin pods? 1. Network Policy Definition 2. Checking the netpol object 3. Testing egress traffic to nginx server (This is unexpected to my understanding) Note: 10.39.0.5 is the IP of the nginx server running in 'test' namespace 4. Restarted the weave-net pods 5. Retesting egress connection to same nginx server (expected) Note: 10.39.0.5 is the IP of the nginx server running in 'test' namespace | |||||||||||||||
Cannot ping succesfully from PC to another PC Posted: 13 Jun 2021 02:21 AM PDT here is the image of the topologyhttps://mega.nz/file/xWpXmC5K#fchoMl5TjGyfIJTTpxMgiOqUdw5qERxtGAUj0XTg2HI Here is my file of my cisco packet tracer project where I configured routers, PCs Ip addresses, masks, exit gateways but I still can't ping from PC to the other PC where is the problem? When I tried it I succesfully pinged to the first router but when I tried to ping to the second router it was failed. here is the image of the topology | |||||||||||||||
cisco sg550X support m-lag and Posted: 13 Jun 2021 02:29 AM PDT Please tell me
I want to buy sg550X, but dont know function support. can look at Cisco C9300-24UX-E(M-LAG, StackWise-480)? | |||||||||||||||
Strongswan to Cisco ASA with multiple right subnet Posted: 12 Jun 2021 08:03 PM PDT I've got an ikev2 tunnel up, initiated on the left from an ubuntu box with strongswan going to a cisco asa. Using ASA to ASA multiple networks work but I can not get it with strongswan. after connecting: ip xfm policy The ASA after successful connection: And a different tunnel between 2 ASAs: I have also tried putting additional right subnets on their own, such as follows: after connection: and the ip xfrm policy: When using the above method, I can access 192.168.2.0 but no longer 192.168.1.0 I've tried generating traffic to the subnets without success. Can anyone help determine why I can only access ONE remote subnet on the right side? | |||||||||||||||
Virtnetwork Cannot Start Virtualizor KVM Posted: 13 Jun 2021 12:05 AM PDT I have a problem with my virtnetwork. I have set the correct network interface on master setting Virtualizor but it said
when I try to run Does anyone can help me? Here is my network interface "ifcfg-ens9" Looking forward for the solution. I don't know whats wrong the setting above. | |||||||||||||||
Windows 10 arp cache getting stuck after failed attempts when target machines are offline Posted: 12 Jun 2021 09:06 PM PDT After upgrading our development team to Windows 10 from 7, we are experiencing an issue with the ARP cache where a machine has the correct IP-MAC mapping cached, but the type is invalid due to failed connections during a power cycling of the target machine. On Windows 10, but not Windows 7, the target machine cannot be connected to until the ARP cache is cleared. I can have reproduce the issue as follows, where 10.10.10.10 is the correct IP address and 01:23:45:67:89:AB is the correct MAC address of the target machine in question:
Ping is replying with "Request timed out" and the ARP cache contains, as expected
So far so good.
How do I prevent the ARP cache from getting into this state, given that the target machine in the development environment does tend to require power cycling during the development process? Manually manipulating the ARP cache is not sustainable, and nobody reported this issue before moving to Windows 10. Windows 7 functions as one would expect, which is to say, what we desire: The ARP cache goes through the same stages as above. Ping starts by replying "Destination host unreachable" before the target is powered on, as opposed to Windows 10's "Request timed out" and returns to "Destination host unreachable" continually after it is powered off, as opposed to Windows 10 only reporting that once. When the machine is powered on, the connection is immediately established and the ARP cache returns to without any need to clear any entries first. The developers' specific setup is a Windows workstation connected to several Beaglebone Blacks (small ARM based embedded boards running Linux) through a simple unmanaged 8 port gigabit switch. IP addresses are assigned by reserved DHCP, and addresses are picked up successfully each time the Beaglebones are powered on. When one Windows 10 machine has the invalid ARP entry that needs deleting, other machines without the Beaglebone in the ARP cache can successfully connect to the target machine. | |||||||||||||||
How to extract specific emails from Exchange Online using PowerShell and move or sort them? Posted: 13 Jun 2021 03:14 AM PDT In Exchange Online (Office 365), I need to extract emails, from particular sending addresses, from a handful of user mailboxes, to another user mailbox folder. I've been reading about the | |||||||||||||||
logoff sessions except console Posted: 13 Jun 2021 12:05 AM PDT There is an application in a multi-user environment that can only be open in one session on a workstation. The users move around frequently from PC to PC, leaving the application open, and the workstation locked. Disabling user switching is determinant to productivity. I need the system to force logoff any user besides the Consul session. The session ID is a variable that cannot be predicted. This is what I got so far... The goal is to put this into a .bat to run at user logon so whoever is ACTUALLY using the computer can use the applicaton. Dataloss of the inactive session is no concern. Ideally, rdp-tcp and services would stay active sessions as well. | |||||||||||||||
Ubuntu 14.04 can only access outside networks if using DHCP, not static IPs Posted: 12 Jun 2021 10:04 PM PDT I am configuring some server on Ubuntu Server 14.04 (no GUI) and I am have the following configuration: Unfortunately, when using this configuration I can only access the LAN, any attempt to ping or access anything outside of our network fails. If I use DHCP and just take what ever IP address the router gives me, I can access internal and external networks. For testing sake I've been attempting to use "ping google.com" to test outside connectivity. One other note, in the router if I bind the IP to the MAC Address it appears to work just fine, but I don't want these rules to live in my router, I'd much rather they be configured on the server. | |||||||||||||||
Raid 10, Logical device are missing Posted: 12 Jun 2021 11:05 PM PDT I have a problem with a RAID 10, I have 4 disks on raid. A disc has just been changed (0,3). But I can not rebuild the array. Logical device are setted as "Missing". All commands return to me the following error /usr/StorMan# /usr/StorMan/arcconf setstate 1 device 0 3 rdyControllers found: 1 The device specified does not exist. Command aborted. /usr/StorMan# /usr/StorMan/arcconf getconfig 1 Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 2405 Controller Serial Number : 2D2711FE327 Physical Slot : 16 Temperature : 68 C/ 154 F (Normal) Installed memory : 128 MB Copyback : Disabled Background consistency check : Disabled Automatic Failover : Enabled Global task priority : High Performance Mode : Default/Dynamic Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 1/0/1 SSDs assigned to MaxIQ Cache pool : 0 Maximum SSDs allowed in MaxIQ Cache pool : 8 MaxIQ Read Cache Pool Size : 0.000 GB MaxIQ cache fetch rate : 0 MaxIQ Cache Read, Write Balance Factor : 3,1 NCQ status : Enabled Statistics data collection mode : Enabled -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (18937) Firmware : 5.2-0 (18937) Driver : 1.1-7 (28000) Boot Flash : 5.2-0 (18937) ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical device number 0 Logical device name : RAID level : 10 Status of logical device : Degraded Size : 3809270 MB Stripe-unit size : 256 KB Read-cache mode : Enabled MaxIQ preferred cache setting : Enabled MaxIQ cache setting : Disabled Write-cache mode : Enabled (write-back) Write-cache setting : Enabled (write-back) Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : Yes Power settings : Disabled -------------------------------------------------------- Logical device segment information -------------------------------------------------------- Group 0, Segment 0 : Present (0,1) W1F20KQ9 Group 0, Segment 1 : Present (0,0) Z34063KS Group 1, Segment 0 : Present (0,2) W1E2PW1C Group 1, Segment 1 : Missing ---------------------------------------------------------------------- Physical Device information ---------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : Z34063KS Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled Device #1 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,1(1:0) Reported Location : Connector 0, Device 1 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : W1F20KQ9 Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled Device #2 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,2(2:0) Reported Location : Connector 0, Device 2 Vendor : Model : ST2000DM001-1CH1 Firmware : CC24 Serial number : W1E2PW1C Size : 1907729 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off,Reduced rpm SSD : No MaxIQ Cache Capable : No MaxIQ Cache Assigned : No NCQ status : Enabled How can I start the rebuilding of the array? | |||||||||||||||
nginx sending incomplete response Posted: 12 Jun 2021 11:05 PM PDT Without restart or modification of config, nginx is sending incomplete responses sometimes. Today, I could reproduce well, but still don't know what's wrong or how to fix. I put a 5MB file to the site's location/alias path that nginx is configured to use. There is no php5-fpm, modules etc. only nginx for serving static files. When testing, there is no other user accessing the server, no http access except my test requests. The download fails and Google Chrome shows in traffic log, that there were 2 requests, although I put the http url for the download only ONCE and there was no redirect or other 2nd request initiated by myself. Same issue at server's access.log, too: TEST1
You can see that theere is always one request with response size=1 and another one with mixed size, but >1. However, the result in the browser is always the same. => broken response, failed download. For making sure, it's not related to http status/response 206, I add TEST2
Same result in the browser. Always failed download/request and the size in access.log is always different, like random chunk or response size. server status: iowait, RAM, cpu are almost idle. There is no high load or limitation. Is this a known issue or bug or do You know how to fix this? | |||||||||||||||
Posted: 13 Jun 2021 01:08 AM PDT I am running a server with linux software raid 10. It is a dual CPU system with 64GB Ram. 2x16GB dimms related to each of the CPUs. I want to use dd to backup kvm virtual machines and run into a serious io problem. First I thought is related to the raid but it's a problem of the linux memory management. Here is an example:
Does anybody have a solution or a configuration hint? Here is also my sysctl but all values are centos defaults: http://i.stack.imgur.com/ZQBNG.jpg Edit1I make a other test and make a dd to disk instead /dev/null. This time also in one command without pv. So its only one process.
Edit2For the local dd I can workaround with the parameter iflag=direct and oflag=direct. But this is no universal solution because there is also other file access like copy files to the local samba shares from a vm and there I cant use such parameters. There must be a tweak of the system file cache rules, because it cant be normal that you cant copy large files without such problems. | |||||||||||||||
Connection refused HTTPS on Apache Posted: 12 Jun 2021 07:39 PM PDT I'm currently trying out HTTPS on one of my sites, and I got a trial certificate from a trusted CA. I've gone through the following checklist:
However, when I try to browse to https://my-site.com (obviouslly not the real domain), I get a 'Connection Refused' error. This is what Apache logs: Any ideas why this is happening? Configuration files: ports.conf virtualhost config | |||||||||||||||
installed post-installation script returned error exit status 1 Posted: 13 Jun 2021 02:08 AM PDT I found many complains with same error but for different packages. However, i couldn't understand essence of this error and how to fix it. Pls. help if you have any clue about it. It appeared first when i tried to install rsyslog. | |||||||||||||||
Running su with -c gives unrecognized command error Posted: 12 Jun 2021 10:04 PM PDT I am trying to run a command as another user in Linux. Here is what I run: However, this gives me this error: | |||||||||||||||
What would cause a PHP app to segfault intermittently under load? Posted: 13 Jun 2021 03:04 AM PDT Posted this on stackoverflow but it seems more relevant over here... I'm doing some load testing (using jMeter) on a PHP app (it's a symfony app, if that matters). I've tested it under both apache/mod_php and nginx/php_fpm setups, and with multiple versions of php, apache, nginx, and linux and the logs are full of errors like these. I'm struggling to work out why these segfaults are occurring:
When I generate a backtrace from the core dumps I get
So perhaps it's something to do with parsing? I know little about php internals however, so am uncertain. What might be causing this? | |||||||||||||||
Publishing a web app listening on two different ports with TMG Posted: 12 Jun 2021 08:03 PM PDT We have an internal web app built on some custom Java stuff. The app listens on port 8080, but also uses IIS on port 80 to get user authentication. Opening the site in a browser produces HTTP GETs to both ports/urls. Is a case like this possible to publish with TMG? | |||||||||||||||
iptables forwarding a port between 2 networks with 2 ethernet cards Posted: 13 Jun 2021 03:04 AM PDT I have a server handling several services. For the purposes of this questions, suppose one of them is mail. If mail goes down, I want to forward it to another host. My network looks like this: So... Incoming requests are coming to the 192.168.1.5 address on eth1 on box 1. Instead of stopping there, I want to forward them over eth0 to box 2 and let that handle it. I've tried the following iptables rules: ... To no avail. Using tcpdump, I can see the request come in on the 2nd box, but nothing happens on the requesting computer. Please help. Thanks! | |||||||||||||||
SSH connection gives no prompt, unresponsive Posted: 13 Jun 2021 02:08 AM PDT I'm ssh'ing from my OSX laptop to an OSX server. It worked a couple of days ago. Now, when I try and connect, no text is output. My session (with -v option) looks like: ... Where _ is the cursor. So it looks to me like I've connected, but something is wrong with the shell - it hasn't started up, or something. Could I have broken my .bash_profile? Are there other common causes of this behaviour? I don't have root access on this box, and I'd like to be able to give the sysadmins specific things to check for if possible. EDIT: It's actually an OSX server, not RHEL. (Confusion as it hosts a RHEL VM which I also often connect to.) I have been sent some server logs: Is the Kerberos 5 error relevant? | |||||||||||||||
asterisk system function not working in dialplan Posted: 13 Jun 2021 01:08 AM PDT After a call hangs up, I've setup several lines in my dialplan to execute system commands. For instance, I have this in my dialplan: In my logs, all I'm seeing is one System command running: The rest are not running and the dialplan seems to just stop. I don't see any additional errors occuring. WTF is going on? I'm running Asterisk 1.8.5. | |||||||||||||||
IIS Admin Service stuck at "Starting" status Posted: 12 Jun 2021 09:06 PM PDT I'm having some trouble restarting IIS, and I took a look and see that the IIS Admin Service is in the "Starting" status. I'm not able to Start/Stop it manually. All of the context menu options for this are disabled. Any ideas? My system settings are: IIS7 on Windows 7 I have the following ISAPI/CGI Restrictions: ASP.NET v2.0.50727 x32/x64 ASP.NET v4.0.30319 x32/x64 |
You are subscribed to email updates from Recent Questions - Server Fault. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment