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
230,723
RRAS VPN on windows 2k3 AD, can access rras server only
I'm setting up a test lab and here is the current configuration: 192.168.86.201 - a windows 2003 machine acting as PDC with AD/DNS/DHCP/WINS. 192.168.86.62 - windows 2003 machine is the RRAS server with IAS, also a file/print server. 192.168.86.6 - gateway/router to internet 192.168.86.21 - Windows XP Workstation Every...
You need to configre the RRAS server for LAN routing. The VPN connection between the server and the client is a separate network from the internal LAN.
0
1
2,103
2011-02-03T16:59:30.027
infrastructure
serverfault.com
158,128
PostgreSQL: alternative ways to connect to database
THIS IS A THEORETICAL QUESTION. I am posting it on this site because of this and because I think that database administrators could provide more accurate insight. The line that separates the two sites is still not crystal clear to me so I may have got it wrong. Long story short: there is a certain Postgres database, an...
A poor man's solution might be simply installing pgAdminIII, setting up the connection to the database and using it's built in filtering and data view/modification functionality. I admit this does not give you a very good user experience (about 8 clicks to get to the table you want to view/edit), but it is very easy to...
3
3
1,541
2016-12-14T12:30:13.453
database_errors
dba.stackexchange.com
402,054
Exchange 2010 SP2 OWA performance
How do I increase performance in OWA 2010 SP2? I am running CAS on a seperate installation, which has 8GB RAM and 4 CPU cores - running virtualized in a vmware environment. However, the load times are pretty bad, so is there any way to improve those? I am thinking of installing a linux cache-stuff-server in front of th...
It seems like it was just a temporary issue - and everything is fine.
0
0
1,266
2012-06-25T15:07:01.150
infrastructure
serverfault.com
10,448
Converting Microsoft SQL Server collation to UTF 8
I've a Rails-Application, which reads data from a Microsoft SQL Server 2008 R2 Database. All umlauts are represented by a '?', so I checked the encoding of the database. The encoding is 'Latin 1'. When I try to change it, I have a big list of different collations, but UTF-8 is not listed. The rails application communic...
Encoding? Do you mean collation? The collation only affects things like equality tests, sort order, etc. They don't affect the allowed encodings for column values. If you want to store unicode text, you should make sure your columns are among [CODE] [CODE] [CODE] (2-byte characters) rather than [CODE] [CODE] [CODE] (1-...
4
3
11,050
2012-01-10T14:11:15.053
database_errors
dba.stackexchange.com
81,548
How does one know when to stop normalizing?
Alright, so basically I feel that I tend to over-normalize things, and maybe I am doing it at the cost of performance. So, to illuminate on the problem, I have created the following schema to use as an example: As you can see, I have outlined two different approaches. The idea here is that all universities have program...
When designing a database, normalization is a process undertaken when producing the logical model i.e. the relational data model. Performance is an attribute of the physical model; the implementation of the logical model on a particular DataBase Management System. You cannot "over-normalize" a relational data model. Ei...
1
5
1,797
2014-10-31T05:01:05.753
warehouse_errors
dba.stackexchange.com
616,372
Could not recieve information from environment production
Im getting this error on my node agent, when i run puppet agent --test [CODE] The problem is that I don't have a environment called "production". Why is that being called? Is "production" some default or required name? thanks
Could not retrieve information from environment production source(s) puppet://... [CODE] You are using pluginsync (good) however there are no plugin directories on the puppet master - see this page http://projects.reductivelabs.com/issues/2244 Easiest solution is to ensure that you have at least one module with a "lib"...
0
2
3,357
2014-07-29T17:18:05.810
pipeline_ops
serverfault.com
400,745
Unexpected Code Coverage Reduction
I am adding unit tests to some existing code which initially was not tested at all. I have set up my CI system to fail builds where the code coverage percentage is reduced compared to previous build - mainly to set a path of continuing improvement. I then encountered an unexpected and annoying (although mathematically ...
You can mitigate the effect to some degree by allowing the relative code coverage to reduce when the total number of uncovered lines also reduces, or when the total number of lines reduces, since this are pretty clear signs of a refactoring which sets a new base line for your coverage metrics. In your example, the tota...
38
18
11,160
2019-11-07T19:30:59.930
pipeline_ops
softwareengineering.stackexchange.com
238,898
How to GRANT SELECT by default to B, on tables created by A?
Background In my PostgreSQL instance (say with one unique database constituted of one table only), I have 2 users: [CODE] , who can create and populate [CODE] , [CODE] , who should only be able to read ( [CODE] ) from it. It happens that, because of an API I do not control, [CODE] keeps dropping and recreating [CODE] f...
PostgreSQL has default privileges , the perfect tool for your requirement: [CODE] Now [CODE] will automatically get [CODE] privileges on all tables created by [CODE] .
7
9
1,787
2019-05-23T13:30:57.923
database_errors
dba.stackexchange.com
495,365
how do I avoid spam domains to point to my site or IP hosting tomcat application
I can across a issue where I saw some xyz.com is pointing to mydomain.com. I am not using Apache, nor IIS but Tomcat 7 directly. How to I avoid such other spam domains pointing to mydomain.com? I read across some posts setting by virtual hosts etc, but nothing specific of how to avoid it. I searched on Google but most ...
You can't in any way stop anybody else from pointing to your webserver. What you can do is to server up a web site that will inform people that the domain is not hosted by you. There's some information about how virtualhosts work at the Tomcat documentation site . If we assume that you have two domains that you want to...
1
3
211
2013-04-02T11:38:08.193
infrastructure
serverfault.com
837,994
Why are CA root certificates all SHA-1 signed (since SHA-1 is deprecated)?
I understand that SSL certs cannot be signed using SHA-1 anymore. Yet, all CA root certificates are SHA-1 signed (mostly). Does it mean the same algorithm that is no longer trusted for "you grandma SSL shop" is fine for the uttermost top secured certificate of the world? Am I missing something? (key usage? key size?)
The signature of the root CA certificates do not matter at all, since there is no need to verify them. They are all self-signed. If you trust a root CA certificate, there’s no need to verify its signature. If you don’t trust it, its signature is worthless for you. Edit: there are some very relevant comments below. I do...
74
112
21,988
2017-03-13T15:09:44.773
api_errors
serverfault.com
37,888
How to approach testing of a mature application
What should someone prioritize when deciding to add automated tests for an application that has already been in the market for a long time(3-4 years) though it still receives updates? Assume that most of the obvious bugs have already been found and the GUI shouldn't change other than new additions. E.g., assume that th...
The vast majority of automated testing isn't done to uncover new bugs. It's done to provide some assurance that updates don't change the expected behavior of the application. The most common question asked by automated tests is "Did these new changes break some existing functionality". This sort of testing won't root o...
2
6
173
2019-02-20T16:48:22.583
data_quality
sqa.stackexchange.com
940,103
Can network packet corruption affect only one server process out of many that are talking to the database?
Context We saw sporadic [CODE] errors from MySQL servers over the course of 4 hours yesterday. The errors haven't happened since then. Strangely, SQL statements seemed to have been corrupted: a random character or more shifted by 2 bytes backwards or forwards. For example, [CODE] for a query against a [CODE] table. Thi...
It's within the realm of plausibility, hard to conclude anything. The bit flips you listed are consistent at an 8bit alignment. Although it'd be interesting to see the entire message as there'd (likely) have to be other flips in the network frames as well in order to foil CRCs/checksums. In terms of "only some workers ...
7
0
284
2018-11-15T04:53:12.537
database_errors
serverfault.com
900,386
Regular non-root ssh users are able to access root directories
Regular non-root ssh users are able to access root directories such as: [CODE] These users should only be able to access/view/edit files in their home directories. Any idea how I can fix this on our server? Maybe I need to reset up the folder permissions for the root directories?
There is not a lot of detail in your question but based on your users needing access only to files within their home directories here are some suggestions: setup chroot. This is quite involved and requires copying libraries, binaries and config files from the OS to each users home environment (although this can be shar...
-1
4
77
2018-03-07T05:54:17.177
infrastructure
serverfault.com
268,646
What is the impact of a large number of boolean columns in a table on storage and index performance in PostgreSQL?
I have a lot of boolean attribute for entities in a table and am in need to store even more of them. Currently I have 17 such attributes (Other fields are four [CODE] fields). I am in need of adding about dozen or so more attributes. Should I just go ahead and create boolean columns for each of the required attributes ...
I wouldn't bother. Postgres has a record overhead of at least 23 bytes per record -- and that's not counting a bitmap to keep track of NULLs, or other block overheads which combined probably average another couple of bytes per record. See https://stackoverflow.com/a/26206031/391445 Your [CODE] takes 8 bytes of storage,...
2
2
1,198
2020-06-06T15:56:05.727
database_errors
dba.stackexchange.com
334,453
Creating a fast relational db with billions of rows
I have thousands of IoT sensors writing to a table in a MySQL DB. I have 10s of millions of rows and it is running fine. I am about to expand and would like advice on how I can adjust the db to have a longer life with many more records. Current Table [CODE] Exmple of values [CODE] This is my plan, please let me know wh...
Either "normalize" the [CODE] or convert to numeric or rethink whether they belong in [CODE] . I assume [CODE] will have millions or billions of rows. By converting to numeric, I am referring to anything that is inherently numeric (volts, velocity, temp, etc). Be sure to pick the smallest representation for each value....
-1
1
85
2023-12-31T15:23:19.850
database_errors
dba.stackexchange.com
463,308
MPLS link not forwarding
We have a new MPLS service and I'm having trouble getting it to work (it seems like a routing issue). It's a T3 with two circuits: a public wan port and a private MPLS circuit connecting 2 sites. Each site has its own subnet and a gateway router before the MPLS endpoint. The carrier assures me that the MPLS link is wor...
This was a dumb question, really. The routes are right. The answer is "troubleshoot your routers". Site A's router was replaced 3mo. ago because of failing memory. Site B's router is 12 years old and identical to the dead router. I eliminated site B's router with a new rv110 home/office router, set the same static rout...
0
0
626
2013-01-05T19:52:10.213
infrastructure
serverfault.com
171,221
Help with database schema
I'm working on a project and I would need help with proper design a database schema. This is the application where users can add appliances in their home. For example, television, washing machine, dishwasher line, fridge, freezer. Each one of these appliances have different parameters that I need to store in a database...
You could go with a more general structure, such as this: appliances ---------- id (PK) name (such as "bedroom TV", "main freezer", etc...) parameter_types --------------- id (PK) type (such as "STRING", "INT", ...) - You might only be to enforce this in the application code, rather than in the database. appliance_para...
0
0
59
2017-04-17T16:41:13.637
warehouse_errors
dba.stackexchange.com
26,307
Shape extracting on 2D geometric data
Given a set of lines, is there a way to train to extract geometric shapes. For example, the picture on left has some blue lines (with red endpoints). How can I train to extract shapes like on the right side? The output must be different shapes with each having a set of points. I searched for related research papers. I ...
I haven't attempted this, but I'm pretty sure it would work reasonably well. Identify all points that are connected to more than two lines. We know these must be vertex points. For for all the points that are attached to only one line, identify their nearest neighbor and draw a line between them (this would connect tha...
1
0
139
2018-01-05T04:17:54.863
data_quality
datascience.stackexchange.com
15,051
Distribution lists in Sharepoint
I'm looking to move all of our Exchange Public Folder contents to a WSS 3.0 server including several contact lists. The problem I've run into is that the distribution lists that have been created in the public folders are apparently not supported in the Sharepoint contact lists. Does anyone have a work around for this ...
I work on SharePoint and am the PM responsible for Exchange integration in the next release. Check out the directory management service ( link ). DMS allows you to have SharePoint Groups where the membership is pushed into distribution lists. While it doesn't allow you to associate existing DLs with groups, it might he...
2
1
1,485
2009-05-29T19:44:44.340
infrastructure
serverfault.com
261,926
Randomly unable to connect to localhost web server
We've got a very strange issue that cropped up a few weeks ago and have been unable to resolve. We are running a couple of web sites in IIS (port 80,443) and in Apache (8080,8090) all on the same Windows Server 2003 SP2 machine. We've been running this configuration for a couple of years now. The web applications runni...
One possibility: ephemeral port exhaustion. Try something like [CODE] to count how many connections you have in all the various states. If that number is over ten thousand or so, then chances are that this is your issue.
3
5
6,952
2011-04-20T20:55:56.560
infrastructure
serverfault.com
1,079,369
Kubeadm with containerd cannot use locally loaded images
I'm trying to build kubernetes with containerd in bare-metal server (RHEL8). There's no Internet connection so I manually downloaded needed images (e.g. k8s.gcr.io/kube-scheduler:v1.22.1) and loaded them using "ctr image import". The images seem to be loaded successfully. [CODE] Then I executed "kubeadm init" but it fa...
It turned out that I had to load images to the [CODE] namespace of the containerd so that Kubernetes can recognize them. I was importing the images to the wrong namespace (default). [CODE] After loading all the images that Kubernetes needs, kubeadm init worked well without executing [CODE] . The images that Kubernetes ...
1
3
5,285
2021-10-02T12:13:07.133
pipeline_ops
serverfault.com
47,876
How to decide the processing power required based on the dataset?
To train a machine learning model, the computer often needs more processing power. In this case, a powerful CPU is needed, since it is a large data set, it needs more memory, so rather than a CPU, GPU is the solution. Do we need to decide which processor to use before we proceed? For example, will a 30000 sample data s...
Dataset (number of samples, number of features) is one variable. Algo/model complexity is another. For example, linear regression will be much faster as compared to 4 layer neural network (and will require much lesser compute power). So, before deciding need for compute powers, you can : Try few models with hardware (o...
1
2
122
2019-03-24T05:21:32.473
data_quality
datascience.stackexchange.com
48,332
What's the best web based tool to manage postfix?
There are a ton of programs listed here under "Run/Configuration/Queue/User management" http://www.postfix.org/addon.html Just curious if anyone has used these and what is recommended. Basically I want to see what is going on with my queue, view/manage different user account, and any problems/bottlenecks. pfqueue is de...
http://sourceforge.net/projects/postfixadmin/ However it just manages domain, domain admins, accounts, etc. Not the queues or the actual config of the server.
2
6
14,580
2009-07-30T22:25:40.923
infrastructure
serverfault.com
784,904
Iptables u32 matching nat
I'm currently setting up IPtables to redirect certain UDP payloads to my application. Here is an example of what I have working so far: [CODE] This is working, it will redirect packets containing the payload: [CODE] from one port to my application on another. The problem is, I have another piece of data I wish to redir...
That would be at your convenience (in one line, but I had to display it like this to have bold working): [CODE] [CODE] [CODE] or [CODE] [CODE] [CODE] In both cases you remove from the equation the part you don't want to compare, either by shifting 3 bytes to the right and keeping only the 1st one, or by using a mask th...
3
0
1,630
2016-06-19T18:08:27.027
infrastructure
serverfault.com
265,336
Duplicating rows based on a count column SQL Server
I have the following table: [CODE] I want to select [CODE] where [CODE] = 1, the number of times equal to the sum of the [CODE] . So, the result would be six rows like this: [CODE] Eventually, this selection will have a bunch of different codes for a single [CODE] . YES I know I'm duplicating data, in the end it's not ...
Below is an example using a join to a tally CTE. It would be better to create a materialized tally/numbers table to facilitate this sort of task going forward and improve performance too. [CODE]
2
2
1,312
2020-04-18T13:59:30.863
database_errors
dba.stackexchange.com
189,968
Application slows down during Back up
The Application is 24/7 up Full back up time is 4 am and back up size is 92 gb. It takes one hour to complete the back up. During those time users complain that the application freezes. Just wanted to know whether back up freezes or slows down the application momentarily? No other jobs are running that time.
Certainly, running a backup will have an impact on the performance profile of the machine serving the database being backed up. For a FULL Backup, the operation consists of reading every allocated page in the entire database, and writing those pages to the backup file/device. Since your users are complaining about the ...
0
1
55
2017-11-02T16:39:25.400
warehouse_errors
dba.stackexchange.com
224,634
config file and parameters for ndb_desc
I'm trying to execute [CODE] from API client. The config and parameters are as below: my.cnf in mysqld: [CODE] config.ini in mgmd: (part of it) [CODE] Situation: there are 2x mgmd, 2x data-node, and 2x mysqld. Parameters tried to call ndb_desc: [CODE] Above response with error: [CODE] On changing [CODE] , removing thes...
Here are the changes i made to make this work: add empty api node at the end of mgmd config.ini: [CODE] stop both of ndbd from mgmd: [CODE] stop both of mgmd: [CODE] start mgmd 1: [CODE] start mgmd 2: [CODE] start ndbd manually: ssh to the machine and run [CODE] wait until all node connected make sure my.cnf at mysql n...
0
0
502
2018-12-11T09:29:42.903
database_errors
dba.stackexchange.com
702,981
security2_module for apache is causing the “Forbidden You don't have permission to access / on this server” message
I installed the security2 module to my apache server by adding these following lines to my httpd.conf: [CODE] When I want to access my server via http I get the message: " [CODE] " Then I went to that module log and I see the following error: [CODE] I'm assuming that there's something that is not configured well with t...
Looks like mod_security is working perfectly. It blocked the request because the [CODE] header only contained an IP address, which is what this rule is meant to do. You should be using an actual hostname to refer to your web site, in production. It's also a good idea in development too, but if you need to use an IP add...
1
2
4,877
2015-07-01T23:30:36.743
infrastructure
serverfault.com
1,136,910
'vm.max_map_count is too low' in kubernetes mongodb client
This is how I'm running a mongodb client in my kubernetes cluster: [CODE] Then I'm trying to log into the db: [CODE] I do get the output: [CODE] Why do I get [CODE] and where do I have to configure the value?
This is an operating system knob that you should change. Reviewing the full [CODE] logs may be helpful here. See the MongoDB production notes for more info on the recommended setting for this configuration. More details on why this is required can be found here .
0
0
1,089
2023-07-12T19:53:51.097
pipeline_ops
serverfault.com
159,830
SQL Server Service Pack Questions
We are currently running our database server on SQL Server RTM; i.e. no service packs or cumulative updates have been installed. We need to install the latest Service Pack for SQL Server. I had the following questions based on this subject, I was told I needed to stand up new servers and transfer the databases to that ...
You do not need to stand up new servers to apply a SP. 1 - Will installation of SQL Server service pack affect any of our production databases? We will do this in test 1st but still wanted to ask It should be fine but always apply them to a test environment and let them soak for a while just to be safe. Always a good i...
1
3
2,052
2017-01-03T14:59:51.860
database_errors
dba.stackexchange.com
63,268
postgresql being slow on count distinct for dates
I have a very simple, but very big, table. Its schema is like this [CODE] Now, yaddate has an index by itself and it is also in other indexes together with other columns (eg. (yadda1, date)). The table itself is some 100M rows. When I run [CODE] the time needed to get the list is in the range of 200 seconds. Explain An...
There is a trick with distinct to get it fast using index, that you can try. It involves creating a function looking like that: [CODE] Then create an index on the column you want to count distinct, and [CODE] should return you the distinct values you want, without the need to read the table. Try it, be beware, I'm not ...
3
2
3,127
2014-04-15T17:10:19.107
database_errors
dba.stackexchange.com
186,700
Print fixed width list sorted by column
I have a list of varying length where items is strings of varying length. I want to print them by (a mirrored N)/order by column. Major points being: Columns shall have fixed width == widest data in that column. It shall be as compact as possible. Number of columns is varying/induced by available width of canvas. Order...
Here's what I've come up with: [CODE] Initialization Make a list of [CODE] s and initialize their [CODE] s based on where they are in the list and w/e other characters the prefix will have (i.e. number length + paren + buffer space). Then make a (dynamic) list of [CODE] s, the same length as the number of [CODE] s, wit...
4
1
811
2013-02-11T19:50:45.363
api_errors
softwareengineering.stackexchange.com
1,052,080
nginx multiple dynamic paths issue
We're hosting 2 Angular applications on one Linux server running nginx. We'd like to have use same hostname within 2 Angular apps. Let's say when I browse to http://example.com , it'll use one of these apps, but if I browse to a specific page, it'd use the other one. I can't seem to get this to work. So we have http://...
You are trying to load [CODE] , but the regular expression matches only [CODE] . Try the following configuration: [CODE]
0
0
505
2021-02-02T10:35:24.043
infrastructure
serverfault.com
475,553
SharePoint 2010 - MSSQL 2008 connectivity
Our SharePoint server has some issues connecting over to the MSSQL instance (different server ). The error message is :Cannot generate SSPI context .(Microsoft SQL Server )-even when trying to connect from the Management Studio (over to Database Engine). If I try to connect from my laptop then I can connect fine with m...
In my case it was a network connectivity issue that preventing the SP server from accessing the credentials from the AD , but it let all other connections free :) . Be sure to test LDAP / LDAPS if the WIA with MSSQL is not working (depending on the configuration of course )
0
0
306
2013-02-05T10:35:17.387
api_errors
serverfault.com
426,480
pg_dump not working - do I need to change order of $PATH?
I'm trying to set the $PATH to pick up the latest version of pg_dump as I'm currently getting a mismatch error while doing a migrate in my Rails app (I recently changed the schema type to SQL). I have added a new file in /etc/profile.d called pg_dump.sh, and inside that put: [CODE] On looking at echo $PATH, I get: [COD...
A quick and dirty solution would be to edit /etc/profile.d/pg_dump.sh : [CODE]
1
1
27,420
2012-09-11T19:52:59.690
infrastructure
serverfault.com
156,526
Apache redirecting without provocation; dropping port?
This is a new issue to me and has been driving me nuts for the past hour or two. I have an Apache server running on port 8000 (confirmed in [CODE] and by [CODE] ) yet any request to it is automatically redirected to port 80 (specifically, the port is dropped so 80 is default); the request is then refused. Things I have...
Seem to be an issue with your httpd.conf file (there is clearly a redirection (301)) Have you checked whether there are other default httpd-module files included by default? Example: conf.d/php.conf --- conf.d/welcome.conf
0
0
349
2010-07-01T02:05:06.587
infrastructure
serverfault.com
1,001,691
How to install x11vnc in offline mode?
I am trying to install x11vnc on linux machine which doesn't have internet on it.So i won't able to install using [CODE] command. Can someone please help me install x11vnc with all the required dependencies using offline mode? I tried installing with .tar.gz file but i am getting below error when tried [CODE] command. ...
STEP 1: On some other online system first download all packages and requirements. Preferably the system will be the same distro and version as the offline host. To download all required packages you could do something like this: [CODE] The above will download all required packages into the x11vnc directory. STEP 2: Cop...
0
0
1,538
2020-02-04T10:34:02.830
infrastructure
serverfault.com
709,279
exim4 domains/users configuration on files or on db?
I am setting up a web server using Exim 4 on Debian 8 and, as usual, I was going to use MySQL as backend to store the settings related to the domains and users (like quota, emails, aliases, forwards, enabled/disabled account/domain, antispam/antivirus on/off, whitelist, blacklist and so on). At some point I stopped, us...
MySQL backend is standard for most mail-related software that makes easy general tasks. For example, postfixadmin allow to maintain a lot of domains/users by number of admins. Then dovecot's auth service can use that database to fetch user's credentials. Also exim can use the same database for queries. As far as it has...
2
0
593
2015-07-29T07:48:10.947
database_errors
serverfault.com
580,209
Windows Server - "Not enough storage available error"
We have two IIS 7 servers that run in web garden. There's a copy of every site on each server. Files are synchronized using DFS (only source files). Images & big files are located on different server using share. Atleast few time a week, we get error [CODE] when reading any file or processing a server code. IIS Server ...
The [CODE] error has nothing to do with disk storage. It is about internal memory. This error is quite easy to reproduce. Simply select a bunch of large files (images or DLL's or whatever), right-click and use the open-with option to open them all with Notepad. This should eat up allot of internal memory. When the swap...
6
7
16,894
2014-03-06T09:15:03.130
infrastructure
serverfault.com
626,755
Samba4 domain controller, group policy processing fails, gpupdate fails
I'm using a Samba4 domain controller, and on the machines joined to the domain I'm seeing this message: [CODE] Running gpupdate gives me the same error. If I open the run box and type [CODE] , I get Notepad opened up with the file in it. The contents are these: [CODE] Clearly the file exists, and is accessible (by the ...
I ran [CODE] , which took several seconds, and then re-ran the [CODE] command. The output didn't change, but gpupdate no longer fails. Huh.
2
3
11,843
2014-09-06T21:37:38.623
infrastructure
serverfault.com
379,372
How to put PHP into path
I have just built PHP from source. Usually when I do this, I don't have any problems just running php from anywhere. This time however, the console returns 'command not found'. What do I need to correct for this to work properly?
As you suspected by your subject, the [CODE] variable needs to be properly updated. If you are using [CODE] as your shell, this can be done in your personal [CODE] file, or in the global [CODE] or [CODE] files for all users. You would add a line like this in either case: [CODE]
1
3
80
2012-04-14T01:59:12.193
infrastructure
serverfault.com
411,375
Fresh Proxmox VE 2.1 installation with defaults can't be reached or pinged
I am using the lastest Proxmox VE 2.1. My server has two NICS with a uplink only connected into eth0. My Server is a co-located server utilizing public IPv4 IPs. It is not behind a firewall or any system which monitors traffic. Via IPKVM I did a fresh install of Proxmox, I put in the correct IP, Mask, Gateway, and DNS ...
I met this problem and eventually solved it. It's the problem of the LAN we are in. For some reason my LAN doesn't allow me to manually assign IP address when there's a DHCP server out there. The Proxmox installation program use DHCP to detect the network settings and then try to assign the IP manually(by OS) without u...
5
1
8,343
2012-07-26T08:55:57.757
infrastructure
serverfault.com
67,302
Postgresql and Hardware
Just a question about your Postgresql server(s). On what hardware are you running Postgresql? (CPU, Memory, Disk configuration, RAID...) I'm planning to buy a dedicaded server for my postgresql instance: - Dell R710 - Xeon E5520 x 1 - RAM: 24GB - 2x146GB SAS 15K RAID1 for OS + pg_xlog - 3x450 SAS 15K RAID5 OR 4x450GB S...
That system looks pretty good. Unless your load is read-only, you will likely first bottleneck on I/O. Avoid RAID5, go for RAID10. Also, make sure you have plenty of battery backed cache memory on the RAID controller. That'll make a huge difference in write performance.
0
4
806
2009-09-21T13:39:16.917
database_errors
serverfault.com
700,167
How to set default file permissions?
I have ran these codes: [CODE] And now my server is not working. I need to get backup copy of MySQL database How can I fix it?
That was a big failure to do so. There is a tool for macos to restore permissions for the filesystem, but as long as you don't have a backup of your server you are lost.
-3
0
48
2015-06-19T06:54:30.657
database_errors
serverfault.com
815,325
Blocking Bad Bots - Apache 2.2.15
I've used various versions of the code below to try and block bad bots, over several months, but have come to the realization that it never actually works. My server has a number of virtual hosts, and so I'd like to have the code in httpd.conf, rather than separate .htaccess files, as it makes it that much easier to ma...
Your basic idea is correct, but you need to use [CODE] instead of [CODE] . I would suggest reading the docs for [CODE] and [CODE] to see when wild cards can be used. Also you do not need [CODE] at the start and end of your User-Agent patterns, and you do not need the [CODE] in the [CODE] block in your virtual host. The...
0
0
4,049
2016-11-16T17:17:30.903
api_errors
serverfault.com
1,064,860
Exchange Full Hybrid - Email to distribution list gives '550 5.5.3 too many recipients' error (cloud to on-premise)
We are in the process of migrating from Exchange 2016 CU19 to Exchange Online. We are running a full hybrid configuration with two on-premise servers in a DAG. So far we have only migrated a small batch of users (about 25) to monitor and check we are happy with the configuration. One of these users is trying to send a ...
Based on the NDR messages, it seems to be generated from your on-prem Exchange server(server1.domain.com), right? Did you enable centralized mail transport? Could you find this email on your on-prem Exchange server if you perform a message tracking: [CODE] If there is an entry with a connector which received this messa...
0
0
5,658
2021-05-27T11:44:07.990
airflow_errors
serverfault.com
124,412
Which python libraries do you recommend for label ranking?
I'm currently looking for python libraries that offer models for the label ranking problem. So provided with a context x and a set of Labels Y, the model should output a ranking of those labels. I'm mostly interested in models that implements the Ranking by comparison method (RPC) and the Plackett-Luce Model. I would b...
I found this github repository https://github.com/JasonLC506/LabelRanking that implements some algorithms that I found pretty useful. It only supports python2, but I was able to convert it locally using future https://python-future.org/automatic_conversion.html . I have no problems so far, everything seems to be workin...
0
1
104
2023-11-03T21:18:00.020
data_quality
datascience.stackexchange.com
772,847
Splitting a single fiber connection with multiple public IPs to two separate routers
We have a single WAN connection coming into our office and have 5 public IP addresses from our ISP. We have 2 separate entities underneath our main company and I want to be able to completely split them out into two separate physical networks. Ideally I'd like to figure out how to have a topology where the ISP WAN come...
Yes, that'll work, as long as your ISP gave you two public IP's that can be used on your routers.
1
1
2,033
2016-04-25T20:55:43.173
infrastructure
serverfault.com
216,998
Updating password hashing without forcing a new password for existing users
You maintain an existing application with an established user base. Over time it is decided that the current password hashing technique is outdated and needs to be upgraded. Furthermore, for UX reasons, you don't want existing users to be forced to update their password. The whole password hashing update needs to happe...
I would suggest adding a new field, "hash_method", with perhaps a 1 to signify the old method and a 2 to signify the new method. Reasonably speaking, if you care about this sort of thing and your application is relatively long-lived (which it apparently already is), this is probably going to happen again as cryptograph...
35
26
7,148
2013-11-09T17:15:22.747
api_errors
softwareengineering.stackexchange.com
373,413
Implementing a REST API in a Clean Architecture
I have been implementing a proof of concept application using Uncle Bob's Clean Architecture and I have run into a bit of a problem. Uncle Bob's architecture calls for the explicit separation of request and responses using interfaces. This is not a problem in most cases (e.g. when implementing a UI using the MVP patter...
OK, I think I see what's going on: you've got a context impedance mismatch. You're in a framework now, Mr. Bond. The game with the composition is played a little bit differently here. The basic idea to recognize is this: the "View", so to speak, changes with every HTTP request that arrives (more precisely, it has a sco...
8
6
7,349
2018-07-01T08:12:06.263
api_errors
softwareengineering.stackexchange.com
261,688
DNS server failover
Possible Duplicate: How can I automaticaly change the DNS A record to point my site to a secondary server in case of a failure? welcome we have MS records for our domain in ISP DNS server and this records pointed to Main website hosted in ISP ,also we hosted our web site in out of my location (in dedicated cloude) as b...
Answer: How can I automaticaly change the DNS A record to point my site to a secondary server in case of a failure?
0
0
218
2011-04-20T11:25:22.640
database_errors
serverfault.com
773,384
Nginx's location and proxy_pass missing a request when hash is present in url
I have this config [CODE] When I access it like this, http://our-external-fqdn/somepath/ it works. However, when I access it like this, http://our-external-fqdn/somepath/# I get redirected to our local development setup which is http://localhost:8000 What am I missing?
You've specified an exact URL not a regular expression. Try this [CODE] If that doesn't work please curl (with show headers, option is -D I think) the URL to see what's going on, or use Firefox with "Live HTTP Headers". Post the output for that request along with your access logs.
0
0
2,923
2016-04-27T19:09:04.543
infrastructure
serverfault.com
54,958
Why can't I view the SQL Server database created by a web application?
I have an ASP.NET MVC web application deployed to IIS on a Windows Server 2012 machine. When the application first starts, it will create the database and tables it needs if necessary through Entity Framework. This all works fine, and now I want to do some administration to the database through SQL Server Management St...
Please stop using the [CODE] setting. Not only has this feature been deprecated , but what is actually happening here is that Management Studio is firing up a different user instance of SQL Server than the one your application is using, so it is not surprising that you can't see the same thing in both cases. (Usually, ...
5
9
3,101
2013-12-13T12:22:39.950
database_errors
dba.stackexchange.com
85,801
Detecting login credentials abuse
Greetings. I am the webmaster for a small, growing industrial association. Soon, I will have to implement a restricted, members-only section for the website. The problem is that our organization membership both includes big companies as well as amateur “clubs” (it's a relatively new industry…). It is clear that those c...
You are creating a lot of police work for yourself. I would delegate. Make one person at each organisation responsible for registering their members. Give them easy to use tools to do this. The registration should then record both the member details and the member's organisation. The registration process should make th...
3
1
285
2009-11-18T07:22:31.543
infrastructure
serverfault.com
76,439
Microsoft DNS/DHCP using DDNS - Domain Suffix issue
I have an issue with our Microsoft DNS server, we're getting the dreaded "DNS Update Failed" in the DHCP logs. We have two forward lookup zones, blah.com and somethingelse.com - blah.com is the one I want the workstations/DHCP to dynamically update. However, I can only get it to work if I specify blah.com as the domain...
This ended up being a problem with the clients. I had to make sure they had the correct suffix and check the box "Use this suffix when updating DNS", then DHCP happily updated DNS for me.
1
2
693
2009-10-20T17:53:17.197
infrastructure
serverfault.com
165,845
Mysql Selecting from multiple tables
I have the following tables: [CODE] I'm attempting to retrieve the phone numbers and emails of operators who serve bus stop 7628 (i.e Start or Destination = 7628) with the following query: [CODE] The query doesn't return anything, although there are also no errors. Can anyone see what I'm doing wrong?
You probably meant [CODE] I'd suggest using the [CODE] syntax, it makes the query more readable. [CODE] You might also want to consider introducing foreign key constraints.
0
1
4,047
2017-03-01T14:42:18.923
database_errors
dba.stackexchange.com
663,851
Query for existing Exchange Web Service subscription?
We have a problem with Cisco Unity and Exchange 2010. We've done packet capture and have determined that EWS is not sending [CODE] notifications to the Unity server for some users. Is there a way of querying Exchange to list what EWS subscriptions it's pushing or streaming?
Will rewrite from my comment correctly. In EWS. No. The EWS API just support to create a subscription or with the GetEvent to retrive the information, but you need to provide the watermark and the subscriptionID for such request or the request fail. As like I told earlier in my comment, in EWS you connect with a user c...
1
1
2,896
2015-01-30T22:46:26.243
infrastructure
serverfault.com
245,322
How to SELECT TOP(1) with COALESCE to pick the top NOT NULL row for each column?
I have a hierarchy of settings that have a default for everyone, can be overridden by groups, or by an individual user, for a specific screen, etc... These are stored in a table with a Hirarchy-ID to sort on, like this: [CODE] The result I'm after is for each column, the first not-null value (and it would be great if I...
[CODE] fiddle
1
0
1,732
2019-08-14T12:46:46.860
data_quality
dba.stackexchange.com
447,718
DDD On Large Scale Applications
Working on DDD lately got me thinking about how it preforms on large scale systems. Watching many tutorials and reading many articles makes it look fun and promising for small projects. I have three questions for three different categories of DDD. Lets take the famous example of eCommerce, Say Amazon. Data Duplication ...
DDD is a broad field. One of the topics is Bounded Contexts which tells us that instead of trying to model the entire enterprise in a giant unified model, we're better of creating linguistic boundaries around separate parts of the enterprise. When working with products in the context of shipping, we care about which bu...
0
4
156
2023-09-21T23:46:55.287
data_quality
softwareengineering.stackexchange.com
32,964
Abstraction: The War between solving the problem and a general solution
As a programmer, I find myself in the dilemma where I want make my program as abstract and as general as possible. Doing so usually would allow me to reuse my code and have a more general solution for a problem that might (or might not) come up again. Then this voice in my head says, just solve the problem dummy its th...
Which to listen to and how often? Never abstract until you must. In Java, for example, you must use interfaces. They're an abstraction. In Python you don't have interfaces, you have Duck Typing, and you don't need towering levels of abstraction. So you just don't. What is your strategy for this? Don't abstract until yo...
34
28
1,775
2010-12-31T22:15:15.820
api_errors
softwareengineering.stackexchange.com
258,861
Windows isn't loading anymore
We have a number of client machines on a domain that have decided to start exhibiting some strange problematic behavior this morning. All machines are Win XP SP3, fully up to date with patches and symantec av. Several different virus scanners have been tried (separately, of course), and nothing found. The symptoms of t...
Apparently we got a bad update from Symantec that took everything down.
3
0
112
2011-04-12T16:59:00.567
infrastructure
serverfault.com
55,724
Linux console is unusable when LDAP server is down
When our OpenLDAP server lost power the CentOS machines' console became nearly unusable. We were trying to login with a local account, but each command would take minutes to return. Even simple commands like [CODE] were just sitting there. This does not seem to be a problem with the same configuration under Ubuntu. It ...
You have several choices. We use replication to have several LDAP servers on the network, hidden behind a load balancer, so if one goes down, we still have one available. We use keepalived for our load balancing. You can also use keepalived in a failover setup, where you have a hot backup slave. Secondly, you can have ...
6
10
8,367
2009-08-18T18:16:25.797
database_errors
serverfault.com
920,373
I get this error "Active: failed " from the Process: 9666 ExecStart=/etc/init.d/apache2 start (code=exited, status=2)?
I was check my web server in apache2 and when I run the next command I get this error: root@me:~# sudo systemctl status apache2 sudo: unable to resolve host me ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─a...
The first error message returned from your systemctl command is: [CODE] As stated by roaima, the use of sudo is pointless, because you're already root and have all neccessary access rights as such. The sudo command can be used to acquire root rights, while you're logged in as an user. The second error message returned ...
0
2
1,824
2018-07-10T20:35:23.440
infrastructure
serverfault.com
1,065,797
Why is TCP MSL so long?
The original protocol in 1981 states that MSL=120s . MSL. Maximum Segment Lifetime, the time a TCP segment can exist in the internetwork system. Arbitrarily defined to be 2 minutes. https://www.rfc-editor.org/rfc/rfc793.txt The Linux Kernel set the default TIME_WAIT duration to 60 sec, which implies that MSL=30s , sinc...
The original 2 minute number was most likely picked as a number they considered to be impossibly long. RFC 793 (under the heading "Knowing when to keep quiet") specifically says that they may change that time length "if experience indicates it is desirable to do so" and labels it as "an engineering choice". In engineer...
1
4
964
2021-06-05T12:46:02.580
infrastructure
serverfault.com
421,618
2 default gateways for connection changeover?
I have a task to essentially change connections to our infrastructure (company's website) without downtime, and I have come up with a plan in my head that I think might work. So the basic setup is that all machines are on the same subnet (172.16.0.0/14) the old router and current default gateway for all machines is 172...
An option might be to set up a new machine, ServerA, that has both the gateways on it, one default, the other secondary. Reconfigure all the other servers to route to ServerA, let it forward from there. Then switch default gateway on ServerA. All other servers will still go to ServerA, which will route through the corr...
1
1
244
2012-08-27T14:08:08.890
infrastructure
serverfault.com
295,805
Logwatch: 3 Major DNS Issues - Are These Fixes Correct?
Can anyone take a look at these DNS issue and tell me if any of them are critical and could result in DNS issue (500 errors) and if the fixes that I found online are correct. 1. Max Open Files [CODE] Fix according to Google: Open your named.conf and add the following line to the Options section: files 4096; Open /etc/s...
The first two could definitely cause intermittent problems; the third should bomb your server fairly completely. All three should be fixed.
0
0
238
2011-07-30T14:37:22.213
api_errors
serverfault.com
430,696
LXC container network/routing issues
I have been experimenting with LXC virtualisation in order to run virtual machines on a dedicated server, but am having trouble setting up the networking properly. I am using veth bridged networking, as instructed here: http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/ (the guide I used to setup the LXC container) Whe...
I created many squeeze/wheezy containers by the same instruction ( http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/ ) The only thing I do different way is that I use a virtual network bridge. (And I think the problem is that you have a bridge to your network card, not to a virtual device) Add something like this to y...
0
1
3,888
2011-08-16T12:02:40.413
pipeline_ops
serverfault.com
147,652
Do Java, J2EE and Java Web get better with time? It still looks problematic to me after months
I'm a little new to Java Web Development. JSF, JSP, Servlets, Hibernate etc... I have really a good understanding of OOP and C++. I have years of PHP and MySQL web development experience. I also have experience with C# and ASP.NET and I'm a software engineering student. I don't want to continue my career with PHP, sinc...
I don't want to continue my career with PHP, since it is getting very popular, there are many people who use it and I can't really use my engineering knowledge fully with php. It is more basic. I need a more enterprise environment, Java EE is exactly like this. I really feel like you answered your own question here. Yo...
2
6
1,916
2012-05-07T19:24:55.197
pipeline_ops
softwareengineering.stackexchange.com
32,567
Windows 2000 Server Auto-Reboot Script
I'm running a legacy network app on an antiquated server OS(Win2k Web Server) running off-site. The app is a commercial(i.e. I don't have the source) product that's been discontinued by the developer but my company is still reliant on it because there's no better product in the marketplace for this extremely niche prod...
I'm going to say what others have said, but a little differently, as I've done this very thing with a couple of god-awful programs (both of which are polling programs for time clocks-- what is it with programs that poll time clocks being sucky crap?): Logon to the server computer as the user who will run the applicatio...
1
2
2,348
2009-06-27T05:27:16.260
infrastructure
serverfault.com
23,693
How to change the display of an empty string in mysql command line tool?
I'm maintaining a database with InnoDB tables. These tables have some columns of type (from show create table): [CODE] From the mysql command line I am searching for NULL entries in these tables. Now I SELECTed some rows where [CODE] (empty string), but the mysql command line shows both values as [CODE] Apparently this...
Bug #20067 empty string returns NULL as dispalyed value This bug is possibly fixed 5.0.23. Look at the document referenced by the above page.
1
2
2,586
2012-09-05T09:14:19.917
database_errors
dba.stackexchange.com
33,237
Internal architecture of cursors
I know that cursor isn't very good idea, but I have some questions for internal structure of cursor. First step in cursor is determining result set which cursor iterate over. So, did cursor execute SELECT query and put the result in some temporary table or it is implemented somehow different? SQL will take data pages i...
Depends on the cursor type, as documented in [CODE] : Forward-only A forward-only cursor does not support scrolling; it supports only fetching the rows serially from the start to the end of the cursor. The rows are not retrieved from the database until they are fetched ... Although the database API cursor models consid...
2
4
833
2013-01-18T07:21:26.107
database_errors
dba.stackexchange.com
203,739
Cleanup Error Messages in SQL Server ERRORLOG
The SQL Server's ERRORLOG file has a lot of messages like the following in AG in publisher (primary) as you know that distributor is out of AG Server. Subscriber is in another AG setup. [CODE] This error is because the replication server thinks there are either Publication on production SQL Server and I need to clean u...
I'm not sure I understand your motivation behind wanting to Cleanup Error Messages in SQL Server ERRORLOG . You can certainly close the current file and create a new by either: Restarting SQL Server OR Executing [CODE] Keep in mind that the SQL Server error log is a file that is full of messages generated by SQL Server...
1
1
318
2018-04-12T11:23:48.430
database_errors
dba.stackexchange.com
869,416
Server 2012 R2 RDP failed with internal error has occurred
I have a 2012 R2 server for CRM that I can no longer RDP into. The error I get is "This computer can't connect to the remote computer." In the event logs, I see 2 events that seem relevant. Event 1057: The RD Session Host Server has failed to create a new self signed certificate to be used for RD Session Host Server au...
Found a solution to my problem. I issued another certificate from my Enterprise Root CA. Then I used the following command to have RDP services use the wmic /namespace:\root\CIMV2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="Thumbprint" Now I can successfully RDP into the server.
2
0
15,835
2017-08-18T19:36:55.577
api_errors
serverfault.com
423,723
Proxy connections to certain addresses on Linux
I need to find a way to proxy all connections to example.com through a proxy server, it needs to work on the command line, as well as automatically within Python (much like exporting http_proxy would), but I want all other traffic to go through the network as it normally does.
Using a proxy.pac should do the trick. [CODE] with directives like [CODE]
0
0
4,900
2012-09-02T23:33:48.063
infrastructure
serverfault.com
116,502
storing as smallint, querying as int
A multi-billion-row fact table in our database has 10 measures stored as [CODE] columns. The value ranges for some of these columns won't ever be above the +/-32K range of a [CODE] . To save I/O, we're investigating whether it's practical to store these columns as [CODE] instead of [CODE] . But we're concerned about wh...
To prove the benefit of data compression for this question, I quickly built the following test: [CODE] The output from the last query, showing actual pages used by each table, is: [CODE] As you can see from the above results, compressed INTs containing SMALLINTs actually consume precisely the same amount of space.
1
1
506
2015-09-29T18:41:53.857
warehouse_errors
dba.stackexchange.com
802,387
google compute engine instance unable to connect between nodes using internal ip
it was working fine before i created a new instance of my existing instance. when i redeployed the snapshot of both instance onto a another zone, i wasn't able to ping or connect to both instances via lan ip. one instance is on 10.240.0.5 and another on 10.240.0.6 with 10.240.0.0/16 its on the same network, and i have ...
That is a strange behavior. If a VM is recreated in the same network, Google Firewall rules will still apply. In general there are a couple of things you might want to look at: 1) Check that the Google Firewall rule is still valid. For example if you recreate the VMs without metadata tags and the firewall rule was usin...
0
1
2,371
2016-09-11T10:08:03.720
infrastructure
serverfault.com
770,351
Missing policy in Group Policy Editor
I am seeking to turn on IE Enterprise Mode: https://technet.microsoft.com/itpro/internet-explorer/ie11-deploy-guide/turn-on-enterprise-mode-and-use-a-site-list I followed the steps but there is no "Use the Enterprise Mode IE website list" policy listed. Am I missing something? I am on the DC.
I suspect you have older versions of the Internet Explorer GPO templates installed on the machine you're opening the GP Management Console from. You can download the latest here - https://www.microsoft.com/en-us/download/details.aspx?id=40905
0
0
37
2016-04-14T14:53:35.080
infrastructure
serverfault.com
107,176
Filter and append data to row
My query and my data set ( copied from sqlfiddle ): [CODE] Table one is a join table, I've added it because in the future I might add more columns into it, and then it will be easier to modify this report. What I want is to be able to filter my dataset like so: Get all the rows where pos = 1 for t_id = 1 Expected outpu...
You could use an [CODE] to filter for rows that share a [CODE] value with rows that have a [CODE] of [CODE] ( sqlfiddle ): [CODE] Or an equivalent way using an [CODE] subquery ( sqlfiddle ): [CODE] Updated to use [CODE] from @ErwinBrandstetter's answer.
3
3
1,218
2015-07-16T12:26:24.010
data_quality
dba.stackexchange.com
43,360
Cygwin SSHd Autoblock Failed Logins
I'm running Cygwin with an SSH deamon on a Windows Server 2008 machine. I was looking at the Event Viewer and noticed as much as 5 to 6 failed login attempts per second (brute force) for the last week or so, from different IPs. How can I autoblock these IPs rather than blocking them one by one manually? Thanks, Ahmad
I wrote a program to block IP addresses like you're asking for a couple of years ago, but did it for a Customer as a work-for-hire. Since I ended up with some "spare" time this evening I opted to re-implement the whole thing from the ground up, write some useful documentation, and generally make it a presentable progra...
20
34
38,230
2009-07-21T05:26:32.677
infrastructure
serverfault.com
780,335
Receiving broadcast UDP packets under Linux
I'm having a similar problem to Linux Kernel not passing through multicast UDP packets only broadcast rather than multicast, and nothing I've tried has helped. I've got a device at 192.168.0.1 spewing out broadcast UDP packets, connected directly to eth1 (192.168.0.2). eth0 is my real network. ifconfig tells me the bro...
Here is a python script for testing UDP connections that I have used in the past: [CODE] The following can be entered into shell prompt to test sending a message [CODE] Testing it from localhost to localhost would be the first troubleshooting step, and then from another computer to the computer in question.
2
1
18,337
2016-06-01T16:32:54.337
infrastructure
serverfault.com
213,922
ESX 4.1 installation
Can i install ESX 4.1 on my Pc with 2 GB of RAM but my VGA take min 128 shared from the memory so can i install ESX 4.1 without giving me the error of 1.8 GB is less than 2 GB? how can i install ESX?
Get more RAM. There isn't really any point for installing ESX on a machine with 2 Gigs of RAM. You'll only be able to run one VM at a time which sort of defeats the point of ESX.
1
8
470
2010-12-18T02:03:13.433
infrastructure
serverfault.com
278,826
Microsoft SQL Server Management Studio
I have set up a job within MSQL studio to backup all of my databases to a specific file. Then I take that file, compress it, and send it to a backup device. I am currently hoping to make this entire process automated on a weekly basis. However, here is my problem. The job I have created in MSQL Studio currently runs a ...
If you're using the Maintenance Plan Wizard to create the job then once you click the Back up databases across one or more files option a if backup files exist: drop-down menu will be enabled. Set that menu to Overwrite and that should do it for you. If you've already created the maintenance plan, open up the maintenan...
1
3
446
2011-06-09T16:43:58.253
database_errors
serverfault.com
516,939
.htaccess ignored, SPECIFIC to EC2 - not the usual suspects
I run 8-10 EC2 based web servers, so my experience is many hours, but is limited to CentOS; specifically Amazon's distribution. I'm installing Apache using yum, so therefore getting Amazon's default compilation of Apache. I want to implement canonical redirects from non-www (bare/root) domain to www.domain.com for SEO ...
You can put RewriteRules in the server config, or in .htaccess. There are however differences that mean that a rule that works in a server config will not necessarily work in .htaccess context or vice versa. RewriteRules in .htaccess files (and directory context) are matched against relative URLs, so your rule starting...
1
1
3,673
2013-06-19T12:53:40.803
api_errors
serverfault.com
155,581
using statistics in order to decide whether or not to add a filtered index
I have many queries on table [CODE] , some of them have the following condition in the [CODE] : [CODE] for example Partial list of a query: [CODE] Can I use statistics to assess the benefit of adding a filtered index? Using the scripts from this question here: How to script statistics in Sql Server? (using T-SQL) I get...
This is probably not the sort of case where filtered indexes really shine - typically that is when the index represents only a small portion of rows in the table (like, a quarter or less) and in this case the filter predicate matches about three quarters of the table. That's not to say that you wouldn't get gains here,...
1
2
60
2016-11-17T12:10:55.643
database_errors
dba.stackexchange.com
4,943
Terabyte data set
I have the feeling that most of the database systems originate in the '80s and stereotypically implement tables, ACID transactions and constraints. They were build having in mind the scarcity of memory, disk and processing power. I am wondering if there is any storage system (not necessary accessible through SQL) that ...
I think a lot of these items are very much on the horizon (or beyond). SPARQL, for instance, is something that I don't see databases incorporating any time soon. The closest I've seen is SDB , an interface that processes SPARQL and sends it off to a standard database. Also, using GPUs as generic processors is still kin...
7
5
793
2011-08-22T22:15:50.210
database_errors
dba.stackexchange.com
5,961
Table partitioning
Recently I have been looking to optimize my database and its size is 7GB. I have an option to partition big table. But partitioning would just divide the big table into small ones while remaining on the same machine so same resources would be available. Do you think partition table on same machine would bring any posit...
7GB database size itself doesn't tell anything until unless its user case is known. If your this question relates to your another question https://stackoverflow.com/questions/7403167/index-on-url-or-hashing-considering-ram then even when it will grow to 150+ million records while on sitting on same machine partitioning...
1
2
330
2011-09-19T20:23:13.547
warehouse_errors
dba.stackexchange.com
267,201
Storage problem with MYSQL read replica
I have one master RDS instance of 50 GB storage and created a read replica of the master DB with the same configuration. I use this read replica only for SELECT operations nothing else. But suddenly I got the storage full problem with the read replica DB. Master Db is working properly, how is it possible if the size is...
Possibly what happened was that a complex [CODE] was run. It was so complex that it built one or more giant temporary tables that overran the disk [CODE] filesystem.
0
1
530
2020-05-15T08:02:20.813
database_errors
dba.stackexchange.com
693,570
the name of the security certificate is invalid or does not match the name of the site
Our Exchange server has been running with an internally signed certificate for a while. Today I bought a trusted SSL certificate (wilcard) and installed on the server. The certificate is issued to *.example.no and gives no security exceptions when I access the web interface at [CODE] from the web browser. Now, when I o...
I'm battling this exact issue. I dont have enough points to just comment. But I'm curious, do you have the EXCH outlook provider CertPrincipalName set? [CODE] It is typical with wildcard certs to need to set the EXPR provider. But I'm finding I may also need to set the EXCH provider for RPC clients. [CODE]
1
1
8,797
2015-05-21T12:33:05.977
data_quality
serverfault.com
746,800
Apache document root includes /var/www while serving pages
I have Apache 2.4 with PHP 5.5 on Ubuntu Server 14.04. I have multiple websites set-up using Vhost config files. They all serve as intended. My problem is this, when I transferred my Magneto files, it serves them but formatting is off. Looking at source shows that all my CSS files are trying to pull from / [CODE] rathe...
Solved. I was reading into my problem too much. It worked on XAMPP due to its less strict nature as that is more for development then anything else. on a "production" server, things are locked down alot more. The problem was resolved by proper folder permissions and ownership. I am unsure why the folders in question ca...
0
0
103
2016-01-05T09:54:19.060
infrastructure
serverfault.com
286,732
MySQL - Truncated incorrect datetime value
I need to migrate some data from between to tables. The first has a varchar(255) field where a date is stored. I want to insert that date in a timestamp field in the second table. The varchar field store the value in this ISO 8601 format: 2020-09-24T15:08:07+02:00. I tried different conversions using STR_TO_DATE and ca...
In would recommend [CODE] STR_TO_DATE does the trick, but is usually slow. You can run such a Query to test the performance using the column name instead of the text [CODE]
0
1
12,024
2021-03-09T12:22:07.220
database_errors
dba.stackexchange.com
211,504
How to remotely connect using perfmon?
Suprised there is not a ton of information on google when i search for this but there is not. Lot of people asking the question but i none of them have any good answers. I have a remote computer running hyper-v (server) running a Windows 7 x64 guest (guest). Occasionally i won't be able to remote desktop to guest. I wi...
I'm 99.99% sure that perfmon just uses RPC. From a port perspective, this needs access to port 135 on the target (RPC server), but then subsequent access to an ephemeral port. The Windows firewall deals with this quite nicely, as it can follow the conversation from the RCP endpoint mapper (TCP 135) to the subsequent co...
1
1
11,252
2010-12-11T03:45:47.113
infrastructure
serverfault.com
283,681
Can I use a string as an end of line delimiter when importing a .csv to MySQL?
Very basic question but I'm struggling with it. When importing a [CODE] file to MySQL, is it possible to use any character or string as an end of line delimiter? If so is it possible from the admin window 'Import'? Or must I do so in an SQL query (doesnt seem logical). So far, I have had issues using everything besides...
Yes, using SQL LOAD DATA [CODE]
-1
0
257
2021-01-21T00:47:40.547
database_errors
dba.stackexchange.com
85,228
Setting multiple Apache2 VirtualHosts to use same DocumentRoot?
First, this seems to be working fine on my server, but I am wondering about any "unknown" implications, especially any public-facing problems that could occur, such as "Google now hates your server..." I have about 10 domains which are just serving a simple "We're offline" message. I want all of these "offline" [CODE] ...
This should be fine. You can optimise this somewhat by just using [CODE] directives for all of your FQDNs in the one vhost, but it's not required.
2
3
6,295
2009-11-16T17:28:19.707
infrastructure
serverfault.com
51,823
Two different MYSQl instances on same machine?
I have MySQL 5.6 installed (Linux). [CODE] I have a cold backup that I am recovering: [CODE] In April I was able to get the backup started and it had been running fine until I had to reboot my machine 2 days ago to release an unmount that wouldn't succeed. Now, I attempt to restart that second instance and I get an err...
Since I am doing partial recovery on a damaged database (I did an iso image cold backup, but did not give the iso maker the proper options and ended up with DOS 8.1 filenames, when they should have been Joliet Long names) I must have previously used the option --skip-grant . i used the command mysqld_safe --defaults-fi...
1
1
1,729
2013-10-19T19:47:20.810
database_errors
dba.stackexchange.com
251,838
Prevent drop column with index on it in PostgreSQL
In PostgreSQL when you drop column in a table, all indexes and constraints which use this column will be also dropped silently. If you overlook such situation, you can get serious problems in production. Here is a demonstration: [CODE] Is it possible to make PostgreSQL return error when you drop a column with an index ...
There is no way to do that except writing an event trigger that throws an exception whenever certain users try to run schema modifications. You should make sure that any database user that connects and doesn't know better than randomly dropping columns without understanding the consequences does not own any database ob...
4
0
1,859
2019-10-24T06:32:43.437
data_quality
dba.stackexchange.com
491,412
Channelling DOM0 internet connection through DOMU
Bit of an odd queston but wanted to know your opinions on the following: I have a small computer that has Ubuntu (Both DOM0 and DOMU) virtualized using KVM. Now the person that will handle this computer will travel with it and can change the DOMU IP address through a web interface, however no access to DOM0 is given an...
To set things straight, there are no DOM-whatever in kvm, it's not Xen. So, as I understand, you need to be flexible with the host IP address. This is fairly simple, you have two options (unless you get into SRIOV stuff of course): Use a bridge, and have the bridge use DHCP instead of static addresses. The guest will n...
0
0
196
2013-03-26T11:52:42.477
infrastructure
serverfault.com
556,209
Rewrite not working in htaccess (apache2.2.22, windows server 2012)
I'm sure that my .htaccess file is being read by Apache as I tried to write in random stuff in it, eg: "sifnoweijf", and my page could no longer be displayed. but why the following rewrite doesn't work? [CODE] Running Apache 2.2.22 on Windows Server 2012 .htaccess file in DocumentRoot, eg: "C:/Program Files (x86)/Apach...
Sorry guys, the rewrite is definitely working. As you guys can see on my rewrite condition, I'm trying to respond to the CONNECT and OPTIONS request method with HTTP respond code 405. But I'm still getting respond code 200. The culprit is my network's configuration where the hardware load-balancer is responding on beha...
0
0
743
2013-11-20T09:43:29.983
infrastructure
serverfault.com
933,720
PAM deny rule not applied on Ubuntu in Google Cloud
I added [CODE] as the first line of every file in [CODE] (including [CODE] ), but SSH connections still succeed without a problem. This is on a default Google Cloud Ubuntu instance, so it has some mysterious sort of authentication set up. How can I get my deny command to be applied? Basic checks [CODE] has the line [CO...
The deny command is ignored for two separate reasons that correspond to two systems which bypass PAM authentication. It is ignored when running [CODE] , because the user is configured with the [CODE] flag. This flag is enabled in a file in [CODE] that has the line [CODE] and my user belongs to the [CODE] group. As the ...
0
2
447
2018-10-03T03:34:11.913
api_errors
serverfault.com
639,960
AFP Share Mounting Issues
I have setup some AFP shares on our bespoke NAS system running FreeNas but seem to be encountering some issues. All the permissions are the same and the shares setup exactly the same way. I have 4 shares, Data1, Data2, Data3 & Data4. When connecting to Data3 (for example) by going to [CODE] I enter my password, it hook...
The solution for me was to create entirely new ZFS datasets setup with Windows permissions. I then moved over all the data from our old NAS system, deleted the old dataset and renamed my temporary dataset, resolving the issue - albeit a long winded way!
0
1
559
2014-10-27T13:38:51.677
infrastructure
serverfault.com
370,795
How to Gain full Confidence in Pull Request builds
Having confidence means Pull Request builds (in Jenkins) will finally allow you to merge the code after a Pull request builds successfully and is reviewed. You're 100% confident that it can go into production. What are the measures(intermediate steps and best practices) a team should follow from the first step of recog...
This question might be a bit too vague, but the answer is dependent on what your software is built on, what it does, and who your audience or customer base is. Assuming your application has a client-side focus (in addition to server-side), having automation tests using testing frameworks such as Capybara that cover the...
-1
1
217
2018-05-11T17:24:29.023
pipeline_ops
softwareengineering.stackexchange.com