question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
270,383
Linux-KVM / iptables: prevent guest spoofing by matching ip+mac address on bridge?
I have my KVM guests on a standard br0 bridge setup: [CODE] eth1 is reserved for other traffic but a guest could simply change it's ip to connect to it. What I am trying to achieve is dropping all traffic towards the host / outside / other guest as soon as a guest attempts to change either it's ip address or mac addres...
I tried to make a template for the simple set of iptables rules for your problem, try this out: [CODE] Here is an example: [CODE]
3
2
2,339
2011-05-17T00:19:49.133
infrastructure
serverfault.com
534,170
Dealing with multiple private DNS servers
I'll try to explain this as best I can... I'm on ubuntu 13.04, and I am running a local BIND instance at 127.0.0.1 for access to basic wild-card DNS for development (i.e. "*.dev == 127.0.0.1" - yes, I know, don't create fake tlds, etc. This is entirely local to my machine, though). I also have clients who have their ow...
Yes, there is. Configure your local resolver to be your local bind ( [CODE] in [CODE] ), then tell your local nameserver that it is locally-authoritative for [CODE] (as you already are); that [CODE] is a special TLD, queries for which should be sent to a custom DNS server; and that all other queries should go to your I...
2
9
2,272
2013-08-27T15:24:11.820
infrastructure
serverfault.com
315,806
How harddisk works
Looking at how hard disk works. Found that it has a number of platters and a read/write head. But in texts it shows read/write head between each platter. Is it like that in real situation? Also when I give the following command in Linux [CODE] It shows 255 heads, 63 sectors/track, 30401 cylinders. I couldn't understand...
Yes, there is a head facing each data surface. Otherwise, there would be no way to read from and write to that surface. All the heads are physically connected to the same actuator, so they can't move independently. (A three-platter drive will typically have six heads.) When you see the reported numbers of heads, sector...
1
1
804
2011-09-27T04:37:06.453
api_errors
serverfault.com
854,487
nginx + php5-fpm + cifs share + CakePHP timeout
I recently moved my cakephp 3 dev environment onto a network share. The server in question has only had a path change for the nginx webroot ( [CODE] , to [CODE] ). I am mounting the CIFS share via [CODE] as follows: [CODE] For some reason cakephp index page times out when I access the index page (nginx 504: Gateway Tim...
A clean install of Debian + nginx + php5-fpm solved my issue and the fresh dev server install works. As to the root cause, I'm unsure, but will diff the config files and work out what the hell I was doing that caused the fuckery
0
0
467
2017-06-07T18:54:53.067
infrastructure
serverfault.com
823,511
How to obtain IP Address of Windows 2008 R2 VM on Hyper-V with PowerShell?
I have created an automated build script to build new VMs on Hyper-V 2016. I sometimes need a 2008 R2 VM and the way I obtain the IP Address to connect to my 2012 R2/2016 VMs is to use some powershell like: [CODE] Works great for 2012/2016, but returns an empty array with a 2008 R2 VM. Any ideas on how to obtain the IP...
You could use WMI for it. Maybe 2008R2 doesn't have the field you are looking for. [CODE] You may also need to do some filtering on the network card that you are choosing if you have multiples. You may also need to check what get-vm is outputting as I'm not sure it will pipe directly into get-wmiobject. You might need ...
3
0
1,782
2016-12-31T10:30:04.680
pipeline_ops
serverfault.com
545,505
MySQL CPU High Usage
I got a problem with CPU usage on my VPS, mysqld use 100% CPU and my site go down, i have a small package, 512MB Ram, wich 300 is free, and my site has 1000-1500 unique visitors, and 50.000 views / week. my.cnf [CODE] My question is, if i upgrade RAM it's possible that CPU usage go back to normal?
Solved, was one query in footer wich selected from a table with ~1 milion rows, the problem was that query was also counting rows every pageload.
-1
0
240
2013-10-11T20:18:49.400
database_errors
serverfault.com
1,095,900
How to set up DNS settings with a domain in the middle for DKIM and SPF?
I am working on a tool that helps the users send emails. I plan on using an MTA (Mail Transfer Agent) in the back end like AWS-SES or Sendgrid etc. In order for the emails to arrive successfully in the recipeints inboxes, the users will have to set up DKIM/SPF by configuring the DNS settings of their respective domains...
SG has an option called [CODE] in the Authenticate a Domain API. What this option does I think in the back end is it lets SG manage/rotate DKIM keys and other records using their DNS records. Consequently when you make this option true, they return CNAME records instead of MX and TXT records. And the MX/TXT records are...
3
1
661
2022-03-11T04:54:45.313
infrastructure
serverfault.com
333,481
How to get email alert when windows server 2003 runs out of memory space?
We have a server where multiple web application are hosted. Users will upload files to the website that will get saved to server HD. Now and then, C: is running out of space because of the uploaded files and all the websites are in trouble and they go down. Is there any option in Windows 2003 server to alert / send ema...
Yes - you can use the EventTriggers command to "attach a task to an event." Check out these guys: http://thelazyadmin.com/2005/06/using-eventtriggers-exe-for-eventlog-notifications/ and here is someone doing what you're looking for: http://www.petri.co.il/how-to-use-eventtriggersexe-to-send-e-mail-based-on-event-ids.ht...
-1
2
2,293
2011-11-22T04:07:12.553
infrastructure
serverfault.com
283,931
Determine Previous Workgroup Name
I have a Windows 7 computer that was on a Workgroup. I needed to change it to be on a domain temporarily. Now, I need to change it back to be on the original Workgroup. My problem is, I can't remember the name of the workgroup (and I'm the administrator :(). Is there a log somewhere that I can review that would help me...
I agree with Tony. If other computers are in the workgroup you need only go and check the configuration on one of those machines and then configure the machine you're on to match. If no other computers were on the workgroup, it doesn't matter what name you assign to it.
0
0
127
2011-06-24T19:28:52.347
infrastructure
serverfault.com
323,857
Postgres 12 restore
I can't restore my Postgres server 12. I have cluster, 2 servers PSQL12s01, PSQL12s02. Between arch_log replication. Database size about 45 GB + 400 GB arch_log. On slave I run script [CODE] The file is unpacked at REST Server and run docker container [CODE] When a start container I have date on 2022-10-17 [CODE] Log c...
The point in time to which you want to recover is not in the WAL archive. Possible causes: you mixed up the timestamp, perhaps because of a time zone problem the WAL segment with the transaction to which you want to recover was not yet archived If it is the latter problem, you could use [CODE] or archive WAL with [CODE...
1
0
162
2023-02-21T12:27:55.263
pipeline_ops
dba.stackexchange.com
94,495
Parent-child Relationship with data scattered between these records
I have a 60 column query that fills in a card on an application. The problem I am running into is gathering all the parent-child relationship data into one record per child. As a quick example: The card goes through a bunch of processes, which have their own tables and hits two critical points, i will call it [CODE] an...
so after some more thought and reading some of the posts i broke up my query into two parts, i think that was the main confusion because there were so many moving parts I created a view that performs the recursion on the target table (see below), thereby removing the need for the other columns I used this table in my 6...
1
1
467
2015-03-05T14:49:44.063
warehouse_errors
dba.stackexchange.com
678,773
How to persist credentials in a remote Powershell session?
I have an Azure File Share and would like to use this from my Azure VMs - after persisting the credentials on the VMs with cmdkey and mounting with net use. This was tested by running these commands in a local Powershell session on Windows Server 2012 R2 . But I need to add this step to an Azure deployment script. An A...
Due to how Windows handles authentication it is not possible to use CMDKEY to set credentials via a remote PowerShell session, it has to be done interactively when using CMDKEY. To quote Don Jones from a thread looking for an answer similar to yours: That's a limitation of the Cmdkey command – not really a PowerShell t...
16
3
9,385
2015-03-27T15:49:12.893
pipeline_ops
serverfault.com
15,485
Job Recommendation Engine
My girlfriend has recently been struggling with finding a new job, so I thought I'd make a website to help her out. The basic idea is that she'll be shown a list of jobs, rate her interest, and then a hopefully interesting job will be emailed to her every day. So far I have the frontend worked out, but I'm struggling w...
For a first pass at this problem, I suggest just use a simple document search/classifier feature set such as bag of words , or maybe tf-idf against each full job description, and see what results you can get from a basic classifier. You can train the model based on your girlfriend short-listing or rejecting each item. ...
2
1
837
2016-12-02T19:41:52.823
data_quality
datascience.stackexchange.com
332,179
Doubt about performance overhead and downside on multicolumns UNIQUE
I am building a table in Postgres as specified below [CODE] In particular, my main concern is related to the [CODE] constraint which, as far as I understood, builds an UNIQUE index under the hood. (Please correct me If I misunderstood). What I'd like to know are eventual performance overhead or downsides I don't know i...
It will make data modification slower, like any other index. But if you need that constraint to hold, you have to pay the price for it. In a way, it is like the primary key. That also slows down data modifications, but you still don't question it because you need a primary key for each table.
0
1
34
2023-10-16T15:33:17.757
data_quality
dba.stackexchange.com
18,599
datetime index skipped for same query different params
I am running two queries with same query but different parameter and one of them is extemely slow while the other is fast. Both the results are alomost the same. (500 and 575) Any idea why it skips "attended" index in the second query ? If I FORCE INDEX, it works very fast ! MYSQL 5.0.77-log Both InnoDB tables [CODE]
From the looks of the two EXPLAIN plans, you may need another index. From the WHERE clause of [CODE] I suggest creating the following compound index [CODE] Give it a Try !!! CAVEAT As suggested in the comment from @AaronBertrand, the cardinality of the index may be causing random results depending on different values f...
2
1
300
2012-05-30T20:21:47.433
database_errors
dba.stackexchange.com
95,511
Adding Users after Database Restore
I have to restore our production database to a test instance on a daily bases. This test instance gives people access to the data that we do not want changing production data. When I restore the database there are logins in the test instance with access to the database that do not have a login or user account in produc...
If I follow what you're saying correctly. You have db users in test, which are not in prod. When you restore from prod, all these users lose access. At the moment you have a static script which puts all the access back after the restore. You need to do this more dynamically. What I would do is: Before restoring the pro...
2
0
421
2015-03-17T21:11:27.373
database_errors
dba.stackexchange.com
224,099
how to configure squid to accept more users?
I use squid as a private proxy server but when many users use it sometimes he gives the http 500 error
Most probably your squid configuration file (probably /etc/squid/squid.conf) include acl for connection limit, something like [CODE] You can try to locate this using [CODE] If you adjust relevant maxconn acl, remember to restart squid (/etc/init.d/squid restart or similar, depending on your installation).
1
1
536
2011-01-19T08:04:05.720
api_errors
serverfault.com
631,301
sieve-test working but actual filter is just working sometimes with dovecot
i just migrated from an old Ubuntu 10.4 VPS to a shiny new Ubuntu 14.04. After a little work i got everything running besides dovecot with sieve. This question is about sieve filtering messages delivered to dovecot via exim Expected behavior: Exim gets a mail spam-checks it, and delivers it to dovecot via /var/run/dove...
I've seen the same thing. I was using [CODE] and it matched using sieve-test but not live. If I change it to [CODE] as you suggest, it works live too. This looks like a sieve bug.
1
1
4,109
2014-09-25T17:01:46.267
infrastructure
serverfault.com
95,794
migration of oracle xe 10 to xe 11 fails with wrong paths used in the import
I'm following the documentation to upgrade an OracleXE 10.2 database to OracleXE 11.2. The export succeeded without any problem, the import (on another machine with XE 11) fails though. The log file shows Oracle trying to put files in non-existant paths, and some paths still referring to XE 10: [CODE] My OracleXE 11 is...
I found out what the problem is, in my XE 10 additional tablespaces were created. When the import into 11 discovers those tablespaces do not exist yet, it tries to recreate them with the statement with which they were created in the first place, in XE 10. That explains where the wrong paths are coming from. I just copy...
2
1
490
2015-03-20T13:22:34.773
database_errors
dba.stackexchange.com
232,253
Sharepoint restore
I have an issue with restoring a sharepoint backup (2007) to a local virtual host. the error message, points to a version number that I cannot identify: 1364415309.1262568012.1.1 I matched this with the version of MOSS2007 installed and there is no match. Can anyone tell me what this number represent as I'm completely ...
If you are restoring a SharePoint backup to a different server than you took it from, you might try checking the version of WSS, MOSS and SQL Server. Generally, you want to be restoring from and to the same versions, but you might be ok with newer versions. Older versions could cause problems. Did you check the Sharepo...
1
0
345
2011-02-07T09:32:32.610
database_errors
serverfault.com
399,948
mod_pagespeed forgets optimizations after a while
I've setup mod_pagespeed and it seems to work fine, but only when I reload a page. Minutes later the optimization is gone. Here's a static site where full optimization is only done when you reload the page: twitterbogen.dk On the first load the CSS files have no .pagespeed. in them. If you reload they do. Any idea why?...
Here's a great answer: https://groups.google.com/d/msg/mod-pagespeed-discuss/m4TupdDEUp0/fijGgKDOlV8J
0
1
343
2012-06-18T22:21:04.490
infrastructure
serverfault.com
805,530
Certbot-auto can't renew because letsencrypt domain is 'duplicated'?
I have an Ubuntu 14.04 Trust server, with a Django app served with Apache 2.4. I have set up Let's Encrypt with a SSL Cert. The cert is installed, but will expire in 17 days. [CODE] gives the following error, and the cert isn't renewed: I have 3 websites on this machine ( [CODE] , [CODE] , [CODE] ) with lets encrypt an...
I have solved this. If you look carefully, you'll see that [CODE] is complaining about the file [CODE] . Why is there a [CODE] file in [CODE] ? I don't know. But it shouldn't be there. I think certbot is trying to parse that file as an apache config file, and failing (hence the [CODE] message). I moved that file out of...
-1
1
3,402
2016-09-27T08:21:13.257
api_errors
serverfault.com
551,152
How to Change the iMessages Conference Hostname in Maverics (Mountion Lion) Server
I was running a iChat Server success on Snow Leopard Server. Connections were running for: ichat.myservername.com And the conference server was: conference.ichat.myservername.com I have new machine with Maverics server installed. I have DNS running on the box that properly maps my hostname name (ichat.servername.com) t...
I've solved this problem. Not exactly as I'd hope. 1) I made sure that my hostname was properly configured in server config. 2) Shutdown Jabber: serveradmin stop jabber 3) Rebuilt config files from source: /Applications/Server.app/Contents/ServerRoot/usr/libexec/copy_message_server_con fig_files.sh 4) Edit Rooms.plist ...
0
0
220
2013-11-06T17:53:19.630
infrastructure
serverfault.com
211,678
How to do you judge the value of using TDD or plain unit testing in an Open Source project? Is there a good rule of thumb?
In my current OSS project, I knew literally nothing about what I was doing when I began. I was integrating with a larger project as a plugin, and that in and of itself had a steep learning curve. If I had begun with TDD it would have never been written as my code was changing as I was learning. This has worked for quit...
No, there is no rule of thumb. It really depends on how dependable and maintainable you want your code base to be. If your project is a small class or one-shot utility, you may not need any unit tests at all. If, on the other hand, it is a framework or core program that will be used by many people, you may need extensi...
0
1
180
2013-09-16T17:49:54.400
api_errors
softwareengineering.stackexchange.com
1,042,640
Ansible module for adding an SELinux context equivalence
Is there an Ansible module that allows an SELinux context equivalence to be added? The command is: [CODE] This makes SELinux treat [CODE] as equivalent to [CODE] . While I could use the [CODE] module, it only works once; after that it always fails with: [CODE] I could use the [CODE] module and run a command like: [CODE...
Closest Ansible module to [CODE] is community.general.sefcontext . Looks like it is idempotent and supports diff mode. However, no equilviant to [CODE] that I can find. Write the context you want as the [CODE] parameter. For example, [CODE] . I would prefer the source of truth be the playbook in this case, not some oth...
1
2
1,820
2020-11-15T18:07:08.587
pipeline_ops
serverfault.com
446,749
numa and taskset
I am trying to use taskset to assign some processes to specific CPU's. When I run taskset, it appears that the command has worked as I get a reply stating what the new affinity of the process is set. However when i monitor the top output (the process that i am trying to assign a cpu to is running at a high cpu percenta...
run the command "numastat" - if your system is numa, you should see it in the results. Like you suspect - if your system is numa use numactl to set up your process to run on a range of cpus.
6
2
3,583
2012-11-08T13:39:33.880
hadoop_errors
serverfault.com
1,091,932
Unable to delete Azure recovery services vault
I'm unable to delete recovery services vault which is created for testing Azure-to-Azure replication with private endpoints. I've deleted all the associated resources(VM, Storage Account, Private Endpoints, VNets, Replicated Items, Replication container & policy, Network mapping, ASR Automation Account), but still not ...
This usually means that there is still a backup task or server registered with the vault. This may not be removed when the resource is deleted, so you need to go into the vault and look at the resources in the vault and delete them from there.
0
1
73
2022-02-01T07:13:07.203
database_errors
serverfault.com
861,860
Postfix : Is it possible to set destination_concurrency_limit and rate_delay per sender?
Followed this tutorial to setup destination_rate_delay per recipient domain: http://steam.io/2013/04/01/postfix-rate-limiting/ The rate limiting is working, however, is it possible to only rate_limit an email such as newsletter@mydomain.com so that the admin@mydomain.com don't get rate limited? main.cf [CODE] I was loo...
In the article you were following you created new transports and selected these transports per domain. The first step will be to edit the [CODE] file and add SMTP transports. Each transport will represent a policy for a group of receiving domain: [CODE] Next, we need to map a domain to it’s transport name: Edit the [CO...
3
0
2,200
2017-07-12T23:13:19.780
api_errors
serverfault.com
64,529
How to make sqlplus prompt longer than 50 chars?
I've set a prompt in my sqlplus glogin.sql a little bit long, mainly because of some internal variables and control sequence. Starting sqlplus I get the following error: [CODE] ...and yes, my prompt is really truncated to 50 characters. What to do? Is it possible to somehow make this limit higher? (I already tried [COD...
Finally, I found an answer! The trick is, that the 50 char limit is for the string before the variable substitution! The size of the substituted string isn't limited. In my case, shorting [CODE] to a temporal variable [CODE] was enough: [CODE]
3
3
2,135
2014-05-06T08:35:14.073
warehouse_errors
dba.stackexchange.com
576,926
Intermittent performance issues on Azure Web Application with ASYNC_NETWORK_IO errors
Our web application is suddenly experiencing intermittently slow performance (slow page loads, slow ajax calls going from This application has been in place for several months without problems, the only recent changes Azure-wise being the addition of auto-scaling and SQL server fallback a few months ago. The applicatio...
ASYNC_NETWORK_IO means one of two things. Your code isn't processing the data from the application fast enough. You've got large rowsets, or row by row processing and the application server simply can't keep up for some reason. There's a network problem. As you are hosted in Azure odds are it's #1 and that the problem ...
1
0
889
2014-02-20T01:46:21.217
database_errors
serverfault.com
755,438
Serving a Python Page with Windows / Apache / Mod_WSGI?
I'm trying to setup python / apache / WSGI on windows. I have the following installed, all 32-bit and vc9: Apache 2.4 Python 2.7.9 Mod_WSGI.so in the modules folder. http://localhost/ Displays the Apache Haus web page successfully -- Apache is running and serving. Here is my "Hello World" python script: [CODE] Here is ...
From the error you are getting: [wsgi:error] [pid 4448:tid 1040] [client ::1:54402] Target WSGI script not found or unable to stat: C:/wsgi_app/wsgi_app.py It is highly likely that you have no file with the name "wsgi_app.py" in the "C:/wsgi_app/" directory. Now what does the [CODE] do? Here is a quote from Apache 2.4 ...
0
1
1,944
2016-02-11T00:24:26.593
infrastructure
serverfault.com
90,184
(How) does table inheritance interfere with locking in postgres?
I have a table inheritance setup that might be simplified like this: [CODE] I now have a long-ish running transaction that locks table [CODE] . While this is running, I observe queries on table [CODE] that wait for that lock to be released, even though they are guaranteed to not use the data in [CODE] . For example: [C...
Apparently, you want to see constraint exclusion at doing its work. As in similar setups the parent table has no constraint (and, just to mention it, usually no rows), it will be always visited by queries on the parent table. Using your example schema, see the output: [CODE] In the second case, table [CODE] is not visi...
7
7
2,146
2015-01-26T13:17:22.327
database_errors
dba.stackexchange.com
180,504
Common /home for a couple of Linux distributions
I want to learn one more Linux distribution. I'm serious and "one more" means the second one. I've been using a Linux distribution for almost a decade, I like it very much, but I want to learn something new additionally. I plan to go with a common /home partition to always have my preciousss config files at hand. While...
I have done that once, and I do not recommend it. The reason is that distributions (mostly) do not use exactly the same version of applications. As an illustration, Ubuntu uses application X-APP version a.1 and Centos uses version a.2 . When you boot Ubuntu and start X-APP for the first time, it creates ~/.x-app.rc . L...
1
4
252
2010-09-13T03:11:43.667
infrastructure
serverfault.com
574,216
TCP client and server work for X times but hang after that
I'm a software engineer, but I think my problem needs a network engineer... For the software side of things, have a look at my Stack Overflow question: https://stackoverflow.com/questions/21641219/sending-and-receiving-over-network-using-tcpclient-socket-or-stream-fails-afte I have the simplest possible length-prefixed...
It turns out that our corporate network was blocking outgoing traffic going to the server's port. Not sure why it worked X times at all, but after the networking guys twiddled their bits, all worked well. Thanks for all your help and insights.
0
0
599
2014-02-08T22:29:20.217
infrastructure
serverfault.com
908,935
Postfix Maildir delivery failure due to read-only file system
Postfix fails to deliver messages with error "Read-only file system": [CODE] My directory permissions are set to 700 and 750 with owner set to deploy:deploy as suggested by this questions Postfix unable to deliver to user's Maildir . [CODE] Edit 1: The output of [CODE] is below. Everything is [CODE] except [CODE] , whi...
The initial error message seems misleading as with your latest edits we can clearly show that this is a permission problem. From the own answer you link to: In order for mail to be delivered, postfix must be able to enter the user's home directory, And you said: My directory permissions are set to 700 and 750 with owne...
0
1
1,311
2018-04-23T00:28:12.890
infrastructure
serverfault.com
35,918
Debugging tests written with Robot Framework
When isolating a root cause of a failing test written in Python or Java, I use a debugger built in my IDE (e.g., Intellij) to debug it. Is the same possible for Robot tests? Particularly, what's a support for debugging Robot tests in IDEA Intellij? I wonder because I found Robot tests are a mix of both [CODE] and [CODE...
The Eclipse plugin called RED ( [GitHub] 1 ) has support for the standard debugger. More information can be found in the RED GitHub Help pages .
6
3
1,760
2018-10-04T14:52:58.043
data_quality
sqa.stackexchange.com
1,080,709
Windows Server external but in Domain?
i'm trying to figure out what would be the best aproach to get an external server into my local domain. the external server is directly connected to the internet, no hardware-firewall the internal server is behind a hardware-filewall (and of course there is nat) i'm aware of thats it not a supported scenario by microso...
VPN connect (just dial in), set the DNS correctly, join the domain. This is a supported scenario in general. I'd additionally recommend using split tunnel and setting up a task that periodically checks if the VPN is still there (and reconnects if needed). Make sure your external machine is able to resolve your VPN endp...
0
0
130
2021-10-15T22:14:46.767
infrastructure
serverfault.com
305,328
Lower the I/O priority for backups
I have a job that nightly runs a backup of all attached databases however it can bog the server down if someone is connected during that time. I have TONS of CPU overhead to work with (I am barely above 5% in use, 8 cores total the highest is maybe 30% the rest are at idle), my issue is I am pegging my I/O. Looking at ...
You can backup databases to a UNC path (manually or by creating a backup device) so you could try that, but you'll be trading disk I/O for network I/O.
4
3
2,833
2011-08-26T16:04:51.210
database_errors
serverfault.com
56,324
How to properly deploy multiple computer labs and have room for future expansion?
I am currently the only computer guy at a high school (small budget). Currently, there is no real infrastructure in place. There are just office computers connected to a consumer grade router that leads to the Internet via DSL. The school will be setting up some new computer labs (~100 new computers) with a new broadba...
Reaching back to my days managing school labs here are some of my suggestions: We would just get whatever mid level machine was available at the time, and as Oskar Duveborn has said get computer desks with lockable cages. We used the kind that would just clamp the top and bottom down, then we would use the built in loc...
7
4
4,432
2009-08-19T20:04:17.090
infrastructure
serverfault.com
718,081
IMAP Port 143 Not Functioning When Using Hostname?
I am setting up a Mail Server on Azure (Windows Virtual Machine) using HMail and its all working great apart from not being able to connect my Outlook on my home PC. I believe the issue is that when I telnet using the hostname, the connection fails. [CODE] However trying telnet using the localhost works and the webmail...
As Iain mentioned, 127.0.0.1 (loopback) is special and is not the same as your public endpoint for the host. Since you're using Azure IaaS, make sure that TCP 143, and any other ports you may need, are opened as an endpoint for that VM. Only RDP and remote PowerShell are opened by default, I believe.
0
0
1,143
2015-08-31T17:19:05.377
infrastructure
serverfault.com
939,589
Running tcpdump starts ssh flood
I have runtime Linux running in a PLC. My development machine is running Ubuntu 14.04. The PLC and the development machine are connected through a five port switch. I ssh to PLC from my development machine to transfer executable of a networking application that I develop on my development machine. I run tcpdump on PLC ...
My command is just > tcpdump -i eth0. but what I dont understans it why running tcpdump suddenly esclates to huge amount of traffic. Try facing a mirror at a mirror, you'll get the idea. If not, try facing a mirror and a mirror and preventing the mirror from seeing itself. Because your SSH traffic is also part of the c...
-1
8
3,524
2018-11-12T04:41:35.267
pipeline_ops
serverfault.com
636,853
Azure Shared Ubuntu VMs dns each other
I have two Azure Ubuntu VMs. Named: myweb01.cloudapp.net and mypg01.cloudapp.net. When I'm on myweb01 i issue an nslookup mypg01.cloudapp.net which fails: [CODE] When I change the resolve.conf and point to google 8.8.8.8 everything goes fine. What am i doing wrong? How can I change resolve.conf so that it will always s...
Are your 2 VMs on the same Virtual Network? You will have to specify your DNS server on the management portal. More info here: http://azure.microsoft.com/documentation/articles/virtual-networks-name-resolution-for-vms-and-role-instances/
0
1
1,000
2014-10-14T10:05:10.353
infrastructure
serverfault.com
243,544
Can someone help me with this MySQL code?
I want to retrieve some date from 2 different tables action and staff. This is my code: [CODE] I am getting this error: #1241 - Operand should contain 1 column(s)
Your error comes from having two outputs in the SELECT sub-query. Solution: Having 1 sub-query per output should work if each only returns one value. Warning: If your sub-query returns multiple outputs, you'll receive an error. Thus, it is best practice to use SELECT sub-queries for known single outputs, like COUNT or ...
0
1
52
2019-07-23T14:11:26.263
database_errors
dba.stackexchange.com
241,536
Efficient algorithm for Virtual Machine(VM) Consolidation in Cloud
PROBLEM: We have N physical machines(PMs) each with ram R i , cpu C i and a set of currently scheduled VMs each with ram requirement r i and c i respectively Moving(Migrating) any VM from one PM to other has a cost associated which depends on its ram r i . A PM with no VMs is shut down to save power. Our target is to m...
I wouldn't try to optimize the load across the PM's, since that will probably result in constant moving of VM's. The result of a single move will likely change the balance, requiring yet another move. Instead, i would try to determine the acceptable load factor per PM (over-allocation), and only take actions when: a. t...
5
1
788
2014-05-30T18:41:49.553
hadoop_errors
softwareengineering.stackexchange.com
285,984
Lazy loaded property signatures in business objects
Let's say I am designing business objects around a poorly optimized database that have no ability to change. I have a Person object with a ShippingAddress property. The ShippingAddress is very expensive to load and located in a separate table, and a minority of pages use it. There are times when thousands of Person obj...
When it comes to a BO, the consumer should not see field is lazy loaded or not and it's better to present as any other property (without exposing methods accepting Func parameters)., I'd rather go with the second approach without having the public method [CODE] [CODE]
4
3
2,156
2015-06-05T19:42:52.350
api_errors
softwareengineering.stackexchange.com
35,453
SUPER privilege not defined for master user in Amazon MySQL RDS
I have created one medium instance on amazon rds in asia pecific (singapore) region. i have created my master user with master password. and it is working/connecting fine with workbench installed on my local PC. When, I am going to create function on that instance, it show me following error ERROR 1418: This function h...
You can try to change [CODE] ; however, there is an alternative approach that seems more appropriate when you consider the meaning of that variable : It controls whether stored function creators can be trusted not to create stored functions that will cause unsafe events to be written to the binary log. A setting of [CO...
6
6
20,256
2013-02-26T12:46:06.853
database_errors
dba.stackexchange.com
539,764
Does the built-in CentOS software RAID distribute writes?
Will I see a write performance increase going from single disk to CentOS Software RAID10? Any industry estimates on the % increase?
RAID 10 provides both reliability and performance by mirroring and striping. RAID 10 can provide up to N/2 in performance, both throughput and IO, where N is the number if drives in array, capacity will be about 1/2 of total. i.e. in case of 10 drives of 500GB capacity it can provide up to 500% of performance of single...
0
3
176
2013-09-18T03:32:36.787
infrastructure
serverfault.com
1,097,716
TLS 1.3 not working on nginx 1.21 with openssl 1.1.1n
I have nginx (1.21.6) running with openssl 1.1.1n on a Debian 11 server. Although I followed many tutorials and looked at multiple questions in this forum about this topic, I can't get TLS 1.3 working. The output of [CODE] : [CODE] I upgraded nginx to the mainline version because I wasn't able to get TLS 1.3 working in...
After many further tests and much reading, I finally found a solution. I had to write the ssl configuration in the [CODE] block, not in the [CODE] blocks of my nginx configuration. This worked, however, only if I copy the directives from my [CODE] file explicitly to the [CODE] block in my [CODE] (otherwise [CODE] outpu...
2
3
5,564
2022-04-03T18:21:04.287
infrastructure
serverfault.com
844,830
Puppet : resource already defined error
I am trying to create multiple directories and then copy files to each of the directories . For that I have created the following resource [CODE] But I am getting the error already defined as shown below [CODE] I need to copy files using the second resource file { "Copy Directory":} to the destination directory after i...
I resolved it like this by rewriting my manifests rules . For creating the directories , I remove the arrays and created each of the directory by using a single file resource .Also removed the path variable from filename and the directory to be created was provided as a resource name. [CODE] } [CODE]
1
1
1,956
2017-04-17T05:22:40.597
pipeline_ops
serverfault.com
41,130
Why does DBMS_UTILITY.COMPILE_SCHEMA break function-based indexes?
After mass structure updates, some views/procedures became invalid. So I just recompiled them with: [CODE] But after that, all function-based indexes, which before were in a good state, became broken, and SQL statements against those tables failed. And that is the problem. Example of such indexes: [CODE] Why did that h...
Oracle is compiling all objects, so as far as Oracle is concerned all code in all objects is new code. As a consequence, Oracle has no way of knowing that your function [CODE] still returns the same values that were used when the index was created. Instead you should only recompile invalid objects, [CODE] will do this.
5
7
16,678
2013-04-29T08:05:55.257
warehouse_errors
dba.stackexchange.com
622,111
haproxy transparent mode on 14.04
As per my previous question SSHD real-ip behind haproxy - I'm now attempting to setup HAProxy to transparently pass the IPs to the backend services. tproxy modules loaded / and supported in haproxy (I recompiled haproxy with USE_LINUX_TPROXY=1); [CODE] server configuration; [CODE] without the [CODE] line in haproxy.cfg...
In order to be able to use TPROXY, your SSH server must use the haproxy box as router (well, the haproxy box must be in the way of the packets, but this is the easiest way to do it). You also need the send_redirects kernel parameter enabled: [CODE]
2
1
5,180
2014-08-18T07:21:41.387
infrastructure
serverfault.com
208,712
MySQL database cannot accept SSL connections (Certs are UTD)
Not sure if this is the right place for this kind of question, but I have a MySQL Database running on an Azure VM. Everything was working great, until last week it seemingly randomly stopped allowing SSL connections. From everything I've seen looking through the certificates on the VM and the ones assigned to the VM th...
The issue was not with the database, but with the connector. As of v8.0.8 of the MySQL connector, they made it default to use SSL. If you want to not use SSL you just have to add "SslMode=none" to the end of your connection string.
0
0
60
2018-06-04T15:29:53.053
database_errors
dba.stackexchange.com
51,325
Simple linear regression in PyTorch
I am performing simple linear regression using PyTorch but my model is not able to properly fit over the training data. please look at the code to find the mistake. Dataset is here [CODE] The loss decreases from ~68.88 to ~30.26 and the resulting fitting is this: [CODE] What is the problem here?
I know this doesn't answer you 100%, but maybe it helps. Feel free to disregard. I just implemented this in keras and didn't have any issues [CODE] Is it possible you read your data in incorrectly maybe? Or maybe you are referencing it incorrectly when you set your Xt and yt?
2
1
479
2019-05-03T13:33:27.420
data_quality
datascience.stackexchange.com
437,107
Apache RewriteRule causes 500 error
I am trying to make use of an image processing app. It requires an Apache directive in a .htaccess file. But no matter what I do to the RewriteRule, I cannot getting it to work. Causes a Server 500 error. The rule is: [CODE] This should take any jpg/gif/png file and send it over to the [CODE] file, where it will be run...
The first parameter of the RewriteRule directive is a regex so you need to escape the period: [CODE] . Your rule also won't match because you need to match against the whole URI and not just the file extension. Thus the [CODE] is necessary to match whatever might come before the extension (e.g. filename.jpg or /images/...
0
1
819
2012-10-11T02:01:59.630
api_errors
serverfault.com
170,056
Drobo Pro or SAN for backups
I have multiple offices and was thinking of using two Drobo Pros as a storage location for my backups, with one at each site being synced. It seems like on the surface its a cheap alternative to a SAN. Because it will just be used for storing backups I don't think that performance is as big of an issue. Related questio...
Consider rolling your own NAS machine. Its not overly hard and is pretty cost effective. That said the drobo is nice, but consider your options for disaster recovery also. As i understand it the drobo uses its own form of raid ? - how would this impact rebuilding the volume if the drobo breaks ? If performance isnt a m...
0
1
369
2010-08-13T04:44:54.080
database_errors
serverfault.com
1,156,100
bind9 conditional forwarding not working as expected
Need your experience advice, We have a BIND9 DNS server that operates both privately and publicly for the domain xyz.com. I use the private DNS for certain secure nodes on our local network. I want all VPN users to be able to resolve these secure nodes using our local DNS, which is functioning correctly. However, the i...
What you have configured is not conditional forward. Conditional forward is where you specify a domain and then it's dns server like this [CODE]
0
0
42
2024-03-12T03:05:52.620
infrastructure
serverfault.com
968,020
Why can't I release memory cache by /proc/sys/vm/drop_caches
Today I found my server only have few free memory. and I executed [CODE] , it shows there are 60G memory used by cache. So I execute command to release cache, the result like this: [CODE] It seemes didm't release any cache at all, and this server doesn't have virtual machine on it. Why? What should I do to release cach...
[CODE] serves no operational purpose. Don't try it, you would only hurt performance. The only practical use case is cold caches for benchmarks. Cached is available to applications, but Linux calls it used. Obligatory: https://www.linuxatemyram.com/ Why would you spend money and power on fast memory and not use it for a...
2
2
5,327
2019-05-20T02:37:15.990
infrastructure
serverfault.com
298,052
Outbound Email Returned
my situation is this. I run a VPS that currently is setup to use Google Apps for domain for inbound email (all the email to *@mydomain.com gets routed via Google to a gmail account). This works fine. I'm also using sendmail on my localhost to send outbound email. However some of the outbound email gets returned with is...
The easiest way would be to configure your local sendmail to use Google's servers as a relay, or even use something like nullmailer instead of the beast that is sendmail. This way, you will have a sendmail style way to send mail, but none of the hassles to get your system working.
0
0
50
2011-08-05T12:39:47.810
infrastructure
serverfault.com
888,462
Cisco AnyConnect VPN Disconnects Internet with TP Link router
I use a TP Link Archer C20 Wirelss Dual Band Router to connect to fiber broadband service. For my office work, I connect to a VPN network, which works fine for sometime. And after a while, the VPN breaks the internet connection. None of the router clients are able to connect. The router is back up only when I reboot it...
It seems to be blocked due to UDP flood filtering consider under Security DDoS settings. You may disabled the settings and verify. It will help to resolved the issue.
0
0
1,620
2017-12-16T18:08:53.193
infrastructure
serverfault.com
929,879
Single RDP session and automatic disconnect of pending session group policy not working in Windows Server 2012
Good morning, I'm working on a client's environment. The servers are all Windows Server 2012. There's a pool of virtual desktops which is used by users to connect to their virtual machines and perform work, currently stored in a VDI server. There's also a connection broker server which allows users to use RemoteApps. I...
The "One Session per User" setting is a per-server setting, which prevents users from opening up multiple sessions on the same host . This is applied on reboot and restricts one sever only. If you want to use this on all your session hosts: Setup an NLB cluster for the servers. Set up your Broker Enable the setting "Re...
1
0
595
2018-09-07T11:00:43.087
infrastructure
serverfault.com
164,772
Deadlock in INSERT ... ON DUPLICATE KEY UPDATE
We have a table defined like this: [CODE] We are doing bulk inserts into this table in batches of up to 15,000 records at a time. Inserts are structured like this: [CODE] The records in the [CODE] set have been ordered by id alphabetically. When we reach a very high rate of input with multiple instances of the query ru...
Following the MySQL recommendations , some options I'd consider: Check the [CODE] to see what the deadlock is on. Convert the [CODE] into a [CODE] then [CODE] or [CODE] . Reduce the size of the batches so they are quicker. Reduce the concurrency. What is the relation between the ids in the concurrent batches? Do the ra...
7
4
6,856
2017-02-18T06:36:17.737
database_errors
dba.stackexchange.com
1,044,319
HSTS and Wordpress redirection to www and non-www and https - avoid multiple redirections?
I am trying to implement the HSTS (HTTP Strict Transport Security) on my Wordpress site, but I am not getting any success. First I had managed to redirect my site from non-www to www , and including https:// , but I got the message on https://hstspreload.org/ that it should redirect to www first. I was trying to use th...
To summarise, the main requirements of HSTS are: Redirect from HTTP to HTTPS on the same host . ie. [CODE] to [CODE] and [CODE] to [CODE] Redirect to the canonical hostname (www or non-www) on HTTPS only. (ie. after #1 above) Send the [CODE] (STS) HTTP response header when on HTTPS only. Including on the canonical redi...
2
3
1,498
2020-11-29T14:25:18.327
infrastructure
serverfault.com
9,081
Any experience with Mono on production servers?
I am curios to use .NET for some web applications (e.g. ASP.NET MVC 2). However my budget is limited so I would like to use Mono on Linux. I have never used Mono before, and I haven't read about any bigger sites that is using Mono+Linux on the server in production. What's your experience using Mono on Linux in producti...
I've been doing some mono mvc stuff on my mac (unix not linux) in the recent weeks and have found mono combined with monodevelop to be a pretty featured and useful environment. So far in a few prototype sites I haven't yet ran into any deal breakers or major issues. In the next few weeks I'll be deploying some sites to...
22
15
3,088
2010-10-02T22:34:20.033
api_errors
softwareengineering.stackexchange.com
247,131
Mysql Config Suggestions - CPU too high
My server (64GB,16CPUs) has mariadb 5.5.60. The queries are around 500 selects /second and 300 inserts/seconds. The queries are simple select of auth token and user details. Both are properly indexed. The insert query is also very simple. However, the CPU usage is still high %cpu usage is >600%. The following is the my...
[CODE] Is the old name for [CODE] . They limit the number of entries. 10G is unreasonable . [CODE] is high, but probably OK. [CODE] are dangerously high. If just a few threads decide to build a big temp table, you could run out of RAM, possibly out of swap space. Set them to no more than 1% of RAM. These are OK as you ...
1
1
345
2019-09-06T06:48:15.843
database_errors
dba.stackexchange.com
377,351
Ruby Passeger + Nginx or lighthttpi + fgci for shared hosting
I have set up a passenger + nginx setup and I plan to offer a free non-commercial hosting (or in fact on the fly deployment) for rack-based frameworks (e.g. camping, sinatra). I am facing an "issue" with passenger. For each application you need to configure nginx.conf (it would be the same with apache so it is not an n...
I'd take the third option -- nginx with fastcgi. It's pretty trivial to configure an nginx vhost using an included directory with all the sub-paths you want routed to each app, and automating the creation of the Rack process (running under daemontools ) on first push (along with the rest of the stuff that needs to be d...
0
0
359
2012-04-06T15:18:13.127
pipeline_ops
serverfault.com
65,460
Are there any Python libraries for predicting the closest value to a correct label out of a variable-size list of possible label values?
Imagine I have the following dataset: [CODE] and my goal is to be able to predict a value that is the closest to the set of possible labels. That is, this is a regression problem. (A sub-optimal solution I would also accept as an answer would be for my goal to be to predict a value that belongs to the set of possible l...
This could be treated as a multiclass & multilabel classification problem. If you are able to get your label lists in some good shape, you could check the Keras functional API for multitarget regression/classification models. The main linitation is that you would need a list of outputs with equal length. I guess the be...
4
3
363
2019-12-26T11:04:42.670
data_quality
datascience.stackexchange.com
256,183
imaging/cloning with DHCP network rebuilding/recovery of solaris 9 and 10 sparc servers
I have a number of solaris 9 and 10 sparc servers (no RAID) that are custom dvd jumpstarts provided by SONUS Networks for their softswitch VOIP products. Normal install process would be to use the DVD supplied by SONUS to do a reinstall from scratch in the event of failure. Since we deploy our softswitches to unmanned ...
Solaris flash archives might be what you are looking for. http://download.oracle.com/docs/cd/E19683-01/816-7171/6md6pohot/index.html
0
1
219
2011-04-06T03:21:38.330
pipeline_ops
serverfault.com
622,872
Performance associated with storing millions of files on NTFS
Does anyone have a method / formula, etc that I could use - hopefully based on both current and projected numbers of files - to project the 'right' length of the split and the number of nested folders? Please note that although similar it isn't quite the same as Storing a million images in the filesystem . I'm looking ...
Some years ago I started writing a storage system similar to ceph. Then I discovered ceph and what they had worked better so I dumped my development. During the development process I asked a similar question to yours but on SA I did a lot of calculation on handling lots of small files and found that naming files (assum...
3
2
3,068
2014-08-20T20:13:17.197
data_quality
serverfault.com
219,436
Infrastructure-related additions in commit comments
For the sake of this question, let's agree on this definition of "good commit message" from here : Your comment should be brief and to the point, describing what was changed and possibly why. and accept that referencing a bug/issue in a commit message is a good thing. Now, there are a lot of tools that integrate with V...
Those should not be part of the commit message, they should be attached to the commit as metadata. See git notes for example, which allow you to attach arbitrary metadata to any Git object, including blobs, trees, commits, annotated tags, signed tags, and even notes (which would make this metametadata, I guess). Other ...
2
2
63
2013-11-25T10:23:51.890
api_errors
softwareengineering.stackexchange.com
233,829
Why can't I connect to remote Microsoft SQL Server through SSH tunnel?
I have at home a D-Link DIR-615 C1 router with DD-WRT . I set up the SSH server on the router, and log on through an SSH2-RSA passphrase-protected key. That router is the gateway between the local network and the internet. One of the computers on that network has Microsoft SQL Server 2008 installed, with TCP/IP protoco...
When upgrading to a newer Dlink Router, I had the problem of no longer being able to connect to SQL SVR between computers on my network (plugged into the Dlink Router). I found the solution on this forum . Disabling "Advanced DNS Service". Enabled is the default. (Setup > Internet > Manual Internet Connection Setup > A...
2
1
12,031
2011-02-10T12:37:37.510
database_errors
serverfault.com
1,122,395
How to add meta tags to a query string in Nginx?
My website has been hit by a massive internal search spam attack. Tens of thousands of spam links have been indexed by Google, and I'm trying to add Noindex and Nofollow tags to my search results page. My search results page uses [CODE] query string. [CODE] And I tried the following code, but it doesn't work. [CODE] Se...
You should be able to use the following [CODE] : [CODE]
0
0
686
2023-02-09T10:25:38.130
infrastructure
serverfault.com
936,430
How to get Exim to accept mail for subdomains?
I'm trying to use subdomains with Exim, but If I send a test message to any address other fqdn than my basic domain name it gets bounced with a relay error. I can send and login to both Dovecot and Exim with an address with, for example, testing@mysub.mydomain.com, but can only send mail out from that address. Incoming...
If you are editin the cofiguration directly, add a wildcard to your [CODE] macro in your configuration or template. [CODE] This will set the [CODE] used to accept email. [CODE] If you are using Debian based configuration specify your domains as other domains in 'update-exim4.conf.conf' like this: [CODE] If you want to ...
2
3
2,278
2018-10-20T10:31:15.687
infrastructure
serverfault.com
378,192
memory tuning with rails/unicorn running on ubuntu
I am running unicorn on Ubuntu 11, Rails 3.0, and Ruby 1.8.7. It is an 8 core ec2 box, and I am running 15 workers. CPU never seems to get pinned, and I seem to be handling requests pretty nicely. My question concerns memory usage, and what concerns I should have with what I am seeing. (if any) Here is the scenario: Un...
This is the line that matters (specifically the last column): [CODE] You'll note that this number doesn't really change when you dropped your caches. The OS will deal with the freeing buffers when the running applications demand more memory. For what you're doing, it's not productive to try being very fiddly with how t...
0
0
1,497
2012-04-10T17:25:01.877
database_errors
serverfault.com
284,541
RDS Postgres chicken-and-egg problem altering roles
I just created an RDS Postgres instance, the user [CODE] (and it's master password), and connected via psql as user [CODE] . Then I ran the script generated from the current system using [CODE] , and it immediately failed on the [CODE] commands: [CODE] Ok, but how do I grant [CODE] to [CODE] ? All of the documentation ...
Your RDS master user is not a superuser . [CODE] changes the attributes of a PostgreSQL role. [...] Roles having [CODE] privilege can change any of these settings except [CODE] , [CODE] , and [CODE] ... Omit incompatible settings from your [CODE] command.
4
3
3,452
2021-02-02T19:10:37.610
warehouse_errors
dba.stackexchange.com
291,385
What is a good tool/method for version controlling a part of a live database?
Sometimes if a database gets corrupted, a replicated database could also replicate that same corruption. What is the best way to replicate/backup a database and prevent something like this from happening? (specifically for MySQL)
If the "corruption" is at a level where it will be replicated, then the only solution is frequent backups and a good means of detecting such corruption so you can quickly recover. You'd need to define how to detect the corruption based on your specific application, because from the database's point of view, everything ...
0
1
90
2011-07-18T11:41:47.853
database_errors
serverfault.com
281,708
Working setup for MySQL HA & LB
I have to setup [CODE] and [CODE] for web(apache-tomcat+mod_jk) and MySQL(where all clients info is stored) server which are running on the same machine(ubuntu server). First I am trying to setup for the MySQL databases with minimal setup of servers(2 or 3). I heard about [CODE] setup which is not suitable for HA as th...
There is a plethora of information on HA & LB for MySQL available on the web, and in print. What research have you done so far? I suggest starting here .
1
1
272
2011-06-18T02:20:23.623
database_errors
serverfault.com
24,560
K-means clustering on the data frame having only one column
[CODE] is a [CODE] which has only one column: review . I want to form 2 clusters of the reviews . One positive and one negative . [CODE] The above piece of code is throwing an error: ValueError: n_samples=1 should be >= n_clusters=2 on the line [CODE]
Here is how to fit k-means to a single-dimensional text data in Pandas: [CODE]
5
2
10,638
2017-11-10T10:07:25.933
data_quality
datascience.stackexchange.com
114,083
Apache configuration with virtual hosts and SSL on a local network
I'm trying to setup my local Apache configuration like so: [CODE] should serve [CODE] [CODE] should serve [CODE] [CODE] should serve [CODE] I only want to allow connections from our local network (192.168.1.* range) and myself (127.0.0.1). I have setup my hosts file with: [CODE] My Apache configuration looks like: [COD...
When apache cant mactch vhost it opens the default one. There is always a default, if not explicitly defined it is the first vhost definition in your config file. You can use httpd -S to check what are your default vhosts And you can define default and forbid access to it if you like as defraagh pointed
7
2
8,856
2010-02-18T01:27:36.253
infrastructure
serverfault.com
371,246
monitoring services, CPU, memory remotely on a Windows server machine
I'm looking for a tool that is able to (remotely) monitor CPU and Memory in a Windows server but most importantly, which service/process is using it. Or-- is it possible to monitor a specific running service? We got a server that freezes on regular basis and we're trying to find the culprit without using a local debugg...
Try observium on a remote machine, then setup SNMP for windows on the machine you want to monitor and add it in your observium server. It will give you a lot of information. Another possibility is to setup a nagios server with nagiosgraph and install nagioswin as agent. You can also use nagios in combination with WMI .
-1
5
3,017
2012-03-19T18:01:31.500
pipeline_ops
serverfault.com
1,088,246
Creating new datastore and VMFS
I was currently working on the ESXi lab and trying to do some work with it. So I have an ESXi that is running on a server and I installed 2 ESXi on it (two ESXi are running on the primary ESXi). The problem is after finishing installing 2 ESXi, none of them had a datastore. So I had to create a new VMFS. But I faced th...
You are running 2 nested ESXi on top of your main ESXi server. Add a VMDK to each ESXi VM and then you will be able to create VMFS datastore. There are nested ESXi appliances, which can make deployment easier: http://vmwa.re/nestedesxi In addition, the following article should help: https://www.vmwareblog.org/nested-vi...
3
5
440
2021-12-26T20:33:46.113
infrastructure
serverfault.com
506,655
An Error Occurred Installing Boot Loader (SLES 10.1)
I am trying to install SLES (SuSE Linux Enterprise Server) SP 1 onto a server but I'm having an issue with the bootloader. I go through the install, more a less default options except Gnome Desktop is not installed and the OS appears to install without issue until the boot loader. When I then get the error [CODE] . If ...
You could try the procedure to manually reinstall grub from here: http://www.novell.com/support/kb/doc.php?id=7001376 It seems that the kernel and grub can't map the disks on your raid array.
0
1
1,555
2013-05-10T10:49:04.833
infrastructure
serverfault.com
252,420
creating a mysql.cnf file for import
I have created a config file for dumping .sql with no password prompt, is it possible to do this when using import? I have read somewhere to just add on the cnf file "mysqlimport" then the credential details, but gets me back with an mysql error code 2000 'user'@'localhost' access denied, using password (NO). I also tr...
I've decided to not use the cnf file, instead I used .yaml in solving this. Thanks for answering.
1
0
345
2019-11-02T07:11:21.803
database_errors
dba.stackexchange.com
19,070
How can I push to a repo when CI_JOB_TOKEN doesn't permit it?
Currently, [CODE] doesn't allow you to push to a repo . When I try I get, remote: You are not allowed to upload code. How can I work around this if I need to push to the repo in the CI? The [CODE] which has the [CODE] can not be used.
One method to do this is to generate a Project Access Token and store it as a protected environmental variable. You can do this like this, From the project page, add [CODE] to the end of the URL You need to create a token with At least the role of [CODE] or greater ( the default of Guest will NOT work ) Add to the toke...
1
1
47
2024-03-19T23:36:22.500
pipeline_ops
devops.stackexchange.com
238,844
Prevent read access on primary AG replica, but allow it on the readable secondary
We have a unique situation where we want to allow users to query a readable secondary replica of a database with SSMS for adhoc reporting, but not allow them to ever read from the primary replica. We have setup read-only routing to accomplish this. This is also all on SQL 2016. My initial thought was to create the logi...
It seems we basically need to allow a login connect permission on the primary replica [...] That's exactly right. The login being used to connect has to be able to connect to the primary. When you using [CODE] in a connection string that's pointed at an AG listener, the driver initially connects to the primary instance...
2
8
3,196
2019-05-23T01:28:02.433
warehouse_errors
dba.stackexchange.com
144,928
Windows VPN always disconnects after < 3 minutes, only from my network
First, this problem has existed for almost two years. Until serverfault was born, I pretty much gave up on solving it - but now, hope is reborn! I've set up a Windows 2003 server as a domain controller and VPN server at a remote office. I am able to connect to and work over the VPN from every windows client I've tried,...
Tremendous thank you to @Warner and @William for their suggestions. Ultimately it was William's answer which lead me to the final resolution. For anyone who comes looking, here's the deal. After a ton of messing around trying to isolate the problem, I finally did as William suggested and pulled up my firewall logs. Not...
13
8
83,225
2010-05-25T03:03:38.557
infrastructure
serverfault.com
156,073
Am I too young to burn out?
I feel like I have burned out, even though I am only out of college for 5 years. For the first 3 years of my career, things were going awesome. I was never anything special in school, but I felt special at my company. Looking back, I could tell that I made all the right moves: I actively tried to improve myself daily. ...
It Happens Unfortunately we don't always get the credit we deserve, or management will give credit to the people directly under them, who do not necessarily have the power (or honesty) to bestow some of it upon you. It's an organizational thing: by way of the organigram, it should trickle down; except a few people act ...
123
112
17,879
2012-07-09T04:44:40.800
data_quality
softwareengineering.stackexchange.com
132,884
Foreign keys update automation
I'm on SQL Server 2014 and I need to clean a table from duplicates. Problem is: if a duplicate has references in other tables, that references should be updated to reference the chosen non-duplicate entity. E.g., say a have a [CODE] table: [CODE] I need to delete [CODE] , [CODE] , [CODE] and replace references around t...
I think this will do it I changed this answer as I may have read the question incorrectly Look at edit history if you are looking for something different as for the fk [CODE] run above for addition fk [CODE]
1
1
158
2016-03-21T17:08:44.077
data_quality
dba.stackexchange.com
988,898
Possible the connect OpenVPN and AWS Transit Gateway
I have setup a Transit Gateway and a Site-to-Site VPN connection from our on-prem to our AWS accounts. It is working like a charm. We have remote users working at home who need remote connection to our infrastructure. So I setup an OpenVPN Server in one account, and OpenVPN Client in the others + nomade users. Now I wa...
I now have it working. I use Pritunl rather than pure OpenVPN. My VPN server has a single NAT route to 0.0.0.0/0 VPC1 (172.31.0.0/16) - Transit gateway and my VPN server VPC2 (172.42.0.0/16) - Another VPC attached to the transit gateway Both VPC's are already attached to the TG In each VPC add a route in your subnet ro...
3
0
1,801
2019-10-21T19:37:20.783
infrastructure
serverfault.com
43,510
How to add an automatically-populated custom sequence number?
I have table something like this: [CODE] I want column [CODE] have sequential numbers for each tip. To be clear, I want to automatically or default or use a computed column with a function like this: [CODE] In SQL Server 2005, can I have a column which will automatically have values? Should this be done by computed col...
Create a trigger that on [CODE] will populate that filed. You cannot have it as a calculated column, as latter cannot refer to any tables.
0
2
342
2013-05-31T08:49:30.583
data_quality
dba.stackexchange.com
955,683
iptables NAT HTTPS on external IP to internal IP - debian
I've been trying to NAT HTTPS traffic on an external IP (say debianIP1) to an internal IP (say debianIP2) based on several examples/guides, like: How to do port forwarding/redirecting on Debian? https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Security_Guide/s1-firewall-ipt-fwd.html and htt...
Try [CODE] which is not same as [CODE] Explained here
0
0
1,129
2019-02-25T19:41:37.433
api_errors
serverfault.com
941,835
Mapping a folder on Synology NAS to all Authenticated Users W2K12 Essentials
We have a W2k12 essentials server with about 10 users on it. I want to add a group policy to map to a folder on our Synology NAS drive. I believe I'm having a permissions issue, but not sure. I added the drive map in GPE and targeted it to Authenticated Users. I tried to add permissions for 'Authenticated Users' on the...
I have found that item-level targeting will not work with the SID populated. There is a bug in AD DS that will not allow this to work unless you type in the group name only. Do not click the '...', just type in the group name that you want to target. Very useful article here . This article helped me out with this same ...
1
2
1,732
2018-11-27T14:57:33.017
infrastructure
serverfault.com
431,206
What does the Ubiquiti Bullet do?
I was briefly shown the networking setup for a rural hospital campus. Some of the things I was told or shown are: There is an 802.11b signal, broadcast over an omnidirectional antenna on a tower. This network is password-protected. 802.11b was chosen for the sake of longer range, even though its bandwidth is not as gre...
What is the Bullet - what is the name for this type of device? I call it a radio, but it's basically the non-antenna part of the equation. What makes it unique is that it's really small compared with a regular access point (the smoke detector style, the larger panels, etc.) that would have an integrated internal antenn...
4
1
4,348
2012-09-23T22:42:25.417
infrastructure
serverfault.com
508,373
Minimal handshaking necessary before establishing TCP connection
I have a Windows PC that is running a TCP server on port 9000. I also have an FPGA which is directly connected to the PC via a 10G port. The FPGA can send ethernet frames to establish and maintain a TCP connection with the server, and that's it. That is, the FPGA can send an initial [CODE] , respond to the [CODE] , etc...
Maybe I'm missing something but the "minimal handshaking necessary" to establish a TCP session is the TCP 3-way handshake: SYN--> -->ACK
0
0
323
2013-05-16T16:25:29.297
infrastructure
serverfault.com
372,060
Is it wrong to prefer exceptions to centralize error handling logic?
Using C++, often I hear that you should avoid throwing exceptions for flow control and you should avoid calling functions in conditions where you know they will throw. For example, if a function throws when you pass it an empty string, why not check for empty before calling that function? I personally as of late have b...
I think we can all agree that this is bad: [CODE] And this is bad: [CODE] And this is good: [CODE] Why are the first two examples so clearly bad? Because they're violating the language's natural idioms. (or the Principle of Least Surprise, if you prefer) Why is the third example fine? Because, if you don't supply the r...
1
8
465
2018-06-04T14:01:54.910
api_errors
softwareengineering.stackexchange.com
442,126
What is the safest way to deploy a lot of changes at once to a legacy, monolithic application with no test coverage?
My team have recently inherited a very poorly written, business-critical, monolithic LAMP application with the goal of guaranteeing reasonably uptime and scalability targets in just a few weeks. Our deadline is somewhat fixed because it depends on user volumes over the peak season, which we forecast will start picking ...
Since you don’t have any automated testing that would find bugs, the next best thing is to make changes while introducing the smallest possible number of new bugs. Writing good code carefully and code reviews is one way. There’s a better way: Take two good and reliable developers. Let them agree what is to be changed a...
3
3
255
2022-11-07T01:06:38.320
data_quality
softwareengineering.stackexchange.com
68,015
Mysql can't write to filesystem
I need to output some queries as csv files. The directory is in the webroot and I want it to be writable by apache too, so I'm trying to add mysql to the www-data group (on Ubuntu). I thought this would work, but I've missed something: Add mysql to www-data: [CODE] Restart mysql: [CODE] Verify permissions: [CODE] Verif...
On Ubuntu apparmor doesn't let mysql write to directories other than listed in /etc/apparmor.d/usr.sbin.mysqld apparmor is enabled by default, but on dedicated MySQL servers I don't see much sense in it. From https://help.ubuntu.com/14.04/serverguide/apparmor.html : "AppArmor can be disabled, and the kernel module unlo...
0
1
1,873
2014-06-10T19:32:47.427
database_errors
dba.stackexchange.com
897,330
Why freeradius server says invalid Message-Authenticator which is generated from radtest?
I am learning how to use freeradius, the version is v2.1.12. When I run radtest, there is no response from server, I see server side debug message has the following: [CODE] Here is radtest command: [CODE] Here is my edit of /etc/freeradius/clients.conf: [CODE] Here is my edit of /etc/freeradius/users: [CODE] Here is th...
It's probably not loading the right clients.conf or you have another definition for 127.0.0.1. Try using [CODE] which is the default for the localhost client definition. If it works, you know the problem is a pre-existing definition.
5
2
15,073
2018-02-15T05:07:11.250
infrastructure
serverfault.com
402,775
Better way than singleton pattern to ensure single instance of class
When this question has been asked before on StackOverflow in 2011 and 2015 , all answers as of now suggest to use a Singleton. But that’s not right. Singletons are defined by the Gang of Four to mean two things: 1) Ensure a single instance 2) Accessible everywhere I do not want accessibility everywhere. There are many ...
What you have written is also a singleton. Just that you throw an error when accessing it a second time. So it lacks the gloabal access to the instance, but only from the second access. So you did not really reinvent the wheel with this. Sorry :) In general i consider the singleton as a "outdated" pattern. Also it hand...
-3
6
1,925
2019-12-20T21:44:00.363
api_errors
softwareengineering.stackexchange.com
704,262
How to run standard linux commands in nocache mode automatically?
There is a way to run commands in Linux without caching the result, i.e: [CODE] Is there is a way to make this nocache mode automatic? Something like a global setting. The problem: I have a lot of vendor scripts that use [CODE] or [CODE] or other standard commands, and I do not want them to clutter my cache.
I'd really like to discourage doing this, as it may end up just as disruptive. You'll essentially now force a whole lot more IO, which may well (depending on your setup) end up contending with mysql for IO which would be just as bad. If you really must, make wrappers for cp/find/etc in a separate directory and stuff it...
0
2
4,836
2015-07-08T08:07:13.303
infrastructure
serverfault.com
654,755
nginx domains using SSL cert listening but inaccessible
I have multiple domains and multiple domains using SSL certs running under nginx. All domains are basically using the exact same config, substituting for names of course, except for the HTTPS-enabled domains which I have the SSL settings specified. Between these two domains the config is also the same for SSL with exce...
Ok, so here's what the problem ended up being. I assumed that if you enabled Full SSL (Strict) that CloudFlare would always connect to your website over HTTPS. Obviously that's not how it works. If you try to visit a site using HTTP CloudFlare will still connect to your server over HTTP. All I had to do was add a page ...
2
1
677
2014-12-25T17:27:44.297
api_errors
serverfault.com