Recent Questions - Server Fault |
- Why is it multiple WSL distributions on my windows?
- pseudo-terminal allocation not terminating ssh on remote container
- IBM System X3500 M3 IMM 404
- Squid 5.2 Access Log-- HTTPS Connection Log Too Long! How to explain 100 million milliseconds
- NGINX Force www and https at all times
- gpg certify key public key getting export along with sub-key public key
- Ingress in GKE does not do the routing identically despite same IP at DNS level
- How can i host a local website to domain using nginx?
- sshd misconfigured; only access is via website mPanel
- PCIe - Training error on device - Link degraded, macLinkWidth = x16, negotiatedLinkWidth = x8
- Why is IIS NOT reading/using the site's Web.config, while IIS Manager is correctly accessing the Web.config?
- Block websites to a specific user in windows server 2016
- Migrate user accounts from Azure AD to on-premise AD
- dcdiag DNS test fails, but DNS seems to be working properly
- HAProxy, how to disable logs for the stats endpoint
- SSH ForwardAgent is receiving "Connection closed by remote host"
- Nginx redirecting every url to localhost
- Apache 2.4 ErrorDocument for multiple subdomains
- how to increase Apache mod_proxy Jetty 5minute timeout
- Outlook 2013 and Exchange 2016 "The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action"
- HTTP working HTTPS not working
- How can I update an Exchange Server Monitoring Override?
- php-fpm: locale settings change themselves
- Where is WSGI installed on Centos?
- How to set custom $_SERVER variable for PHP
- Can windows credentials be stored for 'All Users'?
- Uanble to connect to SMTP server (IIS) externally
- Missing LV in VG in LVM partition on Ubuntu
- Nginx + Passenger : stop file uploads timing out after 30 seconds
- Apache 2 .htaccess matching all sub directories of current directory
Why is it multiple WSL distributions on my windows? Posted: 03 Jul 2022 11:52 PM PDT I run Windows 10 with WSL enabled. running command I was stanned to witness two running WSL , why is it happened so ?(why not single instance) And also with strange name. |
pseudo-terminal allocation not terminating ssh on remote container Posted: 03 Jul 2022 09:59 PM PDT I have a bash script integrated with circle ci which ssh into my remote container on Azure, pulls the code and restart the server. The script ssh into the container, pull the latest changes and restart the server but it is unable to exit from container which keeps the build running on circle ci. I have a similar script on aws and it is working as expected. The only difference is I didn't had to allocated a pseudo-terminal terminal there. I am guessing allocating a pseudo-terminal is what is keeping the circle ci build job from exiting. I tried getting the process id and sending a kill signal but it didn't work either. Here's what it looks like after the bash script is executed. Ssh from the circle ci got stuck on the azure machine and the build kept running. And here's a very basic version of what the bash script looks like that circle ci is executing I added the -tt in ssh to force the pseudo-terminal allocation It could be the OS as well since I didn't need to use the |
Posted: 03 Jul 2022 08:51 PM PDT The IMM gives a 404 error when I put in the IP. Things I've tried:
What I'm Running:
How do I fix this? |
Squid 5.2 Access Log-- HTTPS Connection Log Too Long! How to explain 100 million milliseconds Posted: 03 Jul 2022 07:05 PM PDT https through Squid 5.2 connect Azure. Access.log--elapsed time Too Long! How to explain 100 million milliseconds? |
NGINX Force www and https at all times Posted: 03 Jul 2022 06:55 PM PDT I have recently discovered that there are some issues in my nginx vhost configuartion file, for instance I was told that at some occasions it downloads a php file, while for other instances it throws an SSL error. I've done a little research and a few experiments but nothing really works the way I want it to. My end goal here is to have the website work on forced https + www at all times, so even if someone enters myurl.com or www.myurl.com they will always be redirected to https://www.myurl.com Here is my current myurl.conf, which I believe looks overly complicated: Some expert advise would be greatly appreciated, thank you |
gpg certify key public key getting export along with sub-key public key Posted: 03 Jul 2022 02:20 PM PDT I am using gpg. My keyring structure is explained below. I have a certify key under that I have
In order to export the sub-key following steps are executed step-1 This command will list all the public key. I will take the keyid of public key. For example encryption. I am using below command to export the subkey But I inspect by using the below command. I can see that it is exported the public key of my certify also. So my question are Why it is exporting the public key of the certify? Sharing the public key of the encryption key to the keyserver, will it share certify key public key? If yes, is there any security issue with this? |
Ingress in GKE does not do the routing identically despite same IP at DNS level Posted: 03 Jul 2022 06:50 PM PDT I have setup in my GKE cluster an nginx ingress as follows: A load balancer with its IP came up. Now I added two DNS pointing to that domain at Cloudflare: In addition I created a namespace and deployed an app there: Things look good in Lens, so I thought to test it out. When I was entering which is intended, of course. but when I entered Even more strangely, no matter if I get the well-responding result or the non-responding one, in the logs of the nginx controller there is nothing showing up for any of the calls. Can you help me, such that I can access the |
How can i host a local website to domain using nginx? Posted: 03 Jul 2022 09:32 PM PDT I have a server that is running at This port is not reachable from outside. I want to provide this ip address as How can i do this using nginx? I have tried using But it returns 404 |
sshd misconfigured; only access is via website mPanel Posted: 03 Jul 2022 10:42 PM PDT EDIT 2 : Due to the influence of a virus, a late-night session, The articles and documentation that I had recently read Now that I've sorted it out, you can just skip to my answer. I'm leaving the question here because the comments would not make sense without it. =============================== Original question: A remote server will not accept any kind of ssh connection. Although it has "Password Authentication yes", it no longer asks, and simply closes the connection. Instructions for setting up SSH keys assume you have password access from a local terminal to send new keys to the server, but I don't have that. With only mPanel web access, what is the easiest way to get sshd to accept passwords again? Alternatively, is there a way to set up keys on the server and on the client without having to transfer files? Hope I can do it just by editing sshd config and/or hiding some files. It's Centos7 with SSH 6.6 (compatible with SSH 9 on Manjaro at home). Earlier, when key authentication failed, it asked for a password, but I hadn't used the pw for so long I couldn't find it for a while, and continued trying with changed key configurations (changing files via sftp in Filezilla). I wonder if a flag has been set somewhere, and sshd won't ask for a password until the flag is cleared...? EDIT: connection is closed immediately after 'KEXINIT sent'. The puzzle is "why does it not ask for a password?". fail2ban is not installed. I did not try any pw at all with ssh, as it stopped asking before i found the pw; I haved used the pw in mpanel, it's correct. |
PCIe - Training error on device - Link degraded, macLinkWidth = x16, negotiatedLinkWidth = x8 Posted: 03 Jul 2022 05:02 PM PDT i've placed a pcie raid adapter card with onboard ssd's (AORUS RAID ADAPTOR built in with 4 x PCIe 3.0 512GB NVMe SSD) in a new (2020) Dell (Optiplex 7080). the system boots fine most times, but it tends not to find the drive during a soft reboot, for example. it's very temperamental on boot, but works fine once the OS is booted. the built in boot diagnostics produce the following warning: is this warning related to the boot device being not found sometimes or simply indicating the card is x8 and not x16? if unrelated, what could be causing the system to not find the boot device at times? i've checked and reseated the drives on the adapter, and the adapter within the pcie card several times. thanks for looking. |
Posted: 03 Jul 2022 04:06 PM PDT After "more time than was prudent" debugging an issue with handlers not being applied correctly, I've determined that the SiteRoot/web.config shown in IIS Manager is not actually used by IIS. How do I know this? I've replaced Information:
What might be occurring, and what further diagnosis can be done? |
Block websites to a specific user in windows server 2016 Posted: 03 Jul 2022 02:02 PM PDT In the company I'm in, they want to block a specific user to access some websites. They have to login in the computer so my idea was to block using group policy management, but I dont find that anywhere. Other users can access those websites. I have been searching for something that can help me, but I dont find anything. I usually don't work with windows server (and others), so I just know the basics. |
Migrate user accounts from Azure AD to on-premise AD Posted: 03 Jul 2022 10:03 PM PDT I saw a few questions related to the situation we're in but not the answer I needed; So we're mostly a cloud based company (G suite, Azure AD etc.) Azure AD has too many limitations, we're going to work with new HR soft that wants a full fledged AD. So the environment has been setup with Azure AD, all the computers (Windows and mac) are using Azure AD credentials to logon. Now we would like to create a hybrid environment, I already figured that we will need to rebuild the AD - export Azure AD and recreate on premises AD and then sync with azure AD - now for the questions; If we recreate the on premises AD - and sync with Azure AD - will this cause the user accounts to be still recognized, or will all workstations need to be reconfiguration to open a new session under the user account and then transfer the data? Or would it re-associate the same session? One time password change would not be the end of the world. But I remember from AD that if you delete an account, re-create an account with the same details it would be considered a new user, and it would create a new user folder and the old user session you would not be able to logon too. Would this be the same? and if so is there a work around? |
dcdiag DNS test fails, but DNS seems to be working properly Posted: 03 Jul 2022 09:02 PM PDT Active Directory setup: Single forest, 3 domains, with 1 domain controller each. All running server 2008 R2, with the same domain/forest functional level. DNS clients are configured as follows: DC1 -> DC2 (prim), DC1 (sec) DC2 -> DC1 (prim), DC2 (sec) DC3 -> DC1 (prim), DC3 (sec) All zones are replicated throughout the entire forest, and each DNS server is set-up with 8.8.8.8/8.8.4.4 as forwarders. Problem: Everything appears to be working as should. AD is replicating properly, DNS is responsive and not causing any issues, BUT when I run dcdiag /test:dns, the enterprise DNS test fails on DC2 and DC3 with the following error: TEST: Forwarders/Root hints (Forw) Error: All forwarders in the forwarder list are invalid. Error: Both root hints and forwarders are not configured or broken. Please make sure at least one of them works. Symptoms: Event viewer is constantly showing these 2 event ID's for DNS client: ID 1017 - The DNS server's response to a query for name INTERNAL RECORD indicates that no records of the type queried are available, but could indicate that other records for the same name are present. ID 1019 - There are currently no IPv6 DNS servers configured for any interface on this host. Please configure DNS server settings, or renew your dynamic IP settings. (strange, as IPv6 is disabled on the network card) nslookup is working as expected, and finding any and all records appearing in ID 1017, no matter which DNS server I select to use. While running dcdiag, the following events appear: Event ID 10009: DCOM was unable to communicate with the computer 8.8.4.4 using any of the configured protocols. DCOM was unable to communicate with the computer 8.8.8.8 using any of the configured protocols. Event ID 1014: Name resolution for the name 1.0.0.127.in-addr.arpa timed out after none of the configured DNS servers responded. I've run wireshark while dcdiag is running its test, and the internal DNS servers do resolve anything thrown at them, but then the server continues querying Google DNS and root hints. What the hell is going on? What am I missing here? Edit: The actual enterprise DNS test error messages are: etc., etc. |
HAProxy, how to disable logs for the stats endpoint Posted: 03 Jul 2022 08:02 PM PDT I am enabling stats with something similar to this configuration: They work but now I would like to know if there is a way to preventing the stats to emit logs, currently, In my logs, I have multiple lines like: Any idea of how to prevent to log the stats requests? I already tried in the |
SSH ForwardAgent is receiving "Connection closed by remote host" Posted: 03 Jul 2022 06:01 PM PDT I'm trying to connect to a remote server using I've setup my ~/.ssh/config as follow : I'm able to ssh correctly into my.remote.proxy.com. I'm able to ssh correctly from my.remote.proxy.com to my.remote.server.com using ssh (and the private on test purpose). My problem is that I'm not able to ssh from my host to my.remote.server.com using forwardagent. I've setup /etc/ssh/sshd_config for both my.remote.proxy.com and my.remote.server.com as follow : I checked and both server are using a working version of openssl with forwardagent : The /var/log/secure from my.remote.proxy.com are returning : Nothing is showing up from /var/log/secure on my.remote.server.com. |
Nginx redirecting every url to localhost Posted: 03 Jul 2022 03:02 PM PDT I have a Django website running with Nginx and Gunicorn. Everytime I call a url on the server, example website/url, it redirects to localhost/url. I have given the nginx settings in both nginx.conf and sites-available/site-name nginx.conf: } nginx/sites-available/site name Django settings file |
Apache 2.4 ErrorDocument for multiple subdomains Posted: 03 Jul 2022 03:02 PM PDT we're running a large project for different customers, each has its own subdomain. Apache should not execute any script if an invalid subdomain is used. Instead, an error page should be shown. Working: this is out zzz-default.conf which is the last VHOST and matches all queries that are not catched by another VHOST. What's not working: This file is located in Our problem seems to be the redirect rule, but we need this to match all subdomains and rewrite to If I enable this and call an invalid subdomain, I get
Anybody knows why? Edit: The other VHOSTs are defined as There are 13 VHOSTs defined like this and then the above |
how to increase Apache mod_proxy Jetty 5minute timeout Posted: 03 Jul 2022 11:01 PM PDT we use Apache and Jetty to do install components behind a firewall. Some actions take a while ( 10-15 minutes ). Apache is the proxy and Jetty is the proxy target on some machines. Everything works fine for actions taking less than 5 minutes. Actions taking longer than 5 minutes fail with a 502 proxy error. I have seen some similar topics and the advice was to define timeout and keepalive - both did not help. our setup ist: Windows 2012R2 Apache 2.4.9 Jetty 7 Initially I forgot to mention that there is a firewall between the apache and the Jetty. In apache httpd.conf we have: We hoped that timeout=3000 ( 3000 seconds ) would keep Apache waiting for about 50 minutes for the response from Jetty. Keepalive and and ttl are trials ... On Jetty we are calling a simple Groovy script that simply sits and waits for a long time. If the waittime is small this works as expected. If the waittime is beyond 5minutes we get an error: Apache Access: ( the request starts at 17:25 ) As you can see the duration is about 5Minutes ~ 300509428 and thus a timeout - it should have lastet for 10 minutes. Apache Error: ( the request times out at 17:30 ) Any ideas how to do to keep Apache waiting for a longer time ?? |
Posted: 04 Jul 2022 12:05 AM PDT I just installed and get everything to work with my new Exchange 2016 server, but when i adding it to Outlook 2013 i autodiscover setup works and it says restart outlook. After restarted outlook i getting a message saying: "The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action." and after klicked OK i getting a window to check the mailbox name on the exchange server but nothing works. After closeing that window the profile for the exchange server is gone. I alrady have 2 mailbox accounts from another exchange server in outlook that works fine, not from same exchange server, this is a new fresh exchange server i trying to get all to work. I have seen many people has this problem becouse some old .pst file and stuff but i have tried everything i finding and tried on 2 computers that has outlook with other exchange accounts working. Do anyone got any tip what it can be? Edit: I have now upgraded to Office 2016 and latest windows updates to see if updates doing anything but still getting same error, now with Outlook 2016 i get it when adding the account/profile, see screenshot: Like you can see in this screenshot the autodsicover works and my webmail works but getting the error when adding the exchange account to Outlook 2016 Edit2: After some searching i find out where the problem is and created a new question for it: How to change external URL on MAPI over HTTP on Exchange 2016? |
HTTP working HTTPS not working Posted: 03 Jul 2022 05:02 PM PDT I set up Comodo SSL on CentOS 6.7 and Apache/2.2.15 and we are running a CakePHP application on the server. When I go to http/domain its working but when I go to httpS/domain it says 404 Not Found (even though I see lock icon and https in green color). Here's part of my etc/httpd/conf/httpd.conf file: And /etc/httpd/conf.d/ssl.conf contains: I've done httpd stop and start multiple times, and also tried httpS/domain:80 but that gives an error: This webpage is not available (ERR_CONNECTION_CLOSED). Can the DocumentRoot be the same? If not then how do I manage that since copy/pasting our application code in another folder is not feasible. Any thoughts on what i'm doing wrong? |
How can I update an Exchange Server Monitoring Override? Posted: 03 Jul 2022 10:03 PM PDT Assume you have an Exchange 2013 server with existing Server Monitoring Overrides which you can get by running on the Exchange Shell: and the output shows something like: In the above example there are server overrides to prevent the default Exchange monitoring to rise an alert when a drive drops below the default 100GB limit. And let's say that you want to change an existing override (for example the existing one has expired, or you want to change the PropertyValue of MonitoringThreshold to be 10000 instead). How would you modify an existing ServerMonitorOverride in this instance? |
php-fpm: locale settings change themselves Posted: 03 Jul 2022 04:06 PM PDT I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: And here are the changed settings: The problem occurs randomly. When removing php-fpm and using FastCGI, the problem doesn't occur anymore. How can I get this working with php-fpm ? The problem occurs on a shared hosting (we are the company which provides the hosting) and we really need php-fpm in order to use pools. Thanks in advance! EDIT : Today I discovered the problem occurs when we use the Ondemand Process Manager and not with the Static Process Manager. |
Where is WSGI installed on Centos? Posted: 03 Jul 2022 06:01 PM PDT I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to configure the WSGISocketPrefix The problem is that /var/run/wsgi is no where to be found on my centos server. The closes thing I can find is: /etc/httpd/run/httpd.pid How can I find where wsgi is installed? Or what other value can I set the WSGISocketPrefix equal to? |
How to set custom $_SERVER variable for PHP Posted: 04 Jul 2022 12:05 AM PDT I'm working on a PHP web app which ALSO has some command line tools. I need the command line tools to detect the environment so that they connect with the correct DB credentials etc. The web app does this easily by checking I'd like to create my own I found this solution, but I don't see the same files in I'm on a Dreamhost VPS, which runs Ubuntu 12.04 LTS |
Can windows credentials be stored for 'All Users'? Posted: 03 Jul 2022 09:02 PM PDT I am looking for a way to store windows credentials for 'All Users' as opposed to individually-named Users in Win7. Issue - we have a company server that is being accessed by multiple users. Each user logs on to the server with their unique user credentials. While working on the server, each user has need to access paid-for-services via a state (as in ND) web site. When they click on the web site link for these services, they are presented with a Windows Security challenge. All unique users enter a common set of credentials (same username & password) for access to the state server. The user only has to enter the state credentials once and they are good the rest of the day even as they log off and log back on to our company server. The kicker is that all individual user profiles are auto-deleted every night for business reasons. The users are wondering if there was some way the state credentials can be stored so that no matter what user logs on to the company server, the state credentials will always be available when they try to access the state's paid-for-services, without having to type them in every day. |
Uanble to connect to SMTP server (IIS) externally Posted: 03 Jul 2022 07:00 PM PDT I've set up a SMTP server using IIS 6 on Windows Server 2008. I've set it up for "All Unassigned" IP adresses on port 25. I've also added 127.0.0.1 and the IP to the extrenal source in the "Relay". I've configured the Windows Firewall to accept port 25. I am able to connect to smtp with telnet localy but not external from the IP I've added to the relay. I get the message: "Could not open connection to the host, on port 25: Connect failed" A port scan shows that port 25 is open on the server. Any idea what the issue might be, and how to fix? |
Missing LV in VG in LVM partition on Ubuntu Posted: 03 Jul 2022 07:00 PM PDT After a power failure, Ubuntu 10.04 Server hard drive is no longer bootable. I tried using I ran gdisk to verify where the lvm partition was and that it was still in tact. Here is the output: So, it's still there and apparently in tact, so I went on to do vgscan: :/# vgscan
So, I did :/# vgchange -ay ubuntu followed by :/# lvs and got: The thing is, there should be another VG in there almost 1.8TB in size but it isn't showing. So.. is there any way to recover a LV that isn't showing for lvs? I need to recover 1 important file in there that was created after the last backup was made. :/# vgdisplay |
Nginx + Passenger : stop file uploads timing out after 30 seconds Posted: 03 Jul 2022 08:02 PM PDT I have a ruby app which runs under passenger and nginx. If i try to upload a largish file (eg 15+ meg), when it gets to 30s in, the upload restarts (according to chrome) and at the end of the next 30 seconds it gives up and i get a timeout. Is there an option i can put in my nginx config to prevent this from happening? Here's what my current nginx config looks like: I'm not an nginx expert and have a feeling this might be obvious, hope so anyway. I already tried adding to the server block but that didn't help. Cheers, max |
Apache 2 .htaccess matching all sub directories of current directory Posted: 03 Jul 2022 11:01 PM PDT I want to disable the php engine in all directories below the current one. I have tried using Example directory structure: files/folder1/ files/folder2/ files/folder3/folder3a I want to match folder1/, folder2/, folder3/ and folder3a/ but not files/ Any ideas? |
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