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
774,529
Simulate massive network traffic
We want to stress test our pfsense box with a massive amount of connections and traffic. Right now we are using iperf, but reaching a number of more than ~300 parallel connections the test clients reach their limit regarding open tcp connections. But we need to simulate ~4000 clients running at least one TCP connection...
I don't think iperf is be flexible enough to simulate user activity for various traffic types. Depending on how you're using pfsense (routing, gateway, proxy, whatever) it will experience different load types. So I would rather stick to one of the following tools: Apache JMeter - this one have GUI and doesn't require p...
2
1
5,384
2016-05-03T12:57:46.507
infrastructure
serverfault.com
83,942
Error when trying to add a shard set in Mongo db
I'm trying to add a shard set in mongos I got this error and . Kindly help. [CODE]
You need to have at least the role of clusterManager to perform this action in 2.6 . If you are a dbadmin you can grantRole clusterManager to current user following this tutorial http://docs.mongodb.org/manual/tutorial/assign-role-to-user/
0
1
820
2014-11-30T11:33:34.860
database_errors
dba.stackexchange.com
1,026,640
AWS EFS - file delete and recreate not detected programmatically for 25 to 30 seconds
I am observing a very large delay in EFS detecting that a file has been re-created i.e. deleted and then created again. In this simple test example, I have a single file that gets deleted and recreated around 5 seconds later. I have two EC2 instances mounted to the same EFS: EC2-1: responsible for reading the file EC2-...
Thanks to @kofemann who pointed me to the [CODE] option I was able to learn about the file system attribute cache and locate the post below that sums up the options nicely. https://forums.aws.amazon.com/thread.jspa?threadID=245354
2
2
823
2020-07-24T18:44:44.363
infrastructure
serverfault.com
57,846
How to alter column from float(8) to numeric(64,8)
I am working on a website that store lots of numbers in a very specific precisions (8 digits). Most of the columns are using numeric(64,8), but I discovered that a handful are using float(8) instead, and it's causing a lot of computation issues. How can I alter those float columns to numeric(64,8)? How do I cast the da...
[CODE] More details in the manual: http://www.postgresql.org/docs/current/static/sql-altertable.html
2
3
9,330
2014-01-30T07:03:41.150
warehouse_errors
dba.stackexchange.com
1,060,455
fail2ban weird ban behaviour bans not IP properly
I'm try to ban all suspect 403 errors via fail2ban. So I created this jail [CODE] with this filter rules [CODE] Now I checked with [CODE] the jail and got this [CODE] But de:443 isn't a IP... So wheres the issue? A specific log line look like this: [CODE] What I have to do now to correct it? Before I had a big problem ...
The problem here is your "vulnerable" regex (not anchored, with many catch-all's etc) as well as not valid assumption that tag [CODE] matching IP address only (it can also match host names). You could indeed force fail2ban to match IP addresses only, either by disabling option [CODE] or using another tag [CODE] instead...
1
0
182
2021-04-15T09:18:39.690
api_errors
serverfault.com
983,983
How to set the "ASPNETCORE_ENVIRONMENT" environmentVariable in the WEBROOT (web.config) with APPCMD.exe?
How am I able to set the sites web.config "ASPNETCORE_ENVIRONMENT" environmentVariable with APPCMD.exe? So far I've tried ending it using [CODE] , [CODE] and I get the below: [CODE] However I can update the " applicationHost.config " using the same code as below but a different [CODE] . I don't want to update the "APPH...
I figured this out. First you have to realise the areas that this can be committed to. I found it at https://docs.microsoft.com/en-us/iis/get-started/getting-started-with-iis/getting-started-with-appcmdexe and these are the below which I needed to use the "URL" section: url — same as default; write configuration at the...
0
0
2,013
2019-09-12T13:45:16.003
infrastructure
serverfault.com
53,304
How to prevent model from recognizing false Classes
Let's say that I have a model that can recognize Cats and Dogs. However, when I use a picture of a Cup or Human it generates a random prediction at 0.70 confidence. Should I use sigmoid instead of softmax? Or is there any fix for preventing massive confidence on new class object?
I haven't actually played around with this problem, but here are a few resources: AI.se question - Why not teach to a NN not only what is true, but also what is not true? How to Make a Neural Network say "Don't Know"? (maybe try requesting fulltext through ResearchGate ) blog post - Making Your Neural Network Say “I Do...
3
2
54
2019-06-06T06:58:28.177
data_quality
datascience.stackexchange.com
319,376
Update specified data in PostgreSQL/ JSON based on 2 conditions
I searched a lot to find solution and I found something similar but unfortunately I couldn't apply it to my case, maybe because I am yet new to Postgres. The link to this similar issue is here: Update a JSON column with WHERE Clause in JSON Column Postgres I would like to update a specific data inside Postgres/ JSON. [...
Judging from your question, your current table looks something like: [CODE] Though you can update parts of a string or even bits in an integer, the idea is that the content in a column is supposed to be atomic, you should not normally update parts of it. In a sence you are replacing the content of the column with a mod...
0
0
578
2022-11-09T10:09:37.163
database_errors
dba.stackexchange.com
15,421
Import Oracle full dump file to fresh Oracle installation
I am importing a Oracle dump fill created on a AIX Oracle 9.2 installation with a Full Export option to a Windows Oracle 10.2.0.4 on Windows 2008 R2 x64. I want to import the file to a clean database. However if I don't create a database first, there's nothing to create. If I create the database, it throws a lot of err...
Eventually I ran a procedure to list all the users and tablespaces, recreated them on the target database and when running the import, used the DESTROY=Y switch. This solved my problem.
7
2
23,690
2012-03-22T16:54:29.273
database_errors
dba.stackexchange.com
232,556
how should I change the representation (not mimetype) of a resource?
I'm looking at how I can change the representation of a payload at runtime for varied potential advantages, but I'm not sure how to do it. Specifically collections. Array of Pairs [CODE] Array of Objects [CODE] Array of Resources [CODE] Map of entities [CODE] My problem is, I'm not sure if I should put these different ...
First things first you should use MIME/Content types. The client will (should) provide the server with all the data formats it can understand and the server will return the best representation, or complain that it doesn't support any of the client's data format requests. Query strings are generally used for filters on ...
2
1
187
2014-03-16T14:34:02.243
api_errors
softwareengineering.stackexchange.com
336,061
When patching SQL FCI, how to ensure there will not be a failover to the node being patched?
This is about patching a 2 node SQL FCI. Say node1 is the current active node. When I am patching the node2, how do I ensure that there won't be a automatic failover to node2 even if node1 crashes during patching?
The correct and documented procedure is to use the [CODE] parameter when calling the upgrade source.
-1
4
60
2024-02-20T14:01:06.397
database_errors
dba.stackexchange.com
526,588
How to avoid deliberate corruption using a NAS for backup
This is an extension of my question here ( Small office backups, small NAS (RAID) vs single disk ). What would be a good way to structure a NAS backup solution to prevent deliberate corruption by a person and\or malicious software. Let's say I have a small office with 5-10 PCs. Sure I can have each PC mount the NAS and...
I think the simplest solution is just to have a different backup share for each user, so that they can only access their own backups and not anybody else's. This seems to solve your problem right there. There are a number of backup tools that don't rely on being able to mount a remote filesystem, such as rdiff-backup ,...
1
2
185
2013-07-26T16:58:01.143
database_errors
serverfault.com
258,075
Postfix refusing to relay mail from local client
I'm trying to get a python script to send mail (using smtplib.SMTP ), but postfix is refusing to relay the message. I don't use the Ubuntu 10.10 Virtualmin server as a mail server (I happen to use google apps for that), but I want scripts to be able to send mail. Here is the log, with the addresses replsced with generi...
Check if you permit local networks to relay emails without authentication. First of all, the following command, should include permit_mynetworks [CODE] Then check if 127.0.0.1 is in $mynetworks . Just do, [CODE] and check if 127.0.0.1 is there.
2
4
13,422
2011-04-11T01:01:51.313
api_errors
serverfault.com
816,264
Server 2012 R2 Shared folder read permissions issue
We just migrated a spanned shared volume from a 2003 server to a 2012 Windows Server (migration took place by detaching vmdks from the old vm and attaching them to newer one). This did not effect permissions, I'm just saying it to explain the scenario. Problem in case is: We have a parent folder called 'Users' where we...
based on this : https://technet.microsoft.com/en-us/library/cc783530(v=ws.10).aspx you should verify that the users have the "List Folder Contents" attribute on the "Users" foler. You may have inheritance breaking this, or users in multiple groups with different access rights (the one with less privileges is applied). ...
1
0
359
2016-11-22T08:18:58.993
infrastructure
serverfault.com
571,458
Unable to resolve data corruption warning with fsck
In order to create a contiguous space for my file system to grow, I created a new EFI System partition at sda1 so that I can migrate it from the current partition at sda5. The move itself has been successful except for a warning which says: kernel: FAT-fs (sda1): Volume was not properly unmounted. Some data may be corr...
This is stupid. I find myself answering my own question again. It says, Leaving filesystem unchanged. suggesting that nothing is changed. This actually mean that typing [CODE] followed by pressing enter inside the fsck prompt did not work . Anyway, the following does work: [CODE] The above command automatically write c...
23
30
53,435
2014-02-01T06:27:15.513
data_quality
serverfault.com
121,779
SQL Server Backup Schedule Overlap
I have a SQL SERVER DB that i want to backup via automated schedule (using GUI maintenance plan) . I have 2 choices when configuring a schedule : 1) do not bother about log backup , full backup and diffrencial bakcup event time , as if all the 3 backups occur on same time , it makes no difference . 2) make sure that lo...
First step : Understand how backups really work . The main things to understand: Log backups after SQL Server 2000 can be taken concurrently during full and differential backups. The only thing to remember is during that timeframe the log will not be cleared until that full or differential backup completes. Full and di...
6
4
1,070
2015-11-21T22:13:14.817
database_errors
dba.stackexchange.com
510,096
Cannot Restart MongoDB 2.4.3 on Debian 6.0.7 (32-bit)
I installed MongoDB on a Debian VM using [CODE] from the 10gen repository. Some time after the install, I wanted to enable authentication in the configuration file, but when I ran [CODE] , it stopped and refused to start again. I am able to reproduce this reliably: every time I run [CODE] the server starts. However. wh...
I edited [CODE] to remove the [CODE] argument from the call to [CODE] and got an error with a stack trace. I can't post the full stack trace (because I can't scroll back in the terminal window to get it), but the last function call before the error was some function that has to do with getting the system language. I ha...
2
2
440
2013-05-23T02:03:46.883
database_errors
serverfault.com
70,159
Apache2 server requesting ITSELF on random HTTP activity
I'm at the end of my rope and could really use some fresh insight/suggestions. The problem: While runing Apache 2.2.3 on Debian Etch, my Apache server frequently sends a request to ITSELF (to the LAST virtual host in the config file) on random incoming HTTP activity directed towards ANY of the 15 virtual hosts I have s...
The requests are internal dummy connections which Apache uses to affect the status of child processes. They are harmless and the reason the reason that you are seeing your precise behaviour is due to some quirkiness. The internal process isn't capable of speaking SSL and gets easily confused by the order of your [CODE]...
4
1
1,574
2009-09-30T22:12:47.583
database_errors
serverfault.com
51,390
Angular readiness problem in app-alerts component(Selenium)
I'm doing automated tests(Selenium Java) in a web application that is based on Angular 14.2.12. I check if Angular is loaded using the following code(I paste the whole thing together with jQuery and JS). public class JSWaiter { private static WebDriver jsWaitDriver; private static WebDriverWait jsWait; private static J...
I solved this problem by using the command: [CODE] as a recursion to wait until Angular fully loads - this is my solution to this issue. I simply skip the popup topic in testing and check the expected result.
0
0
234
2023-03-15T14:54:17.597
data_quality
sqa.stackexchange.com
218,573
munin graph interpretation
I have a quick question. The following mysqlslowquerys / second graph marked 3 entries last day. http://img8.imageshack.us/i/picturert.png/ how do you interpret the peak legend? Is the peak ~3 miliseconds or ~3 minutes? Am asking this because "avg" is marked as u(microseconds) Thanks,
The vertical scale is "slow queries/second", and as you had less than 1 slow query/second, Munin tags the value as 'm' (for 'mili'). If you are really worried about it, take a look at [CODE] .
1
1
877
2011-01-04T14:56:12.830
database_errors
serverfault.com
2,186
Password Manager that allows syncing accross platforms
I use OS X, Linux, Solaris and windows for work and from home. There are good tools that allow me to manage the many logins/passwords required platform independently. But mostly they expect me to carry a thumb-drive around or require direct access to a central location (a sky drive in the cloud). The thumb-drive is too...
Try 1Password , there's a Mac and iPhone app available. Not cross platform, but if you have an iPhone then that will always be with you...
18
1
4,661
2009-05-01T05:57:41.377
database_errors
serverfault.com
104,643
Java: would you use an EnumSet in this case?
I have this weird scenario in which some Java property is used to build and HQL query, and the type of the field is [CODE] , i.e. it is boxed. I wondered why because I don't really like to think of booleans as having three possible values, [CODE] , [CODE] , and [CODE] . I recently found out the [CODE] value actually ha...
I rather avoid things like [CODE] since it introduces a new class without giving you anything in return when compared to [CODE] But that's a matter of personal taste. By setting the reference to [CODE] you can have a third value, which is not really good, since you can get an unexpected [CODE] somewhere; [CODE] is just...
6
2
2,041
2011-08-30T10:32:16.760
api_errors
softwareengineering.stackexchange.com
324,520
Index optimization across multiple instances
There is a database that is replicated from INST-1, where it is created, to multiple other instances. [CODE] The SALES database is replicated to multiple other instances. The other instances are like "marts" from which other groups gather information. [CODE] The replication tool copies the entire SALES database, includ...
sp_BlitzIndex doesn't have any multi-server analysis tools built in, nor do we plan to add them. We've talked about building a new script do to that kind of analysis, and if you'd like to contribute code or watch its progress, subscribe to this Github issue .
0
1
46
2023-03-08T14:54:59.207
database_errors
dba.stackexchange.com
852,771
Zabbix monitoring event log
i want monitoring event log event id:5002,5004,5007. i have create item: Item when i create trigger is error:Incorrect trigger expression. Check expression part starting from "eventlog[Applications,,,, ,,].last(,86400)}=0". trigger every day should be check event id: 5002,5004,5007. if this event id dont have is ok
The expression is missing the host reference. The general Zabbix trigger expression/item reference syntax is: [CODE] What you have is more like: [CODE] Additionally, consider using the trigger configuration helper, the "Add" button next to the expression field. It will allow to select the item and will build the basic ...
-1
0
3,971
2017-05-29T09:11:07.567
api_errors
serverfault.com
766,194
Windows domain - remove Win 10 Offer via GP
I'm struggling to remove the "Upgrade to Windows 10" Notification Area Icon on a bunch of Win 7 Pro machines on a 2008 R2 domain. No WSUS server. I've tried enabling "Turn off the upgrade to the latest version..." setting in my domain's Computer Configuration -> Administrative Templates -> Windows Components -> Windows...
The Group Policy Setting inhibits the upgrade from actually happening. If you click the upgrade icon, you will get a message that the administrator has disabled upgrades. The setting does not kill the offer program (GWX.exe) if it is already running. The official supported method for opting out of the Windows 10 upgrad...
3
4
166
2016-03-26T02:24:17.067
data_quality
serverfault.com
107,698
Desperation: All FIVE of my Postini clients' accounts have been deactivated
Note: This is re-telling of a message I just posted to Google's support forums. Well, this week has not been good. I have five clients on Postini. All of the clients accounts were purchased directly, either slightly before or during the Google acquisition. In each case, the service Just Worked. Spam filtering was immen...
Ok guys. My pleas on the Google support forum went answered. Apparently during the setup process for a Postini account, one creates a Google Checkout account. The email address associated with THAT account gets renewal notices. We checked the checkout account and found all manner of warning about renewal and deactivati...
2
2
386
2010-01-29T21:19:37.460
infrastructure
serverfault.com
569,321
Tomcat - JDBC Data Access Exception
My company has a web application that allows users as part of their business process to upload large documents (10+ MBs) into the application. For fast connections it works great with the document successfully being loaded into the Oracle database. If the connection is slow then we get the following stack trace in the ...
From the looks of it, at least there's likely a bug in the TrackingManager class since it throws a NullPointerException. This could be the cause or a symptom. Hibernate is trying to roll back but finds a closed DB connection and cannot. So I'd say either your code, connection pooling or the database is closing the conn...
0
0
927
2014-01-23T12:18:44.207
database_errors
serverfault.com
460,371
Can't get memcached to run on CentOS 5.8
so I want to install memcached on my CentOS 5.8 server. I followed this tutorial http://kb.liquidweb.com/install-memcached-on-centos-5/ The command [CODE] shows that memcached is running. I have added [CODE] to php.ini and restarted the Apache server. I am also positive that I chose the right php.ini (verified by phpin...
Ok, so the problem here is that you are using different memcache for some different purpose. The one which works with PHP is this one . To use this, download it from the URL given and follow the below steps to install it. Untar the tar ball. phpize (if this is not installed, install it first) ./configure make && make i...
1
2
1,679
2012-12-23T05:14:41.657
infrastructure
serverfault.com
728,641
Blacklisting tld in postfix
In my postfix setup I want to "disable" all incoming mail from a specific TLD domain (in my case, all domains ending with ".info"). My usual way to block domains is using a hashed file in [CODE] , that looks like this [CODE] and having this piece of configuration in my [CODE] file: [CODE] My idea to block all of info w...
Hash is for literals (exact matches), you want to use regex or pcre: as Overmind pointed out, you want to append these if you already have values, you can check you existing values with [CODE] Then you can override them with: [CODE] contents of /etc/postfix/rejected_domains: [CODE] and then [CODE]
5
9
8,889
2015-10-13T14:50:42.130
infrastructure
serverfault.com
242,731
hi im trying to update table from one database table to an other. but says i have an error
[CODE] - [CODE]
[CODE] [CODE]
-1
1
29
2019-07-12T09:30:16.737
warehouse_errors
dba.stackexchange.com
722,499
Can't seem to get mod_jk to forward 443 to tomcat?
I'm pretty new to Apache and Tomcat, and I'm finding myself working with it a lot of my job, so I'm having to learn as I go. One thing I struggle with a lot is mod_jk, and I'm pretty stumped by an issue I'm having right now. I'm trying to use apache to forward all traffic coming in on port 443 to 8443, where an applica...
If you're using SSL on the Apache HTTPD side you probably want to redirect to 8080 on Tomcat. In the server.xml for Tomcat under the Connector set [CODE] This tells tomcat to listen on port 8080 to HTTP (not HTTPS) but that the connection is "secure" and using HTTPS & tell clients to use port 443 if there are referrals...
1
0
1,328
2015-09-15T17:25:34.810
infrastructure
serverfault.com
466,458
perl app on apache and cgi behaves terribly with 504 gateway timeouts
Note: This question is about my server configuration giving 504 timeouts . I made a project here http://www.tryperl.com/ (requires auth with GitHub to sign in). Please be kind, I'm working on to learn Lamp(erl) I used a Micro Instance (w/ free tier) Amazon EC2 server Amazon Linux, perl. I used the Dancer framework CGI ...
So I managed to get everything running pretty beautifully after installing nginx. Seems like Dancer/Apache/CGI is just no good for serving static files. This article is about configuring nginx it on debian, which gives some config clues. But, since I was on Amazon Linux which is Red Hat this article helped me out. (You...
1
0
712
2013-01-12T15:44:05.260
infrastructure
serverfault.com
183,929
How can I execute multiple procedures continuously?
Here is my code: [CODE] It throws this error: Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buff...
You need $sth->close() after finishing the execute and fetch* calls.
1
1
2,062
2017-08-20T15:41:17.380
database_errors
dba.stackexchange.com
865,306
Build NGINX with module?
I'm trying to build NGINX with a custom module. I clone the module I want to use. I then clone NGINX . I change directory into the [CODE] , where I try to run the configure script with: [CODE] I get back the error: [CODE] Am I missing a step here?
I found I was able to get this working by downloading the tar file rather than using the git repo: [CODE]
1
0
2,688
2017-07-26T16:49:32.867
infrastructure
serverfault.com
355,317
OpenMPI in SGE fails when not observed
I know the topic is weird but so is my problem. On our cluster we have SGE with OpenMPI compiled for tight integration. When I set it up it worked just fine in my tests and so far there have been no complaints until recently. Thing is: When I submit a job using the OpenMPI PE and run my binary using mpirun it fails. Th...
Nevermind. After some trial and error with the other parameters of [CODE] I found that setting [CODE] fixes the problem. However that doesn't explain why setting its base verbosity to something other than 0 also fixed the problem. This is the part I still don't get.
1
0
229
2012-01-31T07:33:58.433
infrastructure
serverfault.com
595,295
Running dist-upgrade fails on installation of 'startpar'
I'm trying to run [CODE] on Debian 6 but it fails on installation of [CODE] with: [CODE] Do you have any idea how to fix this?
Startpar is not included in Debian 6, so you've obviously mucked about with your repository config. Undo that, remove startpar and try again.
1
3
2,849
2014-05-15T12:09:19.750
infrastructure
serverfault.com
105,439
What does Oracle XE perform during installation?
I have oracle11g2 installed on my noteobook. I then installed the Oracle Database 11g XE. Now a .dll which uses the oracle11g2 client does not work anymore. First I recogniced that I had now two tnsnames.ora, which I resolved by linking the new one to the old one. But still my program cannot connect via the dll and thr...
XE changes the following: tnsnames.ora Path variables takes the default port 1521 for itself and this cannot be changed The best way to install XE and other products is to install XE first, then any other Oracle version afterwards. I think you can fix this by examining the path variables by entering PATH at the command...
1
1
112
2015-06-29T15:09:33.580
database_errors
dba.stackexchange.com
426,848
How to fix access to the requested resource which has been denied for Tomcat webapp?
I have installed Tomcat in my machine and it is running fine. I am able to login to the administration manager. I have deployed a [CODE] file which can be viewed on the Tomcat manager. The name of the file is [CODE] (actually I am installing [CODE] ). When I try to access shim on the browser using [CODE] I get a web ad...
HTTP Status 403 (Access to the requested resource has been denied) can indicate that either you typed 3+ incorrect credentials (try another web-browser) or you've some problem with configuration. If you have not changed any configuration files, please examine the file [CODE] in your installation ( [CODE] ). That file m...
5
4
77,787
2012-09-11T10:22:57.247
api_errors
serverfault.com
299,776
Whats wrong with my partition table?
I'm a bit lost here. I got my trusty old external 500Gb USB drive but it refuse to mount: I think my partition table is invalid: sudo fdisk -lu /dev/sdb [CODE] sudo sfdisk /dev/sdb [CODE] Lastly dmesg [CODE]
Looks like the drive is now throwing some errors, the DMESG output shows it pretty well. Those logical blocks look to be within the defined partitions, but it does seem to be enough for the OS to not want to mount the device. At this point, I'd throw [CODE] at it and see what it yields. That should deliver the SMART in...
1
2
1,783
2011-08-10T18:42:36.727
api_errors
serverfault.com
1,059,089
Need new GLIBC on Centos 6 to use PyTorch on GPUs
I am using a supercomputer facility which is running Centos 6. The node I want to use has 3 Tesla V100. The problem is that the version of GLIBC installed on that node is not compatible with the latest versions of PyTorch I must use. I do not have root. Hence, I need a way to use another GLIBC from a user level. I can ...
I have tried to install GLIBC by myself without root, but could not do it right; it did not work. It takes too much time, and cannot find a tutorial to do it right. Far too difficult to install a different libc in parallel with the existing one. Not a thing I would attempt, especially on a shared system. Containers are...
0
1
335
2021-04-01T15:39:18.583
pipeline_ops
serverfault.com
546,360
How to force tomcat to shutdown after x number of seconds on windows?
On linux systems the stop command in catalina.sh accepts a timeout parameter which forcibly kills tomcat after the supplied number of seconds. The catalina.bat however doesn't seem to have a parameter like that. We are experiencing problems with that our tomcat (running as a windows service) rejects to shutdown when a ...
This example assumes both the service name and process name are 'tomcat'. [CODE]
3
4
13,195
2013-10-16T09:58:07.510
infrastructure
serverfault.com
49,078
Differentiating between two items with the same class name using selenium
As a learning project, I am trying to use selenium webdriver with python 3 to collect my shopping for the week from sainsburys website. At the moment, the script will loop through a bunch of URLs for different foods, find the "add" item button by its class name and click it. If I have the item already, it will instead ...
I am not familiar with Python, but I can make some suggestions. First, visit the Selenium documentation site. You can find examples and detailed documentation using Selenium with Python here. Next, to answer your specific question, instead of searching by class name, look for something that is unique to the item/s you ...
2
1
1,585
2021-09-21T17:22:16.617
data_quality
sqa.stackexchange.com
570,084
Exchange server email logs location
Recently we did not get some emails, from a specific provider. It seems the mails reach our server (there is no error on the sender side), so I want to check the logs why our Exchange server not process those emails.
I'd try something like this from the Exchange Management shell (or another machine with the Exchange cmdlets): [CODE] If that turns up a bunch of FAIL, try: [CODE] for an explanation of why Exchange doesn't love them. Silent drops are frequently antispam. If there's no record of them ever touching Exchange, I'd assume ...
3
6
23,624
2014-01-27T10:10:40.973
infrastructure
serverfault.com
853,967
Select Certificate to use for Azure VPN in Windows 10 Pro
I have two different Azure Accounts with VNet in it and a P2S VPN connection to the client. Each Client has two certificate install for each VPN and the two VPN configure on the computer, as the figure below describes. In all of my Windows 7 Pro computer, I am able to select the certificate that I am going to use for t...
I think I understood your explanation, your client upgrade to windows 10 pro, and can't find where to select the certificate for VPN. If I understand it correctly, we can select certificate from adapter settings -> network connections, like this:
0
2
3,995
2017-06-05T04:22:33.980
infrastructure
serverfault.com
365,648
logger initialization in JEE based web application
While working on a web (JEE based) application I saw some different ways people have instantiated loggers in different classes. First way is classic way like, [CODE] but as JEE applications are CDI enabled in some managed classes it was injected like [CODE] is there any advantage if using logger with CDI, in terms of p...
techtrainer, Use injection sparingly and only when needed In my opinion there's no point in injecting logger (I use static) Both costs should be negligible unless many many objects are created Reference: What's the overhead of creating a SLF4J loggers in static vs. non-static contexts
1
0
425
2018-02-09T11:52:27.907
api_errors
softwareengineering.stackexchange.com
215
Where in the workflow should we deal with missing data?
I'm building a workflow for creating machine learning models (in my case, using Python's [CODE] and [CODE] packages) from data pulled from a very large database (here, Vertica by way of SQL and [CODE] ), and a critical step in that process involves imputing missing values of the predictors. This is straightforward with...
My strong opinion regarding automated tasks like imputation (but, here I can include also scaling, centering, feature selection, etc) is to avoid in any way do such things without carefully inspecting your data. Of course, after deciding what kind of imputation to apply it can be automated (under the assumption that th...
16
15
1,063
2014-05-27T21:07:48.973
pipeline_ops
datascience.stackexchange.com
121,749
Anomaly Detection: Large number of categories
Looking for some advice. I am working on an Anomaly detection problem, I am looking at parcels being transported from A-B and want to identify which parcels are considered anomalies for given routes. My dataset contains millions of records something like the following Parcel From To TOYS US Spain TOYS US Spain TOYS US ...
When dealing with anomaly detection in a dataset with a large number of categories, it's important to consider the nature of your data and choose an appropriate algorithm. Isolation Forest is a popular choice for anomaly detection, but its performance can vary depending on the characteristics of your dataset, also trad...
0
1
138
2023-05-25T10:57:45.377
data_quality
datascience.stackexchange.com
383,305
Why does litespeed show PHP source, instead of interpreting?
I have this issue on my server. It happens sometimes when I refresh my webpages. It seems litespeed wont pass [CODE] to php compiler and instead of rendering HTML and interpreting PHP, I will see my PHP source code. It won't happen always, only 2 or 3 times in 50 tries. My PHP version is [CODE] but I had the same probl...
After months of struggle finally i figured out that my [CODE] length was the problem. In other words if [CODE] file length exceed 17 of lines it will confuse Litespeed.
1
0
931
2012-04-26T08:08:43.970
infrastructure
serverfault.com
1,039,650
ejabberdctl cannot connect to server
[CODE] It might appear that the configuration is pointing to the wrong server, but that all looks correct, since I can start the server with [CODE] If the server is already running, ejabberdctl detects this: [CODE] I'm guessing that ejabberdctl needs some RPC ports/permissions, but I can't find documentation about what...
since I can start the server with ejabberdctl start For debugging purposes, try to start it with "ejabberdctl live", as that will keep the erlang shell opened inside ejabberd: that gives you immediate log messages, you can see it's running, and even run erlang commands inside it. ERROR: The ejabberd node 'ejabberd@chat...
0
0
679
2020-10-22T03:53:46.417
infrastructure
serverfault.com
156,303
Postgresql improve select performance/parallelism in huge table
I have a huge table (> 3000 million rows, totaling 3 TB) using Postgres 9.5 defined as follows: [CODE] I need to query this table roughly 2000 times per second but I'm not being able to parallelize enough (I'm reaching approx half that). Using the following prepared statement, I get a reasonable (I suppose) response ti...
Although I didn't reach an answer for the issue (due to time constraints), I think that the most useful tip to remark is: Use [CODE] on many queries (with different values) to try to understand what is happening. In my case, this put back [CODE] as a possible optimization option. What I would do if I had the time to tr...
5
1
1,322
2016-11-24T17:05:23.413
database_errors
dba.stackexchange.com
29,384
Installing Oracle 11g XE on Ubuntu 12.04
I have spent the last 6 hours trying to install Oracle 11g on Ubuntu. Obviously, I'm not the only one who has struggled with this, as there is a lot of (often misleading) "documentation" online on how to resolve the various errors that one invariably encounters when installing Oracle 11g on Ubuntu. I followed one such ...
This part is unusual: [CODE] This needs to be char-by-char identical every time. I see it ends with a slash here, which is non-standard, and I suspect that you've added it by mistake. Adding a slash will result in "ORACLE not available" in so-called bequeath sqlplus, I've just experimented on my system. Try again with ...
2
8
7,766
2012-11-27T21:07:06.893
database_errors
dba.stackexchange.com
52,964
word2vec word embeddings creates very distant vectors, closest cosine similarity is still very far, only 0.7
I started using gensim's FastText to create word embeddings on a large corpus of a specialized domain (after finding that existing open source embeddings are not performing well on this domain), although I'm not using its character level n-grams, so it's basically just word2vec. I'm testing the results by looking at so...
Let us try and understand how Word2Vector actually works before looking at distances: There are 2 ways of generating vectors for a word : Continuous bag of words Skip grams The following diagram explains the difference between the two approaches. In case you want to further understand the nitty gritty of these two appr...
4
5
2,013
2019-05-31T10:35:45.530
data_quality
datascience.stackexchange.com
156,544
Visualization of x64 Windows Server 2008 without VT
Is it possible to virtualize windows server 2008 x64 on a server with VT not enabled? I know that using ESXi it is not. If not, what are the problems associated with running an x64 MS Windows OS as the host, and then running guest machines as VM's off of that? Current setup is 3 x86 VM's running on ESXi. I need to run ...
This is pretty bad news. No, you cannot run an x64 operating system without VT or AMD-V I'd be very worried about resources. Exchange 2010 is a memory hog. Looks like your server supports a max of 16GB of memory ( http://www-03.ibm.com/systems/xbc/cog/Withdrawn/x346/x346aag.html ). Even if you max that out, splitting t...
0
1
396
2010-07-01T03:51:32.317
bi_errors
serverfault.com
895,293
freeradius hush rlm_ldap log messages
After converting from freeradius2 to freeradius3 found out [CODE] is really chatty: [CODE] I would like [CODE] to only have auth msg lines: [CODE] But I can't find how to disable logging selectively on a single module. Follows one hour log from rlm_ldap: Fri Feb 9 10:06:02 2018 : Info: rlm_ldap (ldap2): Closing connect...
You could, you know, fix the underlying issue. i.e. Tweak the connection pool settings to that the connection pool isn't constantly creating and destroying connections. Without knowing why it's creating or destroying connections I can't really suggest which parameters to tune, but if you grep the out the LDAP messages ...
0
1
2,319
2018-02-02T07:32:31.730
infrastructure
serverfault.com
1,053,645
Postfix/spamassassin not delivering to alias when specifying user executing spamc
I have installed SpamAssassin and configured it to read preferences from sql. I realised that it wasn't reading the user's preferences, and checking the logs I saw that all requests sent by the [CODE] client were executed as the spamd user. Here it is how the spamc client is executed as configured in the [CODE] file (P...
I think I fixed it. Adding [CODE] to [CODE] (postfix) did the trick.
0
0
373
2021-02-14T20:38:06.637
infrastructure
serverfault.com
392,059
Simple Audit Logging Design
I have a C# MVC application. One of the requirements of the application is to maintain an audit log of everything that happens to a particular 'entity' page. To make the example concrete, lets say there is a customer page, with sub entities like addresses and phone numbers. I have an audit service that logs a particula...
Your approach to log every get request even if the information with the current requirements is redundant could potentially prove valuable in the future if requirements change. In that case you simply change your log-filter. Otherwise the audit service seems like a good place to filter events before storing them. This ...
1
1
2,132
2019-05-17T22:55:36.403
api_errors
softwareengineering.stackexchange.com
893,050
MariaDB Galera cluster - 3rd node can not start/connect
I am in the process of trying to set up a MariaDB galera cluster. The first 2 nodes went fine, have them started, connected. On the third node, it won't start/connect. [CODE] journal -xe output: [CODE] I am not clear on why it is timing out why connecting to itself? Is there another log file I should generate that woul...
For me the fix was simply to tear down the entire cluster and start it back up. on each node: service mysql stop On the most advanced node # galera_new_cluster On each subsequent node service mysql start Verify with: MariaDB [(none)]> show global status like "%wsrep_cluster_size%"; [CODE]
0
1
2,744
2018-01-19T14:27:10.330
database_errors
serverfault.com
230,718
IPhone 3GS with iOS 4.2.1 does not sync with Exchange 2003 SP2 since update
lately my boss updated his iphone 3GS to iOS 4.2.1 which is causing the email sync to fail. the problem is kinda weird because, calender and contacts do sync and sending new email from the iphone is possible too, but new incoming emails wont show up. other mobile devices work just fine (iphone 4 & some droids) did anyb...
the problem vanished today for no apparent reason ...
0
0
419
2011-02-03T16:51:04.523
api_errors
serverfault.com
785,488
How do I install nginx on Ubuntu 16.04 so that I can have upstream config files
I use ubuntu 16.04. I have removed nginx config $ sudo rm -rvf /etc/nginx/ purged nginx and installed it again [CODE] aptitude shows nginx installed aptitude search nginx [CODE] but command # ls /etc/n* shows no nginx config files installed? what is going on? following this page: https://askubuntu.com/questions/361902/...
So if you want to recreate the /etc/nginx files, you should do: sudo apt-get install --reinstall nginx-common
-1
0
436
2016-06-22T08:38:32.430
infrastructure
serverfault.com
1,012,931
CNAME records don't show on dns lookup services for use with mailchimp
I'm trying to set up a mail service to handle communications with our customers. Part of the setup is to create CNAME and TXT records pointing to the mail service to avoid being delivered to spam folders. These are the settings required by mailchimp: These records were set up more than 4 days ago and are displaying in ...
I suspect the answer is this: Look at your [CODE] CNAME, and compare it to the others. Many online DNS control panels add your domain name implicitly to the records. In other words the CNAME demanded by Mailchimp should be defined in your DNS management GUI as [CODE] . As it's written now, you've defined a CNAME record...
0
2
4,102
2020-04-18T16:00:53.153
infrastructure
serverfault.com
201,454
Apache Error: File does not exist /var/www/html/appserv
I'm on a newly purchased VPS with CentOS 5. When I try to start Apache, it logs the following error: [CODE] Appserv, I can see when googling it, is a PHP/mysql stack install. I did not install it and yum says there is no such package installed. Why then, is Apache looking for it?
Check your /etc/httpd/conf/httpd.conf file and search for appserv
0
1
4,494
2010-11-13T11:48:39.677
database_errors
serverfault.com
405,718
Communicating bulk data among microservices
Is there a pattern or design that I could refer to for dealing with bulk data in inter-services communication. My use case is to import data from upstream feed files(say 50k records) to our distributed system. So those records would end up in multiple services. Each record represents an instance of an entity in our sys...
I work on a system that has similar requirements - partners drop files that contain anywhere from 10 - 1,000,000 records to be processed. Some partners drop the files once a day, some once an hour, and others are ad-hoc. Our system uses a data integration tool at its edge to validate the file, breakup into (up to) 1000...
4
5
2,845
2020-02-25T15:35:53.530
api_errors
softwareengineering.stackexchange.com
413,015
What are the different messaging patterns for multiple producers to single consumer through a distributed queue?
We have multiple producers that publish messages to the same SQS queue. We have a single consumer that processes the messages. The producers do not care about the response. It is more like a broadcast message. We are evaluating several options of how the producers are going to publish to the queue. Evaluated solution p...
Concerns According to my understanding these are your main concerns: Producers are publishing data without thinking, that's why data sanitization is needed The operational and maintenance cost The underlying queuing mechanism might change in the future Where to put data sanitization? As you have listed you can put this...
2
2
941
2020-07-22T22:56:26.630
data_quality
softwareengineering.stackexchange.com
91,773
How to define the table structure for measured data in sqlite
I have an embedded system with an sqlite database. How should I define the table structure for the measured data from 4 sensors? Each sensor give us every second an numeric measured value. The measured value should be stored with an timestamp in the database. Criteria are: Table are "fill only". There are no delete and...
Your second approach is not normalized: adding another sensor would require creating a new table, and querying multiple sensors would be horribly complex. When all four sensors get a new value every second, and if you have multiple tables, then the database would have to update four tables. A single table is certainly ...
3
2
1,298
2015-02-12T07:48:39.580
airflow_errors
dba.stackexchange.com
361,530
After Network Change Citrix Secure Gateway Is Not Loading Applications
Let me first say that my knowledge of Presentation Server and Secure Gateway is very limited. Many thanks to any one who can help me out here. Alright on to the problem: We are changing the network design at the main office where the citrix servers are located. The Secure Gateway was on a server that has 2 NIC interfac...
Do you know which system is running your web interface? That probably needs to be reconfigured along with the secure gateway. In theory, you should be able to connect directly to the server that's hosting the web interface without issue. Make sure your internal DNS points to the web interface and not the gateway, unles...
3
1
1,219
2012-02-18T22:53:33.570
infrastructure
serverfault.com
174,871
Manage same MCX setting on multiple Open Directory Masters
In the school division I work for, we have an Open Directory Master in each of a dozen schools. There are settings I'd like to manage in multiple directories for multiple work or computer groups. The brain-dead way to do this is to bring up each directory in turn (with Workgroup Manager), select all the groups I want t...
Well, I'll start answering my own question. To get a listing of which nodes have managed preferences on a remote Open Directory Master, you can do something like this: [CODE] Substitute in correct values for words in all caps. HOST is an IP or DNS name or your Open Directory Master. The -url setting exports the values ...
1
2
1,120
2010-08-26T15:54:08.863
infrastructure
serverfault.com
214,861
Finding Webserver Vulnerability
We operate a webserver farm hosting around 300 websites. Yesterday morning a script placed .htaccess files owned by www-data (the apache user) in every directory under the document_root of most (but not all) sites. The content of the .htaccess file was this: [CODE] Googling for that url (which is the md5 hash of "antiv...
There's an exploit of phpMyAdmin #!/bin/bash # CVE-2009-1151: phpMyAdmin '/scripts/setup.php' PHP Code Injection RCE PoC v0.11 # by pagvac (gnucitizen.org), 4th June 2009. # special thanks to Greg Ose (labs.neohapsis.com) for discovering such a cool vuln, # and to str0ke (milw0rm.com) for testing this PoC script and pr...
6
3
863
2010-12-21T14:52:17.933
infrastructure
serverfault.com
226,415
Where I can see phpMyAdmin release/schedule dates?
I've tried, but failed to find the source, where I can see the schedule of phpMyAdmin release dates. For example, on official site, it's 4.8.4 version, however, 5.0 version is on github. Where I can see when it goes it production?
According to the README on the GitHub page : You can get the newest release at https://www.phpmyadmin.net/ . In the same README file on GitHub, it states: [CODE] is the current stable release. [CODE] is the development branch. When you view the stable branch on GitHub (from this link ), you'll find it's the same versio...
-2
1
46
2019-01-05T18:51:49.703
warehouse_errors
dba.stackexchange.com
145,895
SQLServer In-Memory database and log file size unexpected increase
I have a strange issue with a SQLServer 2014 (12.0.4439.1) database. I created some months ago a data file and table to play with In-Memory basic features and see if could improve some of our processes. When I finished I wanted to clean everything but I didn't know that " Once you create a memory-optimized filegroup, y...
OK, I didn't find a clear explanation, but found how to fix that. It was because file used to store in-memory objects was full and could not allocate more space. So no more checkpoints, and logs and growing more and more. This is happening even though there is no in-memory objects in the database (and therefore no reas...
1
1
1,806
2016-08-04T15:06:49.047
database_errors
dba.stackexchange.com
315,798
snapshot replication - corrupted BCP files
Each night my SQLServer replication failed on a big table with the following error. It is failing on a different table each night but always on a relatively big table ( > 200,000 rows) The process could not bulk copy into table '"dbo"."Table01"'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20037) Get help: http://help...
The problem was linked to the SMB share used by the replication to create/use the BCP Files. The solution was to move the AD account used by the replication from its AD group directly to shared folder permissions and filesystem permissions in the security settings of the BCP files directory.
1
0
882
2022-08-18T22:56:37.260
database_errors
dba.stackexchange.com
718,545
How to find current NFS mount parameters
We've been having some problems with the parameters for some NFS mounts on a server, and we've changed the [CODE] settings, and rebooted the server (a SUSE Linux 11 server). However I've just been told not all the settings changes have taken effect... I was running [CODE] to check the current mount parameters (and seei...
In [CODE] , you will find all actual mounts used by the kernel including effective mount options. [CODE]
1
4
2,800
2015-09-02T12:49:57.713
infrastructure
serverfault.com
322,392
iftop bandwidth monitor shows rates=0 (but do show connected hosts) on tun0 (ppp)
On my FreeBSD box, working as my LAN's router, I tried using [CODE] (from [CODE] ) to monitor bandwidth usage. The program works well for monitoring the server's LAN interface-card, but not for the [CODE] virtual/loopback interface created by [CODE] . It does show connected internet-hosts, but no traffic is shown (uplo...
I don't have any solution to my [CODE] issue, but I found some useful alternatives that does almost the same (although none with per-host usage-graphs). While it seems [CODE] has to be monitoring the [CODE] interface (otherwise it won't show any connected hosts), some of the others ( [CODE] , for instance) should be se...
1
0
1,413
2011-10-18T00:23:51.537
pipeline_ops
serverfault.com
249,339
SQL Server Management Studio (SSMS) is way too slow in its GUI
I know this question has been asked before here and here . But none of them could solve my problem. I have this environment: Windows 10, build 1903 (freshly installed) Microsoft SQL Server 2016 (SP2) (KB4052908) - 13.0.5026.0 (X64) Mar 18 2018 09:11:49 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on ...
I also had the mystery slow down in v14 and then upgraded to 18.5 Post upgrade 18.5 worked fast...a few days (and reboots) later it bogged down again. Network trace showed a ton of IP6 traffic which we have not configured but somehow became a default 'on' in Windows 10. Disabled Ip6 on the ethernet adapter and all work...
4
4
13,683
2019-09-21T10:16:15.387
database_errors
dba.stackexchange.com
796,832
Disk is full, but its not?
I have a disk that has too many small files: df: [CODE] df -i: [CODE] I need to move small files on same disk like this: [CODE] But getting error like this: [CODE] Moved some files to other disk (300GB), but df command cannot update. I must have 300GB free disk space, but I can't use. I tried [CODE] command, nothing ru...
The [CODE] and [CODE] reports are mixed up. The first one is from [CODE] , the second from [CODE] . The [CODE] report shows that the disk has no more inodes available, so no more files can be created on that disk, despite the [CODE] showing that the disk has plenty of space available. Inability to create inodes will ca...
-2
5
162
2016-08-15T06:56:35.710
infrastructure
serverfault.com
840,181
Merging Large Files Chronologically (UNIX)
We are currently using syslog-ng to dump files to a network storage location. Each day there are 5 .log files that are written by various servers and at the end of the day I need to merge the 5 files in chronological order and then compress them. For the past 2 years, I've use logmerge and it's worked great. The exact ...
It rather sounds like you may want to look into some form of database to store your logs. One possibility might be to use the ELK stack: Elasticsearch as the database (it is based on Lucene, so is geared towards searching, but also provides a number of aggregation, map-reduce, and related functionality) Logstash as you...
1
1
100
2017-03-23T14:33:24.637
infrastructure
serverfault.com
168,369
Versioning APIs
Suppose that you have a large project supported by an API base. The project also ships a public API that end(ish) users can use. Sometimes you need to make changes to the API base that supports your project. For example, you need to add a feature that needs an API change, a new method, or requires altering of one of th...
When maintaining an API that is used by third parties it is inevitable that you will need to make changes. The level of complexity will depend on the type of change that is occuring. These are the main scenarios that come up: New Functionality Added to Existing API Old Functionality Deprecated From API Existing Functio...
9
7
1,834
2012-10-10T18:59:21.473
data_quality
softwareengineering.stackexchange.com
110,729
DNS Email not forwarding issues
So I setup JAMES successfully, and it works fine, if I send myself an email from gmail say, a@gmail.com sends to b@45.75.477.34
If you JUST changed the DNS settings, you'll need to give them time to propogate. Use a few tools like this one to see what DNS records have been propogated, and to make sure the records reflect what you expect them to be.
0
1
168
2010-02-07T18:21:29.747
infrastructure
serverfault.com
248,583
Apache2 "Deny from all" directive in 'security' section stops access in Virtual Host sections
I have the following two sections in my agache2.conf file. [CODE] and [CODE] The following file exists with some content: [CODE] For some reason, trying to access [CODE] I get a "403 Forbidden" error. I've narrowed the problem down to the line "Deny from all" in the first directory section above, but I can't figure out...
You have two options that I can think of. One is to create a separate directory directive. The other is to do the following: Above the directory directive: [CODE] Within the directory directive: [CODE] Although, I'm curious: what's the point of a directory that's only Deny all?
0
0
198
2011-03-17T13:58:34.810
api_errors
serverfault.com
561,222
Sending to Exchange 2010 distribution lists
My Exchange environment is setup with 6 servers, 2 MB/HUB and 4 CAS. We recently introduced Windows Server 2012 as primary domain controllers into our environment, previously Windows 2003 servers were the primary DC's. These new servers are also responsible for internal DNS. Since this change occurred, when an individu...
This sounds like you either don't have a global catalog available in the site your Exchange Servers are in, or you don't have AD Sites and Services configured properly (or some combination of the two). GAL lookups, DL expansion, etc all make heavy use of the GC. If you've recently demoted DCs and the problem arose afte...
2
4
100
2013-12-13T17:39:44.727
infrastructure
serverfault.com
306,447
Is it true that calling _exit() instead of exit() won't prevent static destructors from being called?
On comp.lang.c++.moderated@googlegroups.com, Greg Herlihy posted the following extern "C" function: [CODE] which is a g++ entry point different than [CODE] . Greg Herlihy then wrote: Calling _exit() (which presumably should be "_Exit()") - does not "prevent" C++ global objects from being destroyed. The destruction of a...
Right, the C++ standard says what exit() does, but it doesn't say what _exit() or _Exit() do. From n3290 which, if I'm not mistaken, is the C++11 standard excepted minor last minute editorial changes: The function _Exit(int status) has additional behavior in this International Standard: The program is terminated withou...
6
10
7,087
2016-01-04T06:11:20.383
api_errors
softwareengineering.stackexchange.com
116,961
Demote 2003 DC from within Directory Services Restore Mode
We've had a child DC fail on us, and can't get into Windows on it as Directory Services is failing. A restore of the backed-up active directory hasn't worked due to a corruption, and so we've decided to demote the child DC and - for now - run AD from the PDC only. However, [CODE] doesn't work from Safe Mode or Director...
You've got a bit of a mess there. Microsoft recommends against demoting a Windows Server 2003 domain controller running Exchange 2003. (They describe a "...loss of some Exchange functionality..." but don't go into details.) I'm not aware of any DCPROMO switches that will help you if you can only boot in DS Restore Mode...
5
6
6,642
2010-02-25T22:26:52.883
database_errors
serverfault.com
186,593
SQL Server error/warning 825
Accidental DBA here (DB developer/jack of all trades), and first-time poster. So please be gentle. I have an alert on our SQL Server for error 825, and it fired in February. Then twice in June, and now three times in the past three weeks. The databases are for a vendor application. DBCC CHECKDB ran in production after ...
Here you can find the explnation of this error by Paul Randal: A little-known sign of impending doom: error 825 From SQL Server 2005 onwards, if you ever see an 823 or 824, SQL Server has actually tried that I/O a total of 4 times before it finally declares a lost cause and surfaces the high-severity I/O error to the c...
1
1
633
2017-09-21T19:10:10.580
database_errors
dba.stackexchange.com
61,322
Database structure for product attributes on orders
I'm making a POS and currently kind of stuck on the order proccess due to the product attributes. As of now the DB looks something like this: [CODE] Problem is storing the attributes for an item order. There isn't a fix amount of attributes one item can have. It could go from 1 to 10-15 therefor i don't think making so...
Assuming that the attributes are for records in the tbl_salelines. If the relationship is such that one salesline can have many attributes, then add a column for salesline_id in the tbl_attributes table. If the relationship is such that one salesline can have many attributes AND one attribute can have many saleslines, ...
0
0
1,475
2014-03-20T08:47:46.143
warehouse_errors
dba.stackexchange.com
305,233
Why does upsert result in a deadlock?
I'm doing the below upsert statement, which I need to have run multiple times in a short timeframe. I wrote this statement based on examples from Aaron Bertrand's Please stop using this UPSERT anti-pattern post on SQLPerformance.com. The majority of my UPSERTS are INSERTS, so I used that example from his post. [CODE] H...
To prevent deadlocks, you are going to want the right index on this table. I suggest one of the following clustered indexes, if you can make it unique, even better. [CODE] The reason you need indexing is two-fold: otherwise the [CODE] and [CODE] will lock far too much, and more importantly, to force the lookups to be s...
3
4
1,886
2021-12-21T11:10:09.213
database_errors
dba.stackexchange.com
53,488
can a perceptron be used for regression?
In machine learning, the perceptron is an algorithm for supervised learning of binary classifiers. A binary classifier is a function which can decide whether or not an input, represented by a vector of numbers, belongs to some specific class. on wiki page, the problems section includes regression without more explanati...
The deep feedforward neural networks used for regression are nothing but multilayer perceptron architectures. Originally, perceptrons were used as binary classifiers i.e to classify binary labels ( 0 or 1 ). But, if no non-linear activation function is applied to the dot product of the features and weights, then it is ...
5
3
8,743
2019-06-09T15:04:50.233
data_quality
datascience.stackexchange.com
343,001
unidentifiable httpd log rotator
I have my own server instance which is centos 5.7 and have installed apache some time ago. Now I noticed that my log files are rotating. I couldn't remember if I had set up something or not since there is nothing on cron, and the error logging on apache isn't piped. Here's how error logging defined on one of the virtua...
It's the standard linux [CODE] system that is doing this. Files of interest will be: [CODE] , [CODE] , and also [CODE] .
1
2
280
2011-12-21T02:43:05.737
infrastructure
serverfault.com
268,032
Cisco ASA Firewall for servers
I'm running website with a good traffic per day. I have two scenarios: Data Center 1 50 servers currently they are protected with APF(iptables) I'm looking to put a centralized Cisco ASA 5520 firewall in transparent mode. 600K visitors per day with 70 CPS(connections per second) in peak time. with approximately (and 5 ...
I think you will do fine with the ASA5510 on both locations, based on the current load. You don't mention amount of bandwidth, but the ASA5510 can handle about 300 Mbps and roughly 9000 connections/s. If you feel a 5510 will do the work even with future loads, consider getting a pair of ASA5510 (with security plus lice...
1
3
377
2011-05-10T06:18:21.507
infrastructure
serverfault.com
183,133
Websphere 7: Getting 'Internal Server Error' when accessing JSPs. Servlets ok
I have just installed WS 7 on our stage server. The test server was done some months ago. I have deployed the same applications to stage as on test. One application is causing me problems. I call the login servlet but the result is an 'Internal Server Error' message. From my logs I can see that the servlet processed th...
Problem is now solved. The installation process created a default server. I had ignored this thinking that it doesn't matter. I removed the server and regenerated the plug-in config and my app works fine.
1
1
1,269
2010-09-21T11:37:18.353
infrastructure
serverfault.com
409,963
Apache - Configuration overwritten? Where?
I'm using Plesk 10.4 on my server and there is a config file which is loaded: /opt/psa/admin/conf/generated/13428096700.01562400_server.include [CODE] That looking like a general setting for SSL connections to my site. Now I have my custom domain settings: /var/www/vhosts/domain.com/conf/13428096700.01562400_httpd.incl...
You should import your certificate via hosting panel in [CODE] tab than your certificate will be added to apache configs. Also, do not modify auto-generated apache configs you changes will be overwritten after next configs generation. You changes can be added to special file which name exists in comments.
0
1
539
2012-07-20T19:40:32.270
infrastructure
serverfault.com
180,409
SQL Server query with date range in WHERE - execution plan uses clustered PK instance not date column index
I have the following query in SQL server: [CODE] It's extremely slow (90s for Why is this happening and how can I optimize the query performance?
What is the datatype of itemTimestamp? Is that column indexed? Is the column nullable? Assuming the answers are [CODE] , Yes, and No respectively you might consider [CODE] If you were to change to [CODE] and actually store dates before 1753 you would need to change the lower bound condition to [CODE] . This also won't ...
2
5
2,709
2017-07-21T05:40:19.310
database_errors
dba.stackexchange.com
220,445
SQL Server 2008 R2 Auditing
I am new to database administration, and I need to implement auditing of all users of multiple databases. Can we audit multiple users of a multiple database by creating just one audit specification? I tried to create the audit specification, but I get the error message in the screenshot below.
The error message is telling you exactly what the problem is: You can only create audit actions on objects in the current database. (Microsoft SQL Server, Error: 33221) The audit can only be on objects in the current database. Your screenshot shows that you are trying to audit two different databases: [CODE] and [CODE]...
0
1
287
2018-10-18T10:50:52.797
database_errors
dba.stackexchange.com
403,227
Syntactic characterisation of intrinsic and extrinsic states
Gang of Four’s Flyweight design pattern introduces the concept of intrinsic and extrinsic states : The key concept here is the distinction between intrinsic and extrinsic state. Intrinsic state is stored in the flyweight; it consists of information that’s independent of the flyweight’s context, thereby making it sharab...
If your question is if instance variables that are updatable from the interface are candidates for becoming extrinsic state, whilst class variables + instance variables that are not updatable from the interface are candidates for becoming intrinsic state of a flyweight object, I would say that it may be sometimes the c...
3
2
578
2020-01-03T03:16:44.490
data_quality
softwareengineering.stackexchange.com
237,728
Global variables in javascript
I don't consider myself a highly skilled javascript developer, but I thought I got one thing right for sure: don't create global variables unless you really have to. I've been learning [CODE] lately and discovered one strange thing, almost everywhere in code samples for angular you can find constructions like the follo...
It's demo code. If you want to read it from the Angular developers, go here and scroll down until you see In practice, you will not want to have your controller functions in the global namespace.
1
4
5,498
2014-05-02T17:46:51.197
api_errors
softwareengineering.stackexchange.com
354,917
Changing the network address of a Windows 2000 AD domain
The situation: Two formerly completely separate Windows 2000 AD domains need to be connected to a common router. (The reason why is not important.) Unfortunately (for me), both domains currently have the same network address, which is (say) [CODE] . So as not to confuse the router, I decide to renumber the smaller of t...
The renumbering itself is not much of a problem - you just change the IP addresses of your DCs and make sure the DNS entries change as well (usually, restarting the "netlogon" service on your DCs fixes them). You also should create a new reverse lookup zone for the new IP subnet on DNS servers of your "renumbered" netw...
2
3
301
2012-01-30T06:37:27.067
infrastructure
serverfault.com
281,471
Index on a Computed Column(using udf)
I am trying to create a computed column using a udf. I keep hitting the cannot be persisted because the column does user or system data access, when i try creating a index for that column or even for trying to make the column persisted. This is the udf func i am using : [CODE] to add the column : [CODE] I have also fou...
A [CODE] [CODE] column can't use Window functions like [CODE] . It's one of the limitations because [CODE] is not a [CODE] and only [CODE] can be used with [CODE] [CODE] columns. Paul White does a great write up on how to properly use [CODE] [CODE] columns in his article here . Specifically he mentions how [CODE] was a...
1
1
302
2020-12-13T21:02:11.637
database_errors
dba.stackexchange.com
482,173
Is there any other reason for "no space left on device"?
I am using Dirvish on a Ubuntu server system for backing up a hd to an external usb 3.0 drive. Until a few days ago, everything worked fine, but now every backup fails with "no space left on device (28)" and "file system full". Unfortunately it is not that simple: There is > 500 GB free on the device. Details: rsync_er...
My suspicion (see EDIT3) apparently was right: Adding acl support to the file system made rsync/dirvish think that all the files had changed. So instead of making an incremental backup and just create hard links to the already existing files, it tried to create a full backup which of course failed because the hard disk...
15
5
75,349
2013-02-25T08:54:33.323
api_errors
serverfault.com
498,496
Could not call sign: Could not find certificate request for puppet
I'm getting started with puppet on ec2 using the following guide. https://help.ubuntu.com/12.04/serverguide/puppet.html In the very last step when I try to sign the puppet client from the puppet master I get the following error [CODE] Here is the output of [CODE] on the puppetmaster [CODE] Here is the output of [CODE] ...
Check that both the puppetmaster and the client machine can resolve the FQDN of the puppetmaster. For this to work, you need to add the puppetmaster IP to your [CODE] in both machines, then check it using: [CODE] or [CODE] Check that you can reach the puppetmaster from the client machine [CODE] If you get connection re...
7
11
22,206
2013-04-11T18:04:17.423
pipeline_ops
serverfault.com
639,515
Tracing down spam
How can I find the source of out going spam on a linux server? [CODE] I have also the following added to my php.ini file [CODE] However, the log is empty. I also ran [CODE] I have added the following to Exim as well: [CODE]
It sounds like your system was sending out spam, but is not sending out spam right now (at the moment that you looked at it). You've already located your logfile to be /var/log/exim_mainlog, so the thing to do now is use a program to analyze all of your logs to see what was happening. Exim comes with a log analysis pro...
0
2
255
2014-10-24T20:10:09.453
infrastructure
serverfault.com
244,207
SQL Server 2000 Hitting 8000 Byte Limit Exporting BLOB
I'm trying to help out my security by exporting user data from a legacy access system. The back end is SQL server 2000. The data I'm particularly interested in is the user photograph, which is stored as a BLOB in the database. With a bit of Googling I found a stored procedure to help with this, but when I tried to crea...
You should be using the Bulk Copy Program (BCP), a command-line utility that ships with SQL Server 2000, for importing and exporting large amounts of data in SQL Server 2000 databases. For more information see the Database Journal article Utilize BCP with SQL Server 2000 .
0
1
286
2019-07-31T08:28:44.397
database_errors
dba.stackexchange.com
32,813
Unexpected "100 continue"
I have 2 servers (using windows server 2003) that communicates using .Net remoting. For some architectural reasons, I have a proxy between those 2 servers, that removes the "Expect: 100-continue" header from the request that is sent from one server to another. The problem is, that when the proxy sends the message to th...
try forcing http/1.0 communication [ either by reconfiguring proxy, changing the client code or http server configuration ]. this will degrade the performance [ if you use for instance keep-alive ] but should solve the problem.
1
1
565
2009-06-28T08:28:08.993
infrastructure
serverfault.com