Recent Questions - Server Fault |
- Run commands that run in a shell as a script
- How to automatically turn off write cache after the kernel "hard resetting link"
- Generating Message-ID for mails sent by crond
- How to give Wireguard client access to Internet only
- I can't view my new SSD on my Xenserver, What happen?
- Tomcat application (ERDDAP server) behind a proxy redirection issues
- DNS problems on pool of preemptible-only nodes on GKE: endpoints of kube-dns service keeps failed pods
- ERROR FirebaseError: Quota exceeded with recaptcha authentication for both developement and production
- What does "SSL alert number 20" mean?
- Is possible chnage meta-da of xsf system to another disk (such SSD)
- cannot connect to gcp instance Remote side unexpectedly closed network connection
- Is rejecting email based on IP address in chain allowed?
- Is it necessary to set a different ttl before change a Route53 DNS record value?
- How to enter "special" characters in the password file?
- ssh and sshfs connection through nginx reverse proxy problems
- .htaccess mod_rewrite not catching all RewriteRules
- Scaling Elasticsearch down to single-node
- mount: mounting /dev on /root/dev failed: No such file or directory after converting lxc to virtual machine
- Limited Access to Domain Controller for Active Directory Administration
- Spring Boot Apache SSL Reverse Proxy
- Authentication is required to manage system services or units.
- Can't connect to Azure DocumentDB using MongoDB Compass or MongoVUE
- ceph osd down and rgw Initialization timeout, failed to initialize after reboot
- IIS application request routing changes 206 partial content to 200
- How to define another source IP in snmp traps
- Installing SecAst on AsteriskNOW with CentOS
- Varnish installer cannot find PCRE when it is already installed
- Migrating WebLogic 10.3.0 to new host. Slow managed server startup times
- OpenVPN host cannot access client LAN
Run commands that run in a shell as a script Posted: 25 Feb 2022 02:04 AM PST Running the following commands in a shell runs without issues: However, putting this in a Errors:
Some were broken up. It seems something related to escaping. For some reason adding a space at the end of the lines makes it sort of work but still not without errors. Googling on the errors shows some hits about using |
How to automatically turn off write cache after the kernel "hard resetting link" Posted: 25 Feb 2022 01:50 AM PST I turned off write caching on an SATA drive using Now, sometimes, the kernel decides, it's a good idea to hard reset an SATA link in order to get communication to a drive back up and running (maybe it is a good idea, won't judge it here). However, if that happens, the drive's write cache will be re-enabled. Upon plugging in, I can catch an udev event to automatically run But I can't find any information about how to catch this hard resetting link events to fire up |
Generating Message-ID for mails sent by crond Posted: 25 Feb 2022 01:31 AM PST On my NixOS installation I have Vixie cron installed, that runs regular jobs. The output for the scripts that are run is sent by e-mail using a ssmtp on the same host, that forwards the mails to my standard mail server (Postfix with rspamd). My problem now is that most of these mails are stored in my Spam folder by the mail server. I checked the classification that is done by the spam filter and saw that one big 'problem' is that the messages sent by cron don't include a Message-ID header. I searched for options to let crond generate message-ids or ssmtp to inject message-ids if they are not present yet (like other MSA can do). For neither of these I found a way to implement that. What could I do to handle that better and to make sure these administrative mails are not classified as Spam? |
How to give Wireguard client access to Internet only Posted: 25 Feb 2022 12:54 AM PST I have a couple of WireGuard interfaces set up and can per peer decide to give access to server only or server and LAN/Internet. What I want to do for a specific peer is to give access to the Internet only and not to the server and LAN. I think that I can't do this on tunnel/interface level but have to do it with iptables in the peer config - right? How would I go about doing this? I have tried to find information regarding this, but I'm 4 country borders away from the server and terrified to configure something wrong :-$ The best way would probably be to take the whole iptables and routing course, but trying to find something quicker than that. All my Internet searches miss my problem because most people have problems with clients not being able to reach the Internet through the tunnel... |
I can't view my new SSD on my Xenserver, What happen? Posted: 25 Feb 2022 12:53 AM PST I have a Server HP Gen9 with Xenserver Xencenter 7.0, and i installed the new ssd (samsung evo with 1tb) but my disk does not appear in tab fdisk -l. What happend? I want to mount the disk and install a SR... Thanks, A grettings |
Tomcat application (ERDDAP server) behind a proxy redirection issues Posted: 25 Feb 2022 12:38 AM PST I have an ERDDAP instance running on a Tomcat server behind a NGINX reverse proxy. The environment is completely on Kubernetes, the RP is an NGINX ingress-controller that forwards the request on port 443 to the service instance on port 8080 associated to the container where Tomcat (and ERDDAP instance) runs. I found this tutorial (https://www.n0r1sk.com/post/nginx-reverse-proxy-with-ssl-offloading-and-apache-tomcat-backends/) that shows how to configure server.xml for a Tomcat behind a reverse proxy, so the HTTP Connector for my Tomcat server is: With this configuration, when I request the URL https://erddap.ve.ismar.cnr.it/erddap: I get the following response: and everything works fine with proxy forwarding and backend Tomcat reponse. But if I add in Tomcat Connector configuration the parameter scheme="https" as suggested in the tutorial mentioned above: the same request fails and I get the following response from Tomcat: You can notice the "Location:" header is completely wrong with "(not specified)" prefix and causes the client to make the subsequent request for the URL https://erddap.ve.ismar.cnr.it/erddap/(not%20specified)/erddap/index.html (and of course the request fails). Can anyone of you help me to spot where could be the problem in my Tomcat configuration? Why the behaviour is so different just adding the scheme="https" parameter in server.xml? Many thanks in advance, Pierpaolo |
Posted: 25 Feb 2022 02:07 AM PST I do have a GKE k8s cluster (k8s 1.21) that consists of preemptible nodes only, which includes critical services like kube-dns. It's a dev machine which can tolerate some broken minutes a day. Every time a node gets shut down which hosts a kube-dns pod, I run into DNS resolution problems that persist until I delete the failed pod (in 1.21, pods stay "Status: Failed" / "Reason: Shutdown" until manually deleted). While I do expect some problems on preemptible nodes while they are being recycled, I would expect this to self-repair after some minutes. The underlying reason for the persistent problems seems to be that the failed pod does not get removed from the k8s Status of the pods via IP of the failed pod is 192.168.144.2 - and it still is listed as one of the endpoints of the service:
I know others worked around these issues by Scheduling kube-dns to other pods, but I would rather want to make this self-healing instead, as node failures can still happen on non-preemptible nodes, they are just less likely. My questions:
It seems that kube-dns in the default deployment in GKE does not have a readiness probe attached to dnsmasq (port 53), which is targeted in the kube-dns service, and that having that could solve the issue - but I suspect it's not there for a reason that I don't yet understand. |
Posted: 24 Feb 2022 11:58 PM PST We are using recaptcha of firebase for Authentication with ionic4. So after 1 month of firebase's project registration. Firebase showing "You have gone over your daily usage limits" on firebase Database and giving message("ERROR FirebaseError: Quota exceeded") with Authentication. And for production build firebase not allow more then 4 request for phone-Authentication with recaptcha. Please help ot use ASAP. |
What does "SSL alert number 20" mean? Posted: 24 Feb 2022 11:45 PM PST I have a NodeJS server running for 2 years. I use this error handler for JSON: Today, for the first time, I saw this error in the logs: What does it mean, and what can I do to fix it? |
Is possible chnage meta-da of xsf system to another disk (such SSD) Posted: 24 Feb 2022 11:33 PM PST I've a system in VPS with a big XFS. Now I have the possibility to add an SSD device to that VPS. Is it possible to change the meta-data destination from partition formatted as SSD to SSD partition to improve logging? All the information I see is to do it before starting to use it, not when it is in use, and it scares me because it is a storage vps that already has 20TB of data. Now I've this information I like change meta-data to a SSD device |
cannot connect to gcp instance Remote side unexpectedly closed network connection Posted: 24 Feb 2022 10:53 PM PST when trying to connect to gcp VM instance via ssh key the error that i am getting is
when i tried connecting through ssh inside gcp instance i am getting the following error
the commands that I have done before the issue is can changing the permission cause this issue ? when I changed the permission to 755 it worked ! |
Is rejecting email based on IP address in chain allowed? Posted: 25 Feb 2022 02:42 AM PST A major ISP is rejecting email (bouncing with error 550) on the basis that an IP address in the transmission chain is on their 'blocklist'. Are they allowed to do this and still be IETF compliant? All I can find is RFC 2821:
This indicates that systems must not reject email, though in a different scenario. Can someone enlighten us? |
Is it necessary to set a different ttl before change a Route53 DNS record value? Posted: 25 Feb 2022 12:48 AM PST The first time create the Route53 DNS record with a load balancer origin DNS name with ttl 1 day. After some days, we want to change the value to another load balancer origin DNS name. Do we need to set the target DNS record's ttl to a short time such as 1 hour first? Then after 1 hour change the DNS value. Does it can refresh its DNS cache and update to new record perfectly? |
How to enter "special" characters in the password file? Posted: 24 Feb 2022 10:34 PM PST What is the range of characters allowed in the My password has the PS: The credentials are for Exim as a client to a "smarthost". |
ssh and sshfs connection through nginx reverse proxy problems Posted: 25 Feb 2022 01:00 AM PST I have a small annoying problem with ssh and sshfs connection to a server that is behind an nginx reverse proxy. I use sshfs remotely to mount some folders from the server and ssh to connect to it and both get disconnected when idle. I solved the ssh connection by adding the I have used sshfs in the past (without the reverse proxy) and adding those two options to the fstab line and all was well, except in this case where it doesn't work. The folders are mounted, I can use them, but if they remain idle for a minute they disconnect. I cannot figure this out! Is there a way to solve this? Is there some setting in the nginx that can also solve the ssh connection problem without those options (I have some people connecting to the server too that are not too technical and they complain about disconnects!) Here is the ssh portion of the reverse proxy: EDIT: I forgot to mention that I have already set this in |
.htaccess mod_rewrite not catching all RewriteRules Posted: 25 Feb 2022 01:33 AM PST There is a PHP application with a PHP router as entry point for all the requests placed inside index.php. I am trying to write a .htaccess file to forward every request to index.php except for API requests and for design resources. So I am trying to obtain the following behavior:
Given that Using the code above, it seems that accessing
What am I doing wrong here? |
Scaling Elasticsearch down to single-node Posted: 24 Feb 2022 11:26 PM PST Is it possible to scale Elasticsearch from multiple nodes down to one node? I have a 3-node cluster that is way overkill for the amount of data being logged. To scale it down, I set "cluster.routing.allocation.exclude._ip" to the IP nodes 2 and 3 to get all the data on to one node. I stopped Elasticsearch on node 3, and the cluster remained healthy. In preparation to turn off the second node, I adjusted the cluster settings to require a quorum of 1 and make sure it was persistent instead of transient. Then I stopped Elasticsearch on node 2. Finally I went on to node 1 and set discovery.type to single-node and restarted Elasticsearch. Elasticsearch is throwing an error: How can I scale down to one node? |
Posted: 25 Feb 2022 12:04 AM PST I've been trying to convert an lxc container to a virtual machine, but I've encountered a problem when trying to boot. I end up with the (initramfs) command line and I've got the following errors: From the live cd ubuntu 16.04: Relevant parts of /boot/grub/grub.cfg: and: I changed the uuid for the linux /vmlinuz-4.15.0-30-generic so that it matches /dev/sda1 and not /dev/sda2. The grub-installer placed the UUID of /dev/sda2, where the root partition is, and I'm not sure why. Any ideas as to how to solve this problem? |
Limited Access to Domain Controller for Active Directory Administration Posted: 24 Feb 2022 10:02 PM PST I have to provide a group Jr. Sys Admins limited access to a domain controller for the purpose of limited Active Directory User and Group administration (i.e. user creation, password reset, etc.) I have implemented delegation to limit the scope of tasks the Jr. Sys Admins may execute on the Active Directory. Some of these users use macOS, so using Remote Server Administration Tools like one might use on a Windows machine is not an option for them. As such I would like to give them RDP access to a domain controller. I'd like them to be able to open Active Directory Users and Computers (without prompting for administrator credentials) but limit their access to the remainder of the system as much as possible. Note: I may need to give them access to a few other items for other related job responsibilities.
|
Spring Boot Apache SSL Reverse Proxy Posted: 25 Feb 2022 12:04 AM PST I have a Spring Boot application that runs on a Amazon Linux server. I use Apache HTTP server as a proxy server for this application. Recently I installed Let's Encrypt SSL certificate and added a virtual host entry on Apache for that. However, I cannot get it to work with Spring Boot properly. No SSL version seems to be working fine though. What I observed is that the requests comes to the Spring Boot application when a user calls the https version of it, but user receives a HTTP 404 error from Apache. For example this works fine: http://example.com/oauth/token but this does not work and return 404: https://example.com/oauth/token I posted the config files below, what am I missing? vhosts.conf application.properties |
Authentication is required to manage system services or units. Posted: 24 Feb 2022 11:03 PM PST I have a strange issue whenever trying to stop/start a daemon as a regular user, it asks to authenticate with the credentials of another regular user - for example: Why is it asking for alice to authenticate when bob is logged in, and how do I fix this? |
Can't connect to Azure DocumentDB using MongoDB Compass or MongoVUE Posted: 25 Feb 2022 02:06 AM PST I've created a DocumentDB instance on Microsoft Azure, but I'm unable to connect to it from MongoDB Compass (or MongoVUE). In MongoDB Compass, I've entered all of the connection parameters and it is logging in, however then it opens a windows which just sits there with a loading icon forever. I can connect to a MongoDB instance on the local machine, so I know that works. Is MongoDB Compass incompatible with DocumentDB for some reason? Is there another tool that I can use to connect and browse my DocumentDB instance? screenshot |
ceph osd down and rgw Initialization timeout, failed to initialize after reboot Posted: 24 Feb 2022 11:06 PM PST Centos7.2, Ceph with 3 OSD, 1 MON running on a same node. radosgw and all the daemons are running on the same node, and everything was working fine. After reboot the server, all osd could not communicate (looks like) and the radosgw does not work properly, it's log says:
and and and this is Seeing this, I have tried sudo /etc/init.d/ceph -a start osd.1 and stop for a couple of times, but the result is the same as above. Please help. thanks EDIT: it seems like mon cannot talk to osd. but both daemons are running ok. the osd log shows: |
IIS application request routing changes 206 partial content to 200 Posted: 24 Feb 2022 11:06 PM PST I've setup a reverse proxy server in an azure cloud service using IIS rewrite rules and the Application Request Routing module (according to the instructions here. Everything is working well except for calls to endpoints I've created to download mp4 files. These endpoints can serve up partial content when the request contains the Range header. The problem I'm having is that when I hit the server directly, it correctly responds with 206 (partial content) and the correct range of bytes, but sometimes when I hit the endpoints through the proxy server, it responds with a 200, and the full file contents, which causes errors in video playback in Chrome. Example: When hitting the server directly with a request like this: GET server.domain.com/api/adFile/fileName With header: Range: bytes=168-3922822 I correctly receive a 206 response. Here are some of the relevant headers in the response:
When hitting the server through the reverse proxy, with a request like this: GET proxy.domain.com/api/adFile/fileName With header: Range: bytes=168-3922822 I incorrectly receive a 200 status code and the full file contents. here are the relevant headers from that response:
Is there any way that I can modify the proxy behavior to match the behavior of the main server (i.e. return just the partial content requested)? It seems that it might be caching the file contents and serving all of them when the requested byte range is close to the full file size. |
How to define another source IP in snmp traps Posted: 25 Feb 2022 02:06 AM PST I'm looking for a way to change source IP in traps sent by My requirement is to set in trap configurable virtual IP (VIP) instead of real station IP in case of system defined in High-Availability mode. Attempts to define another IP via do not succeed. <>Lenniey, The procedure was to create additional virtual interface and routing with virtual IP address: cd /etc/sysconfig/network-scripts/ cp ifcfg-eth0 ifcfg-eth0:1 vi ifcfg-eth0:1 (define virtual IP, remove gateway) service network restart ip route add VIRTUAL_IP/32 dev eth0:1 But traps sent from my application via AgentX to snmpd and forwarded to target address have the same local IP address as was before these changes. BR Alex |
Installing SecAst on AsteriskNOW with CentOS Posted: 25 Feb 2022 01:07 AM PST Having some issues installing SecAst for IPS, Followed the directions up to 2.1.6 and found a way (on this forum) to install qt5-qtbase (thanks) but when I run ldd /usr/local/secast/secast the return is "not a dynamic executable". I unpacked and installed -x86_64-rh6 tarball .. any suggestions? Also there are directions in 2.1.9 to make a directory structure with /etx/xdg .. is this a typo and should it be /etc/xdg .. /etc/xdg/generationd ? If not where does the directory go under /etc/ ? Also in /usr/local/secast/ there appears to be a secast file but when secast --help is run return is command not found. Files unpacked with no errors (re-unpacked to be sure), and the color of the font is green. Thanks |
Varnish installer cannot find PCRE when it is already installed Posted: 25 Feb 2022 12:01 AM PST I am trying to install Varnish-Cache 4 on my Mac OS X 10.9.3. But I get this error: The thin is PCRE is installed. I can find it in /usr/bin/. When I do man pcre I get it's documentation. Any ideas? I am not sure how to solve this. In config.log I found this: |
Migrating WebLogic 10.3.0 to new host. Slow managed server startup times Posted: 25 Feb 2022 01:07 AM PST We are migrating our Blue Martini Commerce application (only supported on WebLogic 10.3.0) to a new host (Redhat 6.3 on a VMWare ESX vm). We are seeing extremely slow start up times for our managed server(s) that is basically 20x slower than our current production. As a for instance the Publish managed server takes ~30 - 45 seconds in current production and in the new environment it takes ~10 minutes. The setup uses the same domain structure and JVM as the current production environment. The same setup files are used. We use jdk1.6.0_33 on 64 bit architecture. We used the generic 64bit weblogic installer and used pack / unpack utilities to migrate the domain. The JAVA_OPTS to start this server are: "-d64 -Xms256m -Xmx512m -XX:PermSize=48m -XX:MaxPermSize=256m" The sysadmins have checked /etc/sysctl.conf and /etc/limits.conf to ensure we were not hitting some kind of process limit. As I am not sure what this managed server does from a Blue Martini perspective during the phase of startup I also had the DBA check to ensure that Oracle RAC (11.2.0.3) wasn't also hitting some kind of process limit or if there was a tns listener issue. The new host is quite a bit stricter with their server lock downs so there are a few differences....
I apologize for not being more specific. I am mostly hoping got some tips. I do not have the typical root access I would normally have in this environment. I am just hoping got a path forward. I did a few 'kill -3' to see if there are blocked threads and I got nadda. The service works for all intents and purposes it is just painfully slow. Thanks you all in advance for reading and best regards. Wade |
OpenVPN host cannot access client LAN Posted: 24 Feb 2022 10:02 PM PST I have an OpenVPN server, call it vpn-server, with a LAN 192.168.3.0/24 behind it. The client, vpn-client, also has a LAN behind it, 10.4.0.0/24. Machines on 192.168.3.0/24 can access 10.4.0.0/24 (with one exception). Machines on 10.4.0.0/24 can access 192.168.3.0/24. (Server and client are both Linux based.) The one exception is that the VPN host itself cannot access 10.4.0.0/24. Someone in #openvpn on irc mentioned that when the openvpn server is connecting to the client network, it uses the the VPN IP, not the local IP, and I should check out my masquerade rules for iptables. My masquerade rules, and the interface config for the related interfaces are at http://pastebin.com/Q9RDy0es . OpenVPN configuration files, for both server and client, can be found at: http://pastebin.com/gtfm82pE . I feel like it's a firewall issue on the host side, but I can't seem to get it worked out. Do I need new/different masquerade rules? I'm pretty sure the VPN configurations are correct. vpn-server routing table vpn-server output of iptables -L |
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