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
1,075,202
Apache ProxypassMatch configure to only match requests from self (127.0.0.1)
This is what I have now. I'm trying to only allow / do proxy'ing for requests from the localhost, meaning anyone else shouldn't be able to visit /ha_proxy and be directed to, say, the 169.25 IP. Is there a way to do this? [CODE]
It's been while since I've managed Apache servers but I think you can use location tags as below to specify the path. Choose to deny from all and then allow from loopback address. [CODE] Writing this on my phone so I've copied an example from elsewhere as opposed to copying your code. You can add your config in between...
0
0
441
2021-08-20T17:41:05.370
infrastructure
serverfault.com
13,140
Is there a way to force an index to stay in memory with SQL Server 2008?
I've got a table with several millions rows, from which I need to run some queries from time to time. First query will usually be quite slow (around 10s), and subsequent queries are usually way faster (around 1s). After a few hours, a slow/then fast cycle starts again. I've checked in my execution plan that all the nee...
There used to be a [CODE] command but I believe that stopped working in 6.5 or maybe 7.0. The statement will probably still suggest that it worked if you try it, but it just returns, it really is a no-op. Unfortunately there's not really any way to control which indexes are kept in cache - the best workaround I know of...
11
13
5,416
2012-02-15T19:57:19.130
database_errors
dba.stackexchange.com
50,328
Problem with PostgreSQL and the geqo optimizer
I'm trying to compare the two execution plans (exhaustive search and geqo) from the optimizer, but I always get the same plan from both types. These are the variables I use for geqo: [CODE] My queries have 8-12 [CODE] items involved, so the optimizer would definitely use the geqo algorithm. I tried to add more variable...
I believe the settings you mentioned already ensure that geqo will be used, except that the values for [CODE] and [CODE] are so low that the results won't be good. Apart from that, to get different plans, you should play with [CODE] . From the doc's section Generating Possible Plans with GEQO : As long as geqo_seed and...
3
1
957
2013-09-23T08:38:48.543
database_errors
dba.stackexchange.com
59,907
What can cause Reads to slow down on SQL Server 2008R2?
Our primary DB is 15GB in size. The server has 16GB of RAM. We are using the simple recovery model. Lately we've noticed that our custom apps lookups - just basic reads with adhoc SQL statements - have slowed down noticeably. A couple seconds longer in most cases. I'm not a SQL Server Admin and am not sure where to loo...
There could be many reasons for this. A few questions: Do you do index maintenance? Do you import data? Or is it all entered via a front-end application by users? Option 1 - We could look at your wait stats and see if that helps pin-point a direction to look. Option 2 - We could look at the execution plan of a slow-run...
1
5
3,686
2014-02-28T14:00:08.420
database_errors
dba.stackexchange.com
149,654
What are options for Bi-Directional Replication of SQL Azure Database
This questions came from a developer friend who is working with SQL Azure Database. Scenario: There are two Azure DB servers, one in North America, USA region and another one in South East Asia region. One way replication has been setup for a read-only replica to enable a local client to get data faster. The issue is w...
There is currently no option within SQL Azure for bi-directional (merge) replication. You could alternatively look at Azure Sql Data Sync or SQL Server on an Azure VM.
0
1
505
2016-09-14T12:55:52.433
database_errors
dba.stackexchange.com
73,770
mysql scheduled backup won't run on schedule
I'm running mysql on a server, and I've created a backup project. I've also set the schedule for the project to be 7:00 am every day, but it doesn't run on schedule (well, ever actually). I can manually run the backup project (and often do, I restore the backup file to a test db schema for usability tests and the like)...
Have you considered just running a mysqldump from a windows scheduled task?
0
1
1,380
2009-10-12T20:04:40.370
database_errors
serverfault.com
8,866
Oracle Stopping - Can't Login All Of A Sudden -
I'm having a problem with Oracle, it happens randomly around once in three weeks or once a month. The instance that i'm using suddenly hangs, and no logins can be established to it.It won't accept connections and I can't login to it. I would see no error in the alert logs. I would restart my application but the applica...
Start monitoring memory usage. Does your application terminate old sessions? If not, there is a connection leak that eventually takes away all processes your database instance can use and prevent new connections. There also could be a memory leak, that is why monitoring memory and swap could be smart to do. Most likely...
2
2
743
2011-12-07T04:36:35.513
database_errors
dba.stackexchange.com
324,415
Running sudo commands in cloud-init script
I'm developing an automatic bootstrapper for some servers as we are using Amazon EC2 for our infrastructure. What I do is: run a Fabric script which connects to EC2 and initializes a new instance, putting in user-data a cloud-init script. This script checks out a Mercurial project which contains Fabric tasks, then, aft...
[CODE] Run [CODE] and add the following line to disable [CODE] for your user: [CODE]
3
4
6,014
2011-10-24T20:51:56.217
infrastructure
serverfault.com
442,277
File permission woes on an Ubuntu ec2 instance
I've set up an amazon ec2 instance and I'm have some file permission issues. I've created myself a new user and added myself to the following groups: [CODE] but when I [CODE] I can't do simple commands without doing sudo. So I [CODE] to ensure that I'm in the owning group but I still have to type sudo for everything. I...
sudo is slightly different to what you are trying to do. I recommend having a read about rootsudo and here to disable sudo . This examples the sudo command and why it is good to use it.
0
0
565
2012-10-25T13:32:43.927
infrastructure
serverfault.com
148,629
Enable Service Broker when deploying solution
I'm having an issue deploying the latest build of a database solution after creating some service broker objects. I am thinking that it could be related to not having service broker enabled on the database, as it gets created as part of the build, then deployed straight away. Where can I set the "ENABLE BROKER" option ...
In the latest SSDT version, the EnableBroker option is under Database Settings-->Miscellaneous-->Service broker options. I would expect SqlPackage to honor this specification.
0
4
2,193
2016-09-02T05:34:05.813
warehouse_errors
dba.stackexchange.com
9,819
Number of epochs in Gensim Word2Vec implementation
There's an [CODE] parameter in the [CODE] Word2Vec implementation [CODE] that specifies the number of epochs, i.e.: [CODE] Does anyone know whether that helps in improving the model over the corpus? Is there any reason why the [CODE] is set to 1 by default? Is there not much effect in increasing the no. of epochs? Is t...
Increasing the number of epochs usually benefits the quality of the word representations. In experiments I have performed where the goal was to use the word embeddings as features for text classification setting the epochs to 15 instead of 5, increased the performance.
17
7
25,856
2016-01-17T13:14:44.827
data_quality
datascience.stackexchange.com
367,646
append to end of line sed / awk
This is probably easy and something is not clicking for me and my lack of coffee right now. I have a file with multiple lines that begin with a tab then the word GROUP something { Some of these lines for whatever reason drop the curly bracket under some conditions. The quick fix is to use sed/awk to append the curly br...
You can try this [CODE] command: [CODE]
1
4
1,105
2012-03-08T13:57:12.187
infrastructure
serverfault.com
105,216
Recover POST data from Apache logs?
I've just noticed our website's contact form is broken. I don't know how long it has been so and I might have missed important emails. Would it be possible to recover POST data from Apache's logs ? EDIT : False alarm... My Google Apps account was messed up. Nonetheless it would be interesting to get an answer ;)
As far as I know, only GET querystrings are included in the log files. Otherwise the log files would be way too massive, especially when uploading BLOBs (file uploads).
1
2
10,028
2010-01-21T22:53:14.553
infrastructure
serverfault.com
742,083
Openssl: cat: /dev/fd/63: No such file or directory
I try to create a Certificate Signing Request (CSR) using [CODE] but getting the following error message [CODE] Any ideas?
Notice the difference between [CODE] and [CODE] . The extra space matters. [CODE] is an absolute path which would work. Whereas [CODE] is a relative path. Probably your current directory does not contain a subdirectory named [CODE] . The space is in the name because that is what you asked for. The part of the command t...
0
4
5,573
2015-12-10T07:47:18.423
infrastructure
serverfault.com
659,601
Apache Tomcat + Apache2 + mod_proxy: Issues regarding cluster
I have a [CODE] cluster setup behind an [CODE] using [CODE] . [CODE] Apache2 : 192.168.2.139 Tomcat Node1 : ajp://192.168.2.166:8010 (http connector also defined on port 8082) Tomcat Node2 : ajp://192.168.2.166:8011 (http connector also defined on port 8083) I have a Java web application (using [CODE] , [CODE] and some...
Try remove trailing slash from [CODE] : [CODE] https://issues.apache.org/bugzilla/show_bug.cgi?id=51982
0
2
1,309
2015-01-14T23:09:22.447
pipeline_ops
serverfault.com
460,033
debugging smtp | ubuntu 12.04, postfix, dovecot
I cannot sucessfully connect to my smtp server from my mail client. I am getting the following errors in my [CODE] file [CODE] I did some debugging but can't seem to find the problem [CODE] I used the linode setup guide , and it says that I should expect: [CODE] But as you can see that is not showing up. dovecot.conf: ...
It turns out that Apple's Mail doesn't like self signed SSL certificates. Tried with thunderbird and it works!
0
1
811
2012-12-21T15:14:20.383
infrastructure
serverfault.com
120,594
How to identify all WALs created during start_backup and stop_backup?
I'm implementing incremental backups using filesystem-level snapshots. [CODE] and [CODE] can be used to this end. Via these pair of functions or via the [CODE] file, I can identify the "START WAL LOCATION" and "STOP WAL LOCATION" and associated files. The problem is, when these files are not the same and not strictly c...
The file names are 24 hex digits long, broken into 3 fields of 8 digits each. The first is the timeline, which you probably don't need to worry about here. The other two are called the "segment" and the "file". They are really a single counter, the "file" rolls over by incrementing the "segment" by one and going back t...
1
2
493
2015-11-10T11:57:50.850
hadoop_errors
dba.stackexchange.com
813,676
Ubuntu 16 server, systemctl restart elasticsearch does nothing, and there's no log
On ubuntu 16 lts server system, a newly installed [CODE] instance won't start up with [CODE] (or with start). No logs are created, manually running [CODE] as user elasticsearch WORKS, so permissions or the configuration file are not the issue (I think), and there's no logs in /var/log/elasticsearch when I run the [CODE...
You can use [CODE] to get basic information about the status of the service an d [CODE] will show the contents of the systemd journal in a pager program and jump to the end of the journal. You may need to scroll up to get to the information you want.
0
1
6,495
2016-11-07T21:21:21.490
database_errors
serverfault.com
63,109
Impact of replication compression & encryption on performance, traffic?
What is the impact of MySQL compressed-slave-protocol on replication traffic? According to High performance MySQL it can lower the traffic to a third of the same replication without the compression. Can you give me something more accurate (more information on this topic)? What about SSL encryption? It will surely enlar...
I like this presentation by Giuseppe Bianchi . Starting on page 5 it contains a desctiption of the TLS protocol - segment size, header size, HMAC overhead. As for the handshake, the impact on replication should be negligible. It will only occur on connection, and there may be a key exchange going on every hour, dependi...
1
2
511
2014-04-14T01:41:55.390
database_errors
dba.stackexchange.com
928,019
Can't load PHP module even though it is installed
I just upgraded Ubuntu, and now apache2 won't start. sudo systemctl status apache2.service [CODE] It seems there is an error when trying to load the php7.0 module, but php7.0 is installed. php -v [CODE] apache2 -v [CODE] What do I need to do? When I upgraded Ubuntu it said there were many modules which are now obsolete...
It seems this solved it: sudo a2dismod php7.0 sudo a2enmod php7.2 sudo systemctl restart apache2 I guess it was trying to use the wrong PHP version
1
1
8,384
2018-08-26T05:14:55.957
infrastructure
serverfault.com
214,223
Force blocking database offline during SET OFFLINE
I need to take a database offline immediately, but a latent connection is blocking the [CODE] operation. I attempted to take it offline from SQL Server Management Studio, which would have called [CODE] , instead of [CODE] like I should have. Other attempts to access or take the database offline fail because a lock a ca...
You can't cancel the offline command: it will wait until it can od it's thing. You can KILL the offending connection though. You may be able to kill the ALTER DATABASE statement but IIRC it's already executed. If you restart SQL Server the DB will be offline too.
0
3
10,966
2010-12-19T09:42:28.010
database_errors
serverfault.com
1,015,853
How does Virtualmin do email forwarding?
I'm confused: when I add forwarding to an existing email address in Virtualmin (6.08, Centos 7), it doesn't modify the /etc/postfix/virtual or any other file in /etc/ that I can tell. When I grep for the forwarding email address, it doesn't appear anywhere that I can find. How does Virtualmin make the forwarding happen...
Never mind, I found it. Virtualmin modifies the /etc/aliases file, adding an entry in the format: [CODE] Hopefully this is helpful to someone.
0
0
355
2020-05-06T00:43:04.900
infrastructure
serverfault.com
97,625
Cursor Performance in New Server
I bought a new server with spec : HP ProLiant ML310e Gen8 v2 8 GB Single Memory, Intel Xeon E3-1220v3 3,1 GHz, 500 GB SATA 7.5K RPM, Windows Server 2012 R2 x64, SQL Server Standard 2014 x64, RAID 0 Compared with my notebook : ASUS X200CA 2 GB Single Memory, Intel Celeron Dual Core 1.5 GHz, 500 GB SATA 7.5K RPM, Windows...
Im sorry so long not update this question. I solved this case 2 months after this question. After few times trial and errors, my biggest impact in performance is using separated harddisk between Operation System and Data. I try to bought new harddisk and look like changing storage system from RAID to AHCI give quite di...
1
1
381
2015-04-11T18:58:23.590
api_errors
dba.stackexchange.com
221,978
push commits to git (gitolite) repository messes up file permissions (no more trac access)
already posted here so feel free to answer there. everytime i commit/push something to the git server the file permissions change (all added/edited files in the repository have no read and execute access for the group). thus trac can't access the repository. do I need to change permissions of the folder differently? ch...
setting the umask/default umask has no effect because gitolite has it's own setting. at ~/.gitolite.rc $REPO_UMASK = 0027; set it as you like :)
5
9
2,124
2011-01-13T11:48:49.030
infrastructure
serverfault.com
58,616
What is the branch of data science that deals with generating data? Looking for tutorials
So far all the tutorials (Python/Tensorflow) I have been following dealt with processing the data, they are classification problems. Things that give Yes or No answers. Now I want to find tutorials on actually creating things using ML from large data sets. For example lets say the task is to generate a face using milli...
This is known as generative models, they basically infer the probability of the data based on the training examples. Algorithms usually are discriminative, i.e they perform prediction by estimating: $$ p(Y|X) $$ so given your data they are able to predict a label. Generative models are interested in $p(X)$ i.e. how is ...
1
1
40
2019-09-03T17:06:55.370
data_quality
datascience.stackexchange.com
800,403
A ton of Logon/off events in Event Viewer
I am running a Win2012 server in VMware, I have installed IIS, NAP, VPN, DHCP, DNS, WDS, AD DS, AD CS. I have win7 clients in my domain, but they're not turned on. The problem is, I am getting a crasy amount of events with ID 4634, 4624 and 4672. I am receiving 1 event every 2 seconds pretty much. They are all coming f...
Judging by the name of the server containing DC, I assume this is a domain controller. Also note that the Logon Type is 3, meaning a network logon. For 4624 and 4634 events with logon type 3: You'll see these events quite a lot on a domain controller, as its main business is authenticating... Generally these are very n...
3
3
19,435
2016-09-01T07:15:14.410
infrastructure
serverfault.com
161,188
Sub-$1000 iSCSI NAS options
I'm in the market for a sub-$1000 NAS solution for a small development/QA network. Needs to be reliable and something we won't worry about overnight, but does not need to be bulletproof/5 nines/what have you. A few avenues we have explored are: the Sans Digital AccuNAS series, such as this one . OpenFiler plus a spare ...
Openfiler works perfectly fine as ISCSI target with virtualized enviroments (VMware or Citrix Xen). However you will require good hardware to meet your expectations.
0
3
308
2010-07-16T17:08:03.153
api_errors
serverfault.com
189,436
Trouble enabling display_error in php.ini
I'm trying to enable PHP error output to the browser. phpinfo() shows that the path to php.ini is /etc/httpd/php.ini. So as root I edited it by adding a line: [CODE] I restarted apache and it still didn't work, phpinfo() was showing that display_errors was Off both as local and master values. I rebooted my computer and...
Perhaps directive "display_errors" defined twice in php.ini: [CODE]
0
3
1,711
2010-10-10T04:20:32.667
infrastructure
serverfault.com
45,666
MongoDB service not starting on RedHat - missing 'service_uri'
I'm on a [CODE] machine I created my [CODE] like this: [CODE] I installed MongoDB with: [CODE] but when I run: [CODE] I get: [CODE] help! :)
That sounds more like a problem with the service command than with MongoDB or the install. Try starting it from init.d instead: [CODE]
1
1
1,105
2013-07-03T16:38:09.807
database_errors
dba.stackexchange.com
333,272
MySQL and PostgreSQL database table schema comparison
Is there any direct method to compare tables between MySQL and PostgreSQL.Comparing should include field name, types, default values, etc; As an example below, Below is a dump of PostgreSQL column_name data_type is_nullable service_id integer NO service_name character varying YES service_code character varying YES serv...
The only way I know of how to do this in a more automated way is by using a comparison tool, such as SQL Examiner . Note, I'm not affiliated with this tool in any way other than being a satisfied user of it myself. SQL Examiner compares the schema between two database systems (rather seamlessly), and can compare across...
1
0
72
2023-11-20T01:38:19.470
database_errors
dba.stackexchange.com
437,014
Data Ingest Architecture Advice
I have a requirement where we need to collect N different events and store them for analysis. I am having trouble coming up with a general architecture for this. FINAL REQUIREMENTS The end goal of the system is to store the raw events as they appear in the Kafka Queue for downstream processing. Let's say I have three d...
I've read the post at least 3 times, it is still not entirely clear what you want to do. I do have a couple of points though. First, if you have Kafka, you'll likely don't need Spark at all, unless you really want to use some niche feature of Spark. Kafka is not just a queue system, it is a full fledged stream processi...
2
1
147
2022-02-26T04:43:09.597
api_errors
softwareengineering.stackexchange.com
575,389
Howto setup roundcube password plugin with sql driver and mysql encrypt using random salt?
I have a mailserver with postfix installed and configured as in http://flurdy.com/docs/postfix/index.html . I use a mysql database [CODE] with a table [CODE] with two fileds [CODE] = [CODE] and [CODE] = [CODE] . Password is updated with a query like this: [CODE] Roundcube 1.0-RC is installed according http://trac.round...
Edit roundcube main [CODE] and add the plugin name 'password' to the plugins array() as shown below, to activate the plugin: [CODE] You may also note down the DSN used by roundcube to connect to the 'roundcube' mysql database [CODE] cd into [CODE] and create [CODE] [CODE] Edit the following lines in the password plugin...
6
10
33,061
2014-02-13T17:00:04.190
database_errors
serverfault.com
29,699
Backup a database with a huge number of tables
Is there a way to backup a PostgreSQL database with a huge number of tables? An attempt with [CODE] for a database of about 28000 tables resulted in the following error message: [CODE] An increase of [CODE] to 256 instead of 64 resulted in a failure to start the server. Anything else I can try? (PostgreSQL 9.0, Mac OS ...
You should really increase max_locks_per_transaction. As specified in http://www.postgresql.org/docs/9.0/static/runtime-config-locks.html , changing this parameter may require to also change the System V shared memory. You have to increase that value also. In OS X this can be done as explained in http://www.postgresql....
6
4
7,245
2012-12-03T10:06:33.243
database_errors
dba.stackexchange.com
352,135
Postfix issue with relay access denied - I HAVE READ ALL similar cases and tried almost everything
this is first time I set up a server from scratch and I consider myself a fast and good learner for new stuff, so I did my best to setup postfix with dovecot in CENTOS 6, so I'm getting relay access denied on my maillog: warning: 187.167.4.199: hostname 187-167-4-199.static.axtel.net verification failed: Name or servic...
The default value not altered. [CODE] You are not sending from [CODE] . You are not sending to [CODE] . Perhaps you want: [CODE] Modify cert values to be appropriate. Setting up sasl is too variable to describe here, but http://www.postfix.org/SASL_README.html#server_dovecot should be a good start.
0
3
1,551
2012-01-20T23:59:52.180
infrastructure
serverfault.com
7,746
importing large SQL file phpmyadmin
I am trying to import this SQL file in phpmyadmin and got this message [CODE] What do I do to do this import?
Assuming you can't further increase the memory size then there are a couple of options. If you aren't familiar with the command line and you really want to stick with a GUI style import then you can use BigDump ( http://www.ozerov.de/bigdump/ ). I used it once but it's been a while. From what I remember you will downlo...
12
12
67,589
2011-11-09T06:39:23.997
warehouse_errors
dba.stackexchange.com
684,180
Select source IP on windows server 2012 with multiple IPs on 1 NIC
I have searched a lot for a solution to this case but I couldn't find any. So, any help would be appreciated. I have a windows server 2012 with 1 NIC having 2 IPs bound to it 37.188.120.8 and 134.213.23.146. These IPs are assigned private IPs 192.168.100.8 and 192.168.100.146 I have multiple VPNs configured on the Cisc...
The command you need is as follows: route add 196.232.5.228 mask 255.255.255.255 192.168.x.x 192.168.100.146 Where 192.168.x.x is the default gateway on your network. This command is adding a route specifically for 196.232.5.228 (because of the 32 bit mask), and is routing it to 192.168.x.x (your gateway) via interface...
4
5
3,309
2015-04-20T20:35:04.237
infrastructure
serverfault.com
57,520
can i make model that can take N shape input?
as far as i try all data that model take are fixed size or fixed shape, i had problem that i give data to model but it has no fixed shape and i can not cut part of it as all of it are important,so can i make model that have unshaped data as input then take unshaped data to predict .. like have small problem that can be...
The first thing, which comes to mind speaking about unfixed input, is a recurrent neural network. Such a model adresses dynamic behavior. Maybe, it's possible to represent data as a sequence? I don't know nature and specificity of your data, but if each instance in the dataset consists of a different number of some "si...
1
0
28
2019-08-13T22:37:05.663
data_quality
datascience.stackexchange.com
27,750
Outlook Web Access - 3 Pane view using browsers other than Internet Explorer
Why doesn't Outlook Web Access display the 3 pane view when using browsers like Firefox, Chrome or Safari? Specifics: When you access Outlook for the web(specifically Outlook 2003) using Internet Explorer you get the 3 pane view that looks pretty similar to the Outlook Desktop version. i.e. Folder/button on the left, t...
What you are looking at (when you use a non IE browser) is OWA Lite. OWA Lite misses out on: Spelling Checker Reading Pane Notifications and Reminders Weekly Calendar Views Windows SharePoint Services and Windows File Share Integration HTML Message Format Right-Click Menu Drag and Drop Explicit Logon Type-down Search R...
1
3
7,160
2009-06-18T01:40:20.510
infrastructure
serverfault.com
30,739
Get disk space percentage free with SQL Server 2005?
I am currently using SQL Server 2005 and (undocumented I believe) master..xp_fixeddrives to get free space on my database volumes as part of my monitoring. However, this only gives me an absolute number of MB free. What I really need is percentage free. Is there another way in SQL Server 2005 to get this? If not, is th...
This can be done through PowerShell. See the below: [CODE] Or, through WMI: [CODE] Please see Aaron's comment to your question. I completely agree with him, this is not something that is easily done through SQL Server. You can finagle this to be run within SQL Server, but it's not necessarily a native way to get this i...
3
3
1,846
2012-12-19T14:41:44.533
pipeline_ops
dba.stackexchange.com
131,163
Merge Replication Validation Failure
We are getting a bizarre error with some of our users while syncing with SQL Server 2008 R2 Service Pack 3. Validation fails even though the row count and expected row count actually match! Error messages: Data validation failed for one or more articles. Source: MSSQL_REPL, Error number: MSSQL_REPL-2147200953 Article '...
The error could say: Article 'Quote' failed data validation (rowcount only). However your error states: Article 'Quote' failed data validation (rowcount and checksum ). The validation of the merge performs a binary checksum like this: [CODE] As stated by others, the validation during merge can be a bit buggy and you ma...
3
2
658
2016-03-03T13:39:34.327
data_quality
dba.stackexchange.com
766,016
Hardware performance penalty for Hyper-V Generation 2 VMs
I have the following configuration: Windows Server 2012 R2 OS installed on baremetal with Hyper-V. OS is installed on RAID1 850 PRO drives. Windows Server 2012 R2 Guest OS Generation 2 VM is located on Windows Storage Space Mirrored 950 PRO drives. I ran some tests on the Windows Storage Space Mirrored 950 PRO drives u...
First of all it's a good idea to use DiskSPD rather than anything else. Just because Microsoft uses DiskSPD during their internal QA process. https://blogs.technet.microsoft.com/josebda/2014/10/13/diskspd-powershell-and-storage-performance-measuring-iops-throughput-and-latency-for-both-local-disks-and-smb-file-shares/ ...
3
4
2,441
2016-03-25T02:58:56.103
infrastructure
serverfault.com
35,712
Web Driver throws nullpointer exception while trying to find Element in my application
[CODE] [RemoteTestNG] detected TestNG version 6.14.2 Starting ChromeDriver 2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb) on port 23334 Only local connections are allowed. Sep 20, 2018 4:24:48 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS java.lang.NullPointerExceptio...
Your assignment doesn't look proper (there might be other problems which I did not look at). Instead of: [CODE] You need to use [CODE]
1
3
179
2018-09-20T10:57:19.407
data_quality
sqa.stackexchange.com
135,317
How to get permission to create full-text index?
I tried to create a full-text index on my new full-text catalog and got this error: [CODE] FYI-- I connected to the target sql server with Windows Authentication Full-text indexing appears installed (right-clicking the table, I see the [CODE] option) I verified that my full-text catalog was created This is my first tim...
If you have the database-owner permission, that's all you need to do there. Full-text indexing is an option in the SQL Server installer. You may need to go back and add the feature. Other than that, these instructions should take care of you: http://sqlserverpedia.com/wiki/FTS_-_How_to_use_TSQL_to_Create_Full-Text_Inde...
4
3
8,204
2010-04-23T16:56:53.500
database_errors
serverfault.com
1,151,971
Adding MDM server to Microsoft Autopilot is not working
Via Microsoft Intune, I want a device that registers with Autopilot to register to the MDM solution I have written. I enter my own MDM server information from this screen. enter image description here But after wiping the device, it does not send any message to the MDM server. And the device gets this error (0x80070715...
I think autopilot is restricted to Intune only. You need to partner with Microsoft to develop something and get it certified
-1
0
52
2024-01-21T19:05:36.210
infrastructure
serverfault.com
83,109
Bulk Delete for Large Table in MySQL
I have a Notification table contains about 100 million rows host in Amazon RDS with 1000 IOPS, and I want to delete those rows older than one month. If I do [CODE] , all the IOPS will be taken, the process will take hours, and a lot of new entries cannot be inserted due to "Lock wait timeout exceeded; try restarting tr...
Make a temp table, switch it in and out, and copy the last 30 days data into it. [CODE] In your off hours, drop the old table [CODE] Here are the Advantages to doing DELETEs like this [CODE] is emptied fast by means switching in an empty table. [CODE] is immediately available for new INSERTs The remaining 30 days are a...
10
12
14,829
2014-11-19T21:36:30.617
database_errors
dba.stackexchange.com
321,586
My Linux server is thought to be under a DDOS attack and no access to SSH - what to do?
How can I fix the issues from a DDOS attack without any SSH access at all. My main domain is http://www.reddexservers.co.uk - is there any way of checking if it is under attack externally? Thanks!
Your site (HTTP) seems fine from here, though SSH access appears to blocked ("connection refused", so either a firewall or the SSH daemon is not running). You are ALMOST CERTAINLY not being DDoS'd: In the 2 hours your question has been up your ISP would have probably noticed the attack, tracked you down as the target a...
-1
3
748
2011-10-14T19:04:13.550
infrastructure
serverfault.com
410,461
mod_dir Redirect behind load balancer with wrong port
I am having an issue with the redirect that occurs with mod_dir when a trailing slash is missing. Our setup uses a load balancer listening on port 80 with multiple web servers that listen on non-standard ports like 8081. When mod_dir issues the redirect it is attempting to redirect to domain.com:8081/path/ which of cou...
Try something like the following: [CODE] I think [CODE] is the important line.
0
0
929
2012-07-24T00:18:06.713
infrastructure
serverfault.com
84,760
Why is the CTE much worse than inline subqueries
Im trying to better understand how the query planner work in postgresql. I have this query: [CODE] It runs in less than 10ms on my database with around 500k entries in the users table. Then I thought that to avoid the duplicate subselects I could rewrite the query as a CTE, like this: [CODE] However, this rewritten que...
Try this: [CODE] When I look at the fast plan here's what jumps out at me (bolded): Limit (cost=5.69..20.11 rows=50 width=36) (actual time=0.512..8.114 rows=50 loops=1) InitPlan 1 ( returns $0 ) -> Index Scan using users_pkey on users users_1 (cost=0.42..2.64 rows=1 width=32) (actual time=0.032..0.033 rows=1 loops=1) I...
13
13
12,746
2014-12-10T03:56:39.827
api_errors
dba.stackexchange.com
10,932
strange optimization of query results in phantom value conversions
[CODE] assuming in your database are the following tables [CODE] the following statement [CODE] should return [CODE] you can see, that [CODE] is omitted. But why can't I convert the column [CODE] (which is a [CODE] at this time) to type [CODE] with both following statements? [CODE] and [CODE] Both statement results in ...
As expected. SQL is declarative and there is no implicit ordering of execution. You will see that the CAST is happening before the filter, so you get the error. That is, you have assumed that only int values will get through the CAST. Y You should assume that all values in the column will be converted to int. The value...
1
2
171
2012-01-19T08:47:36.227
warehouse_errors
dba.stackexchange.com
455,551
MySQL remote access not working - Port Close?
I am not able to get a remote connection established to MySQL. From my pc I am able to telnet to 3306 on the existing server, but when I try the same with the new server it hangs for few minutes then returns [CODE] Here is some output from the server. [CODE] I am running... OS CentOS release 5.8 (Final) mysql 5.5.28 (R...
[CODE] In the above command you are getting port close because your mysql is running on the specific IP and not on localhost. So, when you will run this command on the server, it will show the port is closed. So this makes sense. If you want that to work, you need to replace the bind-ip with value 0.0.0.0 So, Can you p...
1
1
9,878
2012-12-06T03:28:51.670
database_errors
serverfault.com
335,653
NGINX server_name issues
I have the following simple server block on NGINX: [CODE] After I include the relevant settings on my hosts file I get the following (unexpected) behavior: http: //domain.com/ and http: //domain.com:8090/ work fine; http: //domain.com:8090/future-cell-phone-technology-01-150x150.jpg works; http: //domain.com/future-cel...
Perhaps you need to use try_files directive, as it seems that you have a problem serving static files (.jpg and possibly other graphics, css, etc.) but not php files. An example configuration for drupal from NGginx wiki: [CODE] For more details see: http://wiki.nginx.org/HttpCoreModule#try_files So given your configura...
1
0
311
2011-11-29T03:23:40.407
infrastructure
serverfault.com
361,708
Setting up permalinks and mod_rewrite in Apache
I migrated WP to a CentOS VM and I'm trying to setup pretty URLs. My first move is to edit the conf file: [CODE] Under the appropriate tag: [CODE] And set AllowOverride from None to All: [CODE] As soon as I change that setting, I get errors on all the admin pages: http://screencast.com/t/ePNCxORe Not sure if this belon...
The screenshot you show looks like your server is not parsing the PHP code, but instead is displaying it on the screen. Are you sure PHP is properly setup? EDIT: As per the answer I found in the comments below, the issue lies with the following line in your .htaccess file: [CODE] You need to comment it or remove it, as...
1
1
1,324
2012-02-19T23:36:26.390
infrastructure
serverfault.com
23,169
Close a one windowHandler at the Webview
I am writing scripts to automate a hybrid application. On my app I have two windowHandles. For example, after performing some actions when I execute below code I get "2" windows as the windowHandles value. [CODE] So at the script I need to close the windowHandles[1] window and navigate back to 0th window. I tried doing...
I would suggest you follow the below approach: Before performing the action you mentioned, store the default(main) window handle in a string variable, say CurrentHandle using [CODE] After the action, use the code you mentioned to get all windows in ReadOnlyCollection windowHandles Iterate windowHandles and check if Cur...
2
0
910
2016-10-19T07:06:12.847
data_quality
sqa.stackexchange.com
996,865
Having issues with mkdir, robocopy, to date\time folders in a looping batch file
I have searched everywhere but cannot find a solution. Im unsure what is going on here but I desperately need some help in regards to this issue, Im running a batch file (Script for a game Server monitor/crash restarter). I decided to add a Log file Archival snippet which creates a folder named with the date and a subf...
You should use this: [CODE]
1
0
729
2019-12-27T10:09:57.823
hadoop_errors
serverfault.com
380,528
Single Sign On Logout Strategy
I have been working on a project that integrates spring-cloud-based microservices and MVC applications with SSO. currently, I use spring-session for the session repository service. My current applications login component contains an authentication server to create a session in the backend, and a frontend client calling...
If I recall (and I am no expert in SSO/federation), in an SSO ecosystem the Identity Provider should have a list of 'session participants' (service providers participating in the current session). Suppose there are three service providers (A, B, c) SSO'd for a given user. When that user logs out in A (sending a logout ...
1
1
375
2018-10-24T16:42:00.550
data_quality
softwareengineering.stackexchange.com
617,982
FreeBSD Apache 2.4 rewrite/proxy module errors
Just set up a FreeBSD jail to run httpd in it and all works good except these two, rewrite/proxy modules. These are error logs excerpts: mod_rewrite error: [rewrite:crit] [pid 43447] (13)Permission denied: AH00666: mod_rewrite: could not init rewrite_mapr_lock_acquire in child mod_proxy error: [proxy:crit] [pid 43447] ...
The issue were permissions. I set /etc/pw.conf umask to 007 from default 022 and that resulted in certain executables being unable to be reached from jails. Once i changed containing directory permissions to original ones it all started working properly and modules are not logging errors any more. Typical example of PE...
0
0
686
2014-08-05T06:16:21.900
infrastructure
serverfault.com
904,173
Amazon SES/Mailgun and Reverse DNS lookups for email
I am working with a client who sends out emails to clients (password reset, employee invitations, etc.) using Mailgun, but we are getting a some emails blocked due to reverse DNS lookups for the Mailgun ip address. I have looked into using AWS Simple Email Service (SES) to send these emails instead, but haven't found a...
As per AWS SES FAQ: Amazon SES users do not need to set up reverse DNS records. Amazon Web Services manages the IP addresses used by Amazon SES, and provides reverse DNS records for these addresses. As a side note, i send communication to clients through Amazon SES for a few years, and have never received any email-blo...
2
2
2,455
2018-03-23T09:38:02.987
infrastructure
serverfault.com
148,559
Generators in Javascript into the new ECMA standard
Generators are being introduced in the new version of the ECMA standards. Could any one suggest the importance and the usage of generators in the present Javascript world? Examples of generators in real world problems will be helpful.
Starters I'd suggest to look at: the ECMAScript Harmony Project 's wiki page on Generators , the Mozilla Developer Doc on Iterators and Generators , the JavaScript Tips page of the jslibs project, the Google Traceur Compiler 's page on JavaScript Language Features , SO questions for "javascript generator yield" . A sim...
7
3
575
2012-05-14T14:33:13.517
api_errors
softwareengineering.stackexchange.com
78,674
Oracle 11g user created with Create session but able to update the table?
I created a readonly user with only permission granted was create session and read only privilege, using the link: https://stackoverflow.com/questions/7502438/oracle-how-to-create-a-readonly-user Now when I login with the new user I created I am able to update the table. Can anyone suggest me what I could have done wro...
There is no such thing as a read only privilege. If someone grants update,delete,insert on x to public, everyone who can create a session can modify the contents of that table. Also, if you create a user x and using a dba account create a table x.y, the user x - who owns the table y - can modify the contents of his/her...
0
0
87
2014-10-08T11:33:58.873
database_errors
dba.stackexchange.com
271,625
Require authentication for IRC connections (InspIRCd)
We're trying to move our team chat from Skype to a private IRC server (InspIRCd) and we need to require some sort of authentication to prevent public access. I know we could have a global server password but that doesn't allow us to control who has access and obviously doesn't scale well (team member leaves, etc). Are ...
The included sqlauth module seems like exactly what you want here.
4
5
3,725
2011-05-19T18:45:02.560
api_errors
serverfault.com
631,712
qmp-shell doesn’t recognize commands
So, there is a python script that allows to connect to QEMU monitor from a usual shell. I had to download a bunch of files from the QEMU source tree , and add [CODE] to the vm command line. It connects, but I can’t get it working. [CODE]
Assuming that the [CODE] works the same way as, say, telneting to QMP socket and sending JSON commands directly, you need to issue the [CODE] command. None of the other commands in [CODE] will work until it has been executed, and will result in the 'CommandNotFound' error quoted. See qemu wiki page regarding QMP for de...
2
1
2,063
2014-09-27T03:43:41.307
infrastructure
serverfault.com
1,075,133
Wazuh ignore a specifc user from sudo notifications
I'm monitoring my servers using Wazuh 4.1.x. My servers are Ubuntu and CentOS. They are also monitored using Icinga2 and NRPE agent. Wazuh is logging all sudo authentications or commands ran with sudo (which is fine). But since some of the nrpe commands need to be executed with sudo I would like to ignore all the sudo ...
In the end I've came up with a mixed solution: Wazuh + Linux PAM settings For WAZUH-Manager, I've added the rule bellow in /var/oseec/etc/rules/local_rules.xml [CODE] What it does, it ignores logging sudo commands exectuted by users nagios|nrpe As for getting rid of the messages generated after a sudo command executed ...
0
0
1,215
2021-08-20T06:42:32.767
api_errors
serverfault.com
555,690
Postfix virtual setup not delivering root-mails locally
I've got a postfix virtual setup with MySQL and dovecot. Everything is working fine, the only problem currently is that mails to root are not delivered locally as it should be. Instead, postfix expands mails sent to "root" to "root@example.com". As there's no virtual mailbox for root@example.com, they can't be delivere...
OK, I fixed it. The problem was the parameter [CODE] which is set to [CODE] per default. After setting [CODE] , in [CODE] , it's working as it should.
1
2
3,906
2013-11-18T11:18:26.710
database_errors
serverfault.com
966,954
Fail2ban ipset create fail2ban-sshd hash: ip timeout -l
I have over 2.5 million ssh attempts and fail2ban and only a few thousand ip's blocked. The find time was set to 600, max retries 4, and bantime -1. The server is physically present. I changed the jail.local and tried restarting [CODE] and it starts with a whole bunch of errors. I reverted jail.local back how it was an...
After reviewing the logs over and over I decided to pay attention to the following line: [CODE] This got me to check the [CODE] log which showed [CODE] for each time I tried starting and restarting fail2ban. I searched that error and found https://www.centos.org/forums/viewtopic.php?t=60586 which suggested changing add...
0
0
1,629
2019-05-13T01:58:56.747
infrastructure
serverfault.com
4,302
SQL Server 08: Union over while
I've done some reading on this, and I keep seeing people say it's a bad idea, but hear me out! I have a stored procedure which needs to find a series of timeslots over a number of days. Due to the fact that the timeslot count is the same for every date possible, they aren't duplicated for every date. Instead, it is rec...
A few points: 1 - This is indeed a bad idea. 2 - Your syntax should be updated. Using implicit [CODE] s is generally bad since it can lead to a cartesian product if you aren't careful. 3 - Have you looked into using a recursive CTE? 4 - It also looks to me like the row-by-row could be unneeded anyways. Your date isn't ...
3
4
617
2011-08-04T11:32:36.407
database_errors
dba.stackexchange.com
377,501
How To Grant Folder permissions for WMSvc IIS
Im using Web Deploy with IIS7 and I want to grant permissions on a web site physical folder. Ive done this before (as I have another physical folder with r/w for WMSvc) but I have forgotten how I did it! When I go to the physical folder > Security Tab > Edit > Add > Object Name = WMSvc > Check Names, I get 'An object n...
Not sure if you ever found it, but you need to enter: [CODE]
4
10
4,251
2012-04-07T08:00:15.550
infrastructure
serverfault.com
408,865
centos 6.2 gives read permission denied when root has set read permissions to all users
Installing Dropbox on Centos 6.2 owned by root. Demonstrating that the dropbox folder is owned by root with read permissions to all "root" user gives read permissions to all users [CODE] But the "epub" user cannot see/read any files in this directory: [CODE] Any ideas?
For a directory, read permission isn't enough. You also need execute permission in order to enter the directory.
3
6
1,042
2012-07-18T14:48:58.353
infrastructure
serverfault.com
224,866
Import Windows MySQL dump on a Debian Linux server
I created a test database on a Windows computer with MySQL 5.7 and filled it with many data records. Now I created a database dump with mysqldump and wanted to import it on my server (Debian Jessie, also MySQL 5.7). During the import of the dump I received several error messages, which were not helpful. Therefore I loo...
The contents of the dump file you show appear to be UTF16 - this may be the result of the redirect operator on Windows (particularly if you're using PowerShell). To avoid the Windows shell redirection operator interfering with the encoding/formatting of data emitted by the mysqldump program, use the --result-file=filen...
1
3
1,393
2018-12-13T09:35:37.537
database_errors
dba.stackexchange.com
575,667
Force authenticated user immediate logoff (emergency case)
In Active Directory if you want to prevent a user from logging in you can either disable their account or simply reset their password. However, if you have a user who is already logged in to a workstation and you need to prevent them from accessing any resources as quickly as possible - how do you do it? I speak of an ...
Best solution: A security guard escort the person out... Second best solution: First, check the session number with qwinsta: QWINSTA /server:computername Write down the session ID. Then use the logoff command: LOGOFF sessionID /server:computername. [CODE] I wrote a rudimentary batch script for that. I requires some [CO...
29
22
138,979
2014-02-14T16:40:17.807
infrastructure
serverfault.com
215,006
Inner join with greater or equal VS where condition using a variable
Suppose I have a table with a unique column and this columns has only integer numbers. Eg: [CODE] column with rows from [CODE] to [CODE] . My intention is to return only rows when my [CODE] is greater than [CODE] , for example. Using T-SQL, I have several stored procedures that create a variable and make this cut like ...
Yes there will be a (marginal) impact on performance, but if it's for debugging purposes I don't think you'll be able to tell the difference. You can easily test this yourself on your data by adding statistics IO and looking at the query plans Take this code for example: [CODE] You will notice that in the execution pla...
1
4
3,684
2018-08-15T17:21:55.050
database_errors
dba.stackexchange.com
1,093,903
Same server_name with different applications plugged as separate location blocks in nginx
Is it possible to "plug" different web services (exposed from different docker containers) in a same nginx server? Here's a simple example to get the general idea: [CODE] where [CODE] is the root of a first application along with its static files in the next location block. This first application is running at http://m...
This is a typical task but you forgot two things: googling your question. adding [CODE] clauses into each of the [CODE] blocks.
0
0
212
2022-02-16T19:25:23.303
pipeline_ops
serverfault.com
610,094
Google reCAPTCHA not working on Linux system
I am working on integrating [CODE] with my registration page and everything seems working fine except one strange issue. I have tested this code on all local machines and well on our test server (window) and everything is working. We have just setup a Linux server ( [CODE] ) and was testing my implementation which is n...
I'm sure that the difference from Your test server and production server is - firewall. Check that it accept output new request to Google servers and established from them. If You use iptables one way to reach this claim: [CODE]
1
1
2,614
2014-07-04T06:28:20.877
data_quality
serverfault.com
3,805
Send Email when sql server agent job fails
How can I send an e-mail when the sql server job fails. I added my e-mail as operator and then in the job properties -> notification -> enabled the email. But it is not working. Any ideas?
For 2005 and 2008 you need to configure Database Mail then enable the Agent to use it (SQL Server Agent --> Properties --> Alert System). If problem persists, you can query the system tables related to Database Mail (check BOL for names of tables) for possible more information. If problems still persists you may need t...
1
3
6,799
2011-07-12T22:09:39.290
database_errors
dba.stackexchange.com
302,730
Should one check for every little error in C?
As a good programmer one should write robust codes that will handle every single outcome of his program. However, almost all functions from the C library will return 0 or -1 or NULL when there's an error. It's sometimes obvious that error checking is needed, for example when you try to open a file. But I often ignore e...
In general, code should deal with exceptional conditions wherever it is appropriate. Yes, this is a vague statement. In higher level languages with software exception handling this is often stated as "catch the exception in the method where you can actually do something about it." If a file error occurred, maybe you le...
65
33
15,385
2015-11-16T23:59:59.297
api_errors
softwareengineering.stackexchange.com
241,896
Need to improve performance on a server
Since converting online backup to an in-house backup (ArcServe) performance on this server has degraded considerably. Does anybody have recommendations on tuning for performance?
You need to determine what is actually performing poorly, usually via symptoms and measuring/monitoring, diagnose the cause, and then tune that. Define what you mean by "performance has degraded considerably." Does the server only do backups, and now they take longer? Or does it also serve files, and users are complain...
0
5
124
2011-03-01T21:14:32.650
database_errors
serverfault.com
886,464
ansible error: Failed to find required executable rsync in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"}
[CODE] Iam getting the following error.Could anyone help [CODE]
You can automate installation of base packages on your node. Sharing here apt module definition of the same. [CODE] Yum module definition would look something like below. [CODE]
1
1
17,719
2017-12-04T14:14:38.710
pipeline_ops
serverfault.com
216,228
Problem in configuring MySql 5.5 instance
I have problem in configuring the MySQL 5.5 instance. I have successfully installed the server and now trying to install the instance through configuration wizard. I am getting the following error:
this message tells, that the client cannot connect to the mysql on local host... this can have several reasons: the client is not running on the same machine as your mysql database ( therefore you have to replace localhost by the machines name, where the database is running ) you didn't start the mysql server a firewal...
0
0
611
2010-12-26T10:57:28.773
database_errors
serverfault.com
1,004,339
When should we use containerized application on Linux
I would like to create a Linux server but I'm stuck on one question: How to know when I should use Docker or Lxc for a given application instead of installing it natively ? For example, on my server (maybe CentOS minimal or Arch Linux or Alpine Linux depending on the answers to this question), I would like to install: ...
Bare metal (what I think you mean by natively ) is usually more performant than any kind of virtualization/containerization simply due to the fact that there is less system overhead between hardware, kernel and OS. A container is going to give you the benefit of managing multiple instances of an OS (snapshots, migratio...
0
0
65
2020-02-24T10:11:04.357
pipeline_ops
serverfault.com
11,987
How to read Several JSON files to a dataframe in R?
I have a folder with 30,000 plus JSON file. A sample file with contents is posted below. [CODE] However, I need the data in a df in a structure as given below: [CODE] Here is my code snippet to get all the files as a list: [CODE] Please advise, how can I read all 30,000 files as rows of a df?
First, you can use the [CODE] parameter to [CODE] to get the full path added to each file. [CODE] Next, there are issues with the data since they contain [CODE] values which throws off a quick-and-dirty solution. So, we have to take each list element and convert any [CODE] to [CODE] . Finally, we can use the handy [COD...
1
4
7,332
2016-05-29T23:43:05.540
data_quality
datascience.stackexchange.com
229,021
How to Use Crontab to display something to users on DISPLAY=:0.0 or run a GUI program
I really would like to be able to use crontab to update something every 3hrs, BUT crontab won't run my script with enough priveleges to run a GUI. Clarification: I have a complicated script that generates a picture (based on the current available web content from a couple of servers) every 3hrs - I want to have it disp...
[CODE] You can try [CODE] as the beginning.
2
3
5,020
2011-01-31T07:29:45.817
infrastructure
serverfault.com
397,532
Unexpected(?) high 'wasted' memory in memcached
Updated, see bottom of the longish (sorry) question. Looking at our memcached stats I think I have found an issue I was not aware of before. It seems that we have a strangely high amount of wasted space. I checked with phpmemcacheadmin for a change, and found this image staring at me: Now I was under the impression tha...
It has been a year since this question and I don't know if you found your answer but I'm going to say your perception of "wasted" is wrong. Wasted memory is allocated in memory so it can not be used by another application, but it still is available for memcached. To simplify the explanation, assume you have a memcache ...
18
10
8,777
2012-06-11T10:16:37.560
infrastructure
serverfault.com
975,463
Windows Server 2016 disconnecting every hour
I have a Windows Server 2016 running a SQL Server and every hour I get several errors about connection problems. I found out that the network adapter has [CODE] and has [CODE] for example, that means that I had network issues at 2:44, 1:44, 12:44, ... and I will have another one at 3:44 PM the next time it renews. The ...
I think I finally figured it out after 2 years! I'm using IPSec to encrypt all the connections in the same subnet, and because the DHCP server is in the same network, the UDP connections the server (ie, the Windows Server/DHCP client) needs to make are encrypted while they shouldn't. The new rule added to IPSec looks l...
-1
0
6,317
2019-07-16T15:36:05.900
database_errors
serverfault.com
1,144,520
Postfix: How can I handle incoming mail for a single address, not the entire domain?
I've gotten my employer to configure the company-wide Exchange server to forward [CODE] to [CODE] , a host I control. So far, so good. My Postfix configuration is pretty standard: [CODE] and a simple redirect in /etc/aliases [CODE] Now, I don't actually want to handle email for $mydomain, because any outgoing email fro...
The answer, as Nikita suspected, was additional unexpected Postfix directives added as boilerplate by my company. One of its directives was [CODE] . This turned [CODE] back into [CODE] , which then got sent to the relayhost. Getting rid of the [CODE] directive solved the problem.
0
1
120
2023-09-26T22:18:11.143
infrastructure
serverfault.com
970
Laptop Internet connection monitoring
I have a need to monitor laptops both Linux and Windows that are deployed to remote locations which we don't have physical access to all the time. The laptops are used for different services but need Internet access, what we would like to have is a solution to alert us when a Internet has lost Internet connection For w...
I've started abusing SyncThing for this purpose (among others), configuring it as a system service on laptops, then locking down it's UI to prevent it from being able to be used by a local connection originator to manipulate or access files. I get connectivity monitoring and robust [CODE] -like backup of field data. It...
4
5
53
2017-04-19T20:11:57.107
pipeline_ops
devops.stackexchange.com
164,607
Help writing a query to transform rows with json data into 1 download file
I want to write a query for a table like this: [CODE] I want to be able to ask: [CODE] and have the text file automatically built like this: [CODE] My concern is if the bytea size is too large, I need to get one-row at a time, and extract the data from it. This seems to work: [CODE] But I would rather not do 2 queries ...
Don't store JSON as bytea. Store it as [CODE] or [CODE] . Maybe I don't understand your question [CODE] Then just do.. [CODE] My concern is if the bytea size is too large, I need to get one-row at a time, and extract the data from it. Why? What does too large mean there? The way this works, you'll only [CODE] one row a...
0
2
53
2017-02-16T23:25:21.043
warehouse_errors
dba.stackexchange.com
218,554
Logging the conditions within a conditional split transformation (SSIS in SQL Server 2012 and 2016)
I'm struggling to find out how we can store the conditions inside a conditional split transformation when we run a package. I need a snapshot of the expressions (the whole expressions, not only parameters inside them). The closest we have got is when an error triggered the SSIS logging and stored the context in the tab...
If you use variables or parameters in the Conditional Split, you can log the values of these. There are several ways to do this, either insert the values into a custom logging table or use a Script Task to capture these. The following example uses the [CODE] method from a C# Script Task. Under the Basic logging mode, t...
0
0
149
2018-09-25T20:32:07.037
database_errors
dba.stackexchange.com
420,530
Apache mass virtual hosting & suexec & fcgid
I followed Falco's tutorial and everything now works as expected for 2 users (e.g. john and alice) with their relevant directories ( [CODE] and [CODE] ). Now, I want to go to the next level: instead of defining different vhosts at [CODE] and restarting Apache, I need dynamically configured mass virtual hosting ( http:/...
in practice the dynamic vhost feature is not optimal, because you are not flexible enough (.htaccess is in some cases not enough). use a script to generate the vhosts or use something like puppet to define the vhosts ( https://github.com/puppetlabs/puppetlabs-apache ). btw: for your php setup i would use php-fpm (ondem...
4
2
1,304
2012-08-23T18:32:23.160
infrastructure
serverfault.com
560,919
automatic MX entries for (almost) all hosts within a domain
i'm running a DNS-server for [CODE] , with multiple A/CNAME records pointing to different IP-addresses. [CODE] now i would like to run a single mail-server (e.g. [CODE] ) for the toplevel domain ( [CODE] ) and all hosts within that domain ( [CODE] , [CODE] ) i imagined something like [CODE] now the above works good eno...
Wildcards only apply to FQDNs which do not exist as any type of RR. Since you have a A Record for "a.example.com", a wildcard of any RR Type will never match "a.example.com". Sounds like you're already on top of the alternates; mainly manually generating each record or using some convoluted include system. One other th...
2
3
543
2013-12-12T13:58:34.217
infrastructure
serverfault.com
291,445
Sacrifice server validation in pos of performance with Rich Client validation?
I recently started to work in a java enterprise project (~200 people) that uses a SWT rich client. In many cases I've found business rules not being validated in server side, because the widgets that trigger such actions are disabled in the SWT client using the business rules. This is a well known question of validatio...
Consider two options. Validate everything on the server, at all times. Suppose you pay for 2 extra weeks of developer time (e.g. $10k), and e.g. $100/mo extra for more computing power. Nothing interesting happens. Do not validate input and save the money and time. Then someone mischievous steals a secret, finds out tha...
0
3
90
2015-07-31T14:15:42.137
data_quality
softwareengineering.stackexchange.com
171,414
Migrating MySQL server to MariaDb or Percona?
I have a MySQL application (MySQL 5.5) running on a virtual Ubuntu 16.04 (64bit) server with 2 kernels and 8 GB RAM. I consists of a few, small RW tables and appr. 30 read-only InnoDb tables with 100-150k rows in each (totaling ~ 1-2 GB data + indexes). Almost all queries gather data from several of the read-only table...
The overall performance of MySQL/MariaDB/Percona and InnoDB/XtraDB etc, is minimal. There are specific cases where one shines over another. You should not expect a magical improvement. Instead... You should look at what is specifically causing trouble and tackle that. High CPU: Add composite index / revise query -- but...
0
2
478
2017-04-19T15:44:43.240
database_errors
dba.stackexchange.com
907,522
Is there a downside to leaving client_max_body_size unchecked on Nginx?
I'm using Nginx on Ubuntu 16.04. When uploading a file to one of my websites today, I ran into a [CODE] error. In order to fix this, I set [CODE] to a higher value, which solved the problem. I was just wondering whether there is any downside to setting this value to a very high limit (say [CODE] ), or leaving the size ...
Remember You need to configure both nginx and php to allow upload size. Find you php.ini and just check on this parameter [CODE] And then restart both php and nginx. Also check your nginx error log,if there is something like [CODE] Then its your permission file
2
0
559
2018-04-13T13:52:56.547
infrastructure
serverfault.com
422,696
Designing around potentially multiple RESTful API calls to a downstream service
To set up the problem, let's imagine we have a downstream service that we need to call for some information. We set up an API endpoint and call another method which will hold our business logic and make the HTTP request. Based off of certain parameters that were sent to this method, we may potentially have to make seve...
A solution could be using recursion. This way you call the method until you no longer need to call it anymore and each call will eventually reach the point of processing the response after having done all the necessary error checking. Following is an extension of your example making use of recursion: [CODE]
-1
0
387
2021-02-25T00:21:50.597
api_errors
softwareengineering.stackexchange.com
930,578
Default IPv6 route keeps disappearing
I've got an dedicated server hosted by KimSufi that's running Ubuntu Server 18.04 . While I've goto both an IPv4 address and an IPv6 address, I keep getting random dropouts on IPv6. Doing a [CODE] when it's dropped out yields this: [CODE] If I try sudo ifup eth0`, then I get this: RTNETLINK answers: File exists Failed ...
Based on comments provided so far, I would try replacing the routing on the interface config with the following: [CODE] ... and see if that has any affect on the reliabiltiy of the default route.
1
2
4,700
2018-09-12T13:34:19.490
infrastructure
serverfault.com
425,700
Pinning Stateful Tasks in Stateless microservice cluster
We have a microservice whose multiple instances are running for High Availablity and Scaling. But although we have multipe stateless microservice there are some tasks which needs to be singleton. For example, let's say we have to fetch emails from multiple email Ids and do some work on those emails. Now since I would l...
You're pinning tasks/connections to specific instances of your microservices, which is an anti-pattern in this context. Such pinning means that your instances have implicit state, which makes it difficult to scale up or down. They are no longer stateless. In some cases (e.g. maintaining open network connections for pus...
-1
1
117
2021-04-22T21:06:57.673
database_errors
softwareengineering.stackexchange.com
27,683
How to fix 'Java build failed' in Eclipse after converting selenium IDE script?
I recorded a script using Selenium IDE and exported it in Java. Now when I want to run it on webDriver, a pop-up box is displayed- when I select an option and click on ok "Build failed" message is displayed. I do not have any idea how to resolve this as I am a beginner in selenium.
In Eclipse you need to get the junit.jar and add it to your build path (if you exported using the junit option). To add it to the buildpath: Create a 'lib' folder in your project Copy the .jar file into the lib folder Right-click the .jar and select "Add to Build Path" You should then be able to run as a JUnit test.
1
1
1,699
2017-06-08T11:44:13.123
data_quality
sqa.stackexchange.com
79,993
How to solve "Servlet error" when using database control in Oracle 12c?
When I want to use Oracle 12c GUI, I receive an error as written below: Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details. My browser is Google Chrome, and the firewall and antivirus are als...
Database control has been desupported in 12c. You need to use EM Express or EM Could Control
0
0
969
2014-10-12T14:58:20.270
database_errors
dba.stackexchange.com
956,015
My Nginx server is not working
I have an Apache server on Ubunu 18.04 with a Drupal 8 site that I want to migrate to Nginx and PHP7.3-FPM. This is the only site on the server. I do not know Nginx at all. The site works with Apache but it does not work with Nginx. I deleted Apache with the following command : [CODE] Here is the configuration I had on...
Your Drupal 8 installation is redirecting homepage traffic to [CODE] , which then returns the nginx 404. See the headers: [CODE] You should do the following, in order: Check the server's clock. It appears to be several hours wrong. Clear Drupal's cache. Check what content your Drupal homepage is returning.
-1
1
1,731
2019-02-27T17:54:08.463
infrastructure
serverfault.com
354,440
Should usage examples in XML documentation be explicitly tested?
If usage examples are provided in XML documentation, should those examples be explicitly tested? [CODE] /// public ReadOnlyCollection GetFooFromBar(Bar bar) Granted, the above contrived example is probably not at much risk of regressing, but it would be very embarrassing if API users pasted the example code and it did ...
Personally, yes, I believe, they should be tested. A lot of people say that one of the bad things about documentation comments is that they are not checked by the compiler. Well, here you have at least a portion of your documentation comment which can be checked by a testing framework, so do it! There are some interest...
1
2
84
2017-07-25T17:30:52.067
api_errors
softwareengineering.stackexchange.com
313,515
docker mariadb ignores to read my.cnf files from mounted volume
This problem is annoying me very much, it might be something stupidly simple to a good system admin but i've wasted many hours without success, i've tried many answer from SO and other websites and nothing works for me... I will be as detailed as I can my system: debian 11 docker-compose 1.25 Docker version 20.10.5+dfs...
Per the docs , under "Using a custom MariaDB configuration file", use [CODE] as the mount point for configuration files containing only those directives that differ from the default. This is the only configuration tested. I can't immediately see why /etc/mysql/my.cnf mounting isn't working for you.
0
0
3,946
2022-06-18T15:14:10.610
api_errors
dba.stackexchange.com
429,013
MySQL Server hitting 100% unexpectedly (Amazon AWS RDS)
Please help! We've been struggling with this one for months. This week we upped our RDS instance to the highest performing instance and although the occurrences have reduced, we're still having our DB all of a sudden hit 100%. It comes out of nowhere. Sometimes 2am, sometimes midday. I've ruled out a DOS - our pages ac...
http://www.mysqlperformanceblog.com/2010/09/10/cache-miss-storm/ As it turns out, our issue was a cache storm miss, AKA miss stampede. We've solved it by implementing a 50% cache expiry. Basically for every item in memcache we create a second cache item with a similar key plus the appended 'regenerate' string. This ite...
1
1
2,112
2012-09-17T07:15:18.957
api_errors
serverfault.com