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
419,819
Very high packet loss in burst
We sometimes have 90%+ more packet loss on our server, but it does not always appends. Right now it works perfectly, but just half an hour ago, it had just that problem. Our service provider is telling us to go in a recovery system to test if this is really a hardware problem and not software on our side. However, I do...
In my opinion it's hetzner fault. I've been arguing with them for a very long time about similar case. We had those problems and were reporting it to the hosting company. The answer was always the same - "Please attach mtr in both directions" - they would answer like that even during the fault. So we did write a daemon...
1
2
1,374
2012-08-21T21:14:16.727
infrastructure
serverfault.com
340,396
In SCOM, can I allow overriding of the recurring schedule for missing event detection?
I'm creating a rule to look for a missing event in a windows log using SCOM and I need to override the rule for different groups of servers to set different timings. For example server A needs to have an alert raised if the event is missing for 30mins but on server B, we only produce the alert for 60mins without the ev...
The Missing Event Schedule , and the, Auto Reset Timer , properties are not values that can be overridden on a unit monitor. A brief overview of the overridable properties can be found at How to Create an Override for a Monitor . We always follow the pattern of "target a class, but override for a group". I think this g...
1
0
547
2011-12-13T08:58:11.433
infrastructure
serverfault.com
391,808
How would I add up enumerator values such that any combination provides a unique number?
Backstory (You can skip) I am writing a pronunciation library for irregular words. Take something like the following: [CODE] What you see for every word, are the different possible interpretations. Tackling the issue is pretty taxing, but is honestly pretty straight forward. Basically, I parse the word into various typ...
It is not that straightforward but doable nonetheless. First you can create a new enum for your 500 or so string type sequences. To make this readable, eliminate all underscores from your current StringType enum members and use these underscores to separate the parts in your new StringTypeSequence enum. So you could ge...
1
1
645
2019-05-13T01:53:50.263
api_errors
softwareengineering.stackexchange.com
944,175
Kolla OpenStack deployment fails with "haproxy : Waiting for virtual IP to appear"
I'm trying to deploy OpenStack Queens with kolla-ansible (7.0.0) on Ubuntu hosts, following the official guide . After successful [CODE] and [CODE] the [CODE] command fails: [CODE] The reason for the check to fail is that the [CODE] does not come up. globals.yml [CODE] I'm currently fixed on queens because I want to re...
So, after running into the same problem on bare metal I dug deeper into the problem. Turns out it wasn't keepalived, but the haproxy container that had the problem. The haproxy container keeps restarting because haproxy is started with the command line parameter [CODE] , which does not exist in the haproxy version that...
2
0
4,744
2018-12-13T11:27:13.537
pipeline_ops
serverfault.com
701,559
Nginx not making proxy_pass when getting files (other than index.html) from Apache's Document Root
I think I'm chasing my own tail here and I've decided to ask all you gurus. I have two machines, one has a reverse proxy Nginx and the other an Apache running several virtual hosts. The nginx correctly does the proxy_pass and I'm able to view the index.html, but not any other file than that. I attach the conf file for ...
This [CODE] Should be [CODE] As per http://wiki.nginx.org/HttpCoreModule#location location = / { # matches the query / only. [ configuration A ] } location / { # matches any query, since all queries begin with /, but regular # expressions and any longer conventional blocks will be # matched first. [ configuration B ] E...
1
1
1,975
2015-06-25T10:27:55.857
infrastructure
serverfault.com
615,146
Windows Remote Desktop Connection
I have a Windows Server 2012 and I can currently connect to it via the built-in Windows remote desktop software. I enter the server IP and password and all is fine. However, I was wondering what I can do in the server to only allow certain IP addresses to connect to the server. Is this even possible? If not, are there ...
This functionality does not exist within the RDP protocol or the MS RDP/Terminal Services server. The only real option to achieve this is with a firewall - an edge firewall, for example, but even the built in Windows firewall has this functionality.
0
1
96
2014-07-24T12:11:08.353
infrastructure
serverfault.com
928,675
smartctl 6.6 missing attributes table
I'm used to analyze the output of [CODE] using [CODE] on specific attributes. Example: [CODE] I have a new server that does not output the attributes table. Example: [CODE] Where is the table gone?? How can I make it show? Or what is the new way to analyze it? Thanks for your help. Regards Santiago Following Michael Ha...
Your new HGST drive is a SAS drive, not a SATA drive. SAS drives do not provide a relatively standard table of SMART attributes as SATA drives do. From the smartmontools FAQ : SCSI/SAS and NVMe drives do not provide ATA/SATA-like SMART Attributes. Therefore the drive database does not contain any entries for these driv...
3
2
1,354
2018-08-30T09:18:52.497
infrastructure
serverfault.com
618,623
Mails going to spam. Please see the details
My hostname is properly set up. Host file has proper entries. Mail header shows SPF pass. IP is not balcklisted. Mail body is also fine. Only thing don't have is DKIM setup. Now I have got two domains on the same server. Mails are going to inbox from one domain and to spam from the other one. The other one is a new dom...
Since the sole difference here is the domain, focus on that: It is newly registered, and has not had time to build up a good reputation. It is newly registered, and that in and of itself is often an indicator of spam. Spammers often register domains with stolen credit cards, start spamming immediately, and then several...
0
1
375
2014-08-07T07:53:18.000
infrastructure
serverfault.com
313,224
From a software development lifecycle perspective, is duck-typing a benefit or a problem?
Statically-typed languages such as Java afford the benefit of compile-time checking of types - you are guaranteed that an object is of a given type, so: there is no need to spend time and resources investigating the TYPE of a variable or parameter, because we don't know if this is a [CODE] , [CODE] , or just one [CODE]...
1. Much of what you said is just as true in statically-typed languages. Duck-typing on the other hand does not care about the explicit type of an object - as long as the object has the relevant attributes (data members and functions), the program can go ahead. If the object has a function with the same name as what is ...
3
7
1,527
2016-03-19T12:33:43.480
api_errors
softwareengineering.stackexchange.com
987,475
Log shell stdin & stdout
I'm trying to setup a bastion that I would like to log all commands executed and output to (ideally per-user) log files. I looked at auditd, and can see how to log commands executed to system I don't capture commands executed on secondary systems from ssh connections outbound from the bastion. eg. [CODE] with auditd I ...
try rootsh package in Linux. just setup a server, as your ssh-server and ask your users to authenticate to this server fist, in order to connect other devices.you may use access-list or any other filtering mechanism to limit your systems or devices to get logged in, only from your ssh server. this package, logs all the...
0
0
445
2019-10-10T10:40:39.090
infrastructure
serverfault.com
27,704
How to use GridSearchCV with RidgeClassifier
I'm trying to use [CODE] with [CODE] , but I'm getting this error: My problem is regression type. IndexError: too many indices for array I'm new to Machine Learning, please help me out. This is the code I've been trying to implement: [CODE] This is the complete error log: [CODE]
The problem is that Y has shape [CODE] . The shape of Y should show [CODE] . The explanation for this is a bit long, so I just give here the links- Difference between shapes (R,1) and (R,) Solution for IndexError: too many indices for array
0
1
1,926
2018-02-11T19:40:45.207
data_quality
datascience.stackexchange.com
469,581
Mitigate DDoS Proxy attack
In last days my apache is being attacked by many connections from proxies. I've identified the source but could not block the attack effectively. The attacker seems to be using pyloris or a variation of this to attack my apache on port 80. I installed nginx and varnish but not enough to support the extra load. I also a...
Usually pyloris attacks are utilised using TOR network. As first step I would suggest you to block ip addresses of TOR network and check if it helps at all. Here is a list of TOR network's ip addresses Let us know if it helps
2
1
453
2013-01-16T10:38:37.847
infrastructure
serverfault.com
360,292
Boot CD for ia64
I'm looking for rescue or live CDs for Itanium servers, but the only bootable CDs I've found are the distros installation CDs. Mainly I want to clone the servers disks, and also check memory or disk bad blocks. I've tried with the same CDs I use on x86-64 but none of them have a version for ia64. Any recommendation?
At least the Debian text installer has a "rescue mode" giving you a shell with a handful of useful commands. It is not as comprehensive as SysRescueCD, but hey, it's precompiled for ia64. I believe Gentoo has something similar. There also is a [CODE] binary for ia64, but I do not know if it is part of the rescue mode s...
0
1
663
2012-02-15T10:02:44.270
infrastructure
serverfault.com
978,226
Apache how to have 2 virtual host https?
I'm trying to configure 2 domains (A and B) in the same server with different certificates. The domain A works fine, it has it's own certificates and rules to redirect to it. If I try to access to domain B it displays the following message: [CODE] Now if I add domain B it does exactly the same but in reverse. [CODE] Al...
You have to create two different vhost file in sites-available (if in debian based OS) and load the certificate differently on both domains on two files. Could you post your vhost configuration. on subdomainA.domainA.com.mx vhost config file write below code. [CODE] You can do same on another virtual host of domain [CO...
1
1
359
2019-08-06T22:09:42.037
infrastructure
serverfault.com
268,952
ERROR: 42803: column "wage_histories.wage" must appear in the GROUP BY clause or be used in an aggregate function
I'm trying to migrate an application from SQLite to PostgreSQL, and now I have reached the point of re-expressing the queries that are valid in one and invalid in the other. I have a table: [CODE] It represents the wage of a user, over time. So, the wage of a user on a particular date is the value of the [CODE] column ...
If you just need one row: [CODE]
0
1
656
2020-06-11T13:30:30.027
database_errors
dba.stackexchange.com
77,061
Sharing includes files with PHP across domains on shared hosting
Can I use an includes folder on one website and set up "trusted domains/IPs" that are allowed to access the files in this folder (all other domains/IPs are restricted)? All the sites are on the same shared hosting server, the global site has a dedicated IP, the others share a different IP. Is this too insecure to allow...
If all the websites are on a shared server you can make a folder readable and they can include that way. Say /blah/globalphpshare/ and user 'homer' wants to use greet.php he/she could simply do [CODE]
1
2
2,753
2009-10-22T06:20:05.830
infrastructure
serverfault.com
334,153
Is a General Exception In Addition To Expected Exceptions Defensive or Unecessary?
I have read this and this and this : if my question misses the point in those answers, please point it out and we'll get this one deleted. These questions indicate that this may actually be a bad thing under certain circumstances, but I think I understand that difference. QUESTION: If I am using a function from another...
If I am using a function from another library that throws an unchecked exception that can be corrected If you got an exception you specifically can do something about at the current code level , by all means catch it specifically and do your thing. AND my program will be outputting directly to the user (there should be...
1
1
530
2016-10-20T13:34:16.520
api_errors
softwareengineering.stackexchange.com
27,471
How much memory do I need for innodb buffer pool?
I read here that You need buffer pool a bit (say 10%) larger than your data (total size of Innodb TableSpaces) On the other hand I've read elswher that innodb_buffer_pool_size must be up to %80 of the memory. So I'm really confused how should I choose the best size for the pool. My database size is about 6GB and my tot...
If you go strictly by that rule of accommodating an addition 10%, here is my suggestion: [CODE] This will produce exactly what you need to set innodb_buffer_pool_size in [CODE] . If you want to account for 25% increase in data and indexes over time, please change [CODE] to [CODE] Recently, I answered another question l...
9
12
9,104
2012-10-21T16:53:35.917
database_errors
dba.stackexchange.com
684,248
How to troubleshoot tape backup issues via mt on Linux for Windows backups?
I have an HP Ultrium 448 tape backup that is being recognized without seeming issue on Ubuntu. I am able to see it at [CODE] . When I issue [CODE] , the tape ejects. When I issue [CODE] , I get: [CODE] When I issue [CODE] , I get: [CODE] I suspect that this is because it was created with the Windows Server 2003 [CODE] ...
[CODE] should according to the docs be able to read straight from the tape so ... [CODE] If you'd rather grab the data off the tape first and then manipulate with mftar then you can use [CODE] eg [CODE] You might need to specify block size with dd. If you don't know how the tape was written then [CODE] can give you a r...
0
1
2,904
2015-04-21T05:38:19.487
database_errors
serverfault.com
10,449
Grant permissions to run a SQL Server job
I have a job on my SQL Server 2005 instance that I want to allow any database user to run. I'm not worried about security, since the input to the job's actual work comes from a database table. Just running the job, without adding records to that table will do nothing. I just can't find how to grant public permissions t...
You could create a stored procedure that runs the job. You can use [CODE] to run the stored procedure as the database owner. That way, the users themselves don't need permissons on [CODE] . [CODE] Grant execute rights on [CODE] to allow people to start the job. Of course, you can also put the contents of the job in a p...
25
23
103,492
2009-12-31T10:55:01.947
database_errors
dba.stackexchange.com
903,182
Can you install WebSphere Portal and WCM 8.5 without DB2?
I'm a Java developer trying to debug a production problem involving threads in a portlet on WebSphere Portal and WCM 8.5. In order to isolate the issue and not impact on other development, I need to set up a dev playground on a Windows 64-bit machine on a powerful laptop with lots of RAM. I've downloaded and installed ...
I finally concluded the installation successfully. DB2 is not required. And no, you should not use the regular IBM WebSphere Application Server profile creation tool mentioned above for WCM. What I had missed earlier was I needed to start the cw profile, then go to the configuration wizard at web page http://localhost:...
0
0
335
2018-03-17T14:26:52.283
pipeline_ops
serverfault.com
609,197
rootsh running issue in normal user
I have installed rootsh and it's working fine in CentOS 6. But its logs are written both to [CODE] and [CODE] . I want the logs to only be written to [CODE] , not to [CODE] . When I run the command from root, I'm able to disable syslog: [CODE] I want to be able to disable syslog with my normal user, too. I logged into ...
What's happening here is that you are getting caught in a loop - have a look at this output from pstree [CODE] Each time you run bash, it runs .bashrc which runs rootsh which is a wrapper around bash so it runs bash which runs .basrc ... You could put the invocation in .bash_profile, then it will only run for login she...
5
5
1,405
2014-07-01T08:44:27.697
infrastructure
serverfault.com
31,336
Adding User access to DB2
I have installed DB2 10.1 in a Red hat box. During the installation I was asked to create several users (db2inst1, db2fenc1 etc). I have been using db2inst1 to perform all operations with DB2 and it works perfectly fine. The sqllib files are located in [CODE] The installation files are located in [CODE] All users have ...
My gut feeling is that you did not update user "john's" profile to invoke the DB2 profile setup. If you do not do this, then you won't have "access" to DB2 per say, even though the binaries are there. So what you want to do is write a script that checks for your DB2 instance "home" profile script in your case it would ...
2
5
7,482
2013-01-03T01:05:57.243
warehouse_errors
dba.stackexchange.com
1,006,598
Only oracle user can run sqlplus
I have a couple of RHEL 6 boxes with Oracle 12.2 server and 11.2 client. This is the vendor requirement. On one server I can run sqlplus as any user, on the other server I can only run sqlplus as the oracle user. Running as any other user gives: [CODE] When I say oracle user, I mean the OS user named oracle. I've check...
The problem turned out to be that [CODE] returns a short name on the working server and an FQDN on the non-working server. I’ve updated /etc/sysconfig/network to set the hostname short and now things work. I don't know why this is needed but it fixes the problem and right now that all that matters.
0
0
105
2020-03-12T01:37:44.837
database_errors
serverfault.com
346,042
Windows XP cannot execute binary file on Network Share
I'm having a Network Share provided by a Mac OS X Lion Server on a recent Mac Mini Server (CIFS / SMB); mounting the share in Windows (XP) is no problem, reading and writing neither. But when ever I try to execute an executable [CODE] , Windows complains that it's not a valid win32 executable. Copying the file from the...
How are you connecting to the server? Since the program works when you copy it locally, you might want to add the server to the Intranet security zone. See: http://support.microsoft.com/kb/303650
1
1
1,127
2012-01-03T07:41:11.713
infrastructure
serverfault.com
443,840
Windows 2008 CA Certificate Services
I have a Windows 2008 server that is not joined to a domain or acting as a domain controller. However when I request a certificate via the web browser (http:///certsrv and then try to issue it I get an error : [CODE] Any ideas ?
Its seems that running the following resolved the issue but im not sure exactly what this does ?? certutil -setreg ca\CRLFlags +CRLF_ALLOW_REQUEST_ATTRIBUTE_SUBJECT
1
0
1,620
2012-10-30T21:33:59.673
infrastructure
serverfault.com
476,862
Updating ILO on HP DL380 G7 fails due to firmware version gap
I tried updating several HP Proliant DL380 G7 ILOs today to firmware version 1.50. Some had 1.15, some had 1.26. Those with the older revision refused to accept the firmware blob, the newer ones did update successfully. Is this behaviour expected or documented somewhere? Updating to 1.50 via 1.26 is acceptable, I do wo...
You typically need to update to ILO3 version 1.28 and then move to version 1.50 . As you can can see below, I keep both ILO versions handy on my jump server, just in case I encounter an ILO3 with a In the ILO firmware package README file: PREREQUISITE: iLO 3 v1.20 BUILD DATE: 8/20/2012 EFFECTIVE DATE: 9/24/2012 DESCRIP...
5
10
8,369
2013-02-08T14:36:57.643
infrastructure
serverfault.com
869,825
Amanda versus Bacula and (modern as of 2017) large backup jobs
I am deploying my first tape backup solution (with Quantum Superloader 3 LTO-7, CentOS 6.9), and I am surprised and stymied by the what seems like daunting configuration requirements of both Bacula and Amanda. I am attracted by the philosophical approach that Amanda takes regarding using existing common tools and forma...
I use Bacula since about 13 years, and Quantum Superloader LT6 Tape Library since about 3-4 years. Is Amanda used for jobs of this magnitude? Is it superseded at this point by Bacula? Is there a compelling reason to use one of the other? Our backup volume is one 25TB storage, and a few TB other smaller folders. Changes...
8
3
9,447
2017-08-22T05:09:30.060
database_errors
serverfault.com
5,000
Proper way of fighting negative outputs of a regression algorithms where output must be positive all the way
Maybe it is a bit general question. I am trying to solve various regression tasks and I try various algorithms for them. For example, multivariate linear regression or an SVR. I know that the output can't be negative and I never have negative output values in my training set, though I could have 0's in it (for example,...
The problem is your model choice, as you seem to recognize. In the case of linear regression, there is no restriction on your outputs. Often this is fine when predictions need to be non-negative so long as they are far enough away from zero. However, since many of your training examples are zero-valued, this isn't the ...
10
7
9,284
2015-01-30T21:30:18.077
data_quality
datascience.stackexchange.com
770,092
Hard disk reporting incorrect size in BIOS
I have a server with a software RAID system. There are 4 disk in the array: 4 x 4TB model WD40EFRX -68WT0N0 I noticed that the OS was reporting one of the disks to be 3TB, so I rebooted and checked in the BIOS and it also reports 3TB. Whereas it reports 4TB for the others. The sticker on the physical disk says 4TB, jus...
Modern HDD drives have a specific SATA command to limit the number of LBAs/sectors reported to the BIOS/OS. Can you issue [CODE] and [CODE] ? However, pay attention to not insert a numeric value after [CODE] , and be sure to read the [CODE] section of hdparm manpage
0
1
1,688
2016-04-13T16:36:59.823
infrastructure
serverfault.com
1,015,458
Why does Load Average of my Linux hosting server keeps swinging from 6 to 33?
Lately, I've noticed a weird behaviour on my production server of a moderately high traffic WordPress website. (concurrent realtime traffic around ~1500) The server is capable: [CODE] The issue is that the Load Average (LA) stays at 6 for approx 30 mins, then rises steadily to around 33 and then stays at 33 for approx ...
Per your screenshot showing 599% CPU in [CODE] , the database is the source of your problems. I would put all the files you 'tweaked' back to their default settings. Chances are you changed stuff after random googling when you didn't know what the actual problem was. After that, you should run MySQL Tuner to get sugges...
0
1
110
2020-05-03T15:45:43.577
database_errors
serverfault.com
608,543
Can I use ZFS to replicate (fast) EC2 instance store to (slow) EBS store?
I love the idea of using SSD EBS instance stores as L2ARC and ZIL for a zpool backed by EBS . Going further (and into more dangerous territory), could I instead create a zpool mirror with the 2 instance stores: [CODE] and then use ZFS snapshotting/replication to keep a "warm"/eventually consistent spare on EBS? I would...
I would not mix such different disks in a mirrored volumes. I would rather use frequent send/receive iterations to have consistent, point-in-time backups of the main volume.
2
2
903
2014-06-27T21:28:12.367
database_errors
serverfault.com
233,536
How to manage ldap users/kerberos principals on Ubuntu server?
I've recently setup a small test network with an Ubuntu server and Ubuntu clients. People can login to a client machine using an account stored in LDAP (created using ldapadduser from the ldapscripts package). The problem has arisen when it came to sharing home dirs from the server using NFS. The only secure way to do ...
Have you looked into FreeIPA yet? It is a Redhat project for fedora, but it does exactly what you are looking for. Can you use a Fedora server instead of a Ubuntu one? If so it will take care of stuff for you. I setup an Ubuntu server and client setup here, I wish I had used FreeIPA instead. If you can configure Ubuntu...
0
0
774
2011-02-09T21:01:26.360
infrastructure
serverfault.com
291,581
Can't Get Hyper-V Dynamic Memory Working For Hyper-V Server 2008 R2
According to this MSDN article I should be able to install Hyper-V Server 2008 R2 as the primary operating system on my computer, then install one or more copies of Windows Server 2008 R2 as virtual machines (Hyper-V again), then configure the VM's to use Dynamic Memory. If I'm reading this right... Dynamic Memory is a...
One of the guys I work with was configuring a new set of Hyper-V servers this afternoon, and decided to (re-)check the machines we couldn't configure for dynamic memory... and it seems the Windows Update Fairy has sprinkled some automatic update dust on Hyper-V Server 2008, because the DM RAM settings (that weren't eve...
0
0
971
2011-07-18T20:34:57.343
infrastructure
serverfault.com
877,949
kops kubernetes dashboard not working
Have created a kops kubernetes cluster Installed dashboard using: [CODE] Versions [CODE] gives: [CODE] Browsing to: https://api.k.mydomain.com/ui Gives: Error: 'malformed HTTP response "\x15\x03\x01\x00\x02\x02"' Trying to reach: ' http://100.x.x.x:8443/ ' How should I access dashboard?
New versions of dashboard don't work properly with short [CODE] path. You need to use ugly [CODE] instead. Check the official site for details. https://github.com/kubernetes/dashboard
1
1
812
2017-10-11T11:42:44.233
bi_errors
serverfault.com
986,690
how can i modify max memory-limit in php.ini in docker container
within the docker container on a MAC, I am getting a php memory error : [CODE] how can i find where the php.ini file is or how can i modify this parameter in docker?
Adding the following line inside your Dockerfile do the job for me [CODE]
20
11
51,871
2019-10-03T18:00:50.877
pipeline_ops
serverfault.com
203,247
Grant PG permissions to not existing tables
I would like to have a dedicated user in the schema, that can have access to tables/objects by pattern like [CODE] (starts with [CODE] ). He should have permissions to create new tables like [CODE] and perform insert/update on existing tables. It is possible with MySQL, but not sure about PostgreSQL (easily, without st...
Without claiming to address your 'by pattern' requirement, granting privileges on not-yet-extant objects is addressed by [CODE] [CODE] Or simply [CODE] As @a_horse_with_no_name observes, the schema is the usual way to group objects for privileges. Using schemas for security is much less error prone than using naming pa...
0
2
1,516
2018-04-06T15:14:06.757
database_errors
dba.stackexchange.com
487,662
About huge page and translation Lookaside Buffer
they confuse me. huge page: the way to manage physical memory of OS kernel, it is split huge page by kernel for reduce the index number in page table. I get it from : https://stackoverflow.com/questions/1973473/difference-between-cache-and-translation-lookaside-buffertlb Translation Lookaside Buffer: A Translation look...
AnonHugePages are used by the kernel for "transparent hugepages". They are accounted for separately from the "HugePages_Total" that is listed in meminfo. Originally, to use huge pages your application had to support them directly. Java does, Oracle does. I'm sure there are other big memory users that use them. They als...
3
2
6,438
2013-03-14T03:29:38.677
infrastructure
serverfault.com
461,031
AMD processors VS Intel Processors in virtualization and SQL tasks
I need to buy a server. This machine will be used as a virtualization host, therefore it will have a lot of v-machines sitting there using its resources. One of those v-machines is a SQL Server that provides for our ERP which is used, intensively, by about 30 people, one automatic instance of that same ERP and one exte...
There's a lot of subjectivity to the question. What is satisfactory performance to you might not be satisfactory to someone else, like your users. You're not likely to see significant differences between similarly-specced processors regardless of if they're AMD or Intel. You should be way more concerned about disk IO f...
0
2
1,324
2012-12-26T21:28:01.013
api_errors
serverfault.com
882,758
NIC Teaming on Ubuntu 17.10 via netplan
Attempting to NIC team on Ubuntu 17.10 using netplan: [CODE] After applying cannot ping gateway or ping Ubuntu server from other network nodes. My hunch is I'm missing something simple but reading docs and other examples I'm at a loss :/ Here's [CODE] : [CODE] Update 1: Changes [CODE] to [CODE] as Mark Wagner pointed o...
Required three fixes: Changed [CODE] to [CODE] . Added nameserver For true NIC teaming resiliency split the two NICs into separate interfaces for bond0 Final netplan: [CODE]
1
1
6,509
2017-11-09T23:54:46.110
infrastructure
serverfault.com
83,080
Normalized Data Store - Confused with prefixes to use
I'm designing a Staging+NDS+DDS Data Warehouse system, where an ETL is going to normalize data from [CODE] and load it into [CODE] , which will hold all history. I've pretty much finished the T-SQL script that will create the tables and constraints in the [CODE] database, which contains Master and Transactional tables,...
There is always at least something else you should also know and almost equally, always something else you should be consciously putting a stop to. Specifically in the context of data warehousing, which is a relatively fledgling sector, leveraging relatively new technologies. In regards to what I've seen in the real wo...
4
3
716
2014-11-19T16:19:33.010
warehouse_errors
dba.stackexchange.com
123,290
error "--secure-file-priv option" when save selection to csv
I try to save a very large select (more than 70 milion rows into csv file) on Win 2012 R2 server I execute query as root , but I think there is still some problem with privileges [CODE] Error Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement Thank you i...
On Win2012 I found file my.ini. In the file there is a definition of secure_file_priv - a folder when I can download to or uplload from , So I change my query as following: [CODE]
7
2
50,448
2015-12-09T12:32:53.627
database_errors
dba.stackexchange.com
14,496
How do I put a MySQL fixture in a PHPUnit driving a Selenium2?
I have a [CODE] web project using [CODE] for the unit tests. Recently I added functional tests with the package [CODE] . I have added tests to do a login, then to create an item and the tests successfully checks the item has been created. It is time now to create a functional test that logs into the web and deletes an ...
From my experience the "best" way is to have a database created that has all the test data you need including whatever real world extra data to properly test. Back that up and reload it before each test run. This ensures the test data state always matches with the test cases. This will make life much simpler than tryin...
3
1
584
2015-08-26T16:53:47.480
database_errors
sqa.stackexchange.com
965,636
Slow Queries WordPress Site (500k visitors a month and 150k posts)
I'm running a WordPress site with 500k visitors a month and 150k posts with in average 100 pageviews every second. I am trying to figure out if the load on the server is normal or if there is something I can do to fix the performance issues without increasing the server setup and monthly costs. Here is the server setup...
Firstly, enable slow query logging if you have not already done so: https://mariadb.com/kb/en/library/slow-query-log-overview/ Next, you can take one of those queries and put [CODE] in front of it. This will show you a table that explains what happened when executing the query. It will for instance show if an index was...
0
1
446
2019-05-02T19:36:53.773
database_errors
serverfault.com
1,044,145
What tools do you use to manage your Linux Server?
I'm a starter, just started using a VPS (headless Ubuntu server 20.04), I was wondering what tools are the most relevant for configuring, managing, monitoring Linux Servers. And maybe also some Tools for making Docker easier :) I'm new so I wanted to see if I'm missing on anything Cheers
Well, obviously OpenSSH. You can install X11 and turn X11 forwarding on in your sshd.conf file, then you can run GUI stuff on your local PC using VCXsrv, Xmingw on Windows, or whatevee X11 server you are already running on a Linux client, if you need to. Some things that might be helpful to have a GUI for, for instance...
1
2
175
2020-11-27T15:23:06.997
pipeline_ops
serverfault.com
951,947
curl resolves all non-SSL URLs to 127.0.0.1 and port 8080
I'm executing curl and no matter what URL I point it to, it always tries to connect to 127.0.0.1 and port 8080: [CODE] In the above example I'm using a non-existing domain 'asdfsafzsdfsdf' but the same happens with existing domains like google.com. But, if I point it to an SSL URL like https://google.com , it resolves ...
It looks like you have a proxy server defined in your environment, e.g. in the [CODE] environment variable. Check your shell environment and remove the variable from whichever shell startup script defines it, or start the proxy server. Alternately, you can ask curl to ignore the proxy environment variable by passing [C...
1
4
3,751
2019-02-01T18:32:31.667
infrastructure
serverfault.com
826,155
VPS ip address blocked
I have a Debian based VPS which runned fine until recently. Yesterday, i was working at programming websites when the server just didnt respond anymore. I have done some research and to be short, right now it does respond when I access it with the ipv6 address but not when I access with the ipv4 address. When I pingtra...
If your VPS has a management console,. it may have a means to perform a console login over the web. Or, as you say IPV6 works, perform a console login over IPV6. Treat this as a generic network setup test guide. Once you have a console login: Verify the IPV4 interface is up and has the correct address - information on ...
-1
0
1,117
2017-01-13T16:42:01.107
infrastructure
serverfault.com
75,873
Coming up with a version control strategy for SVN
Off the clock I'm going to try and come up with a strategy for version control for my company; we currently use SVN but there's no structure to it - we basically only have a trunk and only commit to that. Recently the development manager started a second repository that acts as our "tag", but it has to be manually merg...
If you want a unified build process, then be sure to put branches/tags/trunk at the root, like this: [CODE] If you don't need a unified build process, then you can put branches/tags/trunks within each project if you want. However, it might be difficult to migrate to a unified build after having put them within each pro...
9
5
2,315
2011-05-12T16:05:16.517
database_errors
softwareengineering.stackexchange.com
52,554
Normalized metric for comparing regression models performance
I was recently trying to explain to someone whether performance of my estimation approach is good or bad. For instance, whether a model with Mean Absolute Error (MAE) of 17000 is a bad solution. It was also hard for me to explain whether performance loss by 225 (in terms of MAE), when switching from one model to anothe...
A couple suggestions MAE represents your mean error. This is essential to recognize as having an error of even half of your MAE on the low end of your spectrum ($34,900) is huge. However, to your point, at the high end of your spectrum it is quite small. To solve the above, you should plot a graph to identify the patte...
0
2
875
2019-05-24T15:35:08.027
data_quality
datascience.stackexchange.com
132,394
How to enable WMI Provider MSCluster on MS Server 2008 R2
I have successfully set up a failover cluster on Microsoft Server 2008 R2 Enterprise Edition. Now I want to talk to the MSCluster WMI Provider on said server. WMI Queries to e.g. CIMV2 successed. But queries like [CODE] fail with "Access denied". I am using a domain admin account. Do I have to enable the MSCluster WMI ...
Did you see this blog article? Seems very similar to your issue. The mscluster namespace requires encryption, so to connect to it you need to have a PacketPrivacy authentication level on your query.
0
1
3,692
2010-04-14T17:44:54.583
database_errors
serverfault.com
551,353
iRedmail damaged my LAMP installation
I have Ubuntu Server based VPS, which have LAMP installed. It have Apache, MySQL, PHPMyAdmin, PHP etc. and everything is in use for my website. I installed iRedmail, and now my website can't be accessed anymore, just redirects to mydomain.com/mail, and my Webmin is also down. I tried to remove it so I followed article ...
Fixed both problems. Redirection problem is fixed by deleting index.html or by removing the meta refresh tag in it. [CODE] and by entering few commands in terminal [CODE] Restart Apache: [CODE] Source for commands: https://www.digitalocean.com/community/questions/how-to-remove-iredmail For Webmin and few other network ...
0
0
3,104
2013-11-07T12:46:41.663
database_errors
serverfault.com
293,424
Removed YUM? CentOS 5.5
After doing [CODE] this appears after running [CODE] : [CODE] This was the output of [CODE] : [CODE] Any ideas on how to re-install YUM without YUM itself? Thanks :D
It's possible to install RPM by unpacking the files from the RPM-rpm (uhuh) package. This will get you going again and you will be able to install yum as well. First create the directory you are going to use for unpacking the files from the RPM archive and download the RPM package. [CODE] Make sure you download the RPM...
5
6
3,172
2011-07-23T20:20:24.090
infrastructure
serverfault.com
366,625
How to fix permission denied error on any document on website
So, I've been trying to setup Wordpress for a while now (so much for their 5min install claim) and have just gotten stuck. No matter what, I just get: [CODE] When I look at the [CODE] directory, I see: [CODE] So, www-data owns all these files. So, then I was thinking maybe apache isn't running as www-data? So I did: [C...
Try going up a directory, and then make sure that your user has permission to execute into wordpress. i.e. : [CODE]
1
5
5,621
2012-03-05T22:16:07.927
infrastructure
serverfault.com
270,395
A protected by password directory started to redirect to the home!
Everything was working perfectly a few hours ago, but now, when I try to access one protected directory in one of my websites hosted on my dedicated server that runs Cent OS and apache, it just redirectos to the website home page. What is strange is that I changed nothing before this starting to happen. I even renamed ...
Check your .htaccess in main directory, looks like it contains some RewriteRules
-1
1
73
2011-05-17T01:29:41.653
infrastructure
serverfault.com
1,047,418
Tool to create pre-compressed [Brotli] files
I am trying to pre-generate compressed brotli files in designated directories for static html, css and js files. I found a rust tool here – https://github.com/neosmart/static-compress Besides this, there’s also an option within the W3TC WordPress plugin. However, despite brotli PHP module being loaded and available, W3...
[CODE] is a tool that watches designated directories for changes in files. If it detects a change, it can run any command. So, one can set it up to watch your HTML directory and run [CODE] on the file every time it changes. It requires some LUA programming to actually implement the functionality. [CODE] could be anothe...
0
1
573
2020-12-24T08:20:26.973
infrastructure
serverfault.com
811,229
Postfix/Dovecot and new password protected private key
I've created a CST and private key pair, as said by StartSSL, for my postfix/dovecot Ubuntu 14.04 server, with: [CODE] On the passphrase prompt, I introduced (why not, right?) a password, instead of left the password blank to have a non-protected key. After pasting the [CODE] file to StartSSL, I received the correspond...
Configurating Dovecot You can configure Dovecot to unlock the key with the passphrase on startup. The SSL configuration Wiki page has a section on that : SSL key files may be password protected. There are two ways to provide Dovecot with the password: Starting Dovecot with [CODE] asks the password. It's not stored anyw...
1
2
4,914
2016-10-25T17:03:49.767
infrastructure
serverfault.com
620,278
Percona startup fails: mysql can't access directory for file creation
I found a few questions and suggestions for similiar problem, unfortunately nothing seems to work for me, so please excuse me if this is double (and point to right source)... Server is Fedora Beefy Miracle, percona mysql server installed. I do not know much about installation, I came long after initial setup. Now datab...
It sounds to me like something in your paths is incorrect. The reason most of the posts you find being about "open" are because most of the time it's a permissions issue, but the paths are correct. When you see errors about "create" it's because (generally) the path that my.conf is telling the service to find the files...
1
1
3,756
2014-08-13T23:31:16.983
database_errors
serverfault.com
460,981
Extremely slow resync rate of DRBD on dedicated gigabit
I've set up DRBD on 2 nodes, and started using it yesterday. After about an hour, it had resynced 50% of the partition. Another 12 hours passed, and it's up to 79%, and moving VERY slow. Here's what cat /proc/drbd shows: [CODE] I looked at network traffic, and I am using between 1M and 20M on 1G interface. Tried runnin...
After @Nils comment, I started looking into how utilized the disks are. And noticed that I am getting a lot more reads than I used to before the system reconfiguration to DRBD. Futher research showed disk utilization at near 100%, and slow down of batch processes that were running at that time. Fixing MySQL config to i...
8
4
13,938
2012-12-26T16:14:36.547
api_errors
serverfault.com
901,083
Centos 5.5 on Hyper-V 2016
I'm trying to install Centos 5.5 on Hyper-V 2016. The installation process passes correctly but when I try to boot newly installed system it stuck at the beginning. The only thing I can see is black screen with blinking underscore sign. It doesn't respond to keyboard. Any idea how to fix it?
RHEL 5 / CentOS 5 cannot boot with UEFI , but Hyper-V 2016 creates Generation 2 virtual machines by default. These always boot with UEFI only. To install CentOS 5, you will need to create the virtual machine as a Generation 1 virtual machine. WARNING: CentOS 5 is past end of life. You should upgrade to a supported OS d...
0
1
545
2018-03-11T12:58:54.663
infrastructure
serverfault.com
145,386
How can I forward ALL traffic over a site-to-site VPN on Cisco ASA?
I currently have two Cisco ASA 5100 routers. They are at different physical sites and are configured with a site-to-site VPN which is active and working. I can communicate with the subnets on either site from the other and both are connected to the internet, however I need to ensure that all the traffic at my remote si...
From what I can see you're routing 0.0.0.0 0.0.0.0 (everything) to a IP across your VPN. Everything looks correct.
2
1
15,924
2010-05-26T09:35:16.137
infrastructure
serverfault.com
96,727
Moving from WebSphere to Oracle WebLogic, getting a ClassNotFoundException
I was given an "EAR" file and told to try to deploy it on an Oracle WebLogic server. I had successfully deployed it on a IBM WebSphere server. When I attempt to start it on WebLogic, however, I get the following error: Could not load user defined listener: org.springframework.web.context.ContextLoaderListener java.lang...
If you want it to load libs from your WEB-INF/lib directory then you need to add something to your [CODE] file (this should be in WEB-INF). [CODE] Hope that helps.
0
2
1,868
2009-12-22T18:48:40.337
database_errors
serverfault.com
65,151
Apache won't start after upgrade to V6R1
Platform: OS/400 V6R1, IBM i After upgrade to V6R1, one of our Apache instances will not start. It appears to die silently; DSPJOBLOG yields nothing, /www//logs/error* are all empty, and a WRKSBSJOB QHTTPSVR command shows no leftover jobs or spool files. Any ideas on where else we can look for some insight into where t...
WRKOUTQ QEZJOBLOG There was a spool file left over there, notified us of a syntax error in the .conf file.
0
1
252
2009-09-14T13:47:26.687
infrastructure
serverfault.com
528,843
Advice on root account and ports ubuntu server
I've recently launched a website that's only been online 2 days, just checked the auth.log and already there are multiple login attempts being made from an IP based in Asia. I've changed my own user accounts password to something more secure and now I'm concerned about the root account and having open ports? Regarding ...
Would it be a good idea to change the name of the root account to something completely random that only I would know? As most attempts are being made on the root user, having the username is half the battle won already? Is this a good or bad idea? For the OS, a much more secure solution would be to not allow root any S...
1
2
218
2013-08-05T19:46:32.637
infrastructure
serverfault.com
289,918
SSH key setup for Joyent Node SmartMachine and Windows?
I just got a Joyent Node SmartMachine. I'm using Windows. My goal is to SSH in to the SmartMachine and add/install things from GitHub. The issue I'm having is that I'm unable to connect to my SmartMachine via SSH using Putty. In Putty, after I enter my username, I get the message: Disconnected, No supported authenticat...
You can use puttygen to generate your ssh key. The steps are: Choose "SSH-2 RSA" Click "Generate" Follow the instruction (move mouse randomly) After the key has been successfully generated, paste the string in below the "Public key for pasting into OpenSSH authorized_keys file:" into the ssh-keys list in your Joyent No...
0
3
947
2011-07-13T14:01:04.453
api_errors
serverfault.com
527,922
Solaris 10: IPMP setup with zone and defrouter
I'm a bit desesparated by some kind of "bugs" we recently faced. We are using Solaris 10 on SPARC platform (T4-4) to run zones. Obviously, we do IPMP for safety. Some of those zones are legacy, so they are (unfortunately) using different network subnets. Thus, the global zones are connected in a lot of subnet but still...
If you are using shared IP and you have set a defrouter, then if the traffic goes via another route when no route has been defined its a bug, if you are at the latest patch bundle raise a call with Oracle. If you could give some examples of the problems, and output of the following, it would be helpful. [CODE]
0
0
684
2013-08-01T11:08:23.577
infrastructure
serverfault.com
1,021,560
What is Microsofts intention regarding centralized access control, flattening Active Directory in Azure?
SF: You should only ask practical, answerable questions based on actual problems that you face. Forwarding: This question may be debatable regarding the answerable-part. However, for me this is an actual problem regarding best-practices and I think it is definitely answerable in terms of “Is there an alternative?” vs. ...
Managing identity in Azure AD is totally different than a traditional domain, there are a lot of new technologies that you need to be aware of to really succeed in managing a cloud only environment. The current "state of the art" would be to learn what Azure has to offer in compared to a traditional domain environment,...
0
0
76
2020-06-15T19:14:26.350
api_errors
serverfault.com
95,177
Where and how to do large scale supervised machine learning?
I'm beginner in ML and I have a large dataset that has 15 features with 6M rows, so it becomes challenging to work on it locally. I can train one model locally but to perform hyper parameter tuning and cross validations with my macbook pro, it runs out of memory and lacks the processing speed and capacity. I tried spar...
First, when working with big data most of the time it's more convenient to work with a random subset rather than the whole thing: usually during the design and testing stages there is no need to work with the full data since optimal performance is not needed. Second, it's often useful to do an ablation study in order t...
2
5
137
2021-06-02T14:07:46.043
spark_errors
datascience.stackexchange.com
202,825
FTP and ping getting blocked
I am having an issue where one host on my network cannot FTP or ping external sites but the rest can. My setup is with a single router with wireless and ethernet. With my host on the wireless I can FTP and ping fine but with my host on ethernet I can't ping or FTP external sites. What makes this a bit strange to me is ...
This sounds, as if it might be related to MTU issues! http://en.wikipedia.org/wiki/Maximum_transmission_unit
0
0
524
2010-11-17T09:24:23.833
infrastructure
serverfault.com
589,326
SID's role in joining domains and AD authentication?
Thanks to recent answers to my questions, I was able to use sysprep to create a Windows 7 system image ready for deployment in our organisation. I learned that the process of using sysprep creates a new machine SID for the system, rendering running the newSID software unnecessary on newly deployed systems. Also, I saw ...
How does this machine SID play any role in the success of joining a domain or logging in to the computer with AD credentials? What happens when two systems with the same machine SID try to do it? Does the "SID conflict" our admin said has anything to do with this? Why might running newSID help? It wouldn't help. There'...
0
4
5,691
2014-04-16T04:49:59.530
pipeline_ops
serverfault.com
229,414
Exchange 2010 and 2003 Coexistence: How do I fix a 404 error on Exchange 2003 OWA when clicking the log off button?
I am running Exchange 2010 and 2003 in coexistence, and recently switched to using Exchange 2010 as my OWA server. User mailboxes are still on 2003. Almost everything works fine, except that when users click the "Log Off" button in OWA 2003, they get a 404 error. Exchange 2010 OWA users have no problem logging off. Exc...
Since there are no answers for this I thought I would provide you with a hack that could fix this. On your OWA front end servers set your 404 page to redirect back to the login screen. Here is an article on how to do this in II7. http://technet.microsoft.com/en-us/library/cc771076%28WS.10%29.aspx Hopefully this will ti...
0
2
1,681
2011-02-01T00:36:00.463
infrastructure
serverfault.com
386,766
Deploy internal CA to linux clients
I have a large number of workstations that run RedHat Enterprise Linux 5 and 6. I'd like to deploy our new internal CA (Active Directory) to these machines. I can manually import the certificate into Firefox 10 without any issues, but I can't seem to find where to store the .cer file on the filesystem so that it will b...
For Firefox: FF stores the certificate in the user profile, you have to import the certificate for each profile on each box. For trusted CA's, the certificate should be in PEM format, and imported using the [CODE] command (available in [CODE] package on RedHat): You can use this command to list the certificates: [CODE]...
8
3
2,028
2012-05-07T17:12:46.750
infrastructure
serverfault.com
473,406
“failed to load session “Ubuntu”" on virtualbox ubuntu guest
I have a corrupt guest install of ubuntu 12.04 running on virtualbox 4.2.6. I cannot boot to graphical mode . I get an error “failed to load session “Ubuntu”" How can I remove information from the virtual disk or repair it? Networking is also disabled
Try moving /etc/X11/xorg.conf to a /etc/X11/xorg.conf.backup. I think the correct syntax would be : sudo service lightdm stop , sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup , sudo service lightdm start , or sudo init 6 to restart the machine The system will recreate xorg.conf by itself... Of course, if you don'...
1
0
1,281
2013-01-29T11:47:35.397
data_quality
serverfault.com
969
How should you interview for QA *Automation* positions?
A variant on the How should you interview for QA positions? I am interviewing candidates for an Automation position, we don't use commercial automation tools, but rather use a framework using mainly Perl, so knowing Perl or some other programming language is required, but being a "computer geek" is a great plus. Anothe...
In my experience, if you hire an "automator", you're going to get someone who can write code, but has no skill or desire to test. And that's fine if that's what you want. However, if you just want tips on how to hire a tester than can automate, then ask testing questions that have potential to be solved more efficientl...
13
26
36,077
2011-06-04T10:52:09.687
data_quality
sqa.stackexchange.com
1,061,574
nic bonding very slow
I have 2 dl380 g9 servers which feature 2 nics with 4 ports each running debian buster. I have connected 7x 0.50m cat6e patch cables directly server-to-server and set the /etc/network/interfaces on both servers(with minor difference in the ip addresses) as: [CODE] the plan was to use the bonded connection for zfs repli...
Don't use round-robin: [CODE] This mode will cause a lot of out-of-order TCP traffic and limit throughput like you are experiencing. Change the bond to [CODE] which balances a single flow out each member of the bond. So a single stream will go at 1x NIC speed (1 Gbps) but you can run many flows and achieve full speed o...
1
3
2,442
2021-04-26T10:31:31.763
database_errors
serverfault.com
456,673
Asterisk Connection not working
I have installed Asterisk on VirtualBox by following the steps from here . Everything went ok until I got to navigate to an IP to configure Asterisk using FreePBX: 10.0.2.15 (Shouldn't be something like 192.168.x.y?? ). However, when I navigated to that url from outside of VirtualBox, that url pointed to nothing. Also ...
1) VirtualBox isn't really suitable for anything production-grade. Use VMware or KVM instead. 2) Your problem is probably because your Virtual Machine is using the NAT network adapter type, and you should set it to Bridged, and reboot your virtual machine. Then the VM will get an IP address on the rest of the network, ...
1
3
2,184
2012-12-10T09:27:19.670
infrastructure
serverfault.com
817,171
MariaDB Galera Cluster Node cannot start after going down
My Environtment : Two Nodes - CentOS 6.4 x86_64 Node1 : 10.10.201.3 Node2 : 10.10.201.4 MariaDB-server-10.2.0-1.el6.x86_64 Both nodes are running normally, but after restarting mysql on Node1, it'll be failed to start again whilst mysql on Node2 is continuing running without problem. Configuration on Node1 : [CODE] Con...
I had the same problem, and finally after fixing the issue ( on CentOS 7 - MariaDB-server-10.2.0-1 ), I wrote a documentation on how to set it up correctly and I hope it will fix yours too. Follow the instructions below and try to build your Galera nodes from scratch. Notice that I will just use the mandatory configura...
1
4
25,619
2016-11-26T02:33:16.350
database_errors
serverfault.com
394,485
DDD: Type hierarchy of entities' property
Say I have an Delivery class which should have a Destination property (among many others). Destination can be an Address (country, city, address line, post code) or a Port (international code, name). As you see these two types do not have any overlapping attributes. The only thing they have in common is Destination str...
I think the answer may fully depend on the extent in which you need to utilize the [CODE] property. At first glance, it makes perfect sense to simply define an [CODE] interface to handle the commonalities between [CODE] and [CODE] . Like you stated, the [CODE] route is perfect for abstracting away the logic necessary t...
7
1
630
2019-07-10T13:03:42.013
api_errors
softwareengineering.stackexchange.com
34,128
Automatically setup Exchange on Windows Mobile 6
First of i know this question kind of both fitt this page and stackoverflow, but il post it here and if a moderator thinks otherwise please tell me il repost it ( If moving is not easy ). My problem is this: We have many different windows mobile phones ( Mostly HTC ) and i need to setup the ability syncing email agains...
what you are looking for is called System Center Mobile Device Manager .
1
1
408
2009-06-30T22:05:48.740
infrastructure
serverfault.com
676,487
nginx locations and precedence (deny ignored for *.php)
I'm a somewhat experienced Apache admin in a past life, but I've decided to take the plunge and learn nginx. So far everything seems fairly intuitive, but it's clear that I haven't quite internalized the nginx way of doing things yet so I'm fairly certain this is an easy problem to resolve, but I can't seem to find an ...
That's because nginx serves a request from one matching location block, not multiple. Also, nginx has a specific process to choose it, read my answer on a similar question or read the official documentation for the details. I'm guessing that you are also using the [CODE] directive somewhere to tell nginx to serve an [C...
3
2
1,015
2015-03-18T16:22:52.513
api_errors
serverfault.com
177,841
How to handle notifications to several partial views of the same model?
I am working on refactoring an old simulation of a Turing machine. The application uses a class that contains the state and the logic of program execution, and several panels to display the tape representation and show the state, messages, and the GUI controls (start, stop, program listing, ...). I would like to refact...
I chose as suggested by @ALJIMohamed to address the different views via different lists of listeners and I fire different events to the view components that were registered by the controller. It needs to define several [CODE] and [CODE] interfaces but I feel it better than making all the views simple observers.
0
0
232
2012-11-30T12:10:31.903
api_errors
softwareengineering.stackexchange.com
1,112,312
Always start NetworkManager after laptop boot with WiFi and WWAN disabled
How to make Network managers always start (after laptop boot) with WiFi and WWAN disabled? I prefer to always enable them manually after laptop boot for security and connection cost control reasons. Extra info: Disabling auto-connect is not a valid option in my case as WWAN (LTE) connection is unstable (breaks too freq...
Set [CODE] property to [CODE] for the relevant connections using [CODE] , i.e.: [CODE]
0
1
171
2022-10-05T15:33:40.687
infrastructure
serverfault.com
127,811
Bugzilla with SSL
I have an install of Bugzilla I'm trying to implement SSL on. When I go into the parameters screen and edit SSLBASE adding in the full url: https://foo.com/bugzilla/ the editparams.cgi times out on loading and I have the following error in the apache log [Tue Mar 30 19:29:39 2010] [error] [client xxx.xx.xx.xx ] (70007)...
It seems fairly clear-cut to me. Have you tried increasing your MySQL setting for [CODE] ?
0
1
847
2010-03-30T18:35:09.960
database_errors
serverfault.com
911,986
SPF softfail even when set seemingly correctly
I have my own postfix server, that serves only as a forwarding mail server, i.e. if you send email at admin@mydomain.com, it will arrive into my gmail/whatever else. My SPF looks as such: [CODE] I have verified that when I'm sending emails, they come from ip in the [CODE] part: [CODE] Gmail won't even put the email int...
SPF checks apply to the sender domain. When your Postfix server forwards a mail, the sender address remains unchanged. Consequently, the SPF check on the recipient server will try to verify your server's IP address against the SPF record of the sender domain. Your own SPF record does not have any say in this. This is a...
1
1
2,280
2018-05-13T09:18:49.067
infrastructure
serverfault.com
122,918
How to get current time in Oracle, and use in interval partition?
I'm trying to create an interval partitioned table in Oracle where the first partition is bounded to a week from now, but I just can't seem to figure out the syntax. Here's what I have so far.. [CODE] I've tried that and many other variations, such as.. [CODE] But none of them seem to work
You can not do that. You need to specify the date yourself, as that clause accepts only literals or [CODE] , and not expressions. So you could just use: [CODE] If you really want to calculate it dynamically, you need to use dynamic SQL.
0
2
1,137
2015-12-04T17:18:22.050
database_errors
dba.stackexchange.com
375,422
Who writes functional specifications and how to track what has been done in a clear and effective manner
Background: In a project where I work as a developer we did not use a functional specification at first. We relied solely on technical documentation, issues in Jira and mockups/detailed design for accepted views. This worked quite a long time but lead to some problems: Introducing new team members and bringing them up ...
Getting the specs is only one part of the story Let's illustrate the problem from an other angle. I'm working on financial systems. Finance and accounting is heavily regulated, so functional specifications are a must. Since the beginning, we write functional specifications for everything that we develop. When it's some...
0
2
3,227
2018-07-18T17:38:44.247
api_errors
softwareengineering.stackexchange.com
237,149
Why a certain field causes a slow query?
I have 6 almost identical queries on a page. I am loading logs by keyname. Lattitude and longitude take over 4s each, where as 4 other values take 0.09s How could just the one text value in where query cause that, see the 2 queries below. This query takes 4 seconds: [CODE] [CODE] This query takes 0.09 seconds: [CODE] [...
I see nothing to explain the timing difference. However, I see some things to improve. They might even improve on the 0.09s. [CODE] Begs for a 'composite' index: [CODE] This is a strange range; it is 3 hours + 1 minute - 1 second: [CODE] [CODE] seems excessive. It takes 10 bytes and has more precision than virtually an...
0
1
86
2019-05-01T17:47:37.333
database_errors
dba.stackexchange.com
139,224
Connecting SQL Anywhere with Sybase database file on local computer
I have installed SQL Anywhere 12 in my system. I have a [CODE] file in my computer. I have no idea what is it's username and password. If I try to connect to it by providing credentials- username=DBA and password=sql I'm getting below error- How can I connect to it successfully?
Here is a way to reset the password using the free SQL Anywhere 17 Developer edition. The paid edition should work also. [CODE]
1
1
2,891
2016-05-23T05:51:24.903
warehouse_errors
dba.stackexchange.com
93,283
T-SQL CTE Compare previous non-NULL and current row to filter out by difference value
My sample database (in fact a CTE statement data) looks like this: [CODE] I want to remove the values that are less than 12 in difference. This is my query and output: [CODE] Output: [CODE] The problem is that it compares between current and previous row. I need to compare between current and previous non-NULL value, I...
Here is a recursive CTE solution using a technique that Paul White blogged about in Performance Tuning the Whole Query Plan . [CODE]
2
5
2,663
2015-02-19T06:59:46.003
database_errors
dba.stackexchange.com
259,856
Trouble setting timeout for Nagios test
I have Nagios monitoring an Oracle installation on a different server. Sometimes one particular test (check oracle tablespace can allocate next extent) will fail with "CRITICAL - Plugin timed out after 10 seconds". The first thing I want to do is figure out how long it actually takes to complete. If it's 11 seconds, ma...
I think that is the [CODE] that's timing out (10 seconds is the default timeout for this check) and not the [CODE] inside it. Try to set the timeout of [CODE] to a higher value and see if it still happens. Hope this helps!
1
3
3,212
2011-04-14T21:07:37.840
database_errors
serverfault.com
450,458
Hamachi doesn't connect to network without windows login
When using Hamachi, it doesn't connect to network without windows login. After a login (via rdp, I dont think that matters), it connects perfectly, and when the rdp connection stops, it almost immediately disconnects from the hamachi network. Note that the rdp connection stops but the user isn't logged off - the sessio...
Yeah it's all part of the new LogMeIn hamachi changes - We were quite busy yesterday! Hamachi changes we’re making a small change to Hamachi: unless a computer is part of a paid network, you need to be logged in and running the Hamachi UI on your desktop in order to allow it to function Which is unfortunate because I'v...
2
2
5,968
2012-11-20T12:03:35.417
infrastructure
serverfault.com
5,209
MySQL duplicate data entry issue
I know this issue can be solved using unique key constraint on column and some insert command variation. But I exactly want to know that at last why the following approach goes wrong sometimes and a duplicate entry is added: a value is checked in the column if record returns is > 0 then update is issued, otherwise simp...
One scenario in which this would fail depends on how busy (or unlucky) you are in timing. Session A does the select on the value, sees that it should INSERT Session B does a select on the value before session A does the required insert or update of the value constraint Session A inserts row, updates value Session B ins...
1
3
464
2011-08-30T17:12:39.520
data_quality
dba.stackexchange.com
229,629
MySQL stalls and strange threads/connections behavior is observed
We have a MySQL instance which most of the time works just fine. From time to time, however, we observe strange behavior. What happens is that suddenly MySQL connections reach the limit (currently set to 1000) and MySQL pretty much stalls. The following is observed when we check the graphs for this server: The image is...
Thundering herd. Or, so many people in a grocery store that no one can move their cart. When [CODE] is 349, each of them is waiting and waiting and waiting for a tiny slice of CPU and a tiny amount of I/O and ... The effect is that they all take 'forever' to finish. Meanwhile, others trying to get in are let in because...
0
1
1,423
2019-02-13T15:08:50.440
database_errors
dba.stackexchange.com
305,606
MySQL suddenly producing out of sequence autoinc numbers
In MySQL (8.0.27-cll-lve) have an invoice table using an autoincrement field, [CODE] , as the PK. A transaction inserts data for a new invoice, uses [CODE] to get the new [CODE] and then inserts that into a transaction table along with other stuff. For a couple of years the autoinc [CODE] has been steadily increasing b...
Thanks to the suggestion by Bill Karwin I found that these symptoms are, or at least were, caused by a InnoDB table bug (id number 199 in bugs.mysql.com) here that was first reported in 2003 and still going strong in 2017. It is due to a server restart following the deletion of some rows in a table with an autoinc fiel...
1
1
644
2022-01-04T12:24:52.013
database_errors
dba.stackexchange.com
405,464
Attempting Unauthorized operation - SQL 2008 R2 install
I've been banging against this for a few days. Keep getting this unauthorized error when trying to install SQL 2008 R2 on a Windows 7 machine. I've changed permissions on the key, does not fix... Created an admin user, gave specific permissions on that key, does not fix... Disabled all firewalls, installed from a local...
Have you tried right-clicking setup.exe and saying "run as administrator"? I saw you tried installing as the local administrator, but I have still seen some wonkyness on SQL 2008 R2 installs. Are you installing from a DVD, local copy of the files, or a network share? The installer behaves differently if it is streaming...
3
1
6,139
2012-07-06T17:24:03.393
infrastructure
serverfault.com
1,065,854
Are MX record names important?
When creating MX records for a domain, is it important what they are called? I want to manage email through a remote service and have added the appropriate destination and priority. The service that is used to manage the domain (cpanel) does not allow the MX record name to be called [CODE] so I gave it a name like [COD...
The owner name is crucially important as it has to match the right-hand-side of the email address. Eg [CODE] -> look up [CODE] , [CODE] -> look up [CODE] . If the [CODE] exists at [CODE] it will only serve any purpose for mail sent to addresses ending with [CODE] (which I'm guessing is not the intention to have). As fo...
0
3
66
2021-06-06T07:56:03.480
infrastructure
serverfault.com
1,090,243
Can't put correct date & time on LXC container with ubuntu
I'm tryig to put correct date and time, on Proxmox LXC container with ubuntu but I can't. There are some info of my server. [CODE] Date and time is not weel: [CODE] When I tried to update package repositori i have this error: [CODE] Can anyone help me please? Thanks,
SOLVED The problem was that the date and time of host don't was correct. I change host date seting a date like this [CODE] , and solve it, because the the container take date from the host.
0
0
2,710
2022-01-17T10:49:12.940
pipeline_ops
serverfault.com
646,383
Locust AWS python requirements fails
Folks, Trying to setup Locust in AWS using latest amazon linux. After installing locust, i get the following when starting in master mode: [CODE] What would be the most elegant fix for this? Thanks
Well, if anyone cares, upgrading python to v 2.7 solves my problem: http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2 [CODE]
1
1
423
2014-11-22T23:14:45.557
infrastructure
serverfault.com
787,025
Graylog and ELB
We are trying to use ELB to load balance two graylog nodes. For the most part it works correctly but for certain actions like going to System-Nodes it times out and we receive the following. If we go to the URL in logs directly we see an HTTP 405 error. AWS indicates this means [CODE] but other than checking the header...
Put a workaround in place by putting my public DNS name in the hosts file of each graylog server pointing to it's local IP.
1
0
449
2016-06-29T22:07:49.303
infrastructure
serverfault.com
178,508
Outlook 2010 throws errors when sending out a mass email
On Friday I attempted to help a client send out a mass email from Outlook 2010. I'm fairly weak in Outlook and I did a bit of research that one way to accomplish a mass email was to use the Mail Merge function. This worked but some of the emails that were sent to came back with errors. Some of the errors include: Gener...
These look like fairly normal NDR's to me. Invariably when sending bulk email you're going to get some failures due to: spam filtering on the remote system, mailboxes that no longer exist, mailboxes that are full, etc., etc. Here's my take on what you posted: xxxxxxxx@earthkink.net Your message wasn't delivered because...
0
2
1,545
2010-09-06T15:44:28.013
data_quality
serverfault.com
245,770
Xeon sockets and interoperability (upgrading)
So it looks like for the most part Xeon motheboard sockets are fairly standardized. If I order a new server with a Xeon proc would I be able to expect to upgrade to any processor in the Xeon family or are there exceptions to this? Do I need to stay with an L seriies if I get an L series or can I upgrade from an L to an...
Nope, that's not the case sorry, there are lots of different Xeons socket (Slot 2, Socket 603, Socket 604, LGA 771, Socket M, LGA 775, LGA 1156, LGA 1336, LGA 1567 and the latest LGA 1155). What you can do from a physical and electrical level is move between L, W, E and X variants but support for those will be entirely...
0
2
113
2011-03-10T16:08:14.140
infrastructure
serverfault.com