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
262,841
IPTables: No chain/target/match by that name
Possible Duplicate: IPTables: No chain/target/match by that name I am trying to execute the following command in iptables (it's the first command I have issued to IPTables since I setup my new VPS, but when I execute the command below: [CODE] I get: iptables: No chain/target/match by that name. From the output I am ass...
You cannot append to both [CODE] and [CODE] ; you will need to generate a rule per chain.
2
0
1,069
2011-04-22T21:07:53.813
data_quality
serverfault.com
291,760
Is there an easy way to setup "example.com" MX records?
I'm used to use /etc/hosts to fake "example.com" or other domains to point to my local web servers to make tests. I'm trying to do some filtering tests on a multi-domain postfix and I need to fake several domain names to check how it responds without touching the real thing. Is possible to do so, in a easy way, to make...
Set up a local DNS server that hosts a few sample domains (nonexistant in reality), complete with MX records and all. Then create a group of test mail servers with addresses as listed in the test domains. If you know DNS etc., it's really easy.
1
5
1,994
2011-07-19T09:35:56.273
infrastructure
serverfault.com
255,588
Hosting a remote subdomain?
My client site is: xyz.com.br I have created a demo.xyz.com.br (DNS Record A) pointing to the ip address of my server. The request is reaching my server. The problem: How do I setup Virtual Host on appache to hit the root directory of the 2nd level domain, if the domain is not hosted on my server? The target folder: de...
If you've got the A-record set up and the request is reaching your server, then all you need is to set up Apache. Assuming that: Error: You don't have permission to access / on this server is being returned by your server (and it should give you the address in the footer) then you probably just need to add a [CODE] cla...
0
1
97
2011-04-04T18:55:53.917
infrastructure
serverfault.com
184,846
How do I change permissions on an existing folder share from the command line without having to delete the share and recreate it?
I used the following to create a folder share called "Running Virtual Machines" on a Hyper V R2 server: [CODE] Now I need to change the permissions on the share to allow users to access the share but using the following gives me the error "You used an option with an invalid value": [CODE] I have also tried: [CODE] This...
You can do this with the PowerShell cmdlets [CODE] and [CODE] There are some examples in this TechNet blog post: http://blogs.technet.com/b/omers/archive/2013/09/14/assigning-file-share-permissions-using-power-shell.aspx
3
1
3,929
2010-09-26T19:52:59.733
infrastructure
serverfault.com
405,621
mongodb replication: no primary elected
I have three servers with mongod installed on it running as a replication set. Suddenly the two secondories became unavailable (the mongod process died) - I think because they were too stale. The problem is that the original PRIMARY is now the SECONDARY and my application doesn't work because it can't connect to a PRIM...
The reason why your primary is now no longer primary is because you have to have enough votes to form a majority in a replica set - in your case that means 2/3 minimum. With your specific failure that doesn't seem to make sense, but imagine instead that the primary in question had instead become isolated from the 2 sec...
3
5
12,276
2012-07-07T07:38:04.210
database_errors
serverfault.com
733,626
Nginx, SSL and OSCP
I have a problem. When I open my website with https, I see error message in my error.log: [CODE] How can I solve it? BR
It seems that these are temporary issues on let's encrypt the infrastructure side. I've seen them few times but then this error disappears.
2
0
1,133
2015-11-03T16:53:17.637
infrastructure
serverfault.com
515,128
GPO shows as being applied but the settings were not implemented
I created a new GPO to change users IE favorites, previously I had 6 different GPOs to manage different favorites for different kinds of users and users in different locations, but recently my boss decided that we should just consolidate them instead of creating a 7th for another unique situation. I created a new GPO, ...
After further troubleshooting and more research it looks like the problem is, the computers that aren't accepting the changes have been upgraded to IE 10. Everyone using IE 9 and below take the policy with no problems, but IE 10 requires new GPO administrative templates. http://www.microsoft.com/en-us/download/details....
2
3
2,391
2013-06-11T21:50:51.947
infrastructure
serverfault.com
284,358
Threat Management Gateway can't access share on NAS
My network looks like this: [CODE] All machines and devices are joined to the domain. I can access \\datastore\backups from server01. From TMG01 I get Error code 0x80070035 The network path was not found Using both the IP and the hostname. The Samba logs from the NAS look like this: Jun 27 13:12:15 DATASTORE smbd[12611...
TMG is very locked down by default for localhost traffic (so much so that you can't even RDP into it). If you use the traffic simulator, it will tell you exactly why the traffc is being denied. You will need to create a new access rule from Local Host to the IP Address of the NAS.
1
1
474
2011-06-27T01:25:29.670
database_errors
serverfault.com
14,711
Python or Java for Loading and Performance testing
I'm looking to choose the best tool to perform Load and Performance testing on my web based application. The content of the application is based on Jasper reports and I want to see the behavior of the application when it is accessed simultaneously by 500 users (for example). I've worked with JMeter but for me it is a l...
The most prominent load testing tools as for now are: Apache JMeter Gatling Grinder Tsung I would recommend checking out Open Source Load Testing Tools: Which One Should You Use? article which provides enough information to decide which one suits your needs in the best way. Personal recommendation: if your project is b...
4
3
15,606
2015-09-14T19:43:32.577
api_errors
sqa.stackexchange.com
109,030
Can't enable MySQL 5.6 Query Cache
I'm trying to enable MySQL Query Cache on Ubuntu 15.04 with MySQL 5.6.25 I've added this to end end of [CODE] and [CODE] : [CODE] The whole server has been restarted more than once. [CODE] Using [CODE] confirms that [CODE] [CODE] How can I solve this?
You shouldn't put those lines at the very bottom of the file. Look for the [CODE] group header in [CODE] and put those lines under it [CODE] Those line cannot go under any other group header. Then, restart mysqld.
0
8
16,197
2015-08-04T22:50:51.170
database_errors
dba.stackexchange.com
1,067,245
apache2.4 reverse proxy to nginx gitlab server
I'm currently running an owncloud server based on a apache 2.4 webserver on my raspberry pi 4 8GB (working on dietpi 7.3) which works great i have a public domain setup and use letsencrypt to create certificates. I now want to also setup a gitlab server on this pi, the gitlab server is working and reachable inside my l...
Since you're proxying to localhost , nginx cannot find the Host header anywhere, and your gitlab installations seems to be a non-default virtualhost. Try adding the [CODE] into your apache config. To both vhost sections.
1
1
886
2021-06-20T12:08:36.517
infrastructure
serverfault.com
156,123
Why Browsers do not resolve simple known issues?
Why Browsers do not resolve simple known issues such as: (in the context of CSS) Do NOT start a class name with a number! This is only supported in Internet Explorer and Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.
These are not issues. This is the W3C standard. Most good browsers try to follow standards as much as possible (Firefox, Chrome). Some browser just doesn't care, or is trying to impose its own standard though (IE).
0
5
194
2012-07-09T14:14:15.100
api_errors
softwareengineering.stackexchange.com
164,678
SQL Server 2005 - Best way to constraint a Datetime field as Date
Whereas: date field type starting with SQL Server 2008 Given a table: [CODE] Which is the best way to CONSTRAINT that DateCode is only a Date? It must allow dates without time part. [CODE] By now I'm using: [CODE] But, I wonder if there is a best/short way to accomplish it.
You can simplify it a little bit, since SQL Server knows with [CODE] that it can treat the value as the number of days since 0. I prefer to use [CODE] over zero, since it's slightly less cryptic what's going on: [CODE] However, I find it an odd choice to scold users who might use built-ins like [CODE] or parameters lik...
5
3
3,522
2017-02-17T13:40:10.840
database_errors
dba.stackexchange.com
32,833
"service" command not found, "htpasswd" command not found ..?
There's a little bit of background to this question - it doesn't last long but is best if I explain everything properly; Last night I went to set up an SVN repository on my CentOS / DirectAdmin setup - I went back to my notes and went to do a 'htpasswd -cm passwd myuser'. I was logged in as root but I got 'command not ...
[CODE] It should match what you listed above from 'which' and does not include /sbin which seems to imply you elevated your privileges but kept the environment from your normal user? How do you login to this box usually? Are you doing 'su' or 'su -' to elevate? If you're logging in as root directly then you want to loo...
2
5
4,215
2009-06-28T10:00:59.290
infrastructure
serverfault.com
396,216
What to do when active directory dies
... this isn't as bad as it sounds since it's just a test domain. I created a small test domain on my vmware server to play around with active directory settings. I had two DCs and a Win7 & winXP client. At some point I needed the space so I backed up all of the VMs to tape and forgot about it for six months. I recentl...
90% of all AD problems are DNS issues. Make sure the DNS server that these AD servers point to is running and that the entries for the domain controllers are correct.
2
4
281
2012-06-06T19:13:13.033
database_errors
serverfault.com
979,933
Nginx consumes 100% RAM
On busy server Nginx consumes 100% RAM. Where I should start to look for the problem and maybe there is a way to see detail memory usage? nginx version: nginx/1.17.3 Busy cache: [CODE] Cache is also on other servers and has no impact on memory usage. [CODE] [CODE] [CODE]
Turns out that the problem was with the upstream server process which is listening on unix socket and not closing connections (plus leaking file descriptors). I guess nginx kept connections and resources related to it and that was the source of memory leak. I fixed this problem by fixing upstream server as I was the on...
3
3
4,956
2019-08-20T07:03:45.400
infrastructure
serverfault.com
778,813
ntlmssp_handle_neg_flags: Got challenge flags[0x60898205] - possible downgrade detected! missing_flags[0x00000010] - NT code 0x80090302
I'm trying to access SMB/CIFS resource on NetApp, using following and getting error: [CODE] I'm trying to use following with my [CODE] : --option== [CODE] yet, I'm still unable to access resource on server as I'm doing it wrong: [CODE] What is right way to set [CODE] via [CODE] in [CODE] ?
You may want to disable spnego within ntlmssp, with default params : [CODE] with spnego disabled : [CODE] worked for me.
0
1
1,831
2016-05-24T21:15:19.260
infrastructure
serverfault.com
411,940
How to respond to a customer when their bug can't be reproduced
A customer has reported a bug that neither them nor us have been able to reproduce. This is the only report of this bug happening so far. We've spent a lot of time trying to replicate the issue (followed the customers' exact path, with their same browser, and even set the server and local machine clock to replicate the...
Customers generally at least begrudgingly understand if you can't reproduce a bug, especially if you have worked with them and made very visible attempts. What it usually takes to close such bugs is some sort of mitigation. If it happens again, have you put something in place that will prevent data loss, give you more ...
1
10
2,265
2020-06-24T16:58:19.100
api_errors
softwareengineering.stackexchange.com
770,855
How can i change the location of the config file of a site in IIS?
When I start IIS on a site, I get a "HTTP Error 500.19" [CODE] I think the site config file is messed up. It has '\?' in the beginning of the path of the config file. When I go to IIS manager, I don't see a way to fix that. Can you please tell me how can I fix it? Thank you.
You don't. [CODE] is how you pass a path to Windows when you think the fully qualified file name may be longer that 260 characters. The file path functions in Windows are limited to 260 characters for file names that start [CODE] but the limit is 32767 characters for Unicode file names that start [CODE] First thing to ...
3
2
7,298
2016-04-16T16:24:37.287
api_errors
serverfault.com
105,914
Modeling discounts - Product specific and Customer specific discounts
I have a reasonably simple database but have the following problem: I'm modeling a store + a lot of non-relevant stuff database. I have the following problem. I want to allow for specific products to be discounted, but also provide discounts to all purchases by a specific customer (I have a table that holds customers)....
You should have a table for each class of thing you want to offer a discount on. From your question that would be a table each for products, customers and stores. Most likely you will have these tables in your design already. Each will have a column of an appropriate type to hold the discount. You don't say what you wi...
3
0
2,930
2015-07-03T21:33:24.717
warehouse_errors
dba.stackexchange.com
735,364
how to bring up network-interfaces and bridges in specific order at boot time
Currently, my setup is having many nodes, each having RHEL 7 installed, with each node having only one single interface . I am using ovs-bridge and a vlan-tagged interface within the host. I use vlan-tagged virtual-interfaces to process the vlan-tagged traffic. I have disabled NetworkManager. Example of my network conf...
Your interfaces seems misconfiugred. Please take a look at here (I have quoted the example setup from the following link and edited it according to your setup): https://github.com/osrg/openvswitch/blob/master/rhel/README.RHEL [CODE]
1
1
2,780
2015-11-10T20:10:42.770
infrastructure
serverfault.com
185,411
Deadlocks appeared after moving to MariaDB10.2 from MySQL5.5
After moving to mariadb-server-10.2 from mysql5.5 I am facing deadlock issues. Please see the output of 'show full processlist'. Can someone give some suggestion? | 162506 | catalog | mymagentositexxxxxx.com:34163 | catalog | Query | 1016 | update | INSERT INTO `sales_flat_quote_item` (`quote_id`, `created_at`, `update...
If [CODE] is designed to use a [CODE] index, then you should be using [CODE] , not [CODE] . If you do need [CODE] , then there are two strikes against efficiency: [CODE] and leading wildcard. What is the idea behind doing a search in [CODE] , then [CODE] . Shouldn't you simply return the results to the user? Or is this...
0
0
564
2017-09-08T12:41:48.843
database_errors
dba.stackexchange.com
1,141,263
Postfix smtp_header_checks does not prepend header, but ignores or warns
I am trying to add those headers to email sent via the postfix server: [CODE] These are the configuration files and only header_checks adds the correct header. /etc/postfix/main.cf [CODE] This does add the Precedence: bulk header: [CODE] This also does not work: /etc/postfix/master.cf [CODE] Here are the files containi...
I resolved it by editing the files /etc/postfix/header_precedence_bulk and /etc/postfix/header_precedence_bulk.pcre and changing content to this: [CODE] So for some reason smtp_header_checks could not match the same condition as header_checks
0
1
175
2023-08-10T23:06:04.790
infrastructure
serverfault.com
34,076
creating table syntax error 1064
I'm using workbench to create a table. This script is giving me a problem. It is saying that there is a syntax error new [CODE] . [CODE] The line causing the problem is this: [CODE] Any ideas? I'm at a loss, the code was generated from an ERD model I made within Workbench so I'm suprised it has a syntax error at all. I...
I see a few issues with your existing code to create the [CODE] table. First, the [CODE] creation code is incorrect. The column to be indexed should be inside the parentheses -- [CODE] manager_id [CODE] . Second, you are trying to add an index on a column that is not listed in your [CODE] table. You need to include the...
2
3
5,429
2013-02-04T16:18:04.703
warehouse_errors
dba.stackexchange.com
274,215
SPF problems with Google Apps
I currently have an SPF record with a hostname of @ that is: [CODE] I also have another record of" [CODE] We have had a lot of email being bounced back because of spam and now when I go to http://www.kitterman.com/spf/validate.html ? and check the "Does my domain already have an SPF record? What is it? Is it valid?" it...
Do I need to place that text in quotes ""? The missing quotes should be the problem indeed, as explained e.g. in Record Types Supported : Unlike with most other record types, for TXT records the Data field is essentially free-form and may even include spaces. Please note: When entering a string that includes spaces, su...
3
4
1,178
2011-05-26T20:22:47.840
infrastructure
serverfault.com
58,835
Oracle installation requires old rpm versions, what to do?
I am installing Oracle 11g R2 on OEL6. I run the following command, for to check only prerequisites [CODE] It generated a log that contains the following info: [CODE] Whan I check this package: [CODE] And when I try to install [CODE] What should I do now? I have newer version than Oracle requires. Ignore it?
Packages that can be ignored: [CODE]
2
2
26,303
2014-02-13T07:47:51.530
database_errors
dba.stackexchange.com
19,994
Merge Replication Subquery Filters
I am using merge replication with SQL 2012. I have a number of articles in my publication and will have to come up with quite an elaborate set of filters. If I add a filter on my article it can contain a sub query, but I noticed it doesn't pick up on changes properly. For instance Table1, and Table2. Filter on Table1 i...
It should work ok. Try using a view for your filter instead. See this article here
0
1
865
2012-06-27T05:22:01.127
database_errors
dba.stackexchange.com
187,357
How to add table to database inventory in sqlplus oracle 12c
Problems How to create database Inventory database and inside it table Items in sqlplus oracle 12c . Details Im beginner on Oracle 12c release i setup oracle and i create database Inventory Now how to add table items to database Inventory i can create table but how to create it inside database Inventorty this actually ...
You either login as user Inventory before running the DDL, or you create the table by specifying the Schema like [CODE]
0
0
53
2017-09-30T22:38:11.773
database_errors
dba.stackexchange.com
10,639
helm install causes nil pointer
I'm really a beginner with kubernetes and really struggle with this simple tutorial from baeldung.com The only thing I did different (intentionally) was using a google cloud cluster instead of minikube. Basically this is what I did so far: Installed google cloud sdk. Initialized gcloud with my google cloud cluster. Ins...
You can try below options to debug this further. First verify [CODE] and check the values for [CODE] (default value is true ) that means the helm chart when deployed will create a service account for the deployment. When you create a pod, if you do not specify a service account, it is automatically assigned the default...
5
1
20,770
2020-01-29T21:46:54.817
pipeline_ops
devops.stackexchange.com
258,450
Terminal Services Server - local printer redirection errors help
I am using a Windows Server 2008 Standard set up with Terminal Services. Generally it has worked well, including when printing to locally attached printers / printer redirection. Today at a particular site all 4 machines are unable to print to their local printers properly. One printer is an HP Color LaserJet CP1215 se...
I've run into soooo many problems with printers & Terminal Services (now known as Remote Desktop Services) that I can probably write a book on what to do & not to do... All that aside... 51% of the problem is that Windows XP doesn't play nice with XPS printing system... and Microsoft has no desire to fix it. XP is dead...
0
1
2,595
2011-04-11T19:36:52.330
infrastructure
serverfault.com
160,142
What Discrete Mathematics topics should the average computer science student know?
I know that Discrete Mathematics is a pretty broad topic that's used in a number of fields but I was just wondering what are some of the topics from it that you would expect an average computer science student to know? Here are the range of topics from the table of contents of a book titled "Discrete Mathematics and it...
Concrete Mathematics: A foundation for Computer Science , by Knuth e.a. was written exactly for this purpose. It provides mathematical knowledge and skills for computer science, especially for the analysis of algorithms. According to the preface, the topics in Concrete Mathematics are "a blend of CONtinuous and disCRET...
5
3
3,099
2012-08-09T09:28:34.583
api_errors
softwareengineering.stackexchange.com
42,349
How to avoid using variables in WHERE clause
Given a (simplified) stored procedure such as this: [CODE] If the [CODE] table is large the [CODE] can take a long time to execute, apparently because the optimizer can't optimize due to the local variable. We tested running the [CODE] part with variables then hard coded dates and the execution time went from ~9 minute...
Parameter sniffing is your friend almost all of the time and you should write your queries so that it can be used. Parameter sniffing helps building the plan for you using the parameter values available when the query is compiled. The dark side of parameter sniffing is when the values used when compiling the query is n...
17
9
32,068
2013-05-16T13:02:48.317
database_errors
dba.stackexchange.com
746,469
MariaDB on Centos7, service still called MySql
I have a Centos 7 server. Removed previous MariaDb 5.5 and installed MariaDb 10 following https://mariadb.com/kb/en/mariadb/yum/ Added the MariaDB YUM Repository,and then executed: [CODE] All good, then when I try to run: [CODE] I get: [CODE] Yet if I run: [CODE] Works and starts MariaDb. On a different server I can st...
The name that MariaDB chose to give the service is [CODE] . If you want to see this changed, file a bug report with them and give them a very good argument.
-4
5
5,642
2016-01-03T15:18:34.770
database_errors
serverfault.com
330,229
DATE Constraint is ignored on insert
I must be missing something somewhere.. Azure SQL [CODE] I can insert a date of 2022-12-01
SQL Server will allow insertion of dates that violate the [CODE] constraint when the [CODE] option is omitted from a T-SQL [CODE] , BCP in, or SSIS destination. Furthermore, the constraint is marked as non-trusted after the operation to indicate existing data may violate the constraint. Run this query to verify the con...
0
5
169
2023-08-12T15:38:05.310
data_quality
dba.stackexchange.com
578,978
What would make a Custom 404 page suddenly stop working and show 500 instead?
I have a Custom 404 page written in classic ASP that's worked well for a couple of years. Suddenly, instead of seeing he expected nice 404, instead we're seeing a 500- internal server error. There's nothing been changed in the IIS config (not deliberately, anyway). Is this just IIS having a tantrum, running out of some...
IIS 7 is very picky with its configuration files as you've noticed. To fix, delete the entire [CODE] section from web.config, reload IIS, then use the "Error Pages" option in IIS Manager to add what you need.
1
1
2,143
2014-02-28T12:56:07.987
api_errors
serverfault.com
11,491
Terraform syntax error after V0.12 upgrade
I have just upgraded from terraform v0.11 to v0.12 But i am facing lot of error complete code @ https://github.com/sivatest82/Terraform1/tree/master/secretsv12 especially in the block [CODE] v0.11 code which had no issue [CODE] v0.12 code [CODE] Error [CODE] I have already have a seperate file for them Secrets.tf [CODE...
It looks like there are two different problems here, so I'll answer them separately. First, we'll talk about the errors of this type: [CODE] This error is talking about the distinction described in the Terraform documentation section Arguments and Blocks , and is telling you that [CODE] is defined in the provider's sch...
1
2
1,175
2020-05-02T18:42:20.373
pipeline_ops
devops.stackexchange.com
103,354
Traceroute failed, how to resolve?
[CODE] works fine with speedtest.net, but [CODE] does not. How to resolve this? [CODE]
there are different versions of traceroute - some depend on icmp echos, other on udp. if for some reason your firewall/operator blocks this sort of traffic - you're out of luck. try mtr , or tcptraceroute . also - do not expect that every end-node will respond to your requests or every router in the core will bother to...
1
5
3,895
2010-01-16T13:26:06.440
infrastructure
serverfault.com
16,354
Setting up a VDSL router on OpenBSD & NIC with TCO support
this is my first question and I hope I do everything correct. Thanks for setting up serverfault - such a site was missing in the internet for a long time now. In the next few weeks I will get my VDSL 25 connection (at best it's 25 Mbit Download and 5 Mbit Upload). So now I was thinking about setting up my own router fo...
The recommended specs for pfSense are way, way, way overkill. Your machine should handle that load quite handily. For a point of reference, I used a Soekris Net5501 in production for a little while and it fell over at about 45Mbps. It was spec'd out with a 500MHz Geode, 256MB RAM, and some of the worst NICs ever create...
2
3
2,102
2009-05-31T19:04:25.970
infrastructure
serverfault.com
1,082,554
ProxyPass and ProxyPassReverse causing 500 error on server
We have the following: WordPress static website at [CODE] . React/Django Web application at [CODE] with three main URIs: [CODE] [CODE] [CODE] We would like them to appear like they are the same domain at [CODE] . I was told this could be done by setting up a Reverse Proxy on the Apache web server that is at [CODE] . Du...
[CODE] is not allowed in a .htaccess file. You need to put it directly in the Apache config. Context: server config, virtual host, directory
1
2
825
2021-11-03T19:43:19.567
api_errors
serverfault.com
206,298
Finding possible positions for rectangle in a 2-d array
Well, the title is not very appropriate, please read on (I couldn't get a better one). Note: Using Python 2.7, but an algorithm will help too. I'm making a side scroller game, in which I am generating the obstacles on the fly. The trouble I am having is figuring out how to generate the obstacles. o_O I have a some kind...
The following should work fairly well: [CODE] The brute force method here would be to check all positions in every potential rectangle location and only return locations where the rectange didn't encounter a non-zero position. This is essentially what we do here, with the following optimizations: If we have found a val...
1
2
2,398
2013-07-28T07:00:50.377
api_errors
softwareengineering.stackexchange.com
314,960
Guidelines for returning None vs. raising Error for Python string-validating functions
Let's say we have a function that checks if a given pattern occurs in a string. The default behaviour is that if the pattern matches, then it returns the pattern. So far so good but what is the recommended way to handle the case where the pattern doesn't match. There are many alternatives of course but I can list two: ...
I would definitely go for the [CODE] option. Raising an exception may increase readability (although I doubt it) on the function itself, but handling it is messier. If you [CODE] , from the caller function you can do the following: [CODE] while, if you raise an exception, you would have something like [CODE] The third ...
7
6
7,576
2016-04-06T15:13:34.013
api_errors
softwareengineering.stackexchange.com
858,941
Replacing PHP with version from another repo
I made a HUGE mistake a while ago and installed/enabled the remi repo to upgrade php. This has caused issues in our CRM package. I would like to be able to return to the previously installed php from atomic. I have tried executing: [CODE] This comes back with dependencies to be removed (which I assume will break Plesk)...
You could use [CODE] command. It shows your couple last [CODE] commands and you cold revert command when installed PHP from Remi repo by command [CODE] .
2
1
105
2017-07-02T07:28:56.813
infrastructure
serverfault.com
31,738
Compare values inside two array lists java Selenium
I have two array lists,expectedResult and actualResults. [CODE] Actual data set is as below. [CODE] I am trying to compare the two array list values using below code. [CODE] below is the output of the comparison. [CODE] Only one value, Android Headlines, was verified. How can I compare two array values?
You're not checking if the actual array contains the value, you're checking if the element at index i in the actual array matches the value at index i in the array of expected values. Also, if you're going to iterate over all the values of expectedResult, use the enhanced for loop. Finally, if you are testing something...
1
1
22,982
2018-01-26T07:08:15.833
data_quality
sqa.stackexchange.com
9,364
Hypertuning XGBoost parameters
XGBoost have been doing a great job, when it comes to dealing with both categorical and continuous dependant variables. But, how do I select the optimized parameters for an XGBoost problem? This is how I applied the parameters for a recent Kaggle problem: [CODE] All I do to experiment is randomly select (with intuition...
Whenever I work with xgboost I often make my own homebrew parameter search but you can do it with the caret package as well like KrisP just mentioned. Caret See this answer on Cross Validated for a thorough explanation on how to use the caret package for hyperparameter search on xgboost. How to tune hyperparameters of ...
33
42
44,617
2015-12-13T14:19:54.510
data_quality
datascience.stackexchange.com
839,004
Proxypass for certain folder
Using [CODE] , [CODE] , how can I serve content from one host to a folder on another host? Example: [CODE] I would like requests made on oranges.com/folder to be served the content that is in pears.com/folder . oranges.com/folder does not exist. I tried some of the examples from, apache.org/docs . In orange's virtualho...
The solution was to disable compression on the pears server.
0
0
2,092
2017-03-17T19:14:56.427
infrastructure
serverfault.com
164,581
DAHDI Installation on Slicehost Woes
I'm trying to get DAHDI installed for Asterisk on my Slicehost slice... I start off [CODE] Which partially fails with this in the install log: [CODE] This seems to be because I do not have the kernel source installed. However, with Slicehost, kernel sources are only available through http://kernel.slicehost.com ... in ...
Here's the process. Prepare the kernel first: [CODE] Once that's done, just follow the documentation provided with the dahdi module in the Makefile: [CODE] You should then be all set: [CODE] I just did this on a slice running Debian Lenny and 2.6.33.5-rscloud.
0
2
904
2010-07-27T18:56:45.533
infrastructure
serverfault.com
373,870
WS 2008 R2 giving "Internal Server Error"
I have had this problem for a while now and can't find the problem at all. When i open a page it will sometimes give a 500 Internal Server Error message. This hapens on a website that works perfectly but when i try to upload anything it will give this message(all php settings have been set to either 1gb or 3000 seconds...
It sounds like your first step is to enable remote errors in IIS. IIS defaults to "Detailed errors for local requests and custom error pages for remote requests". This means that if you were to browse to your error page FROM the server, you'd get the error message, but from a remote pc, you'd get that annoying (but dra...
0
0
188
2012-03-27T10:43:02.063
api_errors
serverfault.com
827,036
nginx dynamic Host & Directory path_info missing
I'm trying to accomplish a nginx Configuration wich allows me based on part of the URL/ServerName to choose the project folder (document_root), all dynamic. So if i got a Web-Server directory like: [CODE] And i got the following URL matches: [CODE] and so on. If tried it with the following configuration and it works wi...
The error message is a redirection loop on [CODE] which probably points to the last [CODE] statement. Obviously [CODE] is invalid until after [CODE] has processed the URI. Notice that the official [CODE] recipe avoids using [CODE] and uses an [CODE] block instead. I would suggest that you try: [CODE] Of course, if [COD...
0
0
661
2017-01-18T14:14:08.580
infrastructure
serverfault.com
322,322
printer not showing up on network
Simple setup, should not be a problem, yet Im stumped. Small office, Xerox 5050 wired directly to a linksys router. Windows 7 machines connecting wirelessly to that router. Add printer in win 7 dosent find printer. Ping the printer IP (gottev via print test page feature on printer) and get a 'destination host unreachab...
Judging by your comments, your printer isn`t on the same subnet as the rest of your network. Use the following information Printer IP: 192.168.1.50 (or another IP address from your subnet that isn`t already taken) Subnet Mask: 255.255.255.0 Broadcast Address: 192.168.1.255 Gateway: 192.168.1.1 That should solve your pr...
-1
5
406
2011-10-17T19:48:23.270
infrastructure
serverfault.com
442,693
Incorrect deployment of WSGI app to AWS using Elastic Beanstalk
cross-link to AWS forums I have developed a simple Python web service using WSGI and would like to deploy it to AWS cloud using Elastic Beanstalk. My problem is I cannot make all the options I specify in Elastic Beanstalk configuration to be correctly configured in the cloud. For deployment, I use Elastic Beanstalk CLI...
You might want to look at building a Docker container and deploying that to Elastic Beanstalk. AWS have a Python sample for doing this at https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/docker-singlecontainer-deploy.html#docker-singlecontainer-pythonsample and a full github repo at https://github.com/aws-samples...
8
1
2,677
2012-10-26T14:10:09.013
pipeline_ops
serverfault.com
244,936
Extract all records even with missing "optional" fields in another table
I have a main product table ICITEM listing product IDs and another table ICITEMO (please don’t ask about the table names) with a number of optional product fields. Not all optional fields exist for all products, for example: [CODE] I need to retrieve all product IDs from the main ICITEM tables regardless if they have c...
What you need is an outer join, likely a left outer join. From the documentation Specifies that all rows from the left table not meeting the join condition are included in the result set, and output columns from the other table are set to NULL in addition to all rows returned by the inner join. For you the "left" table...
0
1
128
2019-08-09T00:50:27.183
warehouse_errors
dba.stackexchange.com
367,681
Reverse Proxy - should virtual directory/subfolders match rewrite rules
I'm trying to create a reverse proxy which will rewrite all requests to a particular URL to another server inside the DMZ. I got the setup and configuration working based on this article https://learn.iis.net/page.aspx/659/reverse-proxy-with-url-rewrite-v2-and-application-request-routing So my basic setup is like this ...
There is an undocumented issue with ARR / rewrite, where it cannot map subfolders. I am adding this for my reference and hoping it helps others A workaround I have tried that seems to be effective, is to create a folder inside your source web application, add a web.config inside that folder with the rules pointing to t...
2
1
2,406
2012-03-08T15:59:37.810
infrastructure
serverfault.com
709,439
Separating test environments
We're utilizing TFS and Hyper-V with SCVMM for our testing environments, but unfortunately we don't have any network separation right now. We had to create our own domain in order to most effectively use SCVMM deployment and TFS management without having to get domain access to the entire corporate network. This is pro...
[CODE] - What does that mean? Can you elaborate on that? [CODE] - Why are you resetting them to DHCP? You should use static ip addresses on the test machines in order to: 1. Not consume ip addresses from the production DHCP pool. 2. Better control the assignment of DNS servers to the test VM's. 3. Better manage the VM'...
2
1
80
2015-07-29T16:13:29.600
pipeline_ops
serverfault.com
80,736
Windows XP - slow iSCSI
iSCSI target is OpenSolaris 2009.6 (COMSTAR) iSCSI traffic is in the separate VLAN, the target and all initiators use 9k jumbo frames, jumbo are enabled on switch. iSCSI initiator on RHEL5 shows nice performance around 80mb/sec read, 80mb/sec write (copying the regular files/using dd, then doing sync, then calculating ...
I'm assuming you mean Megabytes/sec there not Megabits/sec. Check that you've unbound the standard Windows Networking protocols from the iSCSI network for a start, just in case they are causing unwanted additional traffic. Check that you are using the most up to date iSCSI initiator from Microsoft, that Jumbo frames ar...
0
1
1,821
2009-11-02T23:12:40.387
infrastructure
serverfault.com
41,601
MySQL high CPU usage (MyISAM table indexes)
I have a problem with an inherited MySQL database. From time to time mysqld uses up to 2300% CPU.. The only solution is to service mysql stop and run an myisamchk -r on a table. After the indexes have been fixed, I start MySQL and everything is ok. Any ideas for an permanent solution? Edit (from the comments): Using 5....
SUGGESTION Your key_buffer_size is only 16MB, but your MyISAM indexes total 59MB. In a highly-trafficked website, I can see index pages getting kicked out of and pushed into the MyISAM keycache frequently. This could have an affect on indexes being updated and overall write performance on the MyISAM tables. You could j...
3
5
7,834
2013-05-06T15:07:09.353
api_errors
dba.stackexchange.com
858,339
Unable to run aws s3 sync as a cron job
I'm having trouble running aws s3 sync as a cron job (on Ubuntu 16.04). Here's what I am able to do: Manually run the script in the /etc/cron.hourly directory using sudo (so it doesn't seem to be a problem with passing environment values) Manually run the script in a user directory without sudo Add either the script or...
As it turns out, because cron is a bit unpredictable in how it sees the PATH, I had to reference the aws binary in my script using its absolute address (/usr/local/bin/aws).
2
0
14,459
2017-06-28T13:17:18.567
infrastructure
serverfault.com
84,125
Power Supply Failure Corrupted a RAID?
All of a sudden, the power supply of a server started to smell real bad. One of the hot swappable power supply units died. We replaced it, booted up Windows Server 2003 to find out that 2 out of 4 drives in a RAID 5 configuration had died. We're also getting MACHINE_CHECK_EXCEPTION BSOD's everyone once in a while. How ...
Although it shouldn't happen with a well designed power supply the reality is that this does happen all too often. As the unit is dying it may lose voltage regulation capability, resulting in over-voltage power being supplied to the machine. If you've good cooked drives as a result you need to be prepared for other com...
0
1
1,275
2009-11-12T17:46:00.110
data_quality
serverfault.com
736,753
How to log execution of a specific binary/script using auditd or other
I have the following situation in hand. I have one or more specific execuatble files in /usr/bin, I will call one /usr/bin/execute , and they may either be a compiled binary or a script file, such as a perl or python script. I would like to log when any user launches these specific binaries. The information I would lik...
No matter how you do this in auditd you will have to use some parser to get the information you want (unless one of ausearch's options will help). To start with, to monitor just specific commands, and lets say the commands are /usr/bin/who (a binary) and /usr/bin/whatis (a shell script), then use the rules [CODE] After...
3
2
5,786
2015-11-16T16:31:06.510
infrastructure
serverfault.com
416,849
OpenVPN: No DNS forward
I've been able to set up a routed OpenVPN on my VPS running Ubuntu 10.04. I'm able to ping both ways as well as open any website using IP-addresses on the client. Via domain names however, it does not work. Since I'm fairly new to OpenVPN and Linux for that matter I'm not really sure where to start troubleshooting. As ...
Turns out iptables was badly configured. These settings worked, where XX is my eth0 ip. [CODE]
1
0
4,189
2012-08-13T04:40:26.073
infrastructure
serverfault.com
343,345
How to name a method that fills in the blanks?
I have a method that checks a data structure for the presence of a thing that might be missing but is required. If it is missing, it adds it. Essentially it is this (although the method is much, much more complicated due to the complexity involved in adding the thing, and the thing comes from a thid party service): [CO...
[CODE] In the case of a language like C#, you could actually use Reflection to find those fields that are null and instantiate them, making this a generic [CODE] method. Example, for an array : [CODE]
0
4
313
2017-03-02T20:03:51.763
api_errors
softwareengineering.stackexchange.com
1,152,182
Traffic distribution inside an GCP instance group
I have a regional instance group with 2 instances serving on port 8000, no autoscaling enabled. This instance group is the backend of a Global external application load balancer . The web server on the instances is running flask and each request will take 1 second to process: [CODE] I can confirm the behaviour by hitti...
Based on Global external Application Load Balancer GFE (Google Front End) estimates which backend instances have capacity to receive requests. You can scan the link shared to know more about the distribution of traffic. If you think round-robin is not working for you, I would suggest to use balancing mode wherein the c...
1
1
246
2024-01-24T17:18:11.617
database_errors
serverfault.com
319,899
MariaDB Aborted connection events
A windows server (2022) has MariaDB 10.4 running on it. In the Event Viewer for Windows logs > Application there are two events that happen every minute: Aborted connection ### to db: 'unconnected' user: 'unauthenticated' host: 'localhost' (This connection closed normally without authentication) Aborted connection ### ...
That means that some application connects on the TCP port to the server, and does not authenticate within a given timeout (which I think is 5 seconds by default). There is a way to suppress these messages. You set log_warnings=1 in the my.ini. There is some documentation on verbosity, see https://mariadb.com/kb/en/erro...
3
2
3,779
2022-11-18T17:17:52.853
api_errors
dba.stackexchange.com
189,115
Using virt-install and http preseed to do unattended ubuntu 10.04 install
The virt-install command line I used is below sudo virt-install kvm ubuntu -v sudo virt-install -v -n golden-egg -r 256 --disk path=/var/lib/libvirt/images/golden-egg.qcow2,size=5 --os-type linux --os-variant ubuntulucid --force --cdrom=temp/ubuntu-10.04.1-server-amd64.iso --virt-type qemu --connect=qemu:///system --ex...
The problem is you can only use [CODE] when using [CODE] , not when using [CODE] See: https://bugzilla.redhat.com/show_bug.cgi?id=622661
8
2
3,444
2010-10-08T16:29:07.867
infrastructure
serverfault.com
373,104
Why isn't Apache Basic authentication working?
I just upgraded Apache from it's 2003 build, to a squeaky-clean, brand-new 2.4.1 build. All seems pretty good except for one glaring thing: In my httpd.conf file I have the following: [CODE] This should allow only users in the specified auth file to access the server - just as it had under the older version of Apache. ...
I had a similar problem with Digest authentication on a fresh 2.4 install. Looking closely at the documentation on Apache's site, it looks like the authentication directives need to be in a [CODE] tag rather than a [CODE] tag. See the documentation for the AuthBasicProvider directive .
19
15
78,249
2012-03-25T02:36:10.863
api_errors
serverfault.com
220,458
Apache22 on FreeBSD - Starts, does not respond to requests
I'm running Apache 2.2.17 with the peruser MPM on FreeBSD 8.2-RC1 on Amazon's EC2 (so it's XEN). It was installed from ports. My problem is that, although Apache is running, listening for, and accepting connections, it doesn't actually respond to any or show them in the log at all. If I telnet to the port it's listenin...
Try the following: [CODE] to find the master apache process pid [CODE] to watch the system calls from the process form step 1. connect to apache with telnet or a web browser. You may need to install pstree and strace from freebsd ports. You should see scrolling output from strace as it logs the system calls (file opens...
1
1
1,464
2011-01-09T23:23:03.400
infrastructure
serverfault.com
205,892
Always On - keep secondary database readable when connection to primary node failed
By default, secondary replica brings databases into offline state when connection to the primary replica fails. We are using SQL 2016 SP1 . The goal is to reduce interruption for users on secondary async replica when primary replica goes offline for maintenance or due to network issues. Is there a way to change this be...
Is there a way to change this behavior and keep secondary databases always online? Yes. Use SQL 2014 or later :) Beginning in SQL Server 2014 (12.x), readable secondary replicas can remain online even when the primary replica is offline due to user action or a failure. However, read-only routing does not work in this s...
1
3
341
2018-05-04T21:09:08.383
warehouse_errors
dba.stackexchange.com
51,235
Designing a scenario where a primary key could be of two types
I have a table: [CODE] , where it holds the users identification. The [CODE] of this table can be of two types (just one or another, never both), suppose: [CODE] and [CODE] , but one table can't have two primary keys, and a composite one wouldn't solve my problem . So, I can't do this: [CODE] Then, I created two others...
Also search for [CODE] here and on the SO.
2
3
276
2013-10-08T20:45:25.747
warehouse_errors
dba.stackexchange.com
469,567
Using Linux autocompletion with wordlist AND files of the current directory
I have set auto-completion in my [CODE] as follows: [CODE] but this ONLY used the words given in the file [CODE] . How is it possible to extend the definition so tab-completion on [CODE] also uses the names of files in the local directory. A simple solution to my problem would do (filenames AND words in wordlist), I do...
ok if you write a function as below [CODE] then [CODE] the -F to complete means run the function indicated (_scp_complete) then use the array COMPREPLY with each element as one completion In the function I reset COMPREPLY to be blank Then I cat out the ~.ssh_complete ( each line becomes one element of COMPREPLY ) then ...
3
0
501
2013-01-16T09:53:47.593
infrastructure
serverfault.com
501,003
Running rpm does nothing
I'm not sure what happened with rpm on my system. This is a CentOS 6.3 VM hosted on Amazon EC2 if that makes a difference. When I run any rpm commands, it returns to the command prompt doing nothing. The only thing that does return anything is: [CODE] Anything else just does nothing. No error message, no log message, n...
On my system the [CODE] output comes from processing files in [CODE] , which themselves come as part of the rpm package. To check this on your server I would run: [CODE]
1
0
908
2013-04-19T16:59:18.780
infrastructure
serverfault.com
201,889
Optimize InnoDB settings for current VPS setup
I have VPS with following setup: (4 x 2.40 GHz), 8192 MB RAM MEMORY, 20GB HDD space. My web service is making almost: 30 mln inserts/day or ±350 inserts per second. In near future amounts will be probably bigger (that will require more CPU). Can you guys give me advices how to tune current MariaDB InnoDB engine to make...
Batch inserts into a single [CODE] . Optimal is to gather 100-1000 at a time and build a single, large, [CODE] , then perform it. It will run about 10 times as fast. Build a CSV file and use [CODE] . Also much faster than single-row inserts. For tossing the table and starting over, have [CODE] . Caution: You have proba...
0
1
429
2018-03-21T13:30:23.980
database_errors
dba.stackexchange.com
1,088,555
Server 2022 SMTP Server issue
This is a new installation of Server 2022 Standard 21H2. I'm trying to configure the SMTP Server so that a client application can send emails internally. When I open IIS 6.0 Manager and right click the SMTP virtual server, it usually generates the following error: SMTP Server Error If I try often enough, I can get in a...
My findings are similar to the other answers here, but it seems I needed to add a few steps (under Microsoft Windows Server 2022 Standard): By default, I can enable SMTP and listen for connections, but when I attempt to send email to its port, the SMTP service crashes. Also, when I attempt to access Properties of [SMTP...
6
8
27,104
2021-12-30T08:22:15.997
infrastructure
serverfault.com
841,246
How to query Apache's access_log with lnav
I'm trying to use lnav to query Apache's access_log on macOS. It looks really nice, but when querying with SQL, I get no results. I'm starting the program with [CODE] , which shows the log file. Then I type [CODE] for the SQL result view, and then [CODE] to enter the SQL query [CODE] and press enter. In the bottom row ...
Apparently Apple tweaked the access_log file format, and you need to install a custom file format with lnav. The guys from lnav have an active forum, and they provided an answer over there , including the format file.
0
0
501
2017-03-29T10:18:52.050
infrastructure
serverfault.com
170,213
PsExec and Windows 2008 R2: 'Access is Denied'
Here's my scenario: I'm attempting to remotely start & stop IIS 7.0 sites on my server from my local machine, using PsExec . Some important points: Local machine runs Windows Vista . Server runs Windows 2008 R2 . Each machine runs on different domains . There is a one-way trust from my local machine's domain to my serv...
It took me hours to find a working way to PsExec between 2 Windows 7 Computers with non-Admin user starting PsExec ... Disabling UAC (EnableLUA=0, ConsentPromptBehaviorAdmin=0, LocalAccountTokenFilterPolicy=1) did not work, turning off the Firewalls did not work... Here i found the working way - thanks JelmerS: (Info f...
6
3
12,242
2010-08-13T14:09:04.613
infrastructure
serverfault.com
17,113
What algorithms should I choose for a recommender system and why?
To my knowledge, recommender systems are broadly classified into collaborative and content. Collaborative in turn is divided into 1) Memory (uses similarity metrics) and 2) Model (well known Matrix/Tensor factorization). Content based involves constructing a user profile and then an algorithm like SVM to classify and r...
Short answer: It depends on your data. What do you want to do ? Longer answer: Use content based approaches if you have data on your items. Use collaborative approaches is you have data on your users. Use both if you have both. I would say content based approaches are general machine learning problems (how do I extract...
1
0
979
2017-02-22T07:28:34.113
data_quality
datascience.stackexchange.com
206,937
Why would my checkDB job be reporting failure?
I've got this little script that runs checkdb on every database. When I execute it in SSMS, it works just fine. As a scheduled job, however, it reports this massive, unreadable error: Message 8997) Service Broker Msg 9676, State 1: Service Contracts analyzed: 6. [SQLSTATE 01000] (Message 8997) Service Broker Msg 9667, ...
the output of your DBCC is making the job take it as a failure ([SQLSTATE 01000] (Message 2536) for example) . Solution is to run the dbcc with the NO_INFOMSGS option, as seen below: dbcc checkdb( yourdatabase ) with NO_INFOMSGS I have several jobs running this way with no issues.
1
2
720
2018-05-16T17:14:12.230
warehouse_errors
dba.stackexchange.com
664,364
How Configure subdomain to redirect to internal/local IP in apache
By default when I was going to my external ip or no-ip domain I was left on the page of my internet router until I set up apache for my sites and open port 80 in the router... My question is: How can I configure a redirect or redirect like to my router with local ip 192.168.1.254, in apache in my server machine 192.168...
(If I am reading this correctly (and I may not be), your router is passing all traffic on port 80 forward and you can no longer hit your router's page from the outside, as all traffic 'skips' forward to your Apache server. Based on the second half of your question I think you're looking for mod_proxy , not rewrite. Pro...
1
1
1,888
2015-02-02T16:35:09.297
infrastructure
serverfault.com
281,263
Are multiple indexes on MYSQL table reason for slow UPDATES and INSERTS?
The performance of my (LAMP stack) site has degraded significantly over the last couple of days despite no code updates. It seems that only inserts, updates, and deletes of a particular MySQL table cause the problem. Any page that updates, inserts, or deletes an entry of the jobs "table" takes around 10 seconds to load...
To answer the specific question: No , an extra index on [CODE] or two would not hurt performance of updating a different, [CODE] column. Additionally: No , the version of MySQL, 5.6, is not too ancient, even if some modern features (like window functions) are missing. You should have decent performance with decent hard...
6
6
3,477
2020-12-10T10:06:08.773
database_errors
dba.stackexchange.com
276,934
Has my Linux server been compromised? How do I tell?
Running (X)Ubuntu 10.04.2 LTS behind a router. I just received an email from my root account on that machine, with the following subject: [CODE] : The message body contained this warning: [CODE] I can see no [CODE] file, though there is a file named [CODE] with a timestamp dating from 2011-06-01 22:14, so just before t...
I realize it's been two years since the original question was asked, but in case somebody else comes here through Google like me: I saw that behavior caused by a Dropbox daemon running with a non-root account on a server which didn't run any X server. I managed to copy the files before they were deleted. For some reaso...
12
3
2,494
2011-06-02T16:56:45.263
infrastructure
serverfault.com
681,757
multiple ips on same server
We have a server (a router) with 5 IP addresses (we are hosting different Websites). I'm wondering why the server was setup like that: -> eth1 is connected to the modem -> when the connection is established, then "ppp0" is created -> there is a script in /etc/ppp/ip-up.d/2publicips : [CODE] Everything is working correc...
Presumably you are using PPPoE, which explains why eth1 is connected to the modem. When the PPP session is established, pppd will invoke the various scripts in the ip.up.d as you mentioned. The [CODE] commands that you show are an entirely reasonable way to set up an IP alias. The most logical reason why multiple IP ad...
0
1
90
2015-04-10T09:04:29.470
infrastructure
serverfault.com
417,328
How can I create an “su” only user (no SSH or SFTP) and limit who can “su” into that account in RHEL5?
Possible Duplicate: How can I allow one user to su to another without allowing root access? We have a user account that our DBAs use ( [CODE] ). I do not want to set a password on this account and want to only allow users in the [CODE] group to [CODE] . How can I accomplish this? I was thinking of just giving them [COD...
If you are going to give them full access to the user account anyway, why not just let them do whatever they want via [CODE] directly? [CODE] This line in [CODE] will allow anyone in the [CODE] user group to run any command as the [CODE] user, including getting a shell with either [CODE] or [CODE] for a login shell. Al...
1
3
1,459
2012-08-14T11:33:09.967
data_quality
serverfault.com
1,031,041
Ansible check if variable exists in attribute list
I have a variable containing details of host machines on my network (called 'hostlist' - I believe you call this a dictionary, but I'm not sure of the terminology. The variable is defined in a file in group_vars/all, so it's available in all playbooks (not sure if this is important). I have a play which I would like to...
There are presumably more elegant ways of doing it, but something like this works for me: If your inventory file looks like this [CODE] Then a playbook with the following content, would only be run against [CODE] because it isn't matched in the hostlist var: [CODE] [CODE] when called like this: [CODE] means that only h...
4
4
44,573
2020-08-21T22:58:50.483
pipeline_ops
serverfault.com
320,254
Problem associated with transaction schedule
Here, Read_item(B); and B;=B+temp; have written parallelly. what happen here? What is the problem associated with the above transaction schedule?
If the transaction isolation level is set to read uncommitted or read committed, the writes in T2 would be overwritten by T1. When the transaction isolation level is set to repeatable read or serializable T1 would be rolled back because the record it tries to update has changed since it's transaction started and an err...
0
1
43
2022-11-27T22:05:34.040
warehouse_errors
dba.stackexchange.com
118,354
Getting Partial / No Redundancy on VM's created on latest datastore
First some background. I'm in the process of upgrading my ESX servers from 3.5 to vSphere 4 and so far I have setup the new vCenter Server. Before I start the upgrade of the ESX, I needed more storage so I created 3 datastores from available space on my Equallogic PS6000 which has been connected for a while so as far a...
First, I'd double-check the LUN settings from the SAN perspective, and look for any "stray" connections. Is it set to allow multiple client access? (Can't remember the exact terminology, but it's basically saying "yes, I know what I'm doing, I'm not going to have 3 servers writing to an NTFS partition at once") Securit...
0
0
920
2010-03-02T16:09:07.603
infrastructure
serverfault.com
164,109
Server 2008 Roaming Profiles Permissions
I'm having an issue setting up roaming profiles in Windows Server 2008 R2. The roaming profile is not being created on login/logoff with the user and they constantly have a temporary profile. I have the following permissions set on the folder: [CODE] This is how I used to set this up in Server 2003 and I never had an i...
If you have Authenticated Users = Full in shared, you don't need any of the others. Your NTFS permissions have no way for a normal user to create their home folder. As such, you'll have to create the folder yourself. The best way to do this is to create all the home folders, and use chown to set the owner to them. That...
3
1
8,851
2010-07-26T13:17:37.917
infrastructure
serverfault.com
706,702
Error when configuring a failover DHCP: "The following scopes already exist on the partner server"
Server 2012 R2 I get that error message when clicking next in the Failover Wizard after specifying the partner server, but I don't understand it. In trying to research how to setup a failover DHCP the one thing I didn't understand or find was the name and range of the scopes between the primary and failover DHCP server...
While this answer is simple I'm posting it here because if anyone else attempts a DHCP failover setup as I did and they received this error, then hopefully this will help them. Sometimes it's not apparent on the web pages showing a failover configuration that the 'Configure Failover' wizard is not run from the DHCP ser...
0
2
2,700
2015-07-17T22:58:15.107
database_errors
serverfault.com
795,432
Squid SSL Bump TAG_NONE / HEIR_NONE
I have a transparent proxy, Squid, version 3.5.20 (latest stable at this time) I need to do domain whitelisting. Squid is configured to do SSLBumping (see squid config below) I try to install Sumologic on a server which is located behind the squid transparent NAT. The problem is that sumologic cannot connect out throug...
The access.log line is the TCP connection arriving and being accepted to begin the bumping process. Your ssl_bump rules say to peek at step1 then to terminate at step2 unless the client sent a TLS SNI value containing one of a few whitelisted server names in one of allowed_https_sites or NoSSLIntercept ACLs. It seems t...
1
0
12,403
2016-08-08T07:15:49.617
infrastructure
serverfault.com
446,400
Uncorrectable machine check
I am experiencing rare but real unrecoverable machine checks on HP DL370 G6 dual-core Xeon server. I ran memtest86+ before, and ran CPU-intensive operations without any problems. In your opinion, does this indicate a real problem, or is it normal and expected behavior? How would you approach this problem? EDIT after so...
The NC375 are problem filled NIC's. I've had a LOT of bad luck with them across various customers we work with. Total loss of connectivity across all ports, lock ups, etc.. Multiple updates to the critical HP Advisories around this NIC as well. General rule we have with the NIC's are replace it with something else if y...
2
1
2,098
2012-11-07T17:49:31.670
infrastructure
serverfault.com
234,048
Is there a way to not use the Observer pattern when creating GUI systems?
In Java, the Swing library implements the Observer/Subscriber-Publisher design pattern to design the way the program responds to events on the GUI (button clicks, etc). The programmer registers [CODE] objects (the observers) to a GUI element (the subject/observable/publisher), and these objects get notified by the GUI ...
There's functional reactive programming . The idea is to turn time-varying entities into first-class objects. Suppose we're dealing with a mouse cursor, and we want to draw an icon 10 pixels to the right of the cursor. Imagine that there was a type [CODE] that represents a value that changes over time. TimeVarying alwa...
2
2
967
2014-03-28T12:56:54.220
api_errors
softwareengineering.stackexchange.com
97,213
jdbc connection string ORACLE , integrated security
we are trying to configure Spotfire to use JDBC connection to ORACLE. We would like it to use integrated security (I call it Active Directory, TIBCO seems to like integrated security). Here is the current connection string which required username, pwd [CODE] can anyone point me to, or tell me how to modify this to use ...
When you use Kerberos authentication (for example Active Directory) with JDBC, you have to prepare your code for it, and not just simply change the connection string. The Database JDBC Developer's Guide and Reference covers this topic: http://docs.oracle.com/cd/E11882_01/java.112/e16548/clntsec.htm#JJDBC28344 Essential...
0
3
2,237
2015-04-07T16:30:03.080
database_errors
dba.stackexchange.com
735,311
Unable to stop tomcat6 when using jmx port options
We have tomcat6 running in two different environments, both running CentOS 6.6 and OpenJDK 1.7. In one environment, I'm not able to stop tomcat6 when issuing [CODE] In the environment that this is failing, the only difference is that there are some additional options: [CODE] When stopping, the following errors are reco...
Here's what worked for me: Using some information from this page I added the following to the tomcat6 startup script (which in my case was [CODE] ): [CODE] The final contents of my [CODE] file: [CODE] Now I can start tomcat6 successfully with the jmx options: [CODE] And I can stop tomcat6 without any errors: [CODE] Hop...
2
0
225
2015-11-10T16:59:59.380
infrastructure
serverfault.com
327,719
MSSQL2019 - Manage files and filegroups in sliding window partitioning
I am just getting into partitioning, and have found quite a few good blogs on how to set up and manage sliding window partitions (the ones I've chosen to follow are at SQL Shack and MSSQLTips ). Both of these how-to's are very clear in their instructions, however neither of them discuss how to manage the empty data fil...
Although many partitioning examples map partitions to different filegroups, this adds unneeded complexity unless the underling storage is physically isolated and the isolation is done for a specific reason (e.g.. tiered storage, optimize concurrent scans on spinning media, read-only filegroups, etc.). I don't see a nee...
0
3
88
2023-05-31T13:30:51.853
warehouse_errors
dba.stackexchange.com
551,749
Shares Not working
I'm running a ms server 2012 box acting as a file server, I've set up 4 shares (IT SECURITY PUBLIC HR) to start out with each share has its corresponding group as full permissions to the folder however when I access the server \server\it it says i don't have permissions. Public has NTLM AUTH as its full read/write and ...
As the commenters above said, there are two layers of security on Shares. There's the share level: And the NTFS level: Make sure the permissions in both places are set to what you expect.
0
1
785
2013-11-08T21:40:32.183
infrastructure
serverfault.com
2,394
Approaching user adds and edits with Ansible
I am going to be attached to a small project that basically organizes the users in a cluster of AWS Linux servers. The servers users assigned have different UIDS and maybe different GUIDs. I am hoping to use Ansible to fix this up and organize users better. I can get Ansible to run on a test environment but one thing h...
If editing critical flat-files across multiple servers in one place is too scary.. One approach I have often recommended is to let system users reside in /etc/passwd files, and to add an additional Name Service Switch (NSS) source for humans that need to log in. For big projects (lots of users authenticating against th...
5
4
295
2017-10-23T13:42:16.803
pipeline_ops
devops.stackexchange.com
399,694
Cron job not running
I have a python script running as a service on Ubuntu11.10. I need to stop the service and then restart it again every 6 hours. I wrote the cronjob and just to check its working, i am stopping and starting the service every 5 mins. Following is the line in my crontab: [CODE] I have written the above line in root's cron...
Have you tried using the full path to the [CODE] and [CODE] executables? What do you see in [CODE] ?
0
2
986
2012-06-18T09:20:07.563
infrastructure
serverfault.com
744,352
ELK: LogStash to read log files from remote Samba-mapped network drives
I'm new to ELK, and I would like to set up a solution to index Microsoft IIS and applicative .NET logs with ES. I'm aware about different approaches: 1) [app servers: log files ➔ Logstash] ➔ [collecting server: Redis ➔ Logstash] ➔ [ES cluster: ES ➔ Kibana] The con of this method is to having to install, configure and m...
While running Logstash with a [CODE] input against your logs on a CIFS share will work, I don't think it'll work very well. I haven't directly used Logstash like that but, In my experience using Logstash-Forwarder to watch logs files over an SSHFS mount, it doesn't deal well will file rotations or reboots of either end...
0
3
3,366
2015-12-20T19:48:42.913
database_errors
serverfault.com
338,016
Remote connection to SQL Server 2008 in LAN
I try many ways, but still doesn't work. [CODE] is running. [CODE] is running. [CODE] is running. [CODE] is enabled (something else inside it must I change?) [CODE] is enabled [CODE] - checked. I try connect in VS2010 by [CODE] with [CODE] or [CODE] Now I get error A network-related or instance-specific error occurred ...
You have to make sure that you have a Windows user account on the server that runs SQL Server, or have a user in the Active Directory domain that the SQL Server runs in. Then you have to add your user to the SQL Server, right click Security and add your user. Hit search and type in your username. This will work even if...
1
0
776
2011-12-05T09:43:03.323
database_errors
serverfault.com
661,915
Nginx rewrite: replace - with /
I set up ghost blogging platform. It doesn't allow to insert «/» signs in article links, but I want them to appear in my links, so I want them to be fixed with nginx rewrites. The link in a browser looks like this: [CODE] And I want it to be like this: [CODE] It goes without saying that it should be applied for a numbe...
And the answer is: [CODE]
0
1
5,423
2015-01-23T17:09:31.327
infrastructure
serverfault.com
1,022,108
Creating a forwarded ssh connection from a middle machine
I feel like I've tried every combination of the -L and -R flags with ssh and read a ton of very similar question, but can't make this work…maybe it's not possible. There are two machines, neither of which is accessible from the outside word: [CODE] & [CODE] . [CODE] is a database server listening on port 1433 (and only...
This should work when executed on [CODE] : [CODE] This creates a tunnel from port 1433 at the Home computer to DB server port 1433. After this, you can connect to [CODE] with a program running on [CODE] computer.
1
1
642
2020-06-19T05:24:58.143
infrastructure
serverfault.com
97,899
Mapping a Login to a User
On my production system I login to SQL Server with [CODE] . When I execute [CODE] it returns [CODE] . We use Windows authentication on our DBs. On my test system I login to SQL Server with [CODE] . When I execute [CODE] it returns [CODE] . So I my test system I went to [CODE] and entered in [CODE] for the user. When I ...
If you want the same result on both systems, your choices are: If you always want to know the server-level Windows account in use, change your code to use [CODE] in both places instead of relying on database mapping (or use [CODE] ). Add your login to the [CODE] role on the production system. Create a new login on your...
0
1
4,944
2015-04-15T12:39:15.300
api_errors
dba.stackexchange.com
1,110,340
executing a command without password prompt or root
For the sake of writing a script, I'd like my minikube-role-user to execute the command [CODE] without a password prompt, without switching user to root, be it by su or temporarily by sudo, or permanently with visudo. I have tried giving my minikube-role-user the executable permission for, and ownership of, the executa...
For Linux [CODE] uses hard-coded [CODE] under-the-hood , as such you won't get around [CODE] / adjusting [CODE] . I think you already found what the minikube docs say on avoiding password prompts and want something more granular than giving access to [CODE] . [CODE] can configure [CODE] quite granular, you can also all...
1
1
526
2022-09-09T15:13:04.163
infrastructure
serverfault.com