Recent Questions - Server Fault |
- Migrating libvirt guest vm to a new storage directory on the same host
- Terraform apply fails on a template that has worked previously
- Rewrite rules for all but one directory (recursive)
- Kernel log - regular "Attempting task abort - Power-on or device reset occurred" errors
- Moving from Centrify to Samba, dealing with UID and GID
- Why does a scheduled task access the database as anonymous (vs configured acct)?
- Apache - Blocking direct access to image
- Why apache server go faster after reboot?
- Azure Devops -- Link files in one organization to work item (task) in a different organization
- rsyslog: suppress duplicate messages
- How to find contents of Windows updates that were applied?
- Nginx reverse proxy issue in redirection without trailing slash
- Is this powershell script appropriately using the Get-ADUser command to filter with a txt file?
- Why do our network does not have internet when adding a route?
- Redis failed every few hours
- How do I make a certificate request in windows 11 from the command line?
- Trouble filtering DNS responses with tcpdump
- Why and how would I transmit emails via several Mail Transfer Agents?
- Subcommand in dockerised app exits with `exit code 1`
- Cannot configure MFA even after acquiring Azure AD Premium P1 license
- Getting CORS error while accessing audio files on same server in chrome
- sssd credential chaching does not work
- AADSTS650052: The app needs access to a service (\"http://rts.powerapps.com\")
- Java Flight Recorder Docker Container
- How to Add Wireless PEAP Profile Username and Password for during MDT Deployment
- Configuring a custom HTTPS certificate on a Netgear Switch (e.g. GS724T)
- What process is causing unexpected nslcd syslog entries?
- Enforce loading of php.ini files from current folder
- Can't request computer certificate
Migrating libvirt guest vm to a new storage directory on the same host Posted: 06 Jul 2022 04:01 PM PDT I have found a few related questions/articles but nothing about just simply moving an existing VM to a new directory on the same machine. That's what this question entails. For this scenario, I need to move an existing virtual machine storage from Here is my theorized work plan:
Will this work? Is there a cleaner/better way to do it? |
Terraform apply fails on a template that has worked previously Posted: 06 Jul 2022 03:46 PM PDT I'm new to Terraform (and to a lesser extent, GCP) and I'm trying to deploy a small Ubuntu VM so we can spin up Jupyter development environments for our Data team. I have a fairly simple template (It's mostly based on the Terraform tutorial) and it has succesfully provisioned resources as desired on previous runs. The template creates a VPC, adds a rule allowing TCP traffic on port 22 for SSH based on a tag and creates an Ubuntu VM with said tag. After running I have a suspicion that it may have to do with service quotas, but so far searching the web has led me to dead ends and I can't quite grasp how it may (or may not) be the cause of the problem. I tried deploying this template in us-west1-a and it worked just fine, so I'm not sure if there's some resource that's being deployed implicitly (that is to say, I didn't specify it myself inside the template but it was deployed as part of the VPC and VM) Any help would be greatly appreciated, I'm new to IaC and I'd like to have this up and running soon(ish) so I can decrease my team's technical debt. Here's the template in question (with some names changed): |
Rewrite rules for all but one directory (recursive) Posted: 06 Jul 2022 03:41 PM PDT We need to do a rewrite for a subdirectory of a site to its own host, with the exception of one directory. We also need to be sure that the original subdirectory is dropped in the rewrite. (using hppts instead of https because otherwise the site pitches a fit at the number of links.) Also, I am whatever rank is lower than Novice when it comes to rewrite rules and Apache in general, so please treat me accordingly. Scenario: We have a main site with a subdir that needs to be rewritten to its own host.
However, there is one directory we want to remain intact recursively. So:
Also, how do I do a rewrite so that it writes the original query, but drops the subdirectory the condition is based on. That is, when I do what I think is a proper rewrite for this:
The rule the guy is trying is: But anything we try returns Any help is appreciated. |
Kernel log - regular "Attempting task abort - Power-on or device reset occurred" errors Posted: 06 Jul 2022 02:48 PM PDT About once every two weeks, I get this kind of error in my kernel log: I have about 20 SATA drives attached to the SATA/SAS controller on this server, and the error occurs with many (though not all) drives, with some drives being causing errors more often than others. The issue seems to be related to filesystem load (heavier load => errors are more likely). Until today, the issue only ever affected one drive at a time, and all my drives are mirrored, so I've been able to resilver the faulted mirror whenever a fault occurred. I've been Googling this problem and searching various support forums without any success from time to time over the 2 year period while this problem has been plaguing me. However, today, both mirrors in a 2-drive mirror experienced the same fault in the space of 1 hour, making the need to solve this problem more urgent. I guess it could be a hardware/controller problem, but I don't know how to check if that's the case or not, or how to fix it if it is. Any help would be appreciated. Thank you. |
Moving from Centrify to Samba, dealing with UID and GID Posted: 06 Jul 2022 02:40 PM PDT The network I run has used Centrify as its Linux/Mac to Active Directory intermediary since I started. The Macs are now gone leaving just the Linux servers. Now Centrify is on the chopping block and a free alternative must be found. I have looked into realmd, samba, sssd, and winbind and have come up with a working system, for the most part, using a combination of realmd to join the domain with samba and winbind as the backends. As said this is working however one major problem became apparent. The UID and GID numbers used by Centrify were not the same numbers being created for the accounts and groups with the new systems. Shifting the idmap directives to mirror the range used by Centrify, based on what Centrify gives out and not on its configuration, did not help. So I grabbed all the UID and GID numbers, inserted a select few into the uidNumber and gidNumber attributes in the proper user accounts and groups within Active Directory, and after changing the samba config tried again. This time both the UID and GID came up properly except for one error: /usr/bin/id: cannot find name for group ID #####. Checking the id output shows that the numbers are there and correct however the gidNumber attribute in the user account is confusing the system. Under Centrify the GID numbers within the user account are used to "create" the users primary group. Said primary group has the same name as the user. So user greg has a primary group of greg with the UID of the user matching the GID of the group. This is behavior I want as it keeps from pushing the Domain Users group on the users home directory, and any other private directories as well. Does anyone know of a good way to allow samba/winbind/realmd to properly name these groups without them existing in AD? I would think that it would pull the samaccountname as the group name just like with the user but instead it is looking for an existing group. |
Why does a scheduled task access the database as anonymous (vs configured acct)? Posted: 06 Jul 2022 02:26 PM PDT I have a PowerShell script that runs a SQL query against a MSSQL server (different server). The script runs as expected when run interactively. When run as a scheduled task with the same credentials, I don't get query results. The task runs the script and report success, but no data is retrieved. From what we see in the logs, the connection to the SQL server is made as Details:
|
Apache - Blocking direct access to image Posted: 06 Jul 2022 02:05 PM PDT I use apache 2.4.41 and I would like to deny direct access to image files on my server. I've implemented the following code in my apache configuration file : However I have a strange behavior. In a web browser, when a try to access an image file directly with its url, I don't get a 403 error code (as expected) and the image is displayed. But, when reloading the page (F5 or cmd+R on a mac), the ressource is blocked and a 403 error status is displayed. When trying a But I should get Could someone help me with this issue ? Many thanks in advance. |
Why apache server go faster after reboot? Posted: 06 Jul 2022 01:59 PM PDT I notice a significant performance gain after a reboot of the server (Apache Debian / PHP / MariaDB Mysql). For several weeks, the page loading time gradually increased from 50 ms to 150 ms and immediately after the reboot the server regained its performance of 50 ms. I saw on some forums that it could come from the mysql server? Maybe things that get cached? (The server makes a very large number of always different mysql requests) |
Azure Devops -- Link files in one organization to work item (task) in a different organization Posted: 06 Jul 2022 01:21 PM PDT We have an on-premises Azure Devops Server running Azure Devops 2020. We would like to link files in one organization (A) to work item (Agile task) in a different organization (B). For example, I may need to check in a .html file in organization A, and link it to fulfilling a User Story kept under organization B. Both organizations (A and B) would reside on the same Azure-Devops on premises server. This server is compatible with Azure Devops 2020. The goal would be to link the task from B while using Visual Studio interface to check in code for A. Is this possible, and if so, could an outline of a procedure on how to do this be given, please? |
rsyslog: suppress duplicate messages Posted: 06 Jul 2022 01:29 PM PDT BackgroundA stateless application starts, runs, and stops every 1 second. If the application encounters an error, that error is logged. ProblemWhen the error occurs, the log is spammed every 1 second until the error is resolved. We only need to see the error once. The application, being stateless, does not "remember" that it had already logged the error. The CodeHere's what I've tried: Then: This shows: I was expecting to see a single line. QuestionHow would you codify something like the following logic in rsyslog's scripting language:
Essentially, the first time the error is encountered, log the message; otherwise, when the error message has occurred 10 times, log the error again. In effect, this will log the error once every 10 seconds. A more rigorous solution would also take into consideration the timestamp to reset the count. Possibly:
|
How to find contents of Windows updates that were applied? Posted: 06 Jul 2022 12:45 PM PDT I have an application that depends on the .NET 5 runtime being on the server. One day it started failing with strange messages. Turns out the .NET runtime was no longer there. Ok, thats strange. So I started looking through windows updates etc. Not sure where to look. What Ive done so far is look through the Windows app log with the filter on MSIInstaller and I found a few hits on or before the problems started. Given a specific KB# how can one find the contents of what was being done for this update? |
Nginx reverse proxy issue in redirection without trailing slash Posted: 06 Jul 2022 12:17 PM PDT I am running an nginx reverse proxy with apache as a backend server. I have multiple applications running without any problems, but some php-js websites fails to redirect properly. when I sent a request to example.com/admin it should redirects to example.com/admin/ but instead I get a redirection to example.com:internal_port/admin/. here is some useful information:
|
Is this powershell script appropriately using the Get-ADUser command to filter with a txt file? Posted: 06 Jul 2022 01:46 PM PDT Here is the command I have so far. What I want to do is use PowerShell and take a list of users to pull information such as login IPs, client host names, and login successes/failures from AD. Is this a good command to start with? The script isn't how I would like it just yet as I haven't configured it to my liking so it's just a base idea I have yet to edit. |
Why do our network does not have internet when adding a route? Posted: 06 Jul 2022 03:49 PM PDT We have 2 Networks. The first is an OpenVPN server with the Network 10.170 The second is a Gateway-Server for our laptops, printers etc. on Network 10.133.10.1 It haves the OpenVPN-IP 10.170.0.19 The Connection between them is stable, but as soon as i add an routing, all clients within the 2nd network do not have internet. The connection between the 2 servers is still stable and i also can reach the devices in network 2 from the 1st netwerk, but there, windows shows "No Internet Connection" and we cant open any website. The routing command i used on 10.133.10.1 is: What can cause this error and how could this be fixed? |
Posted: 06 Jul 2022 12:15 PM PDT I have a problem in redis, Each 18-30 hour it failed and I should restart it manually to run it again. Our server have 1 wordpress website. Redis version: 5.0.3 OS: CentOS Linux release 8.3.2011 regards |
How do I make a certificate request in windows 11 from the command line? Posted: 06 Jul 2022 03:06 PM PDT We have a working internal certificate process and instructions on how to use it involving Internal certreq template: New template to try to fix the problem: I can see the request attribute for SAN in the file either way, but it's corrupted. I'm currently getting undefined: 0: hostname.domainnamemyusernamecertreq Web searches find the same broken instructions still. For example: https://saketupadhyay.medium.com/how-to-create-a-certificate-signing-request-csr-in-2021-windows-11-10-156202d1bf97 This generates the necessary except for SAN is no longer filled. Please specify if the command needs powershell. I don't mind using powershell but if you don't specify I'm going to key it into cmd.exe and wonder why it doesn't work. |
Trouble filtering DNS responses with tcpdump Posted: 06 Jul 2022 02:52 PM PDT I'm having troubles with tcpdump. I want to only capture DNS packets that are responses containing authoritative responses with a single RR that is 0.0.0.0. For example I want to only capture packets like this: The UDP header is always 8 bytes so the start of the UDP data should be at udp[7] in the filter syntax. The DNS packet starts with 2 bytes of ID then a two byte flag word so the flag word should start at offset 9, and the AA bit is bit 5 of flag. But when I test that out with filter But that's not an AA. What is wrong? |
Why and how would I transmit emails via several Mail Transfer Agents? Posted: 06 Jul 2022 12:19 PM PDT I read in some Mail-Relay explanation that emails can be delivered from the sender's MTA to the recipient's MTA via more MTAs. How does it work (I thought, the sender's MTA simply determines the recipient's MTA's IP address by using DNS and directly sends the email to it, so no other MTA is involved) and what is the benefit of doing so? |
Subcommand in dockerised app exits with `exit code 1` Posted: 06 Jul 2022 01:12 PM PDT I have an application. The application is working on Linux, but I plan to migrate it to the docker container. I developed some modules that can use embedded PostgreSQL instead of a regular Postgres database. It is working perfectly on my Host, but in the Docker, the process exits with code In the application, I want to start a subprocess with the following command: error is: no other information in stderr or stdin I think there is some mechanism that checks if only one process is working in the container, but I cannot find any documentation. Could anyone point me in to correct direction, please? I would like to read and understand more about this. Could anyone point |
Cannot configure MFA even after acquiring Azure AD Premium P1 license Posted: 06 Jul 2022 02:36 PM PDT I am trying to configure two-factor authentication for a specific set of users from a particular location. For that, I recently purchased Azure AD Premium P1 license and I'm the global admin of my azure account. But the issue is, even after doing all these, I am unable to configure conditional policy and it is showing as disabled for me. I am not understanding what setting is really needed here. Is there any other way to configure MFA to users other than conditional access? Or do I need any specific permission to make it possible? |
Getting CORS error while accessing audio files on same server in chrome Posted: 06 Jul 2022 02:01 PM PDT Access to video at '/path/to/mp3/file' from origin 'https://example.com' has been blocked by CORS policy: Request had a target IP address space of |
sssd credential chaching does not work Posted: 06 Jul 2022 12:22 PM PDT I set up an Centos7 using sssd as authentication system. The user identies are provided by files (passwd/group, managed by ansible), auth is done via krb5 (provided by active directory). The sssd.conf looks like this: This works fine online without problems, but when I disconnect the network, login fails. If login is ok, in /var/log/secure I see the following: If login fails, it looks like this: When I set debug level to 4 in sssd.conf, I see the following line in sssd_pam.log: But the chache files are updated every time testuser logs in: Any ideas whats wrong here? |
AADSTS650052: The app needs access to a service (\"http://rts.powerapps.com\") Posted: 06 Jul 2022 12:07 PM PDT I'm trying to debug a RapidCMS site locally. I use AAD to authenticate the user against my domain. For no apparent reason I am now receiving this error when launching my app:
I've never done anything with PowerApps and cannot find any reference to it in the code or on my Azure AD applications. |
Java Flight Recorder Docker Container Posted: 06 Jul 2022 01:02 PM PDT I want to profile a Java app inside a Docker container with JFR. How do I do so? The application I want to profile is not mine, so I can't alter the Dockerfile or any of the source code. Docker run cmd: |
How to Add Wireless PEAP Profile Username and Password for during MDT Deployment Posted: 06 Jul 2022 02:01 PM PDT I have a windows 7 pro 64-bit reference image running in a Hyper-V client for MDT 2013 deployment on server 2012. The computers are standalone with no AD and I have no control over the network configuration. I want to provision laptops to automatically connect to our wireless ap. These laptops are shared by a large number of young students who do not have single sign-on credentials and are sharing finite number of laptops. I had successfully used netsh to create and deploy a wireless profile in the past during deployment, but now our school district has upgraded the wireless to a WPA2-enterprise profile with PEAP and I can only add username and password interactively. I tried to export the PEAP profile, and while the profile works, it doesn't contain the username and password even if I use key=clear command in netsh (apparently that doesn't work for PEAP). I tried to suspend the reference image and add the username and password to the image during deployment, but hyper-v doesn't allow binding a wireless adapter to a hyper-v client, so I can't set up the wireless profile in the reference image interactively. Is there a way to edit the exported PEAP xml wireless profile file to add the username and password? I was thinking of pulling a copy of the suspended reference image during a reboot (while image is "off") and transferring that image to a physical computer like the hyper-v server, but with a wireless adapter and then booting and hoping I could bind the adapter to the username and then reboot and transfer image back to server and continue. I can't give wireless password to users, so I would have to physically enter it on every laptop. Any suggestions? |
Configuring a custom HTTPS certificate on a Netgear Switch (e.g. GS724T) Posted: 06 Jul 2022 12:57 PM PDT Since it's quite annoying to get the invalid certificate warning every time I connect to my switch, I want to install a custom HTTPS certificate signed by a Certificate Authority my machines trust. But I can't figure out Netgear's ridiculous certificate configuration UI. It only gives the option to upload the following:
There's no option to upload a key, or to generate a CSR on the switch (like any sane security system would). The Netgear forums indicate there's some magic combination of how to do this, but most posts are either incomplete or don't advise how to get a CA-signed cert to work (only a lone, self-signed key). The official manual is even less helpful, saying nothing more than "[ensure] the file is in the correct format". What's the right way to configure this? |
What process is causing unexpected nslcd syslog entries? Posted: 06 Jul 2022 03:09 PM PDT We're using LDAP for authenticating users our devices using nslcd and we're seeing messages in syslog like this: We want to get rid of these messages without simply reconfiguring what is logged. So preferably we learn what is going on and reconfigure the system such that these messages are no longer generated in the first place. But how to analyse this? The problem is that any process can do something that triggers the system to perform an authentication action and in the log you cannot see which process is triggering the authentication action. Any thoughts on how to analyse this? I'm fine with adding extra diagnostic code to the source of nslcd if that helps and deploying that instrumented executable. We're using an old Ubuntu distro: 12.04, nss-pam-ldapd-0.8.4 Update: I've created a modified version of nslcd which logs the command line of the applications that connect to it. This helps a lot, obviously. |
Enforce loading of php.ini files from current folder Posted: 06 Jul 2022 01:02 PM PDT My goal is to increase the maximum file size for uploads in WordPress. I have followed the steps on this SE answer and this tutorial (except the .htaccess part, because it's runnning nginx and AFAIK nginx ignores .htaccess files), to no avail. Looks like it is ignoring On an unrelated WP install I run on a shared host I rent, if I place a I assume this is default PHP behaviour. The beginning of
The official documentation also seems to agree:
In my instance, looks like it is not working; adding a Output of From
|
Can't request computer certificate Posted: 06 Jul 2022 03:09 PM PDT I am using MMC with the snaping of certificates. I am requesting certificates from a brand new installation of a CA. Requesting User certificates works perfectly. Requesting Computer certificates fails and says the RPC service is unavailable. What should I check? |
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