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
160,970
Dumping and importing with backslash
Background I have a MySQL database, from which I run [CODE] for backups. In this database, I have some fields that will contain some backslashes, and when dumping this, it will contain something like [CODE] (For reference, this is TeX , used in this case for typesetting mathematics.) Problem Now, when I import this bac...
If you use mysqldump to export your data it will take care of this for you. For example: [CODE] notice the escaped backslash? and: [CODE]
1
0
1,552
2017-01-13T09:18:31.673
database_errors
dba.stackexchange.com
20,920
SSIS transfer SQL server objects task -> Foreign key constraint error
I try to copy a database from 1 server to the other to build a staging environment. I do this with SSID. First I delete the existing database on my staging server, create a new and empty one and then I run the script. I copy everything. Most of my databases copy correctly except for 1 which gives me a Foreign Key const...
AS sugested by Billinkc we tried to first copy the table and then copy the relations. This worked as hooped.
0
1
2,598
2012-07-13T15:01:50.490
data_quality
dba.stackexchange.com
81,613
How to handle fixed values for variables in pre-processing
I have a dataset which contains few variables whose values do not change. Some of the variables are non-numeric (for example all values for that variable contain the value 5) and few variables are real-valued but all same values. When doing standardization of the variables so that each is a zero mean and variance 1, th...
By definition, if these columns or features contain a constant value and yet the output variables change, then they are not influencing the output and likely can be ignored. A more formal test is to determine how much of the variance between a model that uses that feature is attributable to that feature. A simple examp...
1
1
80
2020-09-12T17:10:15.957
data_quality
datascience.stackexchange.com
790,949
vSphere - Virtual Network Device Issue
So I have network monitoring at our business and since we have been monitoring I have noticed massive spikes on one of our core switches in particular -it is causing our internal network to slow down. The problematic interfaces that are throttling data are connected to our host that runs our vSphere. We have around 60 ...
would using the same virtual network device improve network performance? VMXNET3 is, with up to date vmtools installed, easily the most efficient method to use, it should reduce your hosts CPU load but won't actually lower the amount of traffic your VMs are sending, in fact it may increase it as it's more efficient. So...
0
1
17
2016-07-20T14:47:55.927
pipeline_ops
serverfault.com
1,553
Ansible tmp files created with odd permissions
I have an ansible playbook which can be simplified to this: [CODE] With the following in [CODE] , since it may be relevant: [CODE] That playbook successsfully configures 10 servers, but one of the servers fails with: [CODE] So I ssh'd to the problematic server and a "healthy" server, and [CODE] the contents of the late...
The reason for the failure is that the server in question, unlike all the others, had sftp disabled. Why the error messages are what they are, I don't know (why the errant [CODE] ?), but I don't have time right now to investigate with the debug option enabled. But that was the issue, and adding [CODE] to the [CODE] sec...
2
3
2,174
2017-07-17T19:37:51.053
pipeline_ops
devops.stackexchange.com
917,363
Global Address List/GAL/OAB Not Updating
I've been doing enterprise IT for about 8 years and have never had to ask a question in a forum, because you lovely folks had already answered all my questions for other people. However, I'm very stuck, and even my co-workers aren't sure what's going on here. I work for an MSP and one of my clients is running Exchange ...
Can you reproduce it again (new a test mailbox)? How about restart Microsoft Exchange information store service, Microsoft Exchange System Attendant service and Recipient Update Service? Or schedule a free time to restart Exchange? Moreover, check the event log in Exchange server and monitor the connection between GC a...
0
0
3,757
2018-06-19T19:46:12.337
infrastructure
serverfault.com
174,548
Installing pop3 and smtp mail server on Ubuntu
So, I'm pretty new to linux. I managed to install php, mysql, and apache as well as setup my domain name and what not. Until now I thought linux would be a breeze. I'm trying to install a mail server that will allow me to receive and send mail from "anyaccount@mydomain.com". I've tried following a few postfix guides bu...
Did you follow the Ubuntu Server Guide ? The Postfix + Dovecot setup is rather simple to set up (and so is the Exim one, I presume). Also, like Andreas Rehm I want to warn you that running a secure & safe mail server is not simple without knowing how SMTP, DNS , etc. work, and what the possible pitfalls are (this is th...
0
2
3,429
2010-08-25T21:25:32.577
database_errors
serverfault.com
824,926
Local port forwarding and Putty connection
I have 2 ssh-servers on virtual machines. Debian (192.168.141.129) and Kali Linux (192.168.141.136). On Debian I forwarded local port 22 to Kali port 2027 , so on Kali when connecting to local port 2027 I am redirected to ssh-server on Debian . Now I need to use Putty on the third virtual machine (192.168.141.132) to c...
Yes, just directly connect to your kali VM on port 2027 in Putty. You also may have to enable [CODE] in [CODE] as this is disabled by default and will make forwarded ports only listen on the [CODE] .
-2
0
1,115
2017-01-08T11:57:03.897
infrastructure
serverfault.com
1,144,569
KeepAlived and HAProxy VIP Appears Twice
[CODE] I'm protecting 2x HAProxy load-balancers using keepalived in a master/backup configuration. I'm seeing the VIP appear on BOTH the master and slave - when I understand the VIP should only appear once - and should transfer back to the master when it comes back online. I can fail the master and everything works - a...
So turns out software update was required. Also SELinux blocks script check haproxy so whilst can detect the total lost of a LB it doesn’t detect the failure of the haproxy service
0
0
129
2023-09-27T13:11:56.117
database_errors
serverfault.com
396,773
Write, wall, who and mesg
I want to set up a server with a lot of users so that (in order of importance): Users cannot obtain ip addresses of other users with [CODE] , or [CODE] Users can [CODE] to each other Users are able to selectively [CODE] other users, as opposed to simply blocking everyone [optional] Users cannot [CODE] Point 1 is easily...
The [CODE] command essentially writes to a device file such as [CODE] . It seems to consult [CODE] in order to figure out the correspondence between users and ttys. One can work around this by simply listing the contents of [CODE] with [CODE] (although it's most probably not needed - see below). [CODE] doesn't seem to ...
5
7
2,351
2012-06-08T08:25:53.013
infrastructure
serverfault.com
748,690
Postfix Localhost Server Sending Spam to Itself
I have an iRedMail server that runs Postfix and am trying to determine the source of its spam problem. I have since changed the MX records on the domain for the address receiving spam and the good news is no spam is coming through to this second server. However, new spam messages keep appearing at the old server, despi...
This email came from outside your server, from the indicated IP address. Postfix is configured to pass it to Amavis for virus scanning, and when that is complete, Amavis passes it back to Postfix for delivery. This is why there are two localhost Received: lines. One is added by Amavis when it processes the message, and...
0
4
2,592
2016-01-13T05:21:58.817
infrastructure
serverfault.com
238,449
Some basic questions about SQL and TLS 1.0 and 1.2
(I don't believe this is a duplicate of any other TLS-related question, like the authoritative question about SQL Compatibility with TLS or its many duplicates , or questions about specific TLS-related issues you might encounter with SQL CLRs or Classic ASP or SSRS or whatever. This question is a bit more broad.) All o...
This might be different for each client, so you need to test them separately. First of all for most clients (since they use SChannel) your Windows machines need to be recent enough to support TLSv1.2 (I.e. Server 2008 R2 and later). For those you also need to make sure TLSv1.2 is actually turned on in the Schannel regi...
4
1
1,582
2019-05-17T20:10:28.683
database_errors
dba.stackexchange.com
685,471
Getting All Users From Active Directory Groups Using Powershell
I have a powershell script that I've written that gets all of the groups from an OU and stores them in a variable $groups. I want to be able to access the users of each group but seem to be having trouble. I've tried: [CODE] Which gives me the following error: [CODE] I am using Windows Server 2003 R2 on a windows 7 mac...
To retrieve only the members that are users, and not groups: [CODE] If you want users who are members of the groups indirectly (through nested group memberships), user the [CODE] switch parameter: [CODE] You can then assign the output to a variable for further use, like so: [CODE]
1
5
2,849
2015-04-24T23:28:32.200
infrastructure
serverfault.com
25,585
Can't start mongodb in ArchLinux
I have installed mongodb using [CODE] in my 32-bit arch . At first I run this [CODE] to create [CODE] ,and then run [CODE] ,then I got the following message : [CODE] what does [CODE] mean?
You ran [CODE] as not yourself. Now that directory is owned by root. You need to chown the directory back to yourself before starting [CODE] otherwise mongod cannot access the directory write the files into it that are needed. Please also find a 64-bit platform to run mongo - it's not really a very good idea to run it ...
2
4
5,230
2012-10-06T03:06:33.973
database_errors
dba.stackexchange.com
185,018
MVC exposes database primary keys?
I'm going through a MVC tutorial, and I notice that convention seems to be to expose a tables primary key on detail pages/urls (ie. /Movies/Details/5 as an example from the tutorial). It's obviously not a problem for things like a movie record or a SO post, but it might be a bit different for an invoice or transaction ...
And that's why I think those tutorials simplify things to a degree that confuses the newcomer. Try to do a little "tabula rasa" and think the process from scratch, and decoupling the concepts. First of all, MVC is a presentation layer. It does not (or should not) even know what is backing it up. It could be a database,...
6
3
3,572
2013-01-28T02:34:16.797
api_errors
softwareengineering.stackexchange.com
12,339
Exchange Server Contact Categories - How to Remove/Update All
I've been tasked with cleaning up our companies contact database sitting on our Exchange Server 2003. The rub is this database of contacts has been neglected for the past couple of years and is now a bit messy. My issue is I have say a person named 'Bob Smith', and Bob is listed in multiple categories, 'Students' and '...
My question is, is there an easy way to edit the master category lists for contacts on the exchange server? The master category list is a per-user setting. It is not stored on the Exchange server. In Outlook 2003 it is stored in the current user portion of the registry at this location. [CODE] If you want all users on ...
1
3
3,660
2009-05-26T19:30:35.537
infrastructure
serverfault.com
443,812
Chef-Server fails startup
I've installed chef-server from the chef apt repository using these instructions and everything seems to work until I try to start chef-server. I'm running Debian Squeeze in a Linux container (LXC). This is an example of the output I get when I try to start chef-server: [CODE] There does not seem to be any log files fo...
In your chef-server config file, replace [CODE] with [CODE] Now watch your log files to see where exactly it's failing.
1
0
124
2012-10-30T18:56:01.393
pipeline_ops
serverfault.com
119,415
How to Deliberately Practice Software Engineering?
I just finished reading this recent article . It's a very interesting read, and it makes some great points. The point that specifically jumped out at me was this: The difference was in how they spent this [equal] time. The elite players were spending almost three times more hours than the average players on deliberate ...
There's a difference between what we do as software engineers and what a violinist (or anything else that requires physical practice would do). A violinist spends hours practicing methodically because they are teaching their brain very specific patterns of how to interact with an instrument. Practicing software enginee...
52
27
34,694
2011-11-12T21:21:27.807
api_errors
softwareengineering.stackexchange.com
581,733
Linux IPSec between Amazon EC2 instances on same subnet
I have a requirement to secure all communications between our Linux instances on Amazon EC2 - we need to treat the EC2 network as compromised and therefore want to protect the data that's being transferred within the EC2 subnet(s). The instances to secure will all be on the same subnet. I'm a Windows bod with limited L...
The short story, yes, there should not be any problem to run tunnels between hosts on a subnet and instead of adding routes to networks behind endpoints you would have to add host routes (/32) instead. A generic guide on how to set up a site to site tunnel could be of use: Building a site-to-site VPN with Debian/Ubuntu...
1
0
1,260
2014-03-13T08:30:44.233
infrastructure
serverfault.com
478,565
SharePoint 2013 Active Directory Group not working
Just setup a new 2013 SharePoint...Put a handful of users in an AD group that was then put in the SP site members group. Works perfect for most people, but some are getting access denied messages to the site even though they are in the AD group. If we give the people access explicitly in the SharePoint members group th...
SharePoint caches your AD Group Membership. So if the user already exists and had logged into SharePoint recently, their group membership change won't take effect until the cached values expire. This means that adding a user to a group might not take effect until tomorrow, and removing a user from a group won't take ef...
4
3
9,503
2013-02-13T21:58:56.713
infrastructure
serverfault.com
142,278
Are nullable types preferable to magic numbers?
I have been having a little bit of a debate with a coworker lately. We are specifically using C#, but this could apply to any language with nullable types. Say for example you have a value that represents a maximum. However, this maximum value is optional. I argue that a nullable number would be preferable. My coworker...
Consider: Language, Framework, Context. 1. Language Using ∞ can be a solution for a maximum. JavaScript, for example, has an infinity. C# doesn't¹. Ada, for example, has ranges. C# doesn't. In C#, there is [CODE] , but you cannot use it in your case. [CODE] is the maximum integer, 2,147,483,647. If in your code, you ha...
22
26
2,489
2012-03-30T16:08:54.370
api_errors
softwareengineering.stackexchange.com
446,794
How to return a result from an active object state machine
I frequently use the concept of Active Objects ( https://www.state-machine.com/active-object ) combined with state machines when designing code. The key idea behind these is that only "events" are fed into (and out of) an object and state machines "react to" these events. This leads to a very different type of design f...
Taking your toaster example, I would label what you are doing a "Single Threaded Apartment" Specifically by only using a single thread to service the toaster object, you effectively get thread safety for free - in there can never be two threads mutating the state since there is only one thread in the apartment. Further...
1
2
169
2023-07-28T15:25:25.580
api_errors
softwareengineering.stackexchange.com
827,963
SSH tunnel with only destination password (instead of two passwords)?
I have a destination server running Ubuntu 14.04 (let's call it [CODE] ) and a tunnel server also running Ubuntu 14.04 (let's call it [CODE] ), which has a fixed IPV4 address. I have it currently set up so at boot, [CODE] uses [CODE] to connect to [CODE] : [CODE] I'm using key authentication here, so the above command ...
Hm, I might be wrong about this, but I just wrote in this in my init file: [CODE] ... instead of: [CODE] ... notice, I just added a colon before what used to be the [CODE] ; and now on the laptop I can issue just: [CODE] ... and it seems to work now, as it is only asking me for one password: [CODE] ... whereas previous...
0
0
2,205
2017-01-23T10:49:27.840
api_errors
serverfault.com
1,075,718
GCP user with "DNS Administrator" role cannot create record sets anymore
I have an Google account equipped with the "DNS Administrator" role that can suddenly not create record sets through "Add Record Set" in Google Cloud DNS anymore, via the console, since a couple of days. The project owner is able to, though. No specific error is returned by the console, only "Failed to load": I can eas...
I don't think this issue is with "DNS Administrator" role. To add a record dns.changes.create and dns.resourceRecordSets.create roles on the project is required --------> basically to create/update/delete an record As per GCP documentation on roles Role roles/dns.admin title DNS Administrator has dns.changes.* which sh...
1
2
230
2021-08-26T14:46:34.993
infrastructure
serverfault.com
211,331
Computing Matching Data Points from Fuzzy Timestamps in Postgresql
I have a table containing multiple time series of different types. The timestamps of cohesive points from different series do not match exactly (i. e. the difference can be up to an hour). Schema Below is the schema with two example series: [CODE] Goal The goal is to select one series together with the closest datapoin...
In your second approach, with the self join, you could remove duplicates using [CODE] , Partition by l.charttime, order by the time difference and filter for row_number = 1. I think performance will be horrible, however. Because of the cartesian join this will be an O(size(series 1) x size(series 2)) operation. Having ...
7
4
708
2018-07-04T11:52:22.187
data_quality
dba.stackexchange.com
4,344
Windows Search 4 web interface
I have Windows Search 4 running on an installation of Server 2008 x64, indexing two specific directories. Is it possible to have a web interface to query this catalog? On an older server (Server 2003) we are using the Indexing Service and the following sample to query that index: http://msdn.microsoft.com/en-us/library...
A MSFT answered a very similar question here . Was the OP you, or does the answer provided helps you?
3
0
891
2009-05-04T21:55:29.223
infrastructure
serverfault.com
686,803
Do Explicit Deny ACLs apply to a Domain Administrator account?
I've had a need come in a client with a two way trust (source company doesn't want us to have full admin rights, so we're having lots of permissions issues). We effectively need Domain Admin rights but only for a single OU. What happens if I place an account in the Domain Admin Security Group, then apply explicit deny ...
Explicit deny permissions always take precedence over explicit or inherited grant permissions, so, yes, a deny will do what you ask; however, an user with effective administrative rights will be able to forcibly change those permissions by taking ownership of objects and resetting ACLs, so a deny will only block an adm...
1
5
1,172
2015-04-30T16:27:56.840
infrastructure
serverfault.com
306,028
Fileserver no writeaccess with ubuntu but windows
i have no write writing permission on the fileserver, the user has all priviliges. Its working fine with windows! There i can write, but on my ubuntu 10.10 only reading. i've mounted the drive with this command in my fstab: [CODE] Why iam not allowed to write?
Append your [CODE] and [CODE] to the mount options: [CODE] Type [CODE] to check your id.
0
0
27
2011-08-29T11:15:55.443
infrastructure
serverfault.com
63,095
Activation Functions in Neural network
I have a set of questions related to the usage of various activation functions used in neural networks. I would highly appreciate if someone could give explanatory answers. Why is ReLU is used only on hidden layers specifically? Why is Sigmoid not used in multi-class classification? Why do we not use any activation fun...
I'll go through your questions one by one. 1.Why ReLU is used only on hidden layers specifically? It's not necessarily used on hidden states only. ReLU work much better than "older" activation functions (such as Sigmoid and Tanh) because they backpropagate the error much better than their counterparts. All the most pow...
-1
2
81
2019-11-13T15:27:25.817
data_quality
datascience.stackexchange.com
127,523
Metrics to prove or disprove the need for additional DBA's?
We currently have 2 DBA’s, me and one other guy and we both feel the need for an additional resource (or two). I have had the conversation with my direct manager on this topic a couple different times, but am having difficulty in getting the notion sold. Most recently our manager shared with us that it is really good t...
Demonstrating ROI on hiring additional DBAs is hard since DBAs don't generate revenue by themselves. They do however allow the organization to function and generate revenue, just like any other supporting staff. A lack of staff in any department makes the organization function less optimal and lose money or lose opport...
15
16
366
2016-01-27T19:15:13.280
pipeline_ops
dba.stackexchange.com
116,924
numpy.ndarray' object has no attribute 'batch'
I am building an image classifier using cnn using the following code- I am getting this error, despite making several changes- Kindly help me fix this error.
[CODE] method is usually applying to objects of [CODE] type. In your case applying this method is non needed and surely cannot be done because your data has [CODE] type. Just remove [CODE] from your code and specify batch_size arg in 'fit()' method if it is needed.
0
1
888
2022-12-09T23:34:45.840
data_quality
datascience.stackexchange.com
42,010
Multi-variance products
My current system houses different variants of Products in different tables; Productgroups Productcolors Productsizes Productmodels Products can reside under 1 Productgroup and can have multi-variance Colors, Sizes and Models. The logic on filling the database now fully relies on the website-scripts; meaning when I mak...
If you don't want to go for a full EAV solution, you could try something like this: product_base ------------ id product_group_id (other fields) product_option_types -------------------- id description product_options --------------- id product_id (fk to product_base.id) product_option_type_id (fk to product_option_typ...
2
1
4,146
2013-05-12T18:26:48.030
warehouse_errors
dba.stackexchange.com
350,213
Why is using MySQL for a dictionary website a bad idea?
I'm planning to design and set up a database to store dictionary entries (usually single words) and their meaning in another language. So, for example, the table Glossary must have entry and definition and each table record has a reference to the id of a record stored in [CODE] (Each entry must have a tag or category)....
I can't tell you why it's a bad idea. I can tell you a bunch of reasons why a relational database is a good idea though. Remember that not everyone consults a dictionary for a definition. More times than not, a dictionary is used to find the correct spelling. This means you're not just finding a needle in a haystack , ...
56
94
15,122
2017-06-05T20:22:06.547
database_errors
softwareengineering.stackexchange.com
187,452
Table scaling with partitions or with separate databases?
Hypothesis: I have a table (named [CODE] ) which could experience 5,000,000 INSERTS per day (with possibly just as many SELECTs). Each row inserted is about 50kb. These daily INSERTs are split across 5 clients equally (the table has a FK called [CODE] ). There is never a need to SELECT or JOIN data across multiple clie...
I would go with Option 2. . You most certainly don't need a dedicated SQL Server machine for each client, you don't even need and dedicated Instance. I don't know you think that is the case. My primary reason for this is that when the time comes that you want to scale horizontally (more servers) this is going to best p...
3
5
662
2013-02-18T14:30:07.237
hadoop_errors
softwareengineering.stackexchange.com
146,650
MySQL Locking Up
I've got a innodb table that gets a lot of reads and almost no writes (like, 1 write for every 400,000 reads approx). I'm running into a pretty big problem though when I do INSERT into the table. MySQL completely locks up. It uses 100% cpu, and every single other table (in other databases even) have their statuses set ...
Please try using the following command and see if there are any issues. [CODE] Also, if every single table in other (innodb) databases are being locked as well then I think that there might be some issue with the innodb tablespace file which is shared by all innodb tables.
1
0
2,054
2010-05-30T06:15:38.757
database_errors
serverfault.com
580,321
Access to a docker instance - Best Practice
What are the best practice to access a docker instances from the outside. I'm planning to deploy several docker instances (node.js, php, mysql), either all packaged in one or through docker links between containers. It is possible to control port on the host machine for each docker instances, but then what should be th...
I am using nginx for this, it works very well (for me). From your comments sounds like its not working as your expecting however... A simplistic configuration that should work is below. /etc/nginx/sites-enabled/wordpress.domain.com [CODE]
3
1
2,773
2014-03-06T19:29:45.770
database_errors
serverfault.com
998,414
HP ProLiant ML110 G7 Difficulty Loading OpenSUSE Leap
I am having a problem with the HP Proliant ML110 G7. I am trying to load OPenSUSE Leap. I go through the whole installation. It is supposed to detect and load all drivers required. The ML100 G7 has a SmartRAID B110i controller card. 32GB RAM (4) disks (2) TB each I loaded the OpenSUSE Leap from a CD. I go through all t...
The B110i controller is not a true HW controller, and is not compatible with most Linux distributions. In order to install Linux on this server, it is recommended to delete any existing RAID arrays. How to manage RAID using ORCA - https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=kc0105084en_us Boot...
1
0
299
2020-01-10T10:00:29.430
infrastructure
serverfault.com
6,555
Medians, Modes, Percentiles and OLAP
I'm newbie trying to wrap my head around OLAP, and I have a few questions. Question 1: Can an OLAP cube store medians, modes, percentiles? Question 2: Can an user-written MDX query return a summary of row-level data? (ex: % transactions > $100). Or must the cube designer add this to the cube? Question 3: Do any OLAP pr...
To answer your questions in order: The cube doesn't store medians, modes (or even averages), but you can write queries that calculate them and embed them as calculated measures in the cube. The ability to embed this sort of computation is one of the main unique selling points of OLAP technology. If you have a dimension...
10
5
2,676
2011-10-06T02:10:44.753
warehouse_errors
dba.stackexchange.com
37,775
Advantages of HTML applications in a Windows intranet
I'm preparing a presentation for my team that lists the various technologies we could use today for our business applications. We have been historically building HTML applications (ASP and ASP.net) for the last decade and as part of the introduction I wanted to explain why we moved from Windows applications to HTML. Ou...
I would hope that by a decade you have a litany of your own reasons. Typically an intranet site best replaces a class of application known as client/server. There are some aplications that just don't make the transition as well. The following are my own reasons for promoting an intranet over a desktop application: The ...
6
6
1,159
2011-01-18T12:51:26.800
pipeline_ops
softwareengineering.stackexchange.com
301,536
Index with IGNORE_DUP_KEY = ON filters out non-duplicate records
Below is a script which can be used to re-produce the issue I am facing. Basically the question is this: why is it that the record with (ID1 = 6, ID2 = 7) is not populated into the final #tt2 table? I can INSERT it just fine manually, so it doesn't violate the UNIQUE constraint, but it doesn't get populated as part of ...
I think the confusion arises because the indexes are defined as single-column on ID1 and ID2 separately. This means the "ignore duplicates" check is performed on each individually and only if a row passes both checks will it be inserted into the final #tt2 table. I'll step through and show the working. One way for the ...
5
7
380
2021-10-22T21:45:04.193
data_quality
dba.stackexchange.com
226,376
Comment system sorting madness
I have a website in which I'm loading all of the users' comments by the number of likes they have. This has caused me some troubles. Let's say comment #1 has 5 likes, comment #2 has 2 likes, and the rest have 0 likes. We have the following comment id's: [CODE] Now let's assume someone else "likes" comment #4. Now the i...
It sounds like you're using naive "LIMIT 3" and then "LIMIT 3,3" to return only those additional records required. Doing so will, quite obviously, result in duplicates and missed comments if a "like" is recorded intra-session. To resolve that issue, you may want to try one of the following approaches: Rather than the [...
0
1
161
2014-02-01T19:11:54.480
data_quality
softwareengineering.stackexchange.com
139,762
Application runs fine manually but fails as a scheduled task
I wasn't sure if this should go here or on stackoverflow. I have an application that loads some files from a network share (the input folder), extracts certain data from them and saves new files (zips them with SharpZLib) on a different network share (output folder). This application runs fine when you open it directly...
Make sure that the task is set to "run whether logged on or not" Also check all the application has full explicit permissions (not inherited) to all files and folders. What result code are you getting ?
0
0
461
2010-05-08T00:45:28.240
infrastructure
serverfault.com
189,040
Recommended PDF Reader for Windows Terminal Server Environment
Right now, I have Adobe Reader 9.0.0 installed on my Win 2003 Terminal Server. Before I just go ahead and update it to version 9.4, does anyone have an experience with a better PDF Reader for a terminal server environment? It does not perform poorly now, but I am worried that the update might cause some unwanted slowdo...
Try FoxIt . It's a small lightweight pdf viewer. They (at least used to) have a stand-alone executable (about 2-3MB) that didn't require installing, but
2
1
19,484
2010-10-08T13:18:51.417
infrastructure
serverfault.com
7,734
How do I connect to a SQL Server 2008 instance on my network?
I have 2 SQL instances in 2 virtual machines. I'm able to see the other instance in one machine but I cant connect to it. Probably some permission problem...but I don't know where to look. Can someone help me? edit : the first problem was in fact not having TCP/IP enabled, solved that and the error changed now I have e...
If you have domain account, and both of those VMs are also part of domain then all you need to do is just to add that user by creating new login is SSMS. (unfortunately I don't have enough "reputation" to add image to show, just google "how to create new login in sql server" and you should be able to find steps) But if...
2
1
464
2011-11-10T18:32:16.443
database_errors
dba.stackexchange.com
131,496
SUM() In SQL Server
Running [CODE] I can not wrap my mind around why these two queries, which are identical except for the first one has [CODE] wrapped around the entire statement and the second one has [CODE] wrapped around each field name in the query produce different results. For example, shouldn't the [CODE] statement encompass the e...
You have to work from the inside out with function calls and parentheses. The first part evaluated will be... [CODE] If any of those is NULL, that row's result will be NULL. So then you're summing up those terms, potentially with NULLs along for the ride, meaning if any of those columns happened to be null, that whole ...
0
1
2,004
2016-03-07T13:39:39.903
database_errors
dba.stackexchange.com
245,007
MariaDB 5.5 -- how to customize password rules
I am using RHEL 7, which includes MariaDB 5.5. I want to set up minimum requirements for passwords: minimums length 15, 1 lowercase, 1 uppercase, 1 symbol, 1 number. I figure that I am probably not the first person using Rhel 7 to face this problem. Does anyone have some guidance on the best approach to add the above p...
A couple of comments: Re: "the standard linux-user-name-matches-the-mysql-account-name authentication" - I assume you mean using the [CODE] plugin for authentication. This only works on localhost, i.e. the user has to be logged in on the database server. There is no MariaDB 5.7, but there is however a MySQL 5.7. There ...
1
1
1,421
2019-08-09T17:04:01.453
database_errors
dba.stackexchange.com
823,116
Limited to 1024 file descriptors [relates to ulimit -n]
I have a problem to setup shoutcastv2 for more than 1000 listeners. I always get the message as follows from shoutcast log. With shoutcast v1, I don´t have this problem. [CODE] All files are correctly configured. [CODE] See server ouput: [CODE] Can any know about? Thanks you.
I assume you are running the shoutcastv2 process as 'root' user. If that is the case, you need to change the limits.conf and specify 'root' instead of 'wildcard'. [CODE] [CODE]
0
0
957
2016-12-29T00:25:56.157
infrastructure
serverfault.com
179,187
Problem with Postgres authentification over apache
I'm on RHEL 5.4, and I've set up a Django project using PostgreSQL as the database (I've used MySQL before, but want to try something new :) ). When I run the Django test server, everything works, I can also connect trough the command line with password authentification: [CODE] But when I try to access my project over ...
One of the common mistakes is to specify password in plain text, while according to your pg_hba.conf configuration it should be supplied as md5. Update the password in your configuration file with it's md5 and try again. You may use any MD5 generator for that, like this one .
0
1
346
2010-09-08T13:52:36.093
api_errors
serverfault.com
329,623
How to prevent two users from registering at the same instant with same username?
We cannot serialize registrations as there are millions of users registering at the same time. Parallel registrations need to happen. Let's say the database doesn't contain username 'user1'. When two users try to register at the same moment with 'user1' it'll accept it. But it will later cause problems. This shouldn't ...
Let's say the database doesn't contain username 'user1'. When two users try to register at the same moment with 'user1' it'll accept it. Why would it accept it? It's simple to apply a unique constraint, use username as a primary key, or simply run the check in application code inside a transaction. You should absolutel...
14
20
3,526
2016-08-29T17:30:45.810
api_errors
softwareengineering.stackexchange.com
243,386
Int for identity/primary key and Guid for public identifier, best practices?
I almost always use an int for identity/primary (auto incrementing) clustered key for my tables. They're easy to query and debug, bounce around in SSMS, and plenty of other reasons. I have a case where I'm creating an application that has your typical CRUD interface (create, read, update, delete) and I want to use a Gu...
Is it worth having both int and guid in the table or should I just drop the int entirely? Yes, from the perspective that you can have the identity column be a unique clustered index to take advantage of inserts being append-only to the table, and you can have a nonclustered primary key on your GUID column for both secu...
2
3
4,045
2019-07-21T01:20:46.310
warehouse_errors
dba.stackexchange.com
459,418
Cron job "if-unless" structure?
I'd like to set up this database backup routine with cron: Every month on the first, do a full backup Every Sunday of the week, do an incremental backup - unless it's the 1st Every day of the week, do an incremental delta backup - unless it's the 1st, or Sunday The database is DB2, should anyone wonder. "Full" means fu...
How about this: [CODE]
2
1
282
2012-12-19T18:29:38.220
database_errors
serverfault.com
559,707
How to Setup iptables for a squid proxy with just one HW-NIC
I got a Server with a static ipadress for rent and now i want to setup a transparent proxy on this server. after i configured the squid for testing purposes with the listener "http_access allow all", i wanted to set the iptables. i figured out that i only have one ethernet connection with my static ipadress mounted. bu...
You can't use a transparent proxy in this scenario. A transparent proxy must be in the network route of the traffic so that it can intercept and rewrite all of the traffic to redirect it to squid, and since your server is outside your network path, you have no way to do this. If you want to use this server as a proxy, ...
-1
1
3,586
2013-12-06T15:03:44.297
infrastructure
serverfault.com
956,733
Schannel 36874 errors on Windows Server 2016
I have been looking at this error all day and am really scratching my head now. We have a Windows Server 2016 Std that runs a .NET webservice. This in turn connects to our database server, same OS, in the same estate i.e. behind the same firewall. I should state before anything else that both servers have TLS1.2 ONLY e...
This appears to be an issue with the server CIPHER suites that client is asking for before the handshake. Can you give us more information as to how the client side is establishing the connection? If you have access to a command line SSL client, you can initiate the handshake yourself and attempt to trip the error. I w...
2
1
14,784
2019-03-04T21:52:37.173
database_errors
serverfault.com
966,904
How to get an access from external ip to internal ip using NGINX on GCP?
I can't connect to an application through an External IP. I started a gerrit code review application on a GCP's Compute Engine instance (with CentOS 7). It works on a console, by [CODE] but I can't connect to it through external IP. I've also tried to create a NGINX server. After installing NGINX, the starter page were...
That Nginx reverse proxy configuration seems correct, but I would definitively recommend using HTTPS if you're going to expose this to the outside world. A few things you need to keep in mind: Make sure gerrit is running and listening on port 8080. You can do that with [CODE] . I would also check out this document to m...
1
1
1,266
2019-05-12T09:37:08.287
infrastructure
serverfault.com
16,014
Are SQL Server Database writes slower with Snapshot Isolation?
I have a lot of deadlocks going on in my system. I would like to use Snapshot Isolation to fix them, but my DBA has reserves about it. One of his concerns is that Snapshot Isolation slows down writes. This is because it has to write to cache and then to the TempDb (row version) and then it can return to the caller. A "...
is because it has to write to cache and then to the TempDb (row version) and then it can return to the caller. No, this is incorrect. It somehow implies that writes in the presence of versioning have higher latency as each write has to touch the disk (for tempdb) which is not true. The write into the tempdb is also a w...
8
14
1,757
2012-04-03T14:54:23.117
database_errors
dba.stackexchange.com
592,651
How can I create a VPN connection inside windows image?
Just like we can add driver packages to a windows image file can one add a vpn connection preferably thru Add-VpnConnection inside a .wim file ?
I have done a lot of digging and it looks like CMAK is what you want: generate the exe and have it auto executed by either MDT or unattend.XML. @Evan Anderson has said: [CODE] Cmak stands for [CODE] You can find it here: Microsoft Technet Hope this helps!
2
2
1,178
2014-05-02T06:59:39.773
infrastructure
serverfault.com
1,099,703
Why is the FascistLogging ssh logging mode named that?
The docs describe Fascist Logging mode quite well, so I understand what it does. Basically it is a variant of debug logging enabled with [CODE] But why is it named that? I'm sure the original authors had a funny reason behind the name, but I can't think of any analogy to relate logging and fascism.
"Fascism - a tendency toward or actual exercise of strong autocratic or dictatorial control" Dictionary definition Fascism is often linked to extremism, control, manipulation and paranoia - so a logging level that is extreme could be described by some as being rather fascist - so that.
0
2
417
2022-04-28T16:18:11.120
infrastructure
serverfault.com
705,773
MYSQL - is `localhost` faster than domain name (i.e. mysql.domain.com )
Some hosting providers doesn't have [CODE] as [CODE] hostname, instead they give-out [CODE] as host-name to be used in applications. Could there be any difference in performance, as they, instead of having [CODE] (or even [CODE] ) in host-name, use domain-name type hosts ( [CODE] ). Doesn't that take a bit more time to...
It's very hard to make anything out of your question. I decided that your question is Will a remote database at my provider that I can access via [CODE] be slower then a local database that I run on my machine/VPS and that I can access via [CODE] . The answer is: It depends on many things, among them The specs of your ...
-1
2
3,469
2015-07-14T22:39:03.250
database_errors
serverfault.com
799,051
DNS configuration, mount and emails
Here is a resolv.conf file that I have on a debian box (let's call it [CODE] ): [CODE] I also have another debian box, let's call it [CODE] . My issues, seen from deb01: I can't ping deb02 on the LAN ( [CODE] returns unknown host) but [CODE] works. [CODE] or [CODE] return [CODE] [CODE] or [CODE] don't work either I can...
I'm guessing you have a line like " [CODE] " in [CODE] . This controls which sources are used for doing name lookups -- [CODE] tells the system to consult /etc/hosts, [CODE] uses the avahi daemon to lookup names via multicast DNS (Bonjour/ZeroConf), and [CODE] is a normal DNS lookup to servers in [CODE] . (Pinging [COD...
1
2
121
2016-08-25T10:50:50.867
infrastructure
serverfault.com
223,410
Payment Gateways and RESTful API
I have a RESTful API that offers eCommerce functionality. One area I'm struggling to decide on the correct implementation is how to process payments. Lets say I have the following URI GET .../checkout/{id}/payment. This resource provides details to the client application of what details needs to be submitted to make a ...
I assume you are expecting your site have a large amount of traffic. If that assumption is correct, I would say go with a tweaked version of Implementation 3 . If api.site.com and gateway.site.com are on two different servers, I would also have a third server to house the DB and have both apps leverage the centralized ...
2
1
5,513
2014-01-07T22:05:12.467
api_errors
softwareengineering.stackexchange.com
415,905
How to deny Google Chrome extensions access to intranet content
What I'm looking for is a domain (sub-domains included) restriction for extensions that require permissions to read content on the open tab. This is just to make sure to provide the users with customization & at the same time, make sure that internal content is never sent outside the network un-intentionally.
All the settings currently available to you via Group Policy are listed on the Chromium site . You can block all extensions, then allow certain ones via a whitelist, but I don't see anything in there that does specifically what you want. In terms of blocking access to extensions, they will have access to whatever the u...
0
2
6,879
2012-08-09T13:21:00.347
infrastructure
serverfault.com
59,434
How to track IOPS statistics?
Is there a way to access statistics about IO operations per second in DB2 9.7? I am not interested in the buffer pool hit ratio, just IOPS. Storage managers reported us that a few days ago average IOPS is over 5000 (previously it was 300 they said). I just want to track those numbers which storage managers reported us ...
This is a matter of looking at physical writes per buffer pool or tablespace over time. [CODE] will tell you this if you are in Delta mode and look at the "Delta p_reads/s" column.
1
1
823
2014-02-22T17:56:20.213
database_errors
dba.stackexchange.com
62,181
Delete Query takes a long time
I have a innodb table that counts circa 1 billion entries. I started a delete operation (with a small where condition on an indexed column) that should delete a lot entries, leaving circa 100 million. The delete operation runs for 2 days now and I got an error "Lost connetcion to mysql server during query" a few hours ...
If it's showing in your processlist then it's still running. In the future, for situations like this we're you're pruning 90%+ of the table consider this approach: [CODE]
2
8
6,555
2014-03-31T17:46:15.250
database_errors
dba.stackexchange.com
175,291
Cal license in case of three tier applications
Possible Duplicate: Can you help me with my software licensing question? I have three tier solution viz database Application Client My application server query to database and prepares XMLs in pre defined time intervals and sends these xmls to the cleint. On the client side we have a presenatation apps which does the p...
0 CAl. Maybe 1. Depends how your application accesses the data. Because the clients never access the database at all - this is pretty much a regular export job. Once exported - the CAL does not count anymore. The trick here is that the export is not triggered by the user. This is similar than exporting a catalog into H...
1
2
184
2010-08-27T14:46:28.767
data_quality
serverfault.com
1,007,855
My IP is blocked from own Plesk server
I was experiencing slowness to a crawl issues with my server and hired a SysAdmin to fix it but he didn't and only made it worse. Now, I can't access anything on it unless via VPN. No Plesk, No SSH, no HTTP -- it all times out . The SysAdmin says all he did was install CSF. So, I unistalled it. Still nothing From ipTab...
Thanks for all the help I got from the amazing folks who responded here! I was able to fix the issue by doing what @Zoredache recommended. I ran Wireshark on the my end and tcpdump on the server. Wireshark was giving me: [CODE] While [CODE] was returning nothing. It does return something when using VPN though. At this ...
0
0
779
2020-03-22T04:08:24.127
infrastructure
serverfault.com
65,089
Real purpose of pooling
Recently I had a doubt as to what is the real purpose of pooling layers in neural networks is? The most common answer is To select the most important feature To increase the receptive field of the network I feel that these are not real reasons for using a pooling layer because There is no real need to select important ...
Both your original intuitions and the other answers contain important and valid points: Reduce the feature maps size, hence reducing the overall computational needs. Give flexibility by filtering the important features from the unimportant ones, increasing the receptive field and reducing the risk of overfitting. Howev...
5
3
1,118
2019-12-19T00:05:04.410
data_quality
datascience.stackexchange.com
555,142
What sort of updates do ELB properties support (for CloudFormation)?
Question: What type of updates do each ELB property support? I'm reading through the ELB CF docs: AWS::ElasticLoadBalancing::LoadBalancer http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb.html On the page it states " This type supports updates ". The only property that goes into detai...
As per the response from AlastairC@AWS on my forum post: https://forums.aws.amazon.com/thread.jspa?threadID=139722 Updating the following properties triggers a replacement of an ELB. All other properties will not trigger replacement: AvailabilityZones HealthCheck Scheme Subnets The AvailabilityZones/Subnets changes mak...
1
2
241
2013-11-14T23:45:25.180
database_errors
serverfault.com
330,051
State of hardware-assisted disk encryption in Linux
I use dm-crypt to encrypt partitions. I am building a small office server from consumer (or pro-sumer) category hardware. It made me wonder, hardware-assisted encryption is a notion in the air for years, is it reality yet? The two crytical points of my question are: Do the mainstream manufacturers (Asus, Gigabyte etc.)...
The Via C3 series of CPUs integrated a technology called "Via Padlock". This was hardware-accelerated crypto in the CPU. The Linux kernel gained support for this fairly rapidly. Likewise, many modern CPUs (Intel Sandy Bridge, for example) incorporate support for the AES-NI (AES Native Instruction) instruction set. Thes...
7
2
686
2011-11-11T09:42:42.637
infrastructure
serverfault.com
767,025
Apache2 mod_proxy_ajp with Tomcat leads to 500 Internal Server Error
I am currently deploying a cloud server instance running Ubuntu 14.04. I have installed the LAMP Stack as well as Tomcat 7 Server. I want to run a Java Based App from this server and therefore any request that comes to my server, i.e www.example.com/app, should load my app. However, it's been 10 hours now and I am stil...
How about removing the 2 proxy lines you have and trying [CODE] Anything in your Apache logs that could help?
1
0
1,354
2016-03-30T12:25:23.547
api_errors
serverfault.com
1,123,494
Can't setup Exchange account in Outlook
I'm trying to add a new account to Outlook but the wizard gives me an error: Log onto Exchange ActiveSync Mail server (EAS): The server cannot be found. The username or password you entered isn't working. I checked the settings and I am able to login to OWA without problems. Existing accounts are not affected and work ...
This problem occurs because Outlook doesn't support connections to a server that's running Exchange Server by using the EAS protocol. To resolve this problem, connect to Exchange by using the standard Exchange connection settings. Select File > Add Account. Enter your email address and click Connect. If prompted, enter...
1
3
8,796
2023-02-22T12:57:51.043
api_errors
serverfault.com
12,361
What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?
I'm fairly new to Docker so excuse any obvious ignorance or misunderstandings. That said, I've been coding and configuring web applications for a long time now. I have recently been dabbling with some more sophisticated (Docker and "traditional") web/application server setups and experimenting with performance enhancem...
Im heavily investigating this, and like many people, im discovering that in 2020 there doesn't seem to be so much logic in separating tightly coupled webserver + PHP + app process/code from each other: Two main arguments for separation are scalability and separation of concerns (one process per container). Logically th...
12
11
6,263
2020-09-07T03:41:55.573
pipeline_ops
devops.stackexchange.com
30,983
Extracting entity from attribute in entity-relationship diagram
I am developing a database model where I need to capture information about rent contracts for parking places within a parking. I have thus defined an entity called PARKING CONTRACT. Requirements (r.) say, that each PARKING CONTRACT should be signed for exactly 1 car, which is, in turn, owned by exactly 1 car owner. To ...
Unless you have a good reason not to, you should normalize your database schema. When you normalize your database schema you are avoiding potential issues with data consistency that can occur when you have duplicated data. Google the terms: insert anomaly , update anomaly , deletion anomaly . You will see lots of examp...
6
6
1,550
2012-12-24T08:28:20.787
warehouse_errors
dba.stackexchange.com
339,678
How to attribute process time into individual CPU in Linux
I'd like to analyze how the processing time are distributed to individual CPU for a process ( KVM actually). In Linux a task can be migrated to other CPU during its life-cycle, the process may run in CPU0 for 1 sec then in CPU1 for 2 sec, but we can only get the overall processing time(3 sec) from /proc/pid/stat, but n...
If we talk about processes, the Linux kernel has various and extensive ways to see what's going on under the hood. Unfortunately I don't know enough of this to give you a definitive answer, but I can suggest you to take a look at the BSD Process Accounting ( [CODE] ), Export task/process statistics through netlink ( [C...
0
1
325
2011-12-10T08:22:02.817
infrastructure
serverfault.com
911,064
cannot write from mangodb pod to persistent volume
i'm trying to create a persistent mongo database with kubernetes here is my config persistent volume yaml file: [CODE] persistent volume claim yaml file [CODE] mongo database deployment yaml file [CODE] the problem is that files in the data directory(default for mango) of the container are not being copied to the volum...
the problem will be resolved if you change the mongo database yaml file - mountPath: "/data" to - mountPath: "/data/db" even if you delete the deployment and recreate it the data in mongodb will persist
0
0
397
2018-05-07T12:27:11.117
pipeline_ops
serverfault.com
483,012
Resolving CloudFlare DNS related mail delivery problems
I recently started using CloudFlare and am having a few teething problems. Our domain is netlanguages.com and while we have a lot of sub-domains listen, we are currently only trialling a few of the servers through the CloudFlare CDN (for example, www.netlanguages.com is enabled for CDN, netlanguages.com is not). The ac...
First, thanks a lot for using your actual hostname and information in the question, it helps a lot! The 451 DNS temporary failure means that the recipient mail server is unable to resolve the hostname at that point in time. I've looked at your DNS records and I can't see anything strange about them that would cause thi...
1
1
5,780
2013-02-27T13:27:45.427
infrastructure
serverfault.com
654,784
Can't access website though PPTP VPN
I have setup a [CODE] [CODE] on [CODE] . And I added [CODE] on the server for my [CODE] . After I connect to that [CODE] , I can't access any websites. But I can ping [CODE] from my [CODE] . And the nslookup works well when I was typing [CODE] . I did the following steps for [CODE] : Installed necessary packages [CODE]...
After I restarted the VPS from EC2 Management Console, the VPS got another new public ip, then the issue is solved. That's very strange. I think that's relate to AWS's complicate network setup.
2
0
1,486
2014-12-26T02:05:58.783
infrastructure
serverfault.com
442,921
Setup proxy with Apache 2.4 on Mac 10.8
I have 1 application (Java) that running on my local machine (localhost:9000). I want to setup Apache as a front end proxy thus I used following configuration in the httpd.conf: [CODE] I change my vim /private/etc/hosts to: [CODE] and use dscacheutil -flushcache. The problem is that I can only access to localhost:57173...
Please fix your [CODE] file, i.e. move/append [CODE] to [CODE] line, and remove [CODE] (which isn't an IP address).
0
1
2,498
2012-10-27T10:17:00.300
infrastructure
serverfault.com
132,949
DB2 archive log extraordinary growth for any operation after runstat/reorg
My environment: DB2 10.1.4 Enterprise, IBM Security Identity Manager 6.0 FP6, AIX 7.1 Each archive log have a size of 40MB Yesterday, we do a maintainance on ISIM database by doing online backup. The backup size is around 7GB. After that, we prune the ISIM database by using db2 prune history 20151001 and delete Then we...
Finally found what actually happen after 150GB in one day for archive log. After doing offline runstat again, It seems that we ignore the "SQL2310N The utility could not generate statistics. error -930" on table RECONCILIATION_INFO At first, we thought it might not be an important error but when we dig through db2diag....
1
0
1,665
2016-03-22T07:16:06.360
database_errors
dba.stackexchange.com
141,615
SQL Server - Why does importing lots of columns with few rows takes way longer than few columns with lots of rows?
I am using the import wizard in SQL Server 2014. When I import a text file with 40 columns with 1 million row it is pretty fast. On the other side when I am importing a few rows with 268 columns it is taken AGES ! The import seems to proceed very slowly "blocks" of 128 records. And between each "block" there are minute...
At first, I guess the size of the 268 columns can be pretty big. So just look at number of bytes in one row, multiply by 128 and you'll see how much data SQL can cache at one time. Second, there might be a lot of data type conversions from text to numerics and dates. At third, there might be foreign keys, indexes, cons...
0
0
74
2016-06-18T17:58:37.473
database_errors
dba.stackexchange.com
696,045
Apache 2.4 with PHP-FPM and ProxyPassMatch for PHPMyAdmin, is it secure?
I recently configured a Debian 8 with Apache 2.4. Since I have a fairly recent version of Apache, I used ProxyPassMatch instead of FastCgiExternalServer. But when configuring my alias for PhpMyAdmin, I wondered if this was secure. Here's my configuration : [CODE] What is bothering me is the ProxyPassMatch that allows t...
I had the same problem, first it's possible to let : [CODE] in the [CODE] But the trick is simply to create a symbolic link like that : [CODE] After, you have to execute " [CODE] " and it works again.
2
0
2,848
2015-06-02T09:02:39.620
infrastructure
serverfault.com
567,420
Intercepting 404 with nginx as reverse proxy for memcached + node.js
I'm using nginx as a reverse proxy to look up html content from memcached, if not present, then node.js, if not even there, node.js returns 404. What I'm trying to do is intercept and deliver a custom page for the 404 returned by node.js The problem is that nginx doesn't return the correct 404.html but rather it's defa...
Maybe it doesn't want to redirect to an [CODE] location? What if you try to redirect it to a named location again? I.e. [CODE] ? Else, it may sound like you might have to enable [CODE] for your setup to work.
2
1
6,387
2014-01-15T13:25:58.980
infrastructure
serverfault.com
906,917
Loss of DHCP following Windows Update reboot
We have two VMware virtualised DCs which have just undergone a scheduled Windows Update round and reboot. The secondary DC completed with no problems but the primary failed to reboot and ultimately the VM had to be rebuilt using the virtual hard disks from the original VM. Now, DHCP on the primary is not working. The E...
Are you able to go in your DNS's console and such ? I suspect your AD was screwed up with your recovery method, especially if you VMDK is older than 6 months's old, as you end up with a tombstone DC in the best scenario, as it can be an USN rollback too (See more info there ) I would create another VM to DCPromo it and...
0
0
1,347
2018-04-10T10:13:50.970
infrastructure
serverfault.com
425,377
Python install issue on Mac OS X
I have been using the standard python that comes with OS X Lion (2.7.2) but I wanted to build a UCS-4 version to handle 4-byte unicode characters better. I had already installed pip and packages like pytz, virtualenv and virtualenvwrapper, etc., and these are installed in [CODE] . My [CODE] is [CODE] . To build a new v...
It turned out that the shebang in [CODE] was [CODE] . So pip was using the wrong python and hence the wrong site-packages folder. I ended up wiping much of what I did and using pythonbrew to install a fresh python and then starting from scratch with that.
2
0
884
2012-09-07T17:00:23.490
infrastructure
serverfault.com
583,163
Best practice for assigning passwords in a company
I work in a small company and have been spending a lot of time optimizing our network. Our security system is, sadly, abysmal, seeing as no one ever really took care of it. So I'm looking for an all-around solution for password assignment and management. While I've found a bunch of threads and tools for the management ...
You probably want to look into implementing Open Directory , or setting up an Active Directory forest, and integrating your Macs into that . Which you choose should probably be determined by whether you're going to be an all-Mac shop or not. If you plan on just having Macs as being the only devices you want to manage c...
2
3
102
2014-03-19T15:50:54.497
infrastructure
serverfault.com
632,250
What mailer does cron use to send mail?
I am trying to debug an issue with cron not sending mail on a Centos 6 box that I did not configure. How can I determine which mailer cron is using to send mail? The crontab man page has this to say, in part: In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a res...
A quick Google shows me that [CODE] is the file that defines what mailer is used by cron.
13
4
21,576
2014-09-29T21:58:47.243
infrastructure
serverfault.com
354,401
If-statement, organize by conditional or effect
A co-worker submitted code for a PR the other day, which effectively follows this flow: [CODE] where [CODE] , [CODE] , and [CODE] are mutually exclusive conditions (in reality, they are all checking if a variable is equal to different values). In my experience however, I've always tried to collapse the conditionals tha...
At least as the question was originally asked, the two aren't equivalent. In the first, [CODE] is executed only if [CODE] is true or if [CODE] is false and [CODE] is true. I.e., [CODE] . In the second, [CODE] is performed if either [CODE] or [CODE] is true (regardless of [CODE] ). Only if those are both false do we con...
1
9
491
2017-07-25T05:51:36.227
api_errors
softwareengineering.stackexchange.com
152,125
Advice for migrating email server
I'm planning to migrate a Zimbra server with about 200 GB of data from a server hosted in an office into a datacentre, to increase uptime (we've had a couple of outages when our network here started flaking out, and we have people in other countries relying on this server too). However, I'm not sure how best to migrate...
rsync can throttle bandwidth. You should also be able to run in at 9am throttled, stop it at 5pm, start it unthrottled and it should pick up where it stopped without much trouble.
0
1
89
2010-06-17T14:32:42.430
infrastructure
serverfault.com
151,282
PostgreSQL corrupted after running pg_resetxlog
We are using PostgreSQL version 9.3 on Ubuntu 14.04. This PostgreSQL server shared among all our application servers (Odoo), so we made it run on the separate environment. On Saturday we found disk full issue on this DB server. On our further investigation, we found the backup server(barman) is went off. So all the arc...
I guess it is too late now. If you use pg_resetxlog, you need to be extremely careful and, most importantly, know what you are doing. Thanks to PostgreSQL's robustness, all you had to do in that case was to free space in the Barman server, for example by deleting the oldest backup in the catalogue. Then, once space was...
0
5
3,425
2016-10-03T05:07:53.267
data_quality
dba.stackexchange.com
331,492
SSRS 2019 not available/working
I installed 2019 SSRS on 2019 SQL Server and after I configured everything in the configuration manager, I can't see the services for SSRS under sql server config manager and also when I tried to run reports (go to the reports URL), this is what I get: The service is not available. The report server isn’t configured pr...
Did you migrated SSRS repository? Based on the error message SSRS cannot decrypt encrypted content so just do what it proposed restore encrypted key Delete encrypted content - usually it's passwords in data sources.
0
0
1,220
2023-09-22T16:31:23.793
database_errors
dba.stackexchange.com
777,722
Unable to get StartSSL trust chain to work
I received a free SSL certificate from StartSSL which I installed on my server. It works fine on desktop browsers and such but as soon as I open the website on my phone it says " NET::ERR_CERT_AUTHORITY_INVALID ". When I test my site on different SSL checkers they all say my trust chain is incomplete or my Intermediate...
StartSSL splits their certificate distributions into sub-packages for use with the common server setups - IIS , Apache and Nginx - each simply contains the common naming scheme and appropriate intermediate certificate bundling. The package [CODE] has the individual certificates separated as individual files: the interm...
0
0
1,805
2016-05-19T10:03:57.680
api_errors
serverfault.com
38,616
TypeError: '<' not supported between instances of 'int' and 'str'
I have the following code [CODE] and I get the following error: [CODE] I am not sure what I am doing wrong. I only have int and float in my dataframe.
Based on our discussion, omit [CODE] and use list instead of sorted and print it. I guess you will see what you want.
2
0
19,072
2018-09-21T18:10:59.623
data_quality
datascience.stackexchange.com
226,990
Connecting to Win7 (off domain) file share from WinXP (on domain) client
I'm trying to connect a Windows XP, domain-connected laptop to my server's file share. The server is running Windows 7 Professional and is not on the domain. It is also behind a router (whose hostname is different than the computer name). Other Windows 7 machines can connect to the server just fine. But, the Windows XP...
Try using the IP instead of the server name: "Net Use T: \\a.b.c.d\Share /User:User password"
0
0
309
2011-01-26T06:47:41.100
data_quality
serverfault.com
455,550
Remote monitoring with screen capture
Possible Duplicate: Hidden Periodic Screenshots on a corporate workstation? Is there anyway i can perodically take screenshots of a remote computer using nagios? I am experimenting with Nagios, and i am trying to explore different monitoring. So my question is apart from using nagios to monitor cpu usage, bandwidth uti...
Is it possible - theoretically yes, however not with out of the box nagios. You'd have to have a script of some kind sitting on the client machines that can take the screenshot and pass it to nagios. This seems to me to be an inefficient form of monitoring though. If you're concerned about the time employees are spendi...
0
1
223
2012-12-06T03:22:01.020
data_quality
serverfault.com
802,868
Storage pool gone after reinstallation of OS
I had a Windows 2012 R2 hyper-v core installed on a disk that crashed. I had set up a storage pool with 4 disks in it. I replaced the crashed disk and reinstalled the OS, but the storage pool is gone. If I run [CODE] all I get is [CODE] And if i run [CODE] i get the following [CODE] PhysicalDisk4 is the OS disk! Edit: ...
I installed the evaluation version of [CODE] and im now back up and running again. Just waiting for the free [CODE] to be released.
1
1
305
2016-09-13T21:43:35.103
infrastructure
serverfault.com
628,170
server security problem
I set an static ip on my server but after a day many unknown users created and unknown remote dekstop type softwares installed and sql server get unknown password. Please help me to secure my server.
Sorry for being so harsh, but when you put a server online and after just a day it gets completely owned and you have no idea how this happened, it is a clear sign that you don't really know what you are doing. Nowadays you can't put a server online without it getting attacked immediately by automated bots. When the bo...
0
8
39
2014-09-12T07:56:14.097
database_errors
serverfault.com
992,954
http.sys LimitExceeded error
We have an ASP.NET Core 3.0 application hosted behind IIS on Windows Server 2016. Under heavy load (5,000+ concurrent users) we start to get 503 errors with the message "The service is unavailable." I checked the logs at [CODE] and realized they are mostly due to 'LimitExceeded'. Here's some sample data: [CODE] So how ...
After wasting a week and loosing lots of money, stumbled upon this tutorial which dates back to 2012. https://github.com/SignalR/SignalR/wiki/Performance Apparently there's a ridiculous 5,000 limit on max concurrent requests per application that IIS handles. So I ran the command below at [CODE] changing it to 50,000. [...
1
0
1,075
2019-11-22T20:44:27.443
infrastructure
serverfault.com
220,583
DNS lookup failures while accessing my website some proxy error
Here is a situation until today morning,every thing has been working perfectly fine with me. From past 6 months many of my domains wer accessible as http://site1.myserver.com http://site2.myserver.com http://site3.myserver.com http://site4.myserver.com All these were Reverse Proxy configurations. I have some applicatio...
This problem was solved by installing prodns and dnsproxy.
2
1
43,687
2011-01-10T10:33:41.170
infrastructure
serverfault.com
20,247
Optimising a query using hint locks
I have a stored procedure that is being called very frequently. For some database servers it is as often as 20 times per second. Unfortunately because different clients call this procedure, I can't (without significant rearchitecture of the application) chunk the queries into table updates. Recently the database perfor...
Before using hints, I would check the indexing on the table you are updating; it's probable you want a clustered index on MachineID; without it, an update may be forced to lock the entire table to update one row, which may be what you are seeing. Also examine any triggers on the table, make sure they are optimized. Pos...
2
2
202
2012-07-02T10:30:54.320
data_quality
dba.stackexchange.com
234,825
PostgreSQL \COPY fails "ERROR: missing data for column "column name2""
We are importing bulk data i.e millions of records. We observed that due to a null value for a column , the import is getting failed. Is there a way we could skip the import error when a record is missing and keep the job running?
The PostgreSQL server [CODE] command is very simple and just aborts on a single failure. You might think that it could do far better (I know I do), but there's a reason that the PostgreSQL codebase is so compact with respect to MySQL's (by a factor of ~ 10/1). However, there is the (very) nice [CODE] programme which co...
1
2
15,735
2019-04-15T14:11:38.403
data_quality
dba.stackexchange.com
561,853
Emails on other server, dns & mx
I must host emails on other server, my way was: Edit DNS to my server MX Record edit in the zone file (editing with a GUI) If I change for example SOA serial, retry, refresh then are my changes not visible, also I can't see option where to edit "Reverse MX A records (PTR)", my question is, if is only MX Record edited, ...
You'll have to ask your ISP to setup the PTR for you. You can have something like mail.example.com for your mail server and have that as the PTR. It is important because many mail servers will otherwise flat out refuse your emails (like mine for example.) Otherwise you can test that the mail.example.com is valid by pin...
-1
2
44
2013-12-17T08:37:19.370
infrastructure
serverfault.com