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
530,662
Testing website in new server before switching DNS not working
I have hosted several websites in an old server, now I want to move them to new server. Before switching DNS I want to test whether everything works fine in new server. For this, I copied all the websites to my new server. I then configured new server's [CODE] with [CODE] Enabled as follows. [CODE] Lets say IP of new r...
You need to define "siteone.com" as 10.10.10.10 as well as "www.siteone.com", it has to hit the server (siteone.com) before it can go to the ServerAlias (www.siteone.com). Technically, siteone.com and www.siteone.com are different records, with siteone.com being the main domain and www.siteone.com just being one subdom...
0
0
162
2013-08-13T14:37:49.233
infrastructure
serverfault.com
187,966
Centralized Authentication Method
I have more than 1000 Linux/Unix(Solaris) servers in my network and I want to implement some kind of centralized login server. So that I create users on one server and he can able to login on any of the server in my network. But there would be some exception that I want to implement like, every I dont want to give ever...
You have to have a central user store, which means a directory service of some sort. These days that means Active Directory, eDirectory, OpenLDAP, or some other LDAP-style server. Then that central server can talk different kinds of authentication protocols with the understanding that sooner or later the authentication...
3
1
1,452
2010-10-06T02:21:21.703
api_errors
serverfault.com
91,782
Opions of BroadBand providers for doing your own hosting
This is my first question on a stack-exchange site. I appreciate the community taking a moment to look at it. The wife and I are looking at starting a few services/businesses/products on our own. Some technical related, some not; just chasing our hobbies and interests. Looking around at the costs versus control of shar...
Rhycer - I live in the Twin Cities and will give a hearty recommendation for IPHouse . You already have a Qwest DSL circuit provisioned to your house, so it should be fairly seamless to call IPHouse and have them become the active ISP on your circuit. They'll give you a static IP (or more if you need it) along with fre...
0
1
123
2009-12-07T18:29:25.223
infrastructure
serverfault.com
257,857
What is the difference between uninitialized object variable and object variable initialized to null in Java
I have the following two object variables [CODE] Definitely both 'a' and 'b' are not referring to any objects. Now if I invoke following statement [CODE] There will be a compile time error, whereas if I invoke the following statement [CODE] There will be no compile time error but there will be a runtime error. What is ...
Thats because the state of local variables is controlled within its scope [CODE] Which is not the case for fields [CODE] Now, why its fine to set a variable to null and use it immediately? maybe that is a historical mistake that sometimes leads to horrible mistakes [CODE] Now what's the semantic difference? [CODE] just...
16
4
40,150
2014-10-02T13:34:21.623
data_quality
softwareengineering.stackexchange.com
63,360
Degraded RAID 5 volume not showing up in seperate host
We have a (very) old server with 3 x 9gb SCSI drives in a raid 5 configuration. After some power issues the server came back up with a degraded logical drive according to the cards bios. The card sees the card, reports the logical drive is degraded and then continues on with its post. However, after the card bios scree...
This does not help you, but: "RAID is not a backup solution" is what we are all thinking! Do you have a backup of the RAID card configuration? It sounds as if that's been reset...
1
1
567
2009-09-08T14:51:42.697
database_errors
serverfault.com
283,302
How to change the default domain controller when querying AD in a different site?
We have 2 different locations, and at both site we have multiple domain controllers (Win2008). In our application we use Serverless Binding to execute our LDAP queries http://msdn.microsoft.com/en-us/library/ms677945(v=vs.85).aspx . If we look at de DnsHostName of the LDAP://RootDse on site B we always get the default ...
This can occur if someone has adjusted the domain controller's DNS priority (or weight) so that lookups would prefer a dc over another. (LdapSrvPriority) The _ldap values are observable in the dc._msdcs.domain.com dns zone. This may also occur if someone has adjusted the Netlogon service so that the DNS mnemonics for t...
3
2
16,870
2011-06-23T06:17:47.837
infrastructure
serverfault.com
357,550
Verifying Access Token in Each Service of a Microservice Architecture
I'm working on a application which is implemented using microservice architecture. There is an authentication service (A) which uses jwt standard, and there are other services in the application like S1, S2, S3 and so on. Now for example S1 receives a request, it should validate the token to see if the user is authoriz...
Validate the token in the service by checking the signature. The whole point of sending a jwt with claims is so you DON'T have to hit the auth service again. Doing so introduces a bottleneck to your architecture and defeats some of the reasons for going with microservices
3
4
4,368
2017-09-17T07:10:10.207
data_quality
softwareengineering.stackexchange.com
517,827
Hardware spec for a small business virtual server
I am in charge of specifing a new server for our business I would like to virtualize a few servers to try and reduce cost and simplify backup/disaster recovery, we have less than 20 users and only about 5 of these are heavy network users, and a budget of approx £2500-3000 Our current solution is 7+ year old ibm x206 se...
This is a good start. I would spec this with Enterprise SAS disks instead of Nearline/Midline SAS. I would also make sure to use the 1GB or 2GB Flash-Backed Cache (FBWC) with the Smart Array P420i controller. I'd suggest stepping up to an HP ProLiant Base Model (versus Entry), as you'll need to spend too much to bring ...
0
0
339
2013-06-22T19:54:23.747
database_errors
serverfault.com
1,129,574
RAID arrays failed, now will not restart; mdadm --examine shows drive healthy but --assemble fails missing two disks
This is a Mint 21.1 x64 Linux system, which has over the years had disks added to RAID arrays until we now have one array of 10 3TB and one array of 5 6TB. Four HDs dropped out of the arrays, two from each, apparently as a result of one controller failing. We've replaced controllers, but that has not restored the array...
Always make an image-level backups of all drives in the array before attempting any potentially destructive [CODE] commands. With these backups at hand you can later attempt recovery on a VM outside the box. Examine [CODE] field in for failed drives in the output of [CODE] to determine exact sequence of events when dri...
2
1
330
2023-04-24T20:39:29.047
database_errors
serverfault.com
185,244
Fernando J. Corbató's “Constrained languages”
For his 1990 Turing award speech , Fernando J. Corbató listed reasons why complex systems will inevitably fail. In his conclusion, he gives some suggestions for decreasing the probability of failure. He lists one idea as follows: [U]se of constrained languages for design or synthesis is a powerful methodology. By not a...
A "Constrained Programming Language" is simply one that does not provide (easy) ways to do things that are irrelevant to the languages purpose. Note that's "irrelevant", not "dumb", "stupid" or "incorrect". A fair example of this might be ISO/ANSI SQL (before SQL-92), which had no way in the query language to express m...
13
8
458
2013-01-30T07:02:37.510
data_quality
softwareengineering.stackexchange.com
197,976
DB Schema for online market
I'm just search for advice. I have . Every Product type has its own set of characteristics. The Big problem is when someone add new Product type, aslo need create new table with product characteristics. I can see only one solution without DBA, saving all products characteristics in one table but this is not good.
"Entity-Attribute-Value" or EAV design pattern allows you to create new attributes for products without modifying the database structure. Aaron Bertrand has an excellent article on the advantages and pitfalls of this design over on SQLBlog.org . A simplified example, based on your requirements: [CODE] This will insert ...
1
2
1,545
2018-02-15T08:05:52.100
warehouse_errors
dba.stackexchange.com
1,152,935
What is the best way to achieve SSO for Apache 2.4 within a Windows domain?
I would like to implement an SSO authentication (without login/password prompt) on a PHP 8 intranet app, which runs under Apache 2.4 x64 for Windows. My company has an Active Directory / LDAP / Windows environment. I managed to do this via the Apache mod_authn_ntml ( NTLM module for Windows ) and also via the SSPI modu...
SSPI is generic Windows interface to both Kerberos and NTLM; it's the Microsoft equivalent of GSSAPI. A module that uses SSPI should accept both mechanisms – though it's up to the client to decide what is actually offered when it sees the [CODE] . Keep in mind that Kerberos requires the server to have its own Kerberos ...
1
2
212
2024-02-05T12:44:40.333
api_errors
serverfault.com
889,878
add multiple webservices on same server and port
What I have this on a testing enviroment server01.domanin: 8080/urlofws?wsdl server02.domanin: 8080/urlofotherws?wsdl the two webservices should be able to use via loadbalancer thesite.domain:/urlofws?wsdl or thesite.domain:/urlofotherws?wsdl this is what I have done [CODE] I know this is not usefull to have multiple w...
As @jordanm says, use Proxy, take a look at the Apache's Reverse Proxy Guide . Simply, inside your [CODE] , do something like this: [CODE] I wouldn't add this as an answer, but I don't have enough reputation to comment.
0
0
44
2017-12-28T13:29:18.107
infrastructure
serverfault.com
409,588
Using a field, variable, or column for multiple purposes
I am in a situation right now where a solution has been proposed that uses a csv file. The proposed file structure essentially contains three atomic values; ID Thing 1 Thing 2 Fine. As we were discussing this solution, someone mentioned that some customers might use our ID while other customers might use their own, dif...
Well, a single field shouldn't do two different things, but in your case, it's not a single field. The id field from one customer's file is a separate field from the id field from another customer's file. They just happen to share a name at the moment. If you were mixing internal and external ids in a single column in ...
-2
0
61
2020-05-02T12:40:42.473
api_errors
softwareengineering.stackexchange.com
615,375
How do I set up second IIS website with different domain name on a single server?
I've never done this before so I'm looking for help. we have a domain, domain.com, and the default site set up in IIS with a DNS forward lookup entry to have domain.com point to the site host so we can access domain.com/application. What my developers want is for me to set up a second site beside the default site calle...
If you are doing this on a single IP address, you will need a host header . If you are using separate IP addresses per site with both IPs assigned to the same server, you should modify the bindings for that site so that each site is bound to a different IP address.
2
4
17,076
2014-07-25T02:39:06.683
infrastructure
serverfault.com
222,018
Are Windows file permissions bound to the file, or the file system location?
Do Windows file permissions follow: The file, or... The file system location Say I have a file at "C:\MyFile.txt". I set some very specific permissions on this file. Later, I copy a new file over the top of that one. Same name, same file system location. Does it inherit the same permissions, or does it bring its own pe...
At the moment a file is created, it gets assigned those permissions marked as Inheritable-by-files from the directory it was created in. For the life of that file it will only change permissions if: Permissions are changed directly on the file itself A change higher up the directory-tree affects one of the Inherited pe...
5
12
2,135
2011-01-13T13:59:53.627
infrastructure
serverfault.com
169,833
Is it a bad practice to write shell script with many if-else statment and for loops?
I am maintaing several data process shell scripts which are full of if-else statements and for loops . I try to make the scritps tidy and easy to debug. When I read some suggestions about shell code best practice, it seems that is is not a best practice to have many if-else and for loop statements. So what should I do,...
It's never a good idea to have too many embedded if/else or loops, but in their own right, lots aren't inherently a bad thing. Consider splitting out the loops unto utility functions. For example, if you have: [CODE] It would be much better read as [CODE] with the utility functions defined appropriately. If you then do...
3
4
954
2012-10-14T15:40:13.707
api_errors
softwareengineering.stackexchange.com
566,669
Starting MongoDB with SystemD by listening to a Socket
I'd like to run MongoDB on my development machine whenever the Port 27017 requested but not before that. I already got parts of the file /usr/lib/systemd/system/mongodb.socket but now I'm stuck what else goes in there and I don't know if this is the right directory. [CODE] My question is basically: What else do I need ...
Services need special support to work with systemd's socket activation. The connection is passed via file handles at startup and the service should check if environment variable LISTEN_FDS is set. At the moment mongodb does not support this kind of invocation. The path /usr/lib/systemd/system/mongodb.socket would be te...
1
2
475
2014-01-12T01:26:03.177
database_errors
serverfault.com
259,806
How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
This is a classic problem which I'm sure has been solved many times by many different people. I don't have any formal training (I've not studied computer science or any other such academic subject) and so I'm not sure of the best way to solve the problem I'm about to describe. If we imagine the below diagram is an exam...
I understand finance industry uses a system of "after-the-fact" checking and fixups to resolve errors. ie, you make each transaction on the individual systems independently (such that you know that each system is correct) and you write to a log the details of each transaction. These logs are then compared later, and if...
7
4
3,618
2014-10-12T15:59:05.023
api_errors
softwareengineering.stackexchange.com
1,066,967
Installing ASP.net on Ubuntu 20.04
I'm trying to add ASP.net onto my Ununtu 20.04 server. As per: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu They tell you to: [CODE] Thats all good, apart from it gives a 404! [CODE] Is there another way to do this? I've searched around, but can't find anything about the key being a 404. Thanks! FW...
Microsoft have now sorted this. Was an issue their end (and a lot of pretty miffed developers chasing them down)
0
0
534
2021-06-17T06:09:01.497
infrastructure
serverfault.com
815,750
App Engine Ruby flex environment app.yaml is ignoring env_variables RAILS_ENV
We are using GAE with Ruby flexible environment, and we're trying to deploy a rails app with staging configurations (i.e. RAILS_ENV=staging). According to https://cloud.google.com/appengine/docs/flexible/ruby/configuring-your-app-with-app-yaml we should be able to set the value of RAILS_ENV configuring an app.yaml with...
This actually looks like a misfeature, as the overview documentation states that variables like [CODE] and [CODE] get set to 'production' on purpose. These should actually be treated as default values which can be overridden in [CODE] . I've created a defect report which you can star for updates here: https://code.goog...
2
2
534
2016-11-18T14:55:58.573
pipeline_ops
serverfault.com
265,739
Multiple versions of asp.net framework
I have a new installed w2kr2 with asp.net4 - some users need asp.net 3.5 - can I install that without problems and have both versions running?
You can have multiple different .net frameworks installed with no ill effect. We have an apps that require both 3.5 sp1 and 4 on the same server 2008 box, and everything works just fine together.
1
1
70
2011-05-03T08:55:58.930
infrastructure
serverfault.com
330,205
Which regulation does this sentence about IPv6 refer to?
"For this, you need to obtain an IPv6 address from your ISP. Technically this could be a [CODE] prefix (exactly one IPv6 address), but according to regulation it needs to be at least a [CODE] prefix." from the OpenWRT Wiki To what regulations are they referring? (So that if I need to defend myself when the time comes, ...
It likely refers to the RFC 6177 . [CODE]
6
10
196
2011-11-11T19:05:47.833
infrastructure
serverfault.com
181,145
Remote administration of customers' Windows servers, no Administrator access
I'm after some general advice and perhaps specific tools/products to assist in automating the administration of customers' Windows boxes. Here's the environment: We give customers a Windows box and they have full control of the Administrator account. We have a secondary logon, which is a member of the Administrators gr...
Unless you have access to either the local Administrator account (and it has to be The Administrator account) for a stand alone server, or you have an account is a member of the Domain Administrators group for a domain member then you cannot suppress UAC behaviour unless you turn it off completely which is a bad idea. ...
0
1
281
2010-09-14T19:50:49.877
infrastructure
serverfault.com
226,579
Connection string for connecting mongo database with SSL enabled
Am facing some below problem in my mongodb replication environment I have 3 replica set environment with SSL enabled and ssl mode as preferSSL 3 servers has 3 different Key file with common CA file when i try to connect the mongo shell with below command it works fine mongo --ssl --host hostname:port --sslPEMKeyFile "/...
It depends on which driver you are using. https://docs.atlas.mongodb.com/driver-connection/#driver-examples
1
0
1,087
2019-01-08T12:18:19.613
database_errors
dba.stackexchange.com
202,165
A good use case for Postgres Schemas?
I'm developing a database for time series analysis of price bars for stocks. The associated metrics ("technical indicators") will derive on as many as 10 successive layers of dependent set operations. Using Postgres 10.3 . There are two ways to derive a layer-1 metric " metric1 " that becomes an input to most of the ot...
The development process has falsified the premiss of the question , i.e. each of the 2 derivations of metric1 have become inputs to derivations at several metric levels. If this had not been the case, I'm now inclined to implement the original scenario via alternate views that duplicate query logic while being based on...
2
1
513
2018-03-24T02:47:51.140
warehouse_errors
dba.stackexchange.com
421,502
Is this normal that api-verify.recaptcha.net points to google.com?
A user just emailed me saying he could not complete registration in my website. I just checked and already found out it's the recaptcha that is causing the problem. I have been using this recaptcha php library and it has been working perfectly for more than 3 years until today: https://developers.google.com/recaptcha/d...
Yes, this is normal. ReCaptcha is a Google product , and one of the names of the server that serves it, is indeed, [CODE] ... and here's a screenshot [CODE] from my machine (below) for you to look at.
1
1
1,541
2012-08-27T07:54:51.410
infrastructure
serverfault.com
63,863
Hidden user rights
I'm running [CODE] . I have a SQL Server user, that the application uses to connect to my database. I've removed the user from all roles except public and the login from all database roles. When I log into my SQL Server, I'm able to connect to the database and although I can't read from any tables, I can still create a...
I bet [CODE] is one of the things that shows up here (replace [CODE] with the login name you're concerned about): [CODE] For each database permission found that you don't want them to have, run a revoke (for example, for [CODE] ): [CODE] And for each schema where they have explicit privileges (like [CODE] ) - just repl...
0
1
1,384
2014-04-24T20:32:39.470
database_errors
dba.stackexchange.com
822,585
Baikal Folder not Found
I tried to install baikal. Works perfectly, configuration, the website perfect. But when I try to get my books I get this error: [CODE] This is my nginx config [CODE] I do not know what this error means, maybe you could help me? Thanks for help Update I changed my php block like this: [CODE] Now it works. Thanks.
You want to add a [CODE] block to your PHP handling location: [CODE] This will give nginx a list of different things to try as it tries to locate the correct URI to run.
-1
0
255
2016-12-24T09:30:00.997
infrastructure
serverfault.com
249,726
Query to get counts of values per column
I have a big table of vendor-supplied data (that I can't change around much) with about 315 columns. I suspect that many of the columns are not being used (or at least not consistently). I'd like a query that can give me the count per column of the values in the table. For example [CODE] So this would give results some...
Given this data: [CODE] You can use this block of code: [CODE] ✓ col1 | col2 | col3 | col4 ---: | ---: | ---: | ---: 2 | 3 | 3 | 0 db<>fiddle here
2
3
4,395
2019-09-26T20:42:04.023
warehouse_errors
dba.stackexchange.com
265,747
Recommended memory assignment for VMware vSphere Hypervisor
I'm planning to deploy a VMware vSphere Hypervisor for my office to host two Debian-based virtual machines: Apache+MySQL web server for internal applications: CRM, ticket system and a wiki. Repository server for Git and Subversion, accessed through HTTP. We have a physical machine with 500GB of storage, enough CPU (4 x...
It's possible to set a reservation in vSphere but you shouldn't need to do this under normal circumstances. You should not need to make any automatic memory reservation on ESXi for the hypervisor. It will preserve sufficient memory for its usage by itself. Note that vSphere is (from the ground up) a completely differen...
1
2
685
2011-05-03T09:34:57.677
api_errors
serverfault.com
417,639
why i cannot start new ssh connections to remote server?
this question is not the same as others, who asked for that they cannot connect to server, the issue i have is that i cannot start more new ssh connections... now i am connected to remote server using ssh, but when i try to start a new ssh connection, the server just refused to allocate pty, why this happens? is there ...
First off since you can connect via ssh, you can choose to not create a new PTY with ssh using the -T parameter (this parameter disables creating a PseudoTerminal). If you use PuTTY, under SSH tree check the "Don't allocate pseudo terminal". There is possibly a limit of PTY's set by the host. If you are on an OpenVZ se...
1
4
4,430
2012-08-15T03:36:06.953
infrastructure
serverfault.com
100,677
stop windows service from within sql server
I'm running maintenance plans at night on my SQL Server 2008 database for reorganizing the indexes and shrinking the database. While this plan is running a windows service that I built that queries the DB keeps failing with timeouts. How can I stop the Windows Service from within the Maintenance Plan?
you can use the xp_cmdshell SP to issue a [CODE] then a [CODE]
0
1
2,992
2010-01-08T00:45:19.850
database_errors
serverfault.com
599,728
Postfix - searching emails (logstash, greylog or other solution)
We are currently having ~100 servers and all of them are using remote syslog, so we have aggregated all logs on one server. The most questioned problem from our support team is: Has an email from .... to ... been delivered? I'd like to give to our support team access to some logging tool and some guide for searching in...
Logstach and graylog are probably good tools to solve you problem. But you could maybe take a look at rsyslogd. You can use it to specify logs templates, selector and filters, and take different actions based on that. For example, when log line matches the first filter regexp it can trigger an insert in an SQL DB or a ...
4
1
3,221
2014-05-30T14:33:18.700
infrastructure
serverfault.com
714,550
forwarding from internal to external network does not work
I have a Ubuntu 14.04 LTS server with two NICs. One is connected to the internal network (eth0, 192.168.4.0/24) and the other one is connected to a router with internet access (eth1, network 192.168.2.0/24). What I want to achieve is to give the clients of the 192.168.4.0/24 network internet access. So I ran the follow...
Did you check your routes eg default gateway? Check route -n. Otherwise you could try setting a rule to route back the packets from the established connections. [CODE]
0
2
99
2015-08-16T18:15:44.620
infrastructure
serverfault.com
813,737
script exited with error status 127
i wrote some scrip for setting route on specific interface on linux (CentOS 6.0) and put them into Networkmanager script path (/etc/Networkmanager/dispatcher.d) with highest prefix number.(i give execution permition too.) this is my script: [CODE] but when eth1 is up i see this error on my syslog-message list: [CODE] c...
I can't comment, so I'll have to reply. Error 127 means that either command used is not found or your script is not +x. More info from advanced bash-scripting guide at http://tldp.org/LDP/abs/html/exitcodes.html
0
1
6,529
2016-11-08T08:57:42.293
infrastructure
serverfault.com
37,460
MySQL Slave Lagging Almost Daily -Ver 5.5.17 ( Master & Slave )
I am observing this lag in a continuous manner. Investigating in the bin log events, i found the following information. Slave executing the relay Logs slowly. [CODE] Please give me advice. [CODE] Observing the bin logs, I found delayed inserts events: [CODE]
First of all, you aren't seeing the actual useful information from the binlog (like, what query is actually being executed at that binlog position) because you aren't using the [CODE] option, yet you say your master's [CODE] is [CODE] . [CODE] specifies to [CODE] that you intend for row events to be decoded and display...
0
2
570
2013-03-24T13:57:05.780
database_errors
dba.stackexchange.com
731,435
Root server with changed network settings - how to avoid to be shut out?
I just worked on a local Linux server in my office, connecting to it via SSH. I changed some network settings. Specifically, I added a simple network bridge that replaced the previous ethernet connection (eth0). In both cases, the network address is a static IPv4 address. After I did those changes and restarted the net...
There are at least two ways to do this differently: Remote console (HP ILO, DELL DRAC, ...) allowing you access via its own NIC and its own IP, which is independant from the main OS settings. If you err you can just 'remotely take the console' and fix things. Set up a reboot to a safe working state on a timer. Make you...
1
4
173
2015-10-24T19:32:27.547
infrastructure
serverfault.com
230,984
ETL, Production, Development -- Should these be different servers? Instances?
You can say I've become an "accidental DBA" as people have left this company and I'm managing many aspects of the BI system now suddenly. My predecessor left quite the mess regardless but I'm trying to think of the best way forward in terms of hardware architecture and logical partitioning. We have a SQL-Server Data Wa...
There are probably a hundred reasons if we think about it really hard, but there are really just a few reasons that are so important that we never bother thinking of others: Resources: If you haven't had a situation yet were someone did something on a non-production server that sucked up all the memory, CPU, or I/O, yo...
3
2
1,051
2019-02-28T18:17:13.667
database_errors
dba.stackexchange.com
646,018
Cross-Realm trust verify failed with 'netdom' command
Question 1: Am having my ActiveDirectory in Windowsserver 2012 machine - its domain name is AD-DEMO.LOCAL Kerberos admin-server is in another Ubuntu machine - its realm KERBEROS.COM Added trust in 'Active Directory Domains and Trusts'. Properties set for the trust realm in AD are, transitive and two-way checking. Tried...
If you’re using the [CODE] command, you would need to specify administrative credentials (Domain Admin/Enterprise Admin) for both domains using the switches [CODE] , [CODE] , [CODE] and [CODE] Full Syntax: [CODE] Reference: Netdom trust To verify a trust using the Windows interface Open Active Directory Domains and Tru...
5
0
8,312
2014-11-21T06:52:38.593
infrastructure
serverfault.com
138,488
Extracting data from SQL Server linked server
I am using MS SQL Server 2012, and I am trying to extract data from a Linked Server database. In SQL Server management studio, I can see the linked server. I can browse the database on the server. I can see all tables in database. When I try and query a linked table [CODE] I get error: The OLE DB provider "MSDASQL" for...
Check the link server setup and see HOW the users connect to the link server. This can be done by going to Server Objects in SSMS -> Linked Servers -> [Link server name] -> right click then select Properties -> security tab. It can be done without a security context, using the current login's security context, or it ca...
0
1
2,811
2016-05-13T15:18:13.027
database_errors
dba.stackexchange.com
315,618
iSCSI SAN - Network adapter bottleneck
My new database server (Windows Server 2008 R2) has a 4 Gbps connection to my Dell EqualLogic iSCSI SAN. I've been testing it by backing up multiple databases at the same time. There appears to be a bottleneck with the network adapter. It shows up as 4 1 Gbps connections, and the network utilization never exceeds 2 Gbp...
What kind & how many hard disks does your SAN have? 2Gbps is around 250MB/sec which is very decent performance if you have a pretty large array of 7200rpm SATA drives. If you need higher performance you should look into equipping your SAN with SSD disks which offer higher I/O.
3
3
2,705
2011-09-26T16:44:02.027
database_errors
serverfault.com
304,823
svn authentication fails for everyone except wildcard-user
I have been using svn for past few months (with default authentication rules) and only recently decided I wanted to add a bit more control over the repository authentication. I have been looking through this book ( http://svnbook.red-bean.com/en/1.4/svn-book.html#svn.serverconfig.pathbasedauthz ), and I thought I under...
I'm not sure but could you please try to add [CODE] underneath the [CODE] to see if it works.
1
0
457
2011-08-25T09:05:40.600
api_errors
serverfault.com
97,827
design database with 2 simillar tables
I have a database which has [CODE] and [CODE] tables, these two tables are different in a few fields and each one has own comment table [CODE] now , I want to ask which modelling approach is better ? design four tables as showed above design [CODE] and [CODE] separately with common comment table merge two product table...
Read a plain language description of your data. A Product is a noun. A noun can become an entity and an entity becomes a table (or several tables). The words buy and sell are verbs, actions that take place with entities. Verbs do not become tables. A suggestion was to have a transaction table. Fine, "transaction" is a ...
1
0
53
2015-04-14T16:25:49.900
warehouse_errors
dba.stackexchange.com
639,041
Windows cant open mac shared files unless read only
I recently setup a mac server (Mavericks 10.9.5, Server 3.2.1) in our office environment, mostly mac but there are two windows pcs. The windows 8 machine can connect and open files/folders without issues. The windows 7 machine can connect and browse folders but cannot open files. I have found a workaround for this, set...
The answer is simple and completely noobish and yet it has cause me two weeks of pain. A bit of background on the issue, the windows pc could connect within the first week of the server operation, there after it stopped working (this is where the confusion came in). Solution: Check your antivirus setup, the software th...
0
0
674
2014-10-23T08:52:45.993
infrastructure
serverfault.com
248,856
Slow query when having 'contains' and '=' together in where clause
The following query takes about 10 seconds to finish on a table with 12k records [CODE] But if I change the where clause to either [CODE] or [CODE] It'll return instantly. Both columns are indexed and the lastName column is also full-text indexed. [CODE] Here is the Execution Plan What could be the problem?
Your execution plan When looking at the query plan, we can see that one index is touched to serve two filter operations. Very simply put, due to the TOP operator, a row goal was set. Much more information & prerequisites on row goals can be found here From that same source: A row goal strategy generally means favouring...
8
12
1,361
2019-09-16T08:15:29.997
database_errors
dba.stackexchange.com
12,666
SQL Server: Duplicate Index Question
We recently has a massive performance problem on our system, which we narrowed down to a problem with I/O on the LUN. IOPS increased twenty-fold during the period when the problem was occuring. The LUN in question was the one that tempdb uses. This is all according to our network/server admins (I have no network/SAN/Se...
Without the execution plans, it's impossible to say, but I've seen a similar scenario pop up. Had a client once whose database was teetering on the edge of being able to fit in memory. Someone added an index on a large table, queries started using it (which kept big chunks of it in memory.) Things all used to fit in me...
3
2
360
2012-02-10T23:12:42.910
database_errors
dba.stackexchange.com
142,405
Default privileges to execute function
I have a user that has select only access but was granted execute on a single function in our mysql db. The issues I'm running into is other more privileged users will drop and create this function periodically which causes my less privileged user to lose the execute privilege they were granted. Is there a way to grant...
I find no MySQL functionality to achieve what you need, you have to create what you need. If you use a statement like: [CODE] will apply: 14.7.1.4 GRANT Syntax ... Important MySQL does not automatically revoke any privileges when you drop a database or table. However, if you drop a routine, any routine-level privileges...
1
1
2,177
2016-06-27T20:42:25.697
database_errors
dba.stackexchange.com
922,225
WSUS failing to downloading updates, but, still showing the Downloading Status as complete
Before I start, I'd say that I've done enough research for the problem, and I had also raised a case in the past with Microsoft Support to come to a conclusion for this problem. This time, the problem is with an unexpected twist. Problem Statement : WSUS is failing to download updates; refer the event viewer logs and t...
For your proxy download issue you could try to running BITS in foreground mode. in powershell [CODE] To resolve the downloaded files status inconsistency At the command line, browse to %drive%\Program Files\Update Services\Tools> type: wsusutil reset This will re-scan for files that require downloading.
0
1
17,289
2018-07-17T07:53:15.200
infrastructure
serverfault.com
507,031
IIS - Change IP address - forbidden access
I am hosting several sites on IIS 7.5 on Server 2008 R2. The server has a local IP address - 192.168.0.2. All port forwarding goes through the router and all works fine. I have a license file for CUteEditor which is bound to our external IP address, meaning (i think) I need to change the bindings for each website so th...
Are you really hitting your IIS site? There's not a lot of information about your configuration here, but what appears to be happening is that the router that is port forwarding is expecting to find the site at 192.168.0.2, and now that you've un-bound your site from that IP, it's likely finding the default site at tha...
0
1
1,518
2013-05-10T12:15:57.100
api_errors
serverfault.com
108,946
Ping issues with Windows Server 2008 R2 with mail server!
For some reason I can ping all servers in my network except for the mail server and the mail server can ping all servers except the windows server 2008 R2. The firewall has been disabled and still it doesn't respond. The weird part is that every once in a while it will all of a sudden start allowing pings and then just...
Perhaps test with PathPing to help determine where along the path the signal is dying? Note: You have to run PathPing in an elevated command prompt on Windows 2008 to get results.
0
1
3,254
2010-02-02T22:00:40.517
infrastructure
serverfault.com
297,204
When is it ok to assert for a pointer being non-null?
This came up as part of a code review for a code segment which resembled this: [CODE] In my opinion that assert is redundant since if [CODE] is [CODE] it will crash anyway in the next line when it tries to call [CODE] . (Of course if [CODE] doesn't require dereferencing this pointer nothing will happen on release build...
The value of the assertion is: It explicitly documents the assumption of the programmer that [CODE] returns non-null. This is especially valuable if the function at some point in history changed behavior, or if there are specific circumstances in which the function can return null, but the programmer is asserting that ...
5
10
4,913
2015-09-14T09:22:29.300
api_errors
softwareengineering.stackexchange.com
36,858
MySQL: Can't find .ibd files after turning on innodb_file_per_table
Question: This a question about MySQL. Let me give the specifics of my setup: Mac OSX 10.6.8 MySQL 5.5.28 Workbench 5.2.44 for all administration InnoDB engine exclusively In order to manage limited hard drive space on my laptop, I'd like to turn on the [CODE] option so that each table gets its own [CODE] file instead ...
The .ibd files will be under the innodb_data_home_dir under a subdirectory, the subdirectory name matching the database name. Given [CODE] and [CODE] is set: [CODE] then when table test.mytable is created, the .ibd file will be located in [CODE] (It's possible that the ibdata1 file will grow to accommodate rollback for...
3
1
12,796
2013-03-16T23:43:11.957
database_errors
dba.stackexchange.com
39,110
Why can't the IIS installer can't copy staxmem.dll despite it being in the folder specified?
I'm running Microsoft Web Platform Installer and it's trying to install IIS5.1. Unfortunately I've got the following error: Setup cannot copy the file staxmem.dll Ensure that the location specified below is correct, or change it and insert 'Windows XP Proffessional Service Pack 3 CD' in the drive you specify. c:\window...
I also asked this question over on SuperUser (partly to kick start my account over there) and got the answer. This is the relevant part of the answer: That support page is misleading. When it says if the tool returns the message: "This operation may find that this database is corrupt" It means does the output contains ...
0
2
2,782
2009-07-10T19:37:17.783
infrastructure
serverfault.com
91,719
DBCC SHRINKFILE EMPTYFILE not emptying
Trying to remove an extra database file from a database using EMPTYFILE on SQL Server 2008 R2. [CODE] And getting this error Msg 2555, Level 16, State 1, Line 2 Cannot move all contents of file "MY_DATABASE_7" to other places to complete the emptyfile operation. The other database files aren't limited in growth in anyw...
Increasing the size of the other database files by 1GB resolved the problem.
1
1
8,380
2015-02-11T16:59:44.830
database_errors
dba.stackexchange.com
275,052
OOP Practice: how to best handle dependent dependencies
I have a problem with the design shown in the picture. My [CODE] class has some [CODE] (or simply Blocks). The section should be drawn on a page (a Bitmap as device context). It sets the blocks of the page and calls [CODE] . The page sets the [CODE] object of each block and calls [CODE] [CODE] could not be set in the c...
Should I pass the Graphics to the Draw() function? Well, when I saw this design, first thing which came into my mind was "why the heck does the [CODE] have a Graphics attribute at all? Should it not be possible to draw the same block on two different graphics contexts? Should the [CODE] object not have a lifetime which...
7
9
1,479
2015-03-03T06:18:10.550
api_errors
softwareengineering.stackexchange.com
397,589
Trouble with Wildcard Subdomain and private nameservers on Plesk 10
So Im currently with Media Temple on a DV server and we're running Plesk 10. We've been trying to set the domain up by this article Media Temple have : http://wiki.mediatemple.net/w/(dv):Configure_a_wildcard_subdomain instead of routing to the domain, eg test.domain.com -> domain.com, it just brought us to a media temp...
This may be an outdated recipe in the article. If your server is up to date and you have Plesk 10.4, adding a wildcard subdomain should be much easier: just "Add subdomain" and type "*" in its name (there would be comments on the screen suggesting it).
0
0
232
2012-06-11T13:31:57.713
infrastructure
serverfault.com
170,566
PCI-E 2.0 x8 SAS/SATA RAID controllers recommendations for Ubuntu 10.04?
What RAID controllers are there that meet the following? Works out of the box with good performance with Ubuntu 10.04 LTS PCI-E 2.0 x4 or x8 Support for 8 or more SATA/SAS 6Gb/s drives Enough internal bandwidth to support full speed of all drives simultaneously Able to expose all the drives as JBOD so that Linux softwa...
If you want JBOD, why do you search for the raid card? You may get much cheaper HBA i.e. LSI SAS3081E-R .
0
1
1,109
2010-08-14T19:06:01.573
infrastructure
serverfault.com
82,958
Foreign keys can't be added because they exist but they don't exist!
I have a conundrum. I am re-engineering a sqlserver 2005 database, and in the course of doing so have attempted to correct a simple lookup table flaw between tblUsers, tblUserRoles, and tblRoles (tblUserRoles had its own pk field). In trying to make this change, foreign key relationships where dropped and recreated, ex...
You cannot add the constraints to [CODE] because the data within this table already violates the constraints that you are trying to add. a) Double check that all [CODE] values in [CODE] reference [CODE] values in [CODE] b) Do the same as the above for [CODE] and [CODE] . c) As I imagine both of the above will return re...
0
2
4,982
2014-11-18T16:47:09.893
data_quality
dba.stackexchange.com
95,462
How do I get the previous or next row to compare with the current row for two columns?
I need to show a list of employees and their absence days with hours. I have the tables Employee LogAbsence LogTimeAttendance From Employee I need: EmployeeID(nvarchar(16),null), Name(nvarchar(40),null) From LogAbsence: FromDate(datetime,null), TillDate(datetime,null), AbsenceId(smallInt, null), KeyNo(int, null) From L...
If I understand correctly, you need: [CODE] Based on the sample you provided, the [CODE] could possibly be based on the (simpler) [CODE] . If [CODE] and [CODE] have no time parts (always [CODE] , then the [CODE] to [CODE] are not needed. But then, why isn't the type of these columns [CODE] ?
0
2
3,204
2015-03-17T14:17:55.333
database_errors
dba.stackexchange.com
386,547
Configuring postfix to fight spam, 2012 edition
EDIT: This question was poorly asked, later I found another question which answers what i wanted to know: Spam prevention tips for Postfix I'm running a small (20 users, 30 mailman-lists) server with postfix. I think it's configured fine, more or less. I spent 2 days reading up on all kinds of material on postfix confi...
check this tutorial . it's getting quite regularly updated - i used it ~5 yrs ago, i used it ~half year ago. it tells about the whole ecosystem [amavis, spamassasin, dcc, pyzor, razor and more], not just postfix.
-1
1
1,105
2012-05-06T21:03:21.077
infrastructure
serverfault.com
998,888
rsyslog over RELP fails on Ubuntu 18.04
On Ubuntu 18.04 and rsyslogd 8.32 logs are sent correctly over tcp without RELP with the next configuration: Server [192.168.1.201] (/etc/rsyslog.conf): [CODE] Client (/etc/rsyslog.d/50-default.conf) [CODE] When I try to implement the RELP protocol it doesn't send the logs to the server. On the client load the omrelp [...
Without seeing the complete config file you are using on the server, my first suggestion is make sure you are not loading the imtcp and imrelp on the same port. Since they both use TCP that would cause an issue. Have you checked the logs? Do you get any error messages? You can check this by running [CODE]
0
0
883
2020-01-14T12:38:40.887
infrastructure
serverfault.com
147,440
How to write a query that will retrieve the items with sold amount
Problem : I have a table which has three columns such as item id ,transaction_date,Amount_sold. I want to have a list of item with Amount sold which are sold today but if the same item was sold yesterday then it should not come in my list.
Not exists will work here [CODE] EDIT based on OP's latest observations : [CODE]
0
1
84
2016-08-21T18:09:41.713
warehouse_errors
dba.stackexchange.com
77,129
Tsql Query speed slow due to Or within where clause, causing index scan instead of seek
I have been working on making this query work more efficiently. I found that the number of Ors within the where clause are the biggest problem within this query. This query sits in a stored procedure. I am to the point where the only options I can think of is. : Creating 16 different queries for all the different inbou...
This is what I call the "kitchen sink" stored procedure - you want one procedure that handles all possible combinations of search criteria that a user might enter. It is virtually impossible to make SQL Server derive a single execution plan that will be optimal and efficient for all of these combinations - I don't care...
0
9
4,329
2014-09-19T21:24:59.260
database_errors
dba.stackexchange.com
784,670
How control bandwidth with mikrotik queue
I have a mikrotik router and i want to limit the speed of wlan users. I create a queue for target = wlan and set the limit downloa and upload = 64k, but when i test it, this seems not working correctly! Test download speed > 500k. The router config is default. How can i do that [CODE]
Disable any fasttrack rules on your firewall. Fasttrack will bypass pretty much the whole stack - including the queues. It's mentioned very clearly in the documentation. http://wiki.mikrotik.com/wiki/Manual:Wiki/Fasttrack Description IPv4 FastTrack handler is automatically used for marked connections. Use firewall acti...
0
1
11,780
2016-06-17T18:27:38.757
api_errors
serverfault.com
546,358
Non paged memory usage climbs by the EVEN process (event logger/viewer) till its exhausted
I have a server with a non-paged memory issue. Usage slowly climbs until it is exhausted and the server stops serving web pages as IIS cant get enough non paged memory. This a 32bit windows 2003 server. Task manager shows no suspicious activity and all the running processes there are consuming 'normal' amounts of NP me...
First thing I'd check is to make sure that [CODE] is set in SQL Server. This is a server option that tells SQL Server "this is all the memory you can have". By default SQL Server will use all available memory for things like data caches which can be bad news in a shared environment like what you have. In your SQL insta...
1
0
996
2013-10-16T09:47:28.607
infrastructure
serverfault.com
101,456
Backup and Archive Strategy Question
I am having trouble finding a backup strategy for our code assets that 'just works' without any manual intervention. Goal is to have an off-site backup (a synchronized one) so that when we check-in files, create builds, etc. to the network drive, the entire folder structure is automatically synchronized and backed-up (...
regarding software - use whatever suits you. rdiff-backup is my favorite nowadays - orchestrated with backupninja under linux and some shadow-copy bat scripts under windows. but really anything that can take snapshot of your data should be fine. just make sure you: send it another quickly accessible location regularly ...
1
1
190
2010-01-10T18:27:04.907
database_errors
serverfault.com
202,908
How do functional languages handle random numbers?
What I mean about that is that in nearly every tutorial I've read about functional languages, is that one of the great things about functions, is that if you call a function with the same parameters twice, you'll always end up with the same result. How on earth do you then make a function that takes a seed as a paramet...
You can't create a pure function called [CODE] that will give a different result every time it is called. In fact, you can't even "call" pure functions. You apply them. So you aren't missing anything, but this doesn't mean that random numbers are off-limits in functional programming. Allow me to demonstrate, I'll use H...
73
97
13,355
2013-06-27T09:42:24.273
api_errors
softwareengineering.stackexchange.com
358,566
Proper configuration for Windows SMTP Virtual Server to only send email from localhost, and tracking down source of spam emails
We manage a server that is hosted on Amazon EC2, which has web applications that need to be able to send outgoing email. Recently we received a notice from Amazon about possible email abuse on that server, so i've been looking into it. It's Windows Server Datacenter (2003, i guess), and uses SMTP Virtual Server (you kn...
For anyone stumbling onto this, in our case the SMTP server settings do appear to be correct. There was a web application on that server which was trusted to send email and was exposing a form that allowed emails to be sent out, and adding a reCaptcha to that form stopped the abuse.
0
0
533
2012-02-09T22:16:00.340
api_errors
serverfault.com
376,713
Fixed and dynamic IPs in ISC DHPD lead to double lease
I would like to have a small dynamic adress part and the most clients are assigned a fixed IP adress. My dhcpd.conf looks like this: [CODE] The motivation for the pool declaration with deny all hosts comes from the ISC DHCPD homepage http://www.isc.org/files/auth.html This will allow hosts to be first added to the netw...
The configuration checker would just match your defined pools and host address definitions against each other to find definition intersections, it would not evaluate access lists. So you would have to explicitly exclude your host definitions range from the "deny all" pool definition: [CODE]
6
6
17,645
2012-04-04T15:47:44.640
infrastructure
serverfault.com
946,857
Achieving very fast (300+MB/sec) file transfer on Linux
I'm working with high end hardware, however I'm hitting cpu bottlenecks in all situations when attempting to move large amounts of data. Specifically, I'm moving large virtual machine image (VHD) files of 2TB between two Ubuntu hosts. My latest attempt took 200 minutes to transfer 2TB. Resulting in a throughput of abou...
It's been a while since I posted this and it's getting some views, in the end I used bbcp: https://github.com/eeertekin/bbcp to saturate the network, it works extremely well.
2
0
4,573
2018-12-28T10:02:55.647
infrastructure
serverfault.com
286,814
How to quantify the work perfomed by a developer/programmer?
I know the best four naive ways of achieving this. Commit count : In the code repository count the number of commits done by a user. However this is just what the name says, counting the commits. It cannot separate near empty commits from commits having hours of thinking and sweat. Line count : Counting the number of l...
You cannot measure and you cannot quantify. Give those ideas up from the beginning. Peopleware goes into great detail about how some people offer value simply by being catalysts for the rest of the team. Those people must not be dismissed because they're not producing lines of code. Likewise, we've all worked with deve...
10
33
4,017
2015-06-15T10:26:01.207
api_errors
softwareengineering.stackexchange.com
122,190
Apache, logerror and logrotate: what is the best method?
Here's a vhost example of my sites: [CODE] I've got 12 sites running now. This gives something like: [CODE] !!! I've been looking everywhere but I've only found mod_log_rotate. The "little" problem is that the author (very good C developper) explains: "Unfortunately Apache error logs are handled in such a way that we c...
Well, I would stay with the current setup, if there is no problem with it. I fail to see how having 24 extra processes can be a problem (unless you are using 486). When setting up a fresh system, I would use logrotate. Just because I know the tool.
1
0
807
2010-03-13T13:48:42.343
infrastructure
serverfault.com
130,408
ODBC error state S1092: postgresql through ODBC
While performing an upgrade, our in-house software started to report the following strange error. It is a C++ application talking to a remote PostgreSQL database, defined through ODBC: [CODE] Both the client and the server are Centos 5.4 Xen guests with the following RPMs installed: [CODE] Its possible the schema chang...
Maybe there is something wrong not with PostgrSQL ODBC, but with unixODBC driver manager. Enable tracing of ODBC functions and see what causes this error. To enable tracing you must edit your [CODE] and do something like: [CODE]
0
1
726
2010-04-08T04:22:22.540
database_errors
serverfault.com
543,912
Force update checksum on zfs?
I recently changed the [CODE] property on one of my non-duplicated zfs filesystems to [CODE] from [CODE] (fletcher4) to better support the sending of duplicated replication steams, as in this command [CODE] . However, the zfs manpage has this to say about [CODE] : This flag can be used regardless of the dataset’s dedup...
To change the properties (be it compresson, deduplication or checksumming) of already written data, the zfs approach is to run the data through a [CODE] sequence. Obviously, you do not need to offline the system for that, but you will need enough resources in your zpool / on the system to hold two dedup'ed copies of th...
13
11
2,021
2013-10-04T20:22:26.420
data_quality
serverfault.com
197,366
How to be robust against webservice downtime caused by third parties
I'm using iPage as my cloud based server provider. I haven't had any problems with them yet. They hold the scripts for my RESTful services for the mobile app I'm developing. My problem however is that tonight the service went down. I got a "This is a 500" error. I'm wondering how do I build redundancy into my RESTful s...
A traditional trade-off in outsourcing any part of the business to a supplier, not just cloud computing: you get to give up working on the bits that are "plumbing" in what you offer, and focus on the parts where you think you can add most value. On the other hand, you give up control of the plumbing to another company,...
2
1
214
2013-05-08T03:15:41.873
api_errors
softwareengineering.stackexchange.com
421,170
Bug in PHP 5.3.10, how do I upgrade without apt?
I have a few Ubuntu boxes that run the newest version of PHP present in the Ubuntu package distributions (PHP 5.3.10). However, there is a bug in that PHP version that makes my application break . Given that the version available in the Ubuntu package repo is broken and I haven't been able to find any kind of time as t...
On Debian systems (so my guess on Ubuntu as well since it's also apt) you can install a specific (older) version of a package. Here you can find a nice description on how to do this. The commands used should be the same on Ubuntu.
1
0
435
2012-08-25T16:57:46.267
infrastructure
serverfault.com
749,841
Apache Sub domain Redirects to LocalHost
I have the following in my [CODE] file (snippets only): [CODE] My [CODE] file looks like this: NameVirtualHost localhost:80 [CODE] My Windows [CODE] file looks like this: [CODE] The issue is when ever I enter [CODE] it for some reason displays the same page as it would if I had types [CODE] . There are no clues in the ...
Because this was a new installation of Apache without using third party software such as XAMPP the VHost file wasn't enabled. If you navigate to the bottom of the httpd.conf file, you will see a line like this: [CODE] Remove the [CODE] hashtag (removing the comment) and restart your Apache. This should resolve the issu...
0
0
1,703
2016-01-18T06:13:35.107
infrastructure
serverfault.com
700,836
DRBD always causing splt brain after restart
I'm absolutely new to the whole cluster topic (pacemaker with DRBD, etc) and in general new to linux (using it on a daily basis for about two months now). Actually I'm playing around with a simple Apache cluster, accessing a shared DRBD mounting point, just for fun. Everything works fine now, despite the fact, that eve...
Looking at the syslog on both nodes will likely help you determine where the split-brain is happening. Understanding how DRBD uses generation IDs to decide that a split-brain has occurred may help as well. Whenever the generation IDs are updated or compared, there will be an entry placed in syslog. Reference: https://d...
2
0
1,448
2015-06-23T00:07:37.443
infrastructure
serverfault.com
372,200
Apache https configurations
I am trying to setup my domain name with a self signed cert. I created the cert and placed the [CODE] and [CODE] files into [CODE] Then I updated my [CODE] host to include the following, [CODE] Now when I go to https://example.com I get the following error. SSL connection error Unable to make a secure connection to the...
Change: [CODE] To: [CODE] And change: [CODE] To: [CODE] Then reload apache and see if that will work.
0
1
2,706
2012-03-21T23:03:20.737
api_errors
serverfault.com
275,151
How to get fixed USB device names in Linux
I have a relatively short question concerning USB device handling: How is it possible to map a USB device to a fixed device. I know there are ways using udev rules, but I want complete instructions showing how to do it and what tools to use (if there are any). So show me how you would map the following USB drives to a ...
If you use UUID s or Volume Labels, you don't need fixed device names.
0
6
1,998
2011-05-30T08:04:20.077
infrastructure
serverfault.com
1,040,199
Simple routing not working
I have a problem with my virtual environment. On this picture you can see my configuration: I have a total of three subnets. Where one router with 192.168.1.1 is physical and one virtual router and two virtual machines. all virtual devices are configured with the virtual bridge vmbr0. which works: 192.168.10.100 can pi...
I have now changed the whole thing to PF Sense and it works perfectly and without any problems. The thread can be closed
0
0
80
2020-10-27T08:32:30.050
infrastructure
serverfault.com
253,541
Where should the "not empty field" validation code be written on a 3-layer application?
When working with the 3-layer model, where should the validation code be placed? for: not empty fields, unchecked options, null values, wrong-written dates, etc. To keep total isolation between a form (UI layer) and the business rules, this validation should belong to BLL? It's the only work for the UI: grab user data ...
As encountered on multiple websites where it is asked to fill-in a form, you often see obligatory fields. Such fields are often validated through Javascript for non-emptyness and all-numeric inputs, for instance. Yes, it is better to have the back-end do the dirty job, but the UI makes sure that the information input i...
1
3
1,536
2014-08-16T22:53:42.140
data_quality
softwareengineering.stackexchange.com
914,224
New user unable to see database they have access to in phppgadmin
I'm mostly a command-line user of PostgreSQL myself, but for others I've recently had cause to set up a PHPPGAdmin frontend. However, I've run into a problem - while on the command line users have no problem logging in and connecting to the database they're supposed to have access to, in the PHPPGAdmin frontend they're...
Okay, did some digging into the source code and what I overlooked was in [CODE] : [CODE] Changing this from [CODE] to [CODE] solved the problem.
1
0
596
2018-05-29T07:56:26.977
database_errors
serverfault.com
47,479
Make database use more than one file
I have to following problem: since my database runs out of memory in a few days, I am looking for a way how to make the database use more than one file. I would like to store upcoming data in another file, which is located on a different hard drive. I am using SQL Server 2008. Under "database properties" I already foun...
First and foremost lets make sure you did due diligence and have determined that is the data file that had grown, not the log. IF the log is growing, read How to shrink the SQL Server log and Factors That Can Delay Log Truncation . Do you have more that one filegroup, ie aside from PRIMARY, is there another one? SQL Se...
2
5
123
2013-08-02T07:53:45.063
database_errors
dba.stackexchange.com
1,011,699
linux 10gbe ixgbe (intel X550T) slow at 420mbyte/s max, p2p lan cat8 1m, tried ethtool and ifconfig options to no avail
first time dealing with 10gbe. I have two boxes, one is older with i7 2.8ghz from 2009 generation, pcie 2.0 and I just put the Intel X550T there to make use of absolutely similar but builtin adapter on my newer box with AMD EPYC gen 1. I'm dling file from tmpfs on either box and never go above 415mbyte/s which is about...
Solved, not a software problem, my computer has way too many drives, PCI legacy devices and a GPU too, that leaves me without x4 available PCIe lanes for the card, it is throttled down to x1, which on my PCIe 2.0 MB gives me 4gbit/s max speed which is exactly what i'm seeing. [CODE] There is no beautiful solution for t...
1
3
599
2020-04-10T04:29:19.060
infrastructure
serverfault.com
264,974
Postfix SMTP server rejects password for outgoing only
I've had postfix working on my server for a while now and have sent emails out from it, my server recently crashed and everything came back fine except I can't send emails anymore, it says the server rejected the password. Incoming still works fine with the same password and I've run out of ideas of what could be wrong...
"Incoming" has nothing to do with Postfix, but with you IMAP/POP3 server. I guess you have SASL authorization for sending emails. Is your saslauth daemon running? Take a look at your log files and try to go through the common list of problems that are explained here .
0
1
177
2011-04-30T07:34:21.350
infrastructure
serverfault.com
232,887
WHERE IN query to very large table is slow
I currently have a table with around 300,000,000 rows with the following columns: user_id, item_id, item_value, and item_add_date I also have a very long list of about 7000 user_id values which are associated with a date range. I'm trying to query the really large table in order to obtain all rows where the user_id is ...
Sometimes large in clauses can be improved by rewriting them as a join against a [CODE] clause. so instead of [CODE] you can use [CODE] An index on [CODE] should improve the performance
0
1
2,088
2019-03-23T09:37:14.143
warehouse_errors
dba.stackexchange.com
343,229
Windows Server 2008 R2 + MSSQL Server R2 crashes once a week, suggestions?
Can someone give me pointers where to look in order to debug why this fresh install of Windows Server 2008 R2 with an untweaked MS SQL-Server R2 which is serving just one ~5GB db to 2 clients crashes once a week? (All updates applied, no other software running, no other roles. No Hyper-V, running on bare metal. Intel C...
CRITICAL: Kernel-Power This sounds like a hardware issue. Try replacing the power supply. It could be something else, as well (weak capacitor on the motherboard?), but the power supply will be the easiest (and cheapest) place to start.
2
3
2,997
2011-12-21T18:56:05.770
database_errors
serverfault.com
614,023
chef node installation help (bootstrapping)
I am attempting to bootstrap my first node in Chef. I set-up my environment as the following Server: Centos 6.5 running Private-chef-11.1.8 (casino.xxx.com) Client: Centos 6.5 running chef-client 11.12.8 (zodiac.xxx.com) Node: Centos 6.5 running chef-client 11.12.8 (hop.xxx.com) I am running the following from my clien...
Sometimes the most simplest of solutions are hardest to spot. I was using lower case -p to connect to the server lowercase p actually specifies a port and -P (upper case) specifies a password.....
0
0
804
2014-07-20T20:57:25.973
pipeline_ops
serverfault.com
455,455
How many concurrent connections can windows 2008 r2 make to a UNC fileshare?
We have an application that makes request to a UNC path for files and serves them via IIS. How many concurrent connections can a process on Windows 2008 r2 make to a UNC file share? Are there any specific limitations on this, or is it purely a based on physical resource constraints (and number of available ports for TC...
Assuming your UNC file share is also a Windows server, then the max is really only limited by CAL licenses owned (but not actually set anywhere but on paper). Since this is asking concurrent connections, you can check it here (on the server with the share): HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanSer...
1
4
11,203
2012-12-05T21:12:24.293
data_quality
serverfault.com
531,909
Server 2012 DC in VMWare virtual network (NAT) unable to connect to the internet
I am trying to set up a virtual lab on my laptop in an attempt to get into some SharePoint development. As a developer, my knowledge of Windows Server and VMWare is limited so I'm following the blog posts from Randy Rempel . I configured the environment ( part 1 ), installed and configured the domain controller ( part ...
What is ping 8.8.8.8 and tracert google.com output? I suggest that you have installed dns role along with DC and didn't configure it properly. Also check network settings (for example, from ipconfig /all )
-1
1
7,091
2013-08-19T06:30:20.093
database_errors
serverfault.com
868,260
Whats better: stress test the entire system vs profiling and stress testing specific parts?
I work in a company that is entirely on the cloud and we have started a stress testing project. The idea is to load everything in production to a new environment and run stress tests on it to find the total capacity of the system and where the bottlenecks are. Now, I remember a time when we stress tests physical server...
It is always better to stress the entire system and use a production-like environment (or even production). First of all check out Can a proportionately scaled down testing environment find performance load issues? question and its answers. An application’s underlying infrastructure is constructed of many different com...
1
1
154
2017-08-11T21:19:25.717
infrastructure
serverfault.com
586,973
ZFS RAID and LUKS encryption in Linux
I'm planning to setup a set of 3x 2TB 7200rpm drives as a LUKS-encrypted Z-RAID pool in Linux (for a NAS solution). My understanding of the problem at hand is that the only way to achieve this is to [CODE] every physical device and then assemble a zpool out of unlocked LUKS containers. I have the following concerns wit...
One of the servers that I administrate runs the type of configuration that you describe. It has six 1TB hard drives with a LUKS-encrypted RAIDZ pool on it. I also have two 3TB hard drives in a LUKS-encrypted ZFS mirror that are swapped out every week to be taken off-site. The server has been using this configuration fo...
29
36
16,779
2014-04-05T22:52:12.440
pipeline_ops
serverfault.com
64,403
Why do I get this error "Statement failed, SQLSTATE = 08001"?
When ever I try to connect with Firebird SQL I get this error, [CODE] What can I do to resolve it, I've already ensured that my current user has read/write access to the file. [CODE]
If your home is on an encrypted directory the daemon itself won't be able to read that home directory regardless of what the permissions are. You feed [CODE] a filename, but that file isn't read by [CODE] but by [CODE] which won't have access to an encrypted mount regardless of what the perms are.
3
0
9,948
2014-05-03T00:15:48.383
warehouse_errors
dba.stackexchange.com
1,095,111
Is it necessary to ban malicious IP regardless of default firewall setting being deny/reject?
I'm on Linux and using fail2ban as the ban system. So far, it has collected and banned about 150K of malicious IPs, and I'm concerned and wondering if this will gobble a fair amount of resources. As I see it on [CODE] , it has a relatively high CPU time.. My questions are, If there are more banned IP addresses, then wi...
if you use some of "plain" [CODE] banning actions in fail2ban you could switch to iptables-ipset or to nftables action, for example: [CODE] or to iptables-ipset-proto6 and iptables-ipset-proto6-allports for older versions: [CODE] as regards the question "deny/reject"... Although I must admit I don't quite understand th...
0
0
153
2022-03-01T21:28:01.633
infrastructure
serverfault.com
835,456
zfs module not found on centos after restart
After I rebooted a CentOS server, ZFS does not work: [CODE] My OS version is [CODE] and [CODE] prints [CODE] . I noticed that some packages seemed to be updated automatically when the machine booted up - I found the following entries in [CODE] : [CODE] From [CODE] , it seems that ZFS is not installed: [CODE] and when I...
Run: [CODE] And again: [CODE]
2
0
6,903
2017-02-28T16:36:21.790
infrastructure
serverfault.com
605,698
How to export database from Azure with an invalid server name?
I have a SQL Server database on Azure that I want to export. On the Windows Azure portal, I select the database. From the dashboard page I select Export and I get the following error: [CODE] Note the encodings are incorrectly displayed [CODE] rather than Unsupported Server Name my-server-name.database.windows.net. Plea...
This was due to a bug within the Azure portals. The new 'preview' portal allows the user to assign set a name for the SQL Server when creating a new database. However the standard portal would automatically assign the server instance a random 10 alphanumeric character name. Therefore some features available in the stan...
0
0
277
2014-06-17T10:27:49.777
database_errors
serverfault.com
806,329
Can I make Nginx automatically OCSP staple certificates at reload/restart?
Is there a way to make Nginx proactively OCSP staple certificates each time its configuration is reloaded or it is re-started? Alternatively, can Nginx be set to save the stapled certificates across reloads or restarts instead of discarding them? Reloading or restarting Nginx appears to clear all cached OCSP stapled ce...
That article explains one way to do it: https://matthiasadler.info/blog/ocsp-stapling-on-nginx-with-comodo-ssl/ The idea is to manually fetch de OCSP response and use the ssl_stapling_file directive. https://unmitigatedrisk.com/?p=241 explains it in details: URL=$(openssl x509 -in $SERVER_CER -text | grep “OCSP – URI:”...
6
4
2,841
2016-09-30T12:18:36.187
infrastructure
serverfault.com
313,478
Can you search for and remove specific lines with Apache error_log?
I know I am able to search for particular keywords in my Apache error_log file by using the grep command: [CODE] I am curious though if it is possible to delete/remove any and all lines which contain specific keywords from a file. I know this won't work but the idea is: [CODE]
[CODE] But you can get rid of this error appearing in Apache error log by creating an empty [CODE] file in document root or putting the following in the [CODE] file: [CODE]
0
2
251
2011-09-20T15:34:42.560
infrastructure
serverfault.com