Recent Questions - Server Fault |
- Issue with exporting certain Windows Logs with "sub-Path" with Powershell or CMD
- How to connect from Ubuntu VM on Azure to another without uploading the private key
- Can I clean out the windows cache for a disk without using windows?
- Configure network to allow clients to connect to a webserver runnign on a VM
- Strange network traffic
- Rsync or scp from/to a Docker containerized shell
- Best practise: migrating multiple VMs and VHosts to Docker
- What is the best way to host video content remotely for a VPS website?
- Sharepoint deletes by users at times when users are offline
- systemd kills my ngrok session started from python
- Is it possible to block dhcp traffic using iptables?
- Unable to connect to minikube ingress via minikube ip
- Error when attempting to upload file to Azure VM via SFTP
- Nginx + PHP index.php not found 404
- Install Google Seesaw Load Balancer
- Permissions prevent file upload in vsftpd
- systemd service shuts down on its own
- BIND resolved IP address into logfile
- Classic asp site, randomly slow DB connection
- Active Directory: Permissions to get Kerberos Service Ticket
- Lockdown Mozilla Thunderbird on Windows Remote Desktop Services
- How can I check the partition name in FreeBSD?
- Installing SecAst on AsteriskNOW with CentOS
- external fact not available at very first puppet run
- Accessing OwnCloud over VPN doesn't work on android and chromebook?
- NFS mount share from Linux AD authentication to Linux with NIS authentication
- IO-intensive processes hang with iowait, but no activity going on
- configuring nginx and tomcat together
- Turning off cp (copy) command's interactive mode (cp : overwrite ?)
Issue with exporting certain Windows Logs with "sub-Path" with Powershell or CMD Posted: 20 Jun 2021 09:35 PM PDT I am making a script that pulls all non-empty logs and saves them as either evtx, csv, or xml. I have got the script working for the logs whose are normal (application, security, etc...), and those that have spaces, however those that have "/" slashes in them (EXAMPLE: Microsoft-Windows-Ntfs/Operational), I keep getting errors. I tried swapping the / out with dash, spaces, abbreviated, and underscores; they all result in the error below. Note: I am am using Example of Code (Get the same results with either):
OR ERROR: |
How to connect from Ubuntu VM on Azure to another without uploading the private key Posted: 20 Jun 2021 08:58 PM PDT My Topology Two Ubuntu servers, the edge which is exposed to the internet, and the core which is only connected locally. Both are on the same subnet and the core only accepts SSH from the edge server. SSH Private keys are stored on my local computer I'm connecting from. I'm using a custom ssh port and MFA on both servers What I want to achieve is to connect from my computer to the edge server via SSH and from there connect to the core server using the private SSH key stored locally. I'm sure it is quite simple but I have no clue how to achieve that. |
Can I clean out the windows cache for a disk without using windows? Posted: 20 Jun 2021 06:33 PM PDT I switched from windows 10 to linux mint version 5.4.0-58-generic. I have a boot ssd, which I reformatted, and two hard drives, which I left as is. One hard drive cannot be mounted at all, and the other can only be mounted in read-only mode. I do not care as much about the first drive, since I can recover the files that I need from it and reformat it, once the second drive has the space to hold those files. So the important issue is how do I mount this second driver in read-write mode? I have tried mounting it: It's not going to be simple to reinstall windows since I have no spare space - and I cannot write to any other drives. So if at all possible I would like to fix this issue from within linux. fsck does not work, I think since these are both ntfs file systems? lsblk returns this: |
Configure network to allow clients to connect to a webserver runnign on a VM Posted: 20 Jun 2021 06:25 PM PDT Current Design: I currently have a webserver running off of my local machine and it is web accessible with the A record pointing to my global IP (which usually does not change) and my consumer router forwarding all HTTP/HTTPS traffic to my local machine which has a static IP. My machine then has an Apache webserver which serves the correct files depending on the domain name ( Proposed Design 1: Now I plan to move this over to a virtual environment (using Proposed Design 2: I am aware that there is no way to script my consumer grade router every time a new VM is launched, but if there is a way to instruct Question: What is one way/the best way to architect a solution for this? |
Posted: 20 Jun 2021 06:30 PM PDT Each 10 minutes my server receives traffic from 0.0.0.0 at ~1.7MB/s for about 10 seconds. I checked all services that i use and all cronjobs, i checked journalctl logs too, no info there. I have no idea why this happen, the same does not happen in any of my other VPS with similar configuration. I just realized this, because my website traffic increased since some time ago and now when this happens "php-fpm active process" goes from ~5 to ~20 active process, and the upstream response time of my webserver is increased. Screenshot of "iftop -B" command: https://ibb.co/JkL50Ky Server info: "netstat -tulpn" output: I don't know what else kind of information i should give. I did not found anything about it on google, i also contacted hosting support, they said that could not help. Any help is appreciated. The only thing i though about was to use iptables to block "receiving" traffic from 0.0.0.0, but i'm not sure if it will work. And i really want to know why this happens. If I'm receiving traffic from 0.0.0.0 this means that it's traffic from my own server, right? In some way... |
Rsync or scp from/to a Docker containerized shell Posted: 20 Jun 2021 04:51 PM PDT I want users can access via ssh to a container. Or, more precisely: host users can access to a containerized shell. This could look strange, but it works:
I can login with I can invoke commands: Now I would like be able to use But: And I don't even know if this is possible. Could anyone bring some light? |
Best practise: migrating multiple VMs and VHosts to Docker Posted: 20 Jun 2021 10:15 PM PDT I currently have about 20 sites and applications hosted in AWS EC2. Some have their own EC2, whilst others share an EC2 with multiple virtual hosts on that EC2. Each site is completely separate and unrelated from another. The ones which share an EC2 are generally much smaller with little traffic/resource requirement (hence the shared server). I also have one EC2 server which is simply used to run batch and scheduled tasks alongside the live version of the site, to ensure the live site stays accessible even when the scheduled tasks are heavy. I am looking to making use of Docker across my whole dev > prod environment for better use of server resources, and easier migrations between environments etc. I'm keen to get your thoughts on the best practise for production server hardware. Is it best to use one larger EC2 and have every site as its own docker container on there? This sounds like less server admin, a tidier overall setup, and from what I understand, each docker container still keeps itself to itself from a security point of view. But, any server issues or resource spikes would impact all sites (mitigated by a load balancer). Or, am I best to keep them split across multiple EC2s, i.e. on EC2 per docker container? This seems completely against the point of docker, but not sure if I'm missing something. Using a single EC2 for all sites then makes it easier (less admin) to set up load balancers and/or fall over servers too. Note; if it makes any difference, I use RDS for MySQL; no MySQl running on any EC2s directly. Thanks in advance |
What is the best way to host video content remotely for a VPS website? Posted: 20 Jun 2021 04:04 PM PDT I want to run a 2c/4t 4 GB server for my website, I would like it to have videos on it, and I want the videos to appear to look as if they are locally hosted on the site, but want them to either be hosted somewhere that will give me a TB cheap (like Google Drive, Mega, etc) and then have the videos load asynchronously to the page. (NO Youtube, vimeo, etc I need the files in my possession) So all website content on the VPS with 80 GB of space, and the 1,400 GB of video files to be stored remotely but appear to be on the website, preferably not a simple embed, but that's fine too. Bonus: different qualities?, recommendations of where to hold the files? (I have the VPS with OVH), best security practices both in general and copy protection? Any information that would help would be great. I know Linux, Unix, Windows, OS X Server, Python, C, etc. I have a few answers to my own question, but I have gotten better answers on these sites than anything I could have even thought of. |
Sharepoint deletes by users at times when users are offline Posted: 20 Jun 2021 03:40 PM PDT Several users (myself included) have gotten "Heads up!" emails from Sharepoint, saying that a large volume of files have been deleted. The files have been deleted, and it's typically a lot of files, in a 15-minute burst. But it's also happening at times when the user is not online and not logged in. (I can say with some certainty--it happened on my computer at 615a, before I had even turned my computer on for the day). These 'ghost deletes' are extremely alarming--they are happening for folders and files outside of those typically accessed by users. Office 365, Exchange license, 34 users (most part-time and semi-active), I'm the company administrator. Not finding anything on Google. |
systemd kills my ngrok session started from python Posted: 20 Jun 2021 02:09 PM PDT I have a script i wrote that listens on mqtt. When certain code arrives to the mqtt server then an ngrok session is started like so:
the scrupt runs in a virtualenv and there for has a shell script to activate the virtual env and run it: When running this script in my shell with & in the end the ngrok session opens and and is left open nicl untill i kill it myself. However when running in systemd using the following system file (user file) /home/myuser/.config/systemd/user/mqtt_listener.service once the service gets the mqtt command i can see the the journal logs the service got my message and forked it's ngrok process, but then i can see the service was "succesfully deactivated" and then restarts. the strange thing is that it always happens when i'm not logged in using ssh to the server, if i'm logged in the process will not die. Any idea what's i'm doing wrong ? the type=exec is due to the fact that the others just did not fit.I can't figure out why systemd considers my python service to be done and thus kills it after a grandchild fork (first fork is the run script, which apprently i can get rid of). |
Is it possible to block dhcp traffic using iptables? Posted: 20 Jun 2021 09:27 PM PDT I have two devices with embedded Linux. One of them (machine A) have two network interfaces: eth that is used to connect machines together and wlan interface to connect to router via WiFi. The second machine (B) has only one eth interface. My goal is to enable access to WiFi networks on the machine B. I used some iptables rules to filter packets from machine A to machine B and it works. Now, I need to block dhcp traffic on the first machine so that it does not reach the second machine. I was looking for some iptables rules to do it but I found that it is impossible with iptables. Is there any other way to block that traffic? Thank you in advanced for any help. |
Unable to connect to minikube ingress via minikube ip Posted: 20 Jun 2021 07:40 PM PDT so I just got started digging into minikube after having problems with the docker-desktop here and there. I am following https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/, but I'm running into a problem. I did exactly what the tutorial explains:
I verified all is available, and end up with the following output of However, when trying to access hello-world.info (either that, setup in my hosts file, or 192.168.49.2 directly, just for connectivity testing), I'm getting absolutely nothing besides request timeouts. The logs of my ingress-controller also don't mention any failed connection attempts. The connection works just fine when manually starting a tunnel via Here's the output of I'm running this example on a Windows machine via the docker-desktop runtime. Where am I going wrong? My ultimate goal is to enable a docker-desktop like experience via my ingress. I don't want to have to manually enable / disable tunnels to access my cluster. |
Error when attempting to upload file to Azure VM via SFTP Posted: 20 Jun 2021 08:01 PM PDT I receive the following error when attempting to upload certain files to my VM via SFTP: Network error: Software caused connection abort I had thought it was related to file type (dll), as it had worked for text, php, and html files, but after further testing it had also failed with zip and png files. I have tried both WinSCP and Filezilla, both generate the same error. I am fairly certain that it is being caused by some security or permission setting within the Azure portal but have no idea where to start looking. Any suggestions? |
Nginx + PHP index.php not found 404 Posted: 20 Jun 2021 10:04 PM PDT I'm running debian 9 with nginx 12 and php7.1 I've set evrrything up. Nginx does not give me anything in error log, all the PHP scripts are working 100% fine. Nginx indexes index.html as index but DOES NOT find index.php and returns 404, even though I have it set in the nginx config. Here is my nginx config: |
Install Google Seesaw Load Balancer Posted: 20 Jun 2021 10:04 PM PDT I have been trying to setup Google Seesaw which is a load balancer based on LVS but have been unsuccessful so far following the directions [on the index.md and /doc/getting_started.md). It is stated quite clearly there is no support so I understand not getting much feedback from the github page however, I would be grateful for any guidance. I have been unable to start the seesaw service but issuing a |
Permissions prevent file upload in vsftpd Posted: 20 Jun 2021 08:01 PM PDT I want to setup vsftpd to allow a user (foouser) to upload and create directories to /var/www/ with the intention of allowing entire webstites to be uploaded. Current Permissions:
Steps already taken: Created user: foouser Added foo user to www-data group. Set /var/www/ as foouser's homedir: Here's my vsftpd.conf file: But, I still cannot upload the file: NOW... if I change the directory permissions from www-data to foouser:foouser, I can upload just fine, but that (of course) breaks apache. What am I doing wrong? Edit: Allowing anonymous file upload to /var/www/ would also be fine. This is a docker container, so an insecure practice like that is fine since this will be used for development not production. |
systemd service shuts down on its own Posted: 20 Jun 2021 05:03 PM PDT I have a problem with this SystemD service: [Unit] Description=RTC Client Services After=rds.service Requires=rds.service The machine boots every morning. The service does the ExecStart but suddenly it stops, as it tries to kill the process PID: Here's the script that rtc_client.service launches: The weird thing is that if I start the service or reboot the machine during the day, the service starts and stays alive... Any help is much appreciated! |
BIND resolved IP address into logfile Posted: 20 Jun 2021 06:04 PM PDT I have a challenge where the log files are not recording the resolved IP address in the logged information. How is it possible to enable this? So the url and resolved IP address should be in the logfile. Here is the code: Current Log file: Desired Log file: Assistance will be truly appreciated. |
Classic asp site, randomly slow DB connection Posted: 20 Jun 2021 03:06 PM PDT We are running a site with classic asp and ASP.NET MVC 4 (C#) side by side. During high traffic, database queries are running really slow in the asp pages. At the same time, in the same site, C# pages are always connecting normally to the same DB. CPU, memory and network usage are normal on both servers (powerful hardware/connection). The site has been running the same setup and traffic load for years without any problems, this behavior started about a week ago. Does anyone know what could be wrong? DB Server: SQL Server 2012 Web Edition Web Server: Windows Server 2012 IIS 8.0 Sample loading times (ms) in iis server log: Sometimes, numbers are better for the asp pages: Asp queries are generally just slow, but sometimes we get an error: A test .asp page running six identical sql queries, with total page load time in seconds. One query is taking 13 seconds, the other ones are pretty much instant. Next run another query is running slow, sometimes they are all fast. |
Active Directory: Permissions to get Kerberos Service Ticket Posted: 20 Jun 2021 04:01 PM PDT I have an Active Directory with a KDC running on Windows Server 2012. At the moment, every user can request service tickets for every service from the TGS. I'm looking for a solution where the KDC only grants a service ticket for service X if the user is in group Y or something similiar. Is that possible with Active Directory? |
Lockdown Mozilla Thunderbird on Windows Remote Desktop Services Posted: 20 Jun 2021 07:04 PM PDT I've installed Mozilla Thunderbird 31.3.0 on a Windows Server 2012 R2 which has the Remote Desktop Services role. I want to configure the Thunderbird program and set each user's email account etc and then I need to lockdown the program, so that users cannot make any changes. I've been googling trying to figure out how i can prevent users from making any preferences settings and the only thing related to GPO that I can find it this, but I'm hesitant to use it. Is there something official from Mozilla on how to do this? I don't need to be specific about what I lockdown, so I'd be happy to just disable all preferences/settings in one go if that is easier. UPDATELooks like I might have found a starting point here |
How can I check the partition name in FreeBSD? Posted: 20 Jun 2021 09:04 PM PDT I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the My problem is that I dont know/remember what is the partition name to mount. I though that would be the OVH web tutorial is saying that its possible to check the partition table via the Is there an other possibility to check the partition table? |
Installing SecAst on AsteriskNOW with CentOS Posted: 20 Jun 2021 04:01 PM PDT 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 |
external fact not available at very first puppet run Posted: 20 Jun 2021 03:06 PM PDT Introduction: We are using puppet to configure the nodes via a custom fact which is then referenced in hiera. The fact can either reside in the golden image in /etc/facter/fact.d/ or via pluginsync (makes no difference, tested both) Versions: The setup is simple: Puppetmaster: EC2 Node: So there is this golden ec2 image including the fact aws_cluster. This is referenced in hiera and specifies the classes and configurations to make. Problem: When we boot the instance and enable autosigning the first run will not have the $aws_cluster present on the client side. So it will fail (which makes sense) saying When the puppet agent is restarted, everything works as expected. Any hints on this? Our guess is:
Update: when trying to start it over /etc/rc.local it fails too. So there has to be a difference between interactive and non interactive runs. are there special enviroment variables which have to be set? |
Accessing OwnCloud over VPN doesn't work on android and chromebook? Posted: 20 Jun 2021 05:03 PM PDT Here is my setup. I've got a Cisco ASA 5505 (latest IOS). Behind it, I have a (Ubuntu 12.04) server running nginx, php-fpm, OwnCloud (all latest versions). My desktop also sits behind the ASA and is able to access OwnCloud just fine. If I connect my Android tablet to our wireless access point, then access the OwnCloud web interface, everything works just fine. I've setup L2TP/IPSEC VPN on the ASA. I can disconnect my ethernet on my desktop, tether to my phone, and connect to the VPN. From there I am able to SSH into the nginx server, VNC into other desktop machines, and access the OwnCloud web interface. Everything works perfect. I can connect the android tablet to the VPN (via hotspot tethering). From there I am able to SSH into the nginx server, VNC into desktop machines. The problem comes when I try to access the OwnCloud web interface. It doesn't work. It just sits there spinning. The strange thing is, I create a test.php file in the OwnCloud directory (with a simple I have captured traffic on the server using tcpdump, and I can see the GET request come in. The server responds. Then I see a couple of duplicate ACKS coming from the tablet and a few retransmissions coming from the server. I should note that VPN clients are given IP addresses on a different subnet. Here is my nginx config: In summary, all devices work fine when on the local LAN. Desktop clients (OS X) work fine when connected over VPN. VPN Mobile clients (Android tablet) can SSH and VNC into local machines. HTTP requests also work fine for VPN on my simple test page, but are not able to access OwnCloud. What can I do to further diagnose the problem? What is the problem? |
NFS mount share from Linux AD authentication to Linux with NIS authentication Posted: 20 Jun 2021 09:04 PM PDT I have two machines:
Problem: When I try to mount any share from first machine (AD authentication) to second (NIS authentication) I always get somehing like this drwxrws---+ 13 16777260 16777222 4096 Sep 21 09:42 software In fact I can't access to this folder because on NIS machine I don't have the user with such UID/GID Question: May somebody know how resolve this problem? |
IO-intensive processes hang with iowait, but no activity going on Posted: 20 Jun 2021 07:04 PM PDT I have a bunch of IO-intensive jobs, and to boost performance, I just installed two SSDs in a compute server, one as a scratch file system, one as swap. After running for some time, all my processes hang in "D" state, consume no CPU, and the system reports 67% idle, and 33% wait. An iostat shows no disk activity going on, and the system is otherwise responsive, including the relevant file systems. Attaching a 'strace' to the processes produce no output. Looking in /proc/(pid)/fd, I discover that all processes are using (reading) one common file. I can't see any reason why this should cause a problem, but I replaced the file, killed the processes, and let everything continue (i.e. new processes will be launced). We'll see if things get stuck on the new file, on a different file, or - ideally - not at all :-) I also found a couple of these in kern.log: Lots of other information, but I don't know how to decipher it - except that it refers to the PID and name of one of my processes. Any idea what is going on here, or how to fix it? This is on Ubuntu 12.04 LTS, Dell-something box with a RocketRaid disk controller and btrfs file system. |
configuring nginx and tomcat together Posted: 20 Jun 2021 06:04 PM PDT I am trying to figure out exactly how to configure nginx and tomcat to work together correctly. Nginx has a I set So if I set Is there any conceptual problem in this calculation? The exact numbers do not matter. Thanks. |
Turning off cp (copy) command's interactive mode (cp : overwrite ?) Posted: 20 Jun 2021 03:44 PM PDT Does anyone know how I would turn off the interactive mode when using cp? I am trying to copy a directory recursively into another and for each file that is getting overwritten I have to answer 'y'. The command I am using is: But I get asked to confirm each overwrite: I am using ubuntu server version jaunty. |
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