Recent Questions - Server Fault |
- HP Server boots directly into CD Drive and not on HDD
- Configuring a cloud VM to be accessed by multiple users
- Windows IP routing POSTROUTING MASQUERADE
- Pausing a video on one PC causes all other PC's to also pause that video that they are all streaming from one machine within a lan
- Saving the date to actual bash history file
- How to setup a failover server with KVM and DRBD
- Microsoft Remote Desktop File Share Fail (VPN)
- Ubuntu 20.04: su command bash-autocomplete stopped working
- AWS EC2 instance behind AWS ELB cannot get the real client's IP address
- Hosting of inconsistent workloads in Azure
- How to block Filetransfer through RDP (Port 3389)?
- Docker Compose WordPress, where are my WordPress files stored
- sudo user is not allowed to execute systemctl
- Using auditd and retaining log files for 6 months.
- Apache: 503 Service Unavailable sometimes without any server load
- EdgeRouter X as VLAN-only Switch
- Rewriting facility/severity in rsyslog v7 before shipping off to a remote collector
- Where is default soft limit config file debian?
- LDAP (with ppolicy) errors on changing other user's password
- Directory listing isn't working on nginx showing 404 error
- Exchange mailbox forwarding - emails fail dkim body hash
- How to create virtual networks by using libvirt?
- Event ID 521 - Critical Logging Failure on Domain Controllers
- Windows Server 2012 Terminal Server Degrading Performance on User Session
- How to reference a hiera variable from elsewhere the hierarchy?
- Apache ForceType / SetHandler not responding as expected
- MariaDB crashing with "Assertion failure in thread xxx in file rem0rec.cc line 580"
- exactly 90 seconds to restart apache httpd
- Why httpd graceful restart takes such a long time?
- htaccess rewrite for language subdomains
| HP Server boots directly into CD Drive and not on HDD Posted: 17 Jul 2021 09:09 PM PDT HP Server (ProLiant DL380 G7) boots directly into CD Drive and not on HDD (C: Disk)I am currently using a HP Windows Server for my Small office work. My Server problems for every 3 days in a consecutive way! On 1st Day: When I Power On my Server on the First Day it boots on HDD. On 2nd Day: When I Power On my Server on the Second Day also boots correctly into HDD. On 3rd Day: But, On my Third Day My Server boots into CD (But I have not inserted any CDs). Is any way to solve this problem. I have searched the internet a lot but I didn't find anything useful to me. Advice Welcomed, Thanks in Advance. |
| Configuring a cloud VM to be accessed by multiple users Posted: 17 Jul 2021 07:54 PM PDT I am a college CS professor. I want to have a remote server that all of my students can connect to. This is incredibly easy to do when I own the hardware. Just create user accounts on my server with the permissions I want them to have (read/write access to files in one folder, database connection), give the students the credentials. Easy. So easy. This seems impossible to do on any of the major cloud platforms. I have tried GCP, AWS, and Azure. I've read so much documentation and I cannot find anything remotely close to my use case. All of the "for education" features force you to basically have one machine per student, not one machine all students can access. I've tried to use just regular VMs in the cloud (not "for education") and that also doesn't seem to be configurable the way I want. I just want to add user accounts to the VM and let students sign in to them. But to actually give sign in access to the VM, it seems that students need to have an account on that cloud service and I have to give their account administrative access to the VM I've created, which I do not want to do. What am I missing? |
| Windows IP routing POSTROUTING MASQUERADE Posted: 17 Jul 2021 06:41 PM PDT I'm trying to implement the same arch in the image below on Windows. I tried many different ways with no luck. (I can achieve this on Linux with the following commands) Thank you |
| Posted: 17 Jul 2021 05:51 PM PDT I want to set up multiple computers that will play a video from one central computer in the local network, and have the video pause on all devices designated for this whenever one the computers watching presses pause. One computer stores video files. Several others stream these videos to their devices using something like mplayer or vlc, or even ssh. All streaming devices are linux boxes. In mplayer, you pause a video by pressing space. I need to setup several machines that will play videos from one specific machine and when any of the receiving PC's press pause, the video also pauses on all other PC's streaming the same video. All devices involved are deployed to meet this goal. |
| Saving the date to actual bash history file Posted: 17 Jul 2021 08:34 PM PDT When adding "HISTTIMEFORMAT" to bashrc, the timestamps of when a command was executed are made available when running the "history" command. But the timestamps themselves are not saved to the bash_history file (atleast not in plain text). I am looking for a solution that will write the timestamp to the file itself so that archived .bash_history files from various workstations can be viewed in an editor outside the userspace and still contain the timestamps of when commands were executed. If the timestamps are being saved to the history file itself but just not viewable in an editor when opening the bash_history file, and it is still possible to view these timestamps by using the history command itself on a rogue bash history file, then that would also suffice. Thanks |
| How to setup a failover server with KVM and DRBD Posted: 17 Jul 2021 04:24 PM PDT I have a server that I am virtualizing using the Virtualizor control panel. I need to set up a failover server that syncs everything on the first server to the second server. I am using DRBD to sync the servers. I have a couple of questions as I am new to this. When using DRBD my understanding is that DRBD syncs partitions. In order to set this up should I sync just the KVMs or do I sync the partition that has the OS as well? If I make a configuration on server1 to the OS shouldn't I want that to sync to server2? When using Virtualizor is it better practice to use Virtualizor on a separate server than where the KVMs are stored? |
| Microsoft Remote Desktop File Share Fail (VPN) Posted: 17 Jul 2021 03:42 PM PDT File sharing via Windows Remote Desktop over a certain F5 Networks VPN no longer works. I cannot see redirected folders on the remote Win Server when connecting with Mac or Windows 10 client (VM) over VPN. The problem started about 11 months earlier. There is no error. Problem: the defined "Redirect" folders on the Mac client no longer show up on the Windows server and now I cannot transfer files between these two computers. What ports are used by remote desktop for this feature? Also, what other ports are required by RDP? I'm sure the Win server was updated around that time with a newer patch. Troubleshooting involved many steps, including: recreating the defined folders on the Mac side. Updating the RDP software. Recreating shares on the Windows side but was not able to initiate share over VPN.... Please advise! I recently moved the VPN connection and RDP software directly to Windows 10 and I still have the same problem. Do you think port is being blocked on the VPN or something on the server (where I have Admin access). What does RDP need for the file sharing? I'm assuming it's beyond TCP/UDP 3389. I look forward to your response. THANKS! Mac Client Version: 10.6.6 (1883) F5 Networks VPN Windows Server 2016 Datacenter (1607, Build 14393.4467) |
| Ubuntu 20.04: su command bash-autocomplete stopped working Posted: 17 Jul 2021 03:41 PM PDT I am using Ubuntu 20.04. The su command autocomplete stopped working. For example when I type: su [TabTabTab] It lists the files and directories of the current directory, where as it should list the available users. Bash auto-complete for other commands is working fine for example: apt-get [TabTabTab] It lists the available apt-get options. usermod [TabTabTab] It lists the available user accounts. The su command was working fine before and now it is not. I have no idea when it stopped working. I have checked other questions but most of them are related to bash-completion, not specific to the su command. So, before marking it duplicate please check the existing answer if it addresses the su command. |
| AWS EC2 instance behind AWS ELB cannot get the real client's IP address Posted: 17 Jul 2021 06:01 PM PDT I am very new with nginx setting. My API application running in an EC2 instance which is automatically created by my AWS Elastic Beanstalk environment. The application ues Nginx and the instance is behind ELB load balancer (classic). Route 53 domain routes the traffic to the ELB. I send the packet from Postman or Packet Sender to that domain, but can never receive response. After check the nginx error log, find that the client IP is displayed as To my understanding, because the client IP is VPC IP address, the EC2 instance cannot send the reply to the real client IP address(my PC's IP address), therefore, Postmand or Packet Sender receives empty response. Does I understand correctly? How can I let the EC2 instance receive the real client IP address? Like below: I don't know it is the problem with AWS ELB setting or nginx setting. The nginx config in my EC2 instance is: |
| Hosting of inconsistent workloads in Azure Posted: 17 Jul 2021 02:43 PM PDT In our company we have a lot of algorithms which need to process large datasets. The time to run these algorithms differs from a few minutes to hours. They also need to be run ad-hoc from multiple times in a week to once a month. We would like to trigger these algorithms with an event such as a file upload in Azure blob storage or and API call. To solve this I started looking into queued processing of tasks in Azure. At first I thought that Azure functions might be a good solution, because it's pay as you use. The problem with this is that they are not meant for long running operations. Thus I started looking elsewhere. I found two pretty good alternatives namely Azure WebJobs or Jobs in Azure Kubernetes Services. The problem with both of them is that they still need an active server even though nothing is running on them. This could be quite expensive for tasks that only need to be run once a month. My question is thus: does there exist a solution in Azure for hosting long running jobs without needing a dedicated server running 24-7? |
| How to block Filetransfer through RDP (Port 3389)? Posted: 17 Jul 2021 03:34 PM PDT For security reasons I have to restrict/disable file transfer via RDP (port 3389) from and to Remote Machines (Windows 10). Is the file transfer tunneled through port 3389, or can I safely prevent a file transfer by blocking port 139/445 SMB? A GPO would be too uncertain for me at this point. |
| Docker Compose WordPress, where are my WordPress files stored Posted: 17 Jul 2021 05:06 PM PDT I have successfully setup WordPress following the official instructions on docker's documentation. I am running windows and I can't seem to figure out where I edit my WordPress files such as Edit: I would like to have my WordPress files in the same directory that I setup the container which is |
| sudo user is not allowed to execute systemctl Posted: 17 Jul 2021 10:08 PM PDT I'm trying to allow a user to use sudo to manage a custom systemctl service, this however seems to fail and I can't figure out why. The 'appgroup' contains this; I have double checked that the user is member of the appgroup, however when this user runs sudo systemctl start test.service this results in an error saying; Any thought on what could be the issue? |
| Using auditd and retaining log files for 6 months. Posted: 17 Jul 2021 07:04 PM PDT Disclaimer: I'm not an accredited nor very experienced sysadmin but have been tasked with some sysadmin responsibilities Task: Find a way to log all account management activities (e.g., account creation, modification, deletion, etc.) on an Ubuntu 16.04 LTS server and retain the logging information for at least 6 months. Details:
So, knowing these details (please ask for more information if you need it), how may I go about accomplishing the Task? Many thanks for all the help in advance! |
| Apache: 503 Service Unavailable sometimes without any server load Posted: 17 Jul 2021 08:06 PM PDT I have an apache server v2. Sometimes I get 503 error without any server load at all this error appears randomly not at any specific time or when using specific services. How to find the cause or trace it? I've checked error logs and last modified date is yesterday though the error appeared today multiple times. Thanks and regards. |
| EdgeRouter X as VLAN-only Switch Posted: 17 Jul 2021 08:06 PM PDT The Ubiquiti EdgeRouter X (ERX) has a switching chip on board so that it can be used as an L3 switch instead of as a router. I have another router, we'll call it
Essentially, I am trying to configure the ERX as a smart switch with all the ports tagged for VLAN 100. This seems like it would be straightforward, but evidently it is not. (Note: in the linked thread its stated that what I'm trying to do isn't supported, but the thread is nearly five years old now, so I'm looking for newer info if it exists) I have tried the following configurations:
The only other option I'm seeing is to create a bridged interface and try to work with that, but that loses all the performance of having a dedicated switching chip, which would be very frustrating. Any help would be greatly appreciated. |
| Rewriting facility/severity in rsyslog v7 before shipping off to a remote collector Posted: 17 Jul 2021 06:01 PM PDT I have a machine "A" with a local rsyslogd, and a remote collector machine "B" elsewhere listening with its own syslog daemon and log processing engine. It all works great...except that there is one process on A that logs at local0.notice, which is something that B's engine can't handle. What I want to do is rewrite local0.notice to local5.info before the event is shipped off to B. Unfortunately I can't change B and I can't change the way the process does it's logging on A. Nor can I upgrade rsyslogd on A from v7.6 to v8 (which appears to have some very useful-looking features, like mmexternal, which might have helped). I think I must be missing something obvious, I can't be the first person to need this type of feature. Basically it comes down to finding some way of passing through rsyslog twice with a filter in between: once as the process logs, through the filter to change the prio, and then again to forward it on. What I've tried:
Are there any solutions out there? |
| Where is default soft limit config file debian? Posted: 17 Jul 2021 04:06 PM PDT I have a process running as root that is capped to 1024 ( in reality lsof shows me up to 1031 for it) open files but I don't find the file to modify this limit. Here is the output of cat /proc/PID/limits to confirm it However, I can't find that limit in "classic" config files : /etc/security/limits.conf is fully commented and /etc/security/limits.d/ is empty I'm running debian 8.8 (jessie) on Linux version 3.14.32-xxxx-grs-ipv6-64 (kernel@kernel.ovh.net) (gcc version 4.9.2 (Debian 4.9.2-10) ) Thanks, |
| LDAP (with ppolicy) errors on changing other user's password Posted: 17 Jul 2021 06:01 PM PDT I've set up an LDAP server with the ppolicy overlay, but now am having trouble resetting user's password in some cases: if the user has a failed login, then the pwdFailureTime attribute exists and ldapmodify fails complaining that it doesn't. If my most recent log-in attempt was successful, then I can bind as cn=admin and run the ldif file: which succeeds. However, if the last log-in attempt was with a wrong password, ppolicy adds a pwdFailureTime attribute to the account, and then trying to run the ldif file above results in: If I try deleting the pwdFailureTime attribute before resetting the password, then I get: In real life, if a user's forgotten their password and needs it reset, they will generally have tried to recall the password several times, so will have the pwdFailureTime attribute set. Any suggestions? |
| Directory listing isn't working on nginx showing 404 error Posted: 17 Jul 2021 05:37 PM PDT
So i was trying to setup directory listing on my server with nginx, i followed the instructions step-by-step but nothing worked out -- always popping either 403 or 404 errors while permissions are all set to 755... When i enable autoindex on the root location it worked fine, but when i put it on the "dl/" location, it either shows a 404 when requesting /dl or 403 when requesting /dl/ After i followed @Bryce Larson's steps...403 is gone now only 404 is there...which is still not okay...
Here's the And yeah i've restarted nginx a hundred times just to make sure it takes the new config...so what's wrong now? Otherwise, how would you configure the nginx server for this purpose? -- your own nginx.conf files are welcomed plz paste it here: https://0bin.net |
| Exchange mailbox forwarding - emails fail dkim body hash Posted: 17 Jul 2021 05:06 PM PDT Exchange is modifying emails before forwarding them out to an external Google Apps account. I'm hoping to find a way to fix this. Here's some more detail:Using Exchange 2010 SP3 Version 14.3.123.4 The exchange server is forwarding email of some users out to Google Apps accounts (using an External Contact in AD). Exchange is set to put the emails in the user's mailbox and also forward a copy to their Google Apps account. The issue is that outside emails (from @google.com for example) are failing the DKIM check on the Google Apps side after being forwarded from Exchange and they are marked as spam. I got this info from looking at the email source and seeing this message:
Testing and results of direct vs forwarded emails:Below is a sample of two emails. One email was sent to the Exchange server user's email address, the other email was sent directly to the Google Apps email address using the temporary Google Apps assigned domain alias (user@mydomain.com.test-google-a.com). The subject and body were exactly the same in both emails sent out. The only difference between the two received is that the Exchange forwarded email had modified the body boundaries and the charset value now has quotes around the UTF-8. Direct to Gmail (user@mydomain.com.test-google-a.com): Forwarded from Exchange (user@mydomain.com): I have a feeling that the DKIM fails because Exchange has added the quotes to the charset and boundary parameter values. Hopefully there is a way to disable this and then emails will pass the dkim without issue. |
| How to create virtual networks by using libvirt? Posted: 17 Jul 2021 09:08 PM PDT I have installed qemu/kvm and have tried to create some virtual machines and network them together. What I would like to achieve is 2-3 virtual machines in their own private network (e.g. 10.0.0.0/24), all machines should be able to access external network, but only 1 machine should get IP that is accessible from outside. I've tried to to add How should I do the configuration? My current setup: Name servers: Interfaces and IP addresses: edit: Added configuration for just |
| Event ID 521 - Critical Logging Failure on Domain Controllers Posted: 17 Jul 2021 09:08 PM PDT I'm tasked with the monitoring and analysis of variious logs via our SIEM solution; LogRhythm. I noticed a few weeks back that we had large volumes of this event originating from all of our domain controllers. The log data is as follows: I've ensured that all domain controllers have sufficient disk space to write to the log & that the logs are configured to overwrite the oldest logs first. Servers have been bounced in the last few days but the issue remains. I have read some suggestions about renaming the security event and restarting the machine so that a new event file is created but I can't believe that the event file has become corrupt on all domain controllers. It's also worth noting that all of the impacted domain controllers are in fact writing other events to the security event log! We are getting ~61.34k of these events a day. Any pointers would be massively appreciated. |
| Windows Server 2012 Terminal Server Degrading Performance on User Session Posted: 17 Jul 2021 04:06 PM PDT We have a terminal server environment with about 40 users which is experiencing a curious performance issue: when a given user logs in initially, everything functions properly, once a particular user starts to eat up more resources (upwards of 2GB/memory and 2%-5% of overall CPU usage), their applications seem to slow down considerably. If I have the user close everything, log off and log back in, performance on the applications is restored. It's almost as if there's some kind of throttling on resources going on for each user session. Has anyone experienced this phenonmenon? The server resources are adequate as at peak we're using 50%-70% CPU and about 75% of memory. Thanks in advance! |
| How to reference a hiera variable from elsewhere the hierarchy? Posted: 17 Jul 2021 02:46 PM PDT So suppose in a very specific hiera YAML file I define a variable, such as "env_name".
Now in a more general hiera file I'd like to interpolate that variable into a string.
My testing seems to imply that hiera variables from elsewhere in the hierarchy aren't made available for interpolation in general cases. Is that true, unfortunately? |
| Apache ForceType / SetHandler not responding as expected Posted: 17 Jul 2021 07:04 PM PDT I am trying to force apache to handle a file (or directory of files) as php regardless of file extension. The link to the file should be as follows, I have tried,
This does not work, returning a broken image icon with, the name.png filename and a 404 not found when tried with I have also tried,
I had gotten that .htaccess file content from ForceType Sethandler Code Why Does This Work This returned the same results as the first try. Nothing but 404 or a broken image. I also tried,
This does "work" but it doesn't do what it needs to. Accessing the image by I have made sure that AllowOverride All is set in my httpd.conf for the directory of the image(s). This should be enough to get Sethandler or ForceType to work I would assume however I still can't get the effect I want. Note, I do not have mod_rewrite installed to my server. Also of note that SetHandler and ForceType have the same results when used with With that, am I doing something horribly wrong or do I have a missing module required for sethandler? |
| MariaDB crashing with "Assertion failure in thread xxx in file rem0rec.cc line 580" Posted: 17 Jul 2021 03:02 PM PDT I have three MariaDB servers set up in a Galera cluster. I use one server at a time as a "primary" master (i.e., Galera is just for failover, the app doesn't actively use multiple masters). About once every two weeks or so, the primary master fails. The other two servers in the cluster are fine, and I can restart the crashed server and it recovers fine. I've switched between which of the three servers are the "primary" master, and the crash happens no matter which server I choose. So it seems unlikely that it's related to hardware. The question is -- why is this happening? How do I track it down? Should I just submit this to MariaDB as a bug? |
| exactly 90 seconds to restart apache httpd Posted: 17 Jul 2021 07:24 PM PDT I have an openSUSE 13.1 VM (host runs Virtualbox 4.2.18, also on openSUSE 13.1) and restarting httpd (Apache/2.4.6) always takes 1.5 minute: Immediately subsequent restart is normal (very fast): 5 minutes later the restart time goes again to exactly 90 seconds: What I've looked for so far:
Note that this is a VM which currently has 0 traffic and there are plenty of free GBs available in memory and disk. I've also found that it's the "stop" part of the "restart" is what takes 90 seconds. Any idea why this is happening or where should I look at next? Edit: I found out that when |
| Why httpd graceful restart takes such a long time? Posted: 17 Jul 2021 07:23 PM PDT I am checking /usr/local/apache/logs/error_log This has happened several times. Sometimes server restart is fast sometimes it's slow. What factor could possibly contribute to this mess. On the other hand ungraceful restart seems to be faster: From the manual: http://httpd.apache.org/docs/2.2/stopping.html
It seems that graceful restart is designed so that service can run with no interruption at all. It doesn't work that way though. All domains in my server is death while restarting :( |
| htaccess rewrite for language subdomains Posted: 17 Jul 2021 03:02 PM PDT I need to point subdomains like My structure is My host told me to use .htaccess files inside the sub domain folders. I tried, for example in But I am getting a 404 on this: In my DNS list I see that I tried also assigning |
| 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