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
138,078
DBCC CHECKDB errors
I am having some issues with my SQL Server database. When I run this: [CODE] ...it spits out the following error. Msg 823, Level 24, State 2, Line 2 The operating system returned error 1(Incorrect function.) to SQL Server during a read at offset 0x00000021442000 in file 'D:\Database\db.mdf'. Additional messages in the ...
When a Operating System error is encountered during the IO request, this will be reported as a 823 error. 823 error messages are reported only for failed OS IO operation errors. Given that, you need to check your system event log for any disk or file system related entries. You will need to fix the disk or file system ...
5
1
6,334
2016-05-10T05:12:35.503
data_quality
dba.stackexchange.com
397,654
What is the Amazon RDS tenancy model?
My organization would like to better understand the Amazon RDS architecture. In particular, my managers would like to understand RDS's "tenancy" model, that is, how the service accommodates multiple customers and how an Amazon RDS DB Instance works. Here are a few possibilities listed in order of offering the most to t...
1 is correct. As evidence, the available RDS instance types ( http://docs.amazonwebservices.com/AmazonRDS/latest/UserGuide/Concepts.DBInstance.html ) correspond exactly to the appropriate EC2 instances.
5
3
3,531
2012-06-11T16:43:33.253
database_errors
serverfault.com
103,039
Which machine learning model is best for a combination of numerical and categorical data?
I want to develop a ML model which will allow my company to highlight employees which are at a risk of leaving the business, based on a variety of parameters such as performance, absence rates, location, age, team manager etc. We have a fairly diverse database of individuals who have already left the business, with val...
There are some ML models which use both categorical and numerical data Decision trees(with bagging), Random forest(with bagging & random subspace) Naive Bayes(numeric by Gaussian distribution or kernel density estimation) KNN based approach Ensemble Techniques linear regression Note: you can always use different encodi...
-1
1
3,886
2021-10-11T15:06:12.347
data_quality
datascience.stackexchange.com
622,589
All of the NTFS hard links disappear, where are those 0KB hardlinks stored on disk and how to recover them?
This is Windows 7 x64 sp1 on a NTFS file system. All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe also disappeared. Nevertheless, the original files are still located in the corresponding C:\Windows\winsxs folders. Aft...
It would be vastly faster and easier to just reimage/restore from backups. Rule of thumb for the desktop techs who work under me is that if you can't fix the problem in an hour, it's time to re-image the box. In your case, it sounds like the system rebooted or crashed in the middle of a Windows update, while it was upd...
0
2
790
2014-08-19T21:41:02.067
data_quality
serverfault.com
264,374
MySQL in star topology
I have one central database with all the data in MySQL 5.1-lastest-stable. I want to hook up multiple clients in a master-master relationship. Question How do I setup a star topology with 1 central server in the middle with multiple client-databases so that changes in one client get propagated first to the central serv...
There is a specific reason why what you proposed is impossible to achieve with MyISAM and InnoDB. A star topology warrants a Master being the center of the universe, not the slave. MySQL Replication was not designed to have a slave read from multiple masters simultaneously. It can only read from one master at a time. T...
1
9
5,184
2011-04-28T15:30:05.357
database_errors
serverfault.com
580,142
haproxy tcp roundrobin loadbalancing not working as expected
I'm new to haproxy, and using it for TCP load balancing of rsyslog logs to ArcSight connectors. For the life of me, I cannot get traffic to evenly balance across all of the nodes in the pool (which is the desired behavior). I've tried many permutations of weights and maxconn's to no avail. It feels like this should be ...
Note that [CODE] is not a good strategy to achieve even load. It will make sure that each backend receives the same number of connections over time, but does not care how long each connection last. In your [CODE] view, it should be apparent that the total number of sessions per backend server is almost equal (if their ...
4
7
10,002
2014-03-05T23:56:52.313
infrastructure
serverfault.com
238,226
getting cisco on the net
I'm trying to set up a Cisco test lab I have three routers and one switch: Cisco 2501 Cisco 2513 Cisco 3620 Catalyst 1900 What I'm trying to do is to get the 2501 and 2513 on the net. Router #1 is the 2501; router #2 is the 2513. I have all of the cable and adapters needed to get started. Router 1 is connected to Route...
I don't see anything evident in your configs that would be causing the problem. Can you run a trace route from the 100.0.0.0 network all the way through the routers and to an external ip address? Can you resolve the name www.google.com from the 100.0.0.0 network?
0
0
372
2011-02-21T16:20:38.990
infrastructure
serverfault.com
90,128
Unused index in range of dates query
I have a query that is not using existing indices and I do not understand why. The table: [CODE] The query/plan: [CODE] Why does this not use the index [CODE] ? It seems to me like the DB should scan that to find the start date, and then continue through to delimit all entries 'til the end date, and finally sort that (...
Explanation My question is: why does this not use the index [CODE] ? Even with [CODE] it can be faster to read tuples from the top of the index [CODE] on [CODE] . The first row that passes the filter on [CODE] can be returned as is. No sort step needed. With a perfectly random distribution a little below 9000 index tup...
7
15
5,674
2015-01-25T18:07:37.620
api_errors
dba.stackexchange.com
193,085
postgres database user grants to query database owned by other user
The [CODE] learning curve is very steep for me I need help. (I come from a mysql background and have the bad habit of trying to translate my mysql knowledge to pg) here is the premise: I want to import a sql dump of a [CODE] database into a new (clean) instance. I want to have 2 users: [CODE] which will own the databas...
Your app user should be created like this. Create the user: [CODE] Run this on mydb database. Grant Connect to DB: [CODE] Grant Usage: [CODE] Grant Other privileges: [CODE]
0
0
430
2017-12-14T05:08:05.693
database_errors
dba.stackexchange.com
32,960
Access 2010 linked table - solve the "decimal field's precision" error
I have an Access 2003 database (running on Win 7 64-bit, Office is also 64-bit) that has many linked tables pointing to an Oracle 11g instance through 64-bit Oracle ODBC driver . Most of the tables work fine, but some of them keep throwing at me this error: "The decimal field's precision is too small to accept the nume...
I had a similar problem, the fix was a linked table refresh. Access was not aware that the precision had changed in my Oracle table and kept giving me the 'precision too small' error.
5
3
9,760
2013-01-15T17:05:39.467
database_errors
dba.stackexchange.com
94,715
Does Percona Xtrabackup support RedHat release 4
I downloaded Percona's Xtrabackup rpm file for RedHAT. I attempted to install but hit into an error. The error seems to point to missing dependencies and libraries. I have no issue with RedHat 6 OS. I could not find the binaries in Percona's website for RedHat4. Is it supported in RedHat 4? Possible for a workaround? [...
Percona XtraBackup 2.2 does not seem to have support out of the box for Red Hat 4: Supported Releases The CentOS repositories should work well with Red Hat Enterprise Linux too, provided that yum is installed on the server. [CODE] Try, however, first the generic Linux binary and see if you can at least run the xtraback...
0
0
286
2015-03-09T03:42:55.023
database_errors
dba.stackexchange.com
1,078,952
Google Cloud Project with No Owner
We have a Google Cloud project on my team and the owner has since left the organization. We still have access to the project because someone on my team in an editor but editors cannot give others access. She is leaving the team and we are trying to give someone else access. If there is no owner listed and the editor ca...
Please follow the below steps to change the ownership : Firstly check the created services have role owner or not then you need to back up the resources to a project that you can control or alternatively you will go through the GCP support with the debit card or credit card credentials. Click the "hamburger" menu butto...
0
0
839
2021-09-28T20:39:21.077
infrastructure
serverfault.com
220,779
Configure one IIS site to handle two separate SSL certificates using external Load Balancing or SSL Acceleration Servers
I have one web application on our server that needs to be referenced by two different domain names, both of which have their own SSL certificates. The application is exactly the same for both domains, but we have to keep the two domain names for legal reasons. The problem is that, since both domains need to have their ...
If the load balancer handled all the SSL encryption for you, and passed only unencrypted traffic to the web server, then yes you could run both sites off of a single web application. I've done this before (with about 5 URLs feeding off of a single Web Application).
0
1
565
2011-01-10T18:46:42.530
api_errors
serverfault.com
53,151
SQL join query to show rows with non-existent rows in one table
I am trying to get some reporting done for employee time records. We have two tables specifically for this question. Employees are listed in the [CODE] table and each day they enter time entries of work they've performed and is stored in the [CODE] table. Example setup with SQL Fiddle: http://sqlfiddle.com/#!3/e3806/7 ...
Thank you for SQLfiddle and sample data! I wish more questions started this way. If you want all members regardless of whether they have an entry for that date, you want a [CODE] . You were very close with this version however a little trick with outer joins is that if you add a filter to the outer table in the [CODE] ...
13
12
63,919
2013-11-11T23:59:22.917
data_quality
dba.stackexchange.com
330,936
RRAS VPN Set-Up -- Need Insight From Windows Server 2008 Admin
I am hoping that I don't get too many thumbs down for this, I am hoping that someone can point me in the right direction on a project that I am now regretting picking up. I am a Linux Admin by trade, when I was informed that someone needed a Windows Server for QuickBooks and a VPN set-up I thought "Sure, how hard can t...
1) The server will need a static IP address, otherwise how will you configure the port forwarding for PPTP? 2) RRAS is free with Windows Server. 3) http://www.petenetlive.com/KB/Article/0000103.htm More importantly though - PPTP isn't secure AT ALL. I get that you don't want the client to have to spend money, but serio...
0
0
317
2011-11-14T23:03:47.383
infrastructure
serverfault.com
299,304
Windows PE and the Boot.wim injecting
Running Windows PE on 2008 server edition with WDS as the deploy point. Need to capture a Image but need to inject Intel® 82579LM and 82579V Gigabit Network drivers. The network driver is instead of being a '.inf' its a '.sys.' I attempt to try the .sys and inject it but this is what happens: peimg /inf=c:\e1c6032.inf*...
The .sys file is the actual driver; but you need the .inf file to tell Windows how to use the driver. Basically you need both. Download the correct drier from Intel, it will included the relevant inf files.
0
1
785
2011-08-09T16:41:52.267
api_errors
serverfault.com
275,864
Invalid column name SIS ID?
How do i get this column to execute, it has this exception 'Invalid name [SIS ID]? Meaning there is a space in between and want to find a way to allow it not to happened. [CODE]
I assume you mean how to get the INSERT statement to execute without error? (A column doesn't "execute".) Apparently, there is no column named "SIS ID" in the dbo.eNtsaRegPeopleLists table. That is what the error message is telling you. You did right by enclosing the column name in square brackets (double quotes is ano...
0
0
46
2020-09-22T07:50:32.597
warehouse_errors
dba.stackexchange.com
1,007,211
PHP logging every write on the disk
I have server with mod_php and several sites. Seems some of the sites is hacked, because random index.php appeared on other sites as well. For performance issues, I can not / do not want to switch to php cgi or to fast cgi farm. Is there a way to log every fwrite / file_put_contents made by php scripts so I can see wha...
... some of the sites is hacked ... random index.php appeared on other sites as well. The trouble with malware is that it's magnificently good at replicating and reproducing itself. If your intention is put this server back into any kind of Production-ready, Client service-providing state, please stop now . This entire...
0
0
36
2020-03-17T09:33:40.397
infrastructure
serverfault.com
195,367
Duplicity on a ReadyNAS
Has anyone here run Duplicity on a ReadyNAS? I'm trying but here's what I get: [CODE] I've also found this post that says the "Invalid SSH password" message doesn't actually mean invalid SSH password. This would make sense because I'm not using an SSH password; I'm using a public key. I can [CODE] , [CODE] , [CODE] and...
A few things: Are you running this directly from the command line, or from a cron job? If the latter, perhaps it can't unlock the ssh key, if the key has a passphrase? Have a look in [CODE] or similar on the NAS, to see if it has a message about why the connection is failing.
0
0
898
2010-10-27T15:30:44.593
api_errors
serverfault.com
194,969
Materialized view became INVALID and USER_MVIEWS.COMPILE_STATE becomes 'NEEDS_COMPILE'
I have an application which is getting data from Oracle(11.2.0.4) Materialized view, there is expected behaviour about materialized view will go INVALID when any DML action happens on the associated tables or assocaited objects are invalid. My materialized view opotions are as listed below and confirming that associate...
That is the expected behaviour. If the data in the base table changes and the view isn't up to date anymore its status is not valid anymore. If you recompile or refresh it will become up to date and is valid again. So you don't have to bother about the invalid state of your view. This question was already posed on stac...
1
5
37,762
2018-01-09T11:27:06.393
warehouse_errors
dba.stackexchange.com
681,943
Protecting mysql instance on Linux Azure VM
I have mysql running in a Linux Azure VM. It's currently bound to the "Internal IP Address" of the VM as looked up in [CODE] and the Azure Dashboard. I've turned on logging to see who and what is connecting to mysql after noticing performance issues. What I've found is a huge amount of spam from Chinese IP addresses at...
Configure ACL for your external endpoint. Navigate to Virtual Machines >> Select VM >> Endpoints tab >> Select MySQL Endpoint >> Manage ACL >> Add ips (both private and public). For a single ip add /32 after address like xxx.xxx.xxx.xxx/32. After all permit rules, add a deny rule to 0.0.0.0/0
0
1
237
2015-04-10T22:12:12.897
bi_errors
serverfault.com
267,271
SQL-SERVER: how to get the maximum length of a variable of VARCHAR help
Hello, in this question im trying to get the maximum length of a name but i cnat seem to figure out what im doing wrong, i've search the web for answer but find none. i tried to put the MAX function in the select clause but it didnt seem to fix it, what am i doing wrong?? Thank you
You are comparing integer to string. You need to compare length of customer name with max of length and not with direct customer name. You could modify your code as below: [CODE] I am not really sure what are you trying to do with [CODE] code. There are tonnes of article on web for finding the record for max of certain...
0
3
700
2020-05-16T07:14:28.387
database_errors
dba.stackexchange.com
761,600
bacula catalog backup error
I have a Bacula (mysql) server on an Ubuntu-server machine. It backs up and restore without issues except for the catalog. Every time it runs the catalog backup it shows an error. My guess is that there must be some kind of permission issues somewhere. I've read over many forums and I can't find a proper solution.
I solved this problem by giving execute permission to user bacula on /etc/bacula/scripts/delete_catalog_backup
0
1
408
2016-03-04T15:05:21.557
database_errors
serverfault.com
3,183
Need a similar functionality like WaitForPageToLoad in MonkeyTalk
Is there any similar function/ command in MonkeyTalk , like WaitForPageToLoad which is in Selenium, that lets me specify the script to wait for a screen to render before moving ahead? I checked MonkeyTalk's language reference but could not find a way. Also searched for this issue on Google but it didn't help me much. T...
MonkeyTalk waits and retries automatically for all commands. By default it retries for 2s, if you want to wait longer, just put a bigger number in the timeout column in the MonkeyTalk IDE. For example, 5000 would retry for 5s. See MonkeyTalk Spec: Command Timings for details.
2
1
883
2012-05-26T09:02:21.177
data_quality
sqa.stackexchange.com
79,310
Good unit test examples for embedded C developers
I'm going to be giving a talk to my department next week about unit testing and test-driven development. As part of this, I'm going to show some real-world examples from some code I've written recently, but I'd also like to show some very simple examples that I'll write in the talk. I've been searching on the web for g...
Here's a simple function that's supposed to generate a checksum over len bytes. [CODE] It has a fencepost bug: in the for statement, the test should be [CODE] . What's fun is, if you apply it to a text string like this... [CODE] you'll get the "right answer"! That's because the extra byte that was checksummed was the z...
21
15
26,748
2011-05-26T09:02:44.940
api_errors
softwareengineering.stackexchange.com
43,057
how to classify Iris flowers
I'm working on a classification problem .I want to classify Iris flowers from the famous Iris data set using MLP. I know that I the number of neurons in output layer should be the same number of classes but can I use one neuron in output layer which output is the value (0 or 1 or -1) to refer to the three types or then...
The iris dataset is meant to be used for classification. You have 3 separate classes of irises and attempting to solve it as a regression problem would be a mistake. Think about your proposed solution, you want the output to be -1,0 or +1 (for classes a,b and c). But this implies that class a is more similar to class b...
0
1
174
2018-12-23T10:21:44.557
data_quality
datascience.stackexchange.com
25,547
MYSQL MyISAM data recovery implementation
I am creating integration into eshop script, shop is using MyISAM tables and I need to implement something like transactions in InnoDB, what I actually need is full recovery of data after modifying or adding some rows. Scenario would be like: some PHP script fills several tables with information, there will be about 10...
I have BAD NEWS / GOOD NEWS for you BAD NEWS MyISAM is simply not suitable for you because... MyISAM is not a transactional storage engine Writes to a MyISAM cannot be rolled back MyISAM tables that are open crash very easily if the mysqld process or DB server crashes GOOD NEWS Using InnoDB is absolutely in your best i...
1
2
756
2012-10-06T12:50:34.313
database_errors
dba.stackexchange.com
586,874
HTTPS works, HTTP does not
I use NGINX 1.5.12 on Ubuntu 13.10 and HTTPS works fine and the pages are served (both HHVM and PHP5-FPM) trying to load the website in HTTP fails and WGET returns this: [CODE] and cURL returns this: [CODE] while running cURL on HTTPS i get this: [CODE] My config nginx.conf [CODE] conf.d/example-com.conf [CODE] I dont ...
I had the same issue. Check your listen directive for port 80. It must not contain 'spdy' or 'http2'
3
2
1,913
2014-04-05T10:03:51.097
infrastructure
serverfault.com
471,603
When a samba server shares NFS4 mount directory, window clients cannot copy file. ERROR: 0x80070021
The error reported by windows client is like this [CODE] I google it and hit samba bug report 8481 . Which is very similar to this problem. Another link also mentions a similar issue. But, instead of NFSv3, my NFS backend is using NFSv4, provided by OpenSolaris ZFS file system. I try to [CODE] , but it says [CODE] . [C...
From what I found googling, this is a problem caused on NFS level, to fix it edit [CODE] and in the [CODE] section add the option: [CODE]
5
8
13,247
2013-01-23T04:32:40.060
infrastructure
serverfault.com
108,317
Can a OCS 2007 R2 mediation server be installed on a front end server?
Is it possible to install the mediation server component of Office Communication Server 2007 R2 on to the same hardware as the front end server component, or do I need additional hardware? If it is possible, what would be the user limit before the roles needed splitting onto separate hardware? (assume I'm using fairly ...
Found the answer after much digging, and the answer is no. The mediation server can not co-exist with other components of OCS. Reference: http://technet.microsoft.com/en-us/library/dd425201(office.13).aspx
2
1
429
2010-02-01T14:18:47.720
infrastructure
serverfault.com
75,375
How to guard against backup corruption due to spurious bit errors?
There's always a very small chance that a backup that was just written to disk is corrupted. Disks are not 100% reliable. Bits can be flipped with very low probability. I have seen that happen on multiple machines on otherwise well-functioning disks. It is possible to detect such errors using backup checksums. But what...
It is possible to detect such errors using backup checksums. If you use the CHECKSUM option, then yes it should be found but only when using a [CODE] or [CODE] . If you don't check it, you'll never know. But what do you do when an error is found? That depends on what is wrong and where it happened. The action to be tak...
1
2
123
2014-08-31T11:12:45.870
data_quality
dba.stackexchange.com
283,818
IIS 7 can't run ASP.NET MVC application due to missing System.Web.Helpers
I've set up IIS 7 on my Windows 2008 R2 server according to this guide and deployed my ASP.NET MVC application on it via the one-click publishing method in Visual Studio 2010, but the IIS server fails to run the application due to a configuration error: Parser Error Message: Could not load file or assembly 'System.Web....
Apparently I need to install MVC dependencies on the server. I found a recipe on winhost forums , which says to add the required references to your project and configure them for web deployment. I followed these steps, and it solved my problem: Add the following references to the project: Microsoft.Web.Infrastructure S...
5
7
25,483
2011-06-24T14:23:41.403
infrastructure
serverfault.com
167,780
Does FreeBSD suffer from SMP issues?
This is not a FreeBSD vs [insert favorite linux server distro]. My interest is in knowing the why and how to remedy sch issues if they exist. Primarily, I'm looking to implement a FreeSwitch based PBX for the local Red Cross hospital. Me being me, I want to broaden my horizons. I'm not a full fledged expert in either l...
FreeBSD had issues with the experimental schedule "ULE" in the 6.x & 7.x branchs (it was introduced in 5.x, but was known to be very unstable). It was never the default scheduler for any production release when it had those problems. I ran ULE while it was under development and never had a single problem with it. The p...
0
1
1,049
2010-08-06T12:32:06.490
infrastructure
serverfault.com
586,293
98% cpu usage on ubuntu server running apache, site is unresponsive
I run a server with apache2 on an ubuntu box. It is a crypto mining pool. Everything was running normal even with the large inflow of people accessing our site. Then out of nowhere our cpu usage across all 8 cores is at 98 to 100% I use a reverse proxy in front of the server to help mitigate DDOS attacks but this is so...
You can find the number of top 10 (or other number) current TCP connections per IP with [CODE] And also the top 10 IPs in Apache log files with [CODE] Once you determine the abusive IPs you can block them with [CODE] . You can also rate-limit the connections with iptables, For example if you don't want more than 20 con...
4
1
2,523
2014-04-02T22:25:03.737
infrastructure
serverfault.com
425,991
What is suggested way to use iHostedService of .NET core or Windows service when process runs for exponential hour time (up till hours)?
I wanted to create a background job in which I want to use the retry mechanism for that I want to use the Polly. My requirement is like this: the First retry should be done after 2 hours the Second retry should be done after 4 (2^2) hours the Third retry should be done after 8 (2^3) hours. In short, I want to retry aft...
Create a separate windows service (or console app managed by linux systemd) The problem with IHostedService is that it runs as part of a web app. You don't need that and the problems it brings. A simple app can run forever, you can add in whatever [CODE] you like and have windows services/systemd handle restarting if i...
2
1
1,147
2021-05-03T10:44:56.077
api_errors
softwareengineering.stackexchange.com
894,087
Postfix 3.1.0: how to prevent anonymous users from sending mail
OS: Linux Ubuntu 16.04 Postfix version 3.1.0 Dovecot version 2.2.22 The situation We have mail system based on Postfix + Dovecot on server running Ubuntu 16.04 The system almost well-configured and provides following features without any problems: Delivering mail (from any location) Sending mail (to any location) Provi...
Solution Problem solved by adding to main.cf [CODE] So, this parameter with couple of another (see [CODE] output from my question above) made this task completely done. Additionally I made some small changes to main.cf, e.g. [CODE] sequence, but it's just [CODE] calibration.
-3
0
1,620
2018-01-25T14:33:56.600
infrastructure
serverfault.com
233,496
Remi Repo Mysql Server Not Starting
Executing the command to start the mysql service fails to start the mysql server. [CODE] Ran an strace on it I have mysql mysql-server php php-mysql all from remi for the latest centos available versions Here is my my.cnf file [CODE] I think the strace is now linked in a comment here is a dump of mysql_safe [CODE]
http://almamunbd.blogspot.com/2010/10/only-480-error-messages-but-it-should.html is the solution to this problem pass the word on
0
1
1,150
2011-02-09T19:53:04.047
database_errors
serverfault.com
367,045
Hash map without collision check
A few days ago I found a fun fact , that finding a collision of 256-bit hash using brute-force is physically impossible in solar system. That made me think, what would happen if we used a good (uniform) 256-bit hash in a hash map. I guess, we could consider, that there are never false key hash matches, so we could get ...
Yes, it is possible to do this. Look up the details of ZFS for a deployed, production-quality system that uses this idea. In ZFS, any data that is to be stored is hashed with a cryptographic, 256-bit hash, and if it matches any existing data that is known to exist in the system it is assumed to be the same data, and th...
4
7
1,732
2018-03-04T23:09:24.467
api_errors
softwareengineering.stackexchange.com
184,606
How to select NOT NULL columns from DB2
I've got a script I'm using against a DB2 database, and I'd like it to be able to check that all required values are present prior to trying an [CODE] -- so I'd like to select a list of the [CODE] columns from the table I'm about to insert into. Since the table definition may change I'd like to do this rather than usin...
If you are on LUW you can use the view [CODE] : https://www.ibm.com/support/knowledgecenter/en/SSEPGG_10.1.0/com.ibm.db2.luw.sql.ref.doc/doc/r0001038.html For a certain table: [CODE]
0
0
4,686
2017-08-29T16:14:00.507
warehouse_errors
dba.stackexchange.com
100,209
PHP on Server 2003: Enabling PHP_APC.DLL creates Error
When trying to enable PHP_APC.DLL, PHP crashes returning invalid access to memory location. Any ideas? I am running 5.2.12 in ISAPI mode. Here is what I have enabled extension wise: [CODE] ultimately i'm trying to create a PHP based uploader with a progress bar. From what I understand PHP_APC is the only way to do this...
Have you considered disabling [CODE] ?
0
0
379
2010-01-06T21:06:10.230
infrastructure
serverfault.com
1,050,079
how to triage linux disk IO system-wide "hang"
I have a box that is periodically "going out to lunch". Symptoms are anything requiring actual disk IO hang for 30+ seconds, and it appears anything already paged in is unaffected. The problem occurs intermittently, up to a few times an hour), and has not been traceable so far to any running program or user behavior. R...
Patterns ( when does the degradation occur?) and correlated metrics (does any other metric sharply drop/spike during the degradation?) are often the quickest path towards identifying the trigger . Even if the trigger is not responsible for the problem (e.g. if the system stalls on memory pressure, but the mechanism why...
3
0
2,077
2021-01-16T12:49:40.457
infrastructure
serverfault.com
654,226
Set up permissions to serve files on OS X Parallels host via Apache2 on Ubuntu guest
I have a Yosemite machine where I work on PHP files that I'd like to serve up locally via the Ubuntu apache 2.4 guest running 14.04. My Mac files can be served via Apache on OS X as I have set my apps folder in my home directory to set my uid to the staff group. But to isolate some server problems, I'd like to use the ...
It turns out this is done through a different path. The path I saw is not the appropriate path but it turns out to be on the guest Ubuntu side the following: [CODE] Because of the work I did earlier in adding myself as in the www group earlier this works as expected. Many thanks to this post I found after changing my s...
0
0
407
2014-12-22T16:15:56.953
infrastructure
serverfault.com
359,005
What is happening during a cPanel transfer?
I am switching hosting providers and the new host says they can migrate my cPanel with all it's settings. What actually happens during the migration and what kind of risks do I face? I am running dozens of PHP sites (including WordPress MU) and emails so I am afraid of corruption or misconfigurations. Can anyone help s...
As far as actual risks, you aren't risking much except some downtime. The transfer process ends up leaving a copy of the site on both servers, so even if it breaks horribly, your data is safe (Note that it's as safe as it ever gets with cPanel, so backup first!) The transfer process is pretty much taking a backup of yo...
1
2
63
2012-02-10T23:07:29.077
data_quality
serverfault.com
380,995
Connecting android app(android studio) to myphpadmin database(already on the server)
I have a website for admin and a mobile app for normal user. Both of them share a same database which is now on the cloud(The website for admin is already deployed with the database on the server). The way I use to connect to our local database for our mobile app is through PHP scripts which contains the necessary para...
I assume you are using a php get or post to communicate with the server. You would have to create a url in your Android application to connect to the php script on the server. For example, assuming you have a script called push.php on the server, this would connect to login_url.com/push.phpYOURPOSTMESSAGEHERE: [CODE]
-2
0
163
2018-11-05T08:53:49.307
api_errors
softwareengineering.stackexchange.com
293,206
Cisco ASA inspection of FTPS (FTP explicit SSL/TLS)
I'm trying to configure my Cisco ASA 5505 to open a passive port on behalf of my FTP server. Have anyone tried this when running the FTP connection encrypted (TLS/SSL) ? The FTP client log reports that everyting is working until the point the client issues PASV (and gets a correct command back) and then issues a "LIST"...
Configuring FTPS (either implicit or explicit) to work behind a NAT firewall can be a headache. You are correct in that the ASA cannot inspect SSL/TLS encrypted traffic. The breakdown occurs when the data channel is being built. Whether in active or passive mode, L3 (IP) and L4 (port) information regarding the data cha...
2
4
18,064
2011-07-22T21:17:00.777
infrastructure
serverfault.com
89,261
How to find all schemas where a table has records?
In my Oracle database, I have a number of schemas (users/owners) with similar table structures (about 100 in total). However, some tables are empty in a lot of schemas. Is there a way to find out for which schemas a table (with a particular name, which will be the same across all the queried schemas) has records/rows? ...
DBA_TABLES.NUM_ROWS column can be used to identify tables that are empty. But this column is updated by DBMS_STATS, so it is not 100% accurate. There is no view that contains all records.
1
2
1,548
2015-01-14T11:43:56.820
data_quality
dba.stackexchange.com
263,329
Java exception handling design
I am trying to design a simple exception handling strategy for web services middleware using some ideas from here: http://northconcepts.com/blog/2013/01/18/6-tips-to-improve-your-exception-handling/ . However I think it is worth it to have two exception classes inheriting from RuntimeException instead of just one. The ...
I don't think this is a good idea. This introduces coupling in a very non-obvious way. Consider a class or a service. It has clearly defined tasks, it's methods are well documented, it can be swapped out for something else that has the same interface/contract. Suppose it encounters an exception. The service then can de...
1
6
1,397
2014-11-20T14:49:36.373
api_errors
softwareengineering.stackexchange.com
8,702
mod_proxy loading error when starting httpd
I compiled mod_proxy from scratch, added it to httpd.conf, yet when I start up apache I get this: [CODE] We've been racking our brains trying to figure out what causes this, without any luck. Any advice?
I believe mod_proxy is actually built in several parts. mod_proxy.c and proxy_util.c. I am assuming you used axps to build the modules? Try following some of the advice in this guild: Running a reverse proxy with apache . I would start by trying to build proxy_util using axps.
0
2
1,768
2009-05-15T16:31:09.037
infrastructure
serverfault.com
421,023
Why does my namespace and class name conflict?
I have a puppet module installed that is called [CODE] . A node do I define by [CODE] and in [CODE] have I [CODE] This works perfectly. But if I replace [CODE] with [CODE] I get [CODE] Question Is it possible to have my node look like?: [CODE]
This is a design issue in puppet on how puppet tries to resolve the classnames. See this ticket for more info or this link regarding namespaces . And you should try to access your top level [CODE] modules with [CODE]
2
4
1,705
2012-08-24T23:40:40.947
pipeline_ops
serverfault.com
375,110
Debian on HP ProLiant server hangs (disk i/o is my guess)
I installed Debian (2.6.32-5-amd64) on my HP ProLiant MicroServer (purchased recently.) I also added 3 2tb hd in zfs. I've experienced several server froze. Sometimes it showed Soft lockup CUP stuck for 61s! Today I experienced a different problem (I think) and the message looked like this [CODE] and (in different scre...
The Node 0 DMA32 free line is part the message written by Linux's Out Of Memory (OOM) killer . It shows that you used more memory than you had RAM and swap space.
-1
1
254
2012-03-30T01:43:51.537
infrastructure
serverfault.com
281,286
has my server been hacked w00tw00t.at.ISC.SANS.DFind
I'm quite sure my server's been hacked. I'm seeing these entries in my access log as the last two before a series of 500 error messages, It's related to the DB but I haven't found out the exact error yet. I'm still trying to figure out what it means - can anyone help me out: [CODE] Update OK - on further investigation ...
The DFind scan is just that, a scan, and doesn't indicate a breach; you'll see it all the time if you're watching. See here . That's a graceful MySQL shutdown, which may warrant further investigation, but isn't terribly suspicious on its own.
9
17
14,956
2011-06-16T22:13:30.480
api_errors
serverfault.com
210,372
Why are we supposed to use short functions to sectionalize our code?
I've seen an increasing trend in the programming world saying that it is good practice to separate code blocks into their own functions. Obviously, if that code block is reusable, you should do that. What I do not understand is this trend of using a function call as essentially a comment that you hide your code behind ...
Code organization is all about displaying enough information to convey a single idea. The sweet spot is getting your code pared down enough that a single idea can fit in a single unit of code. Your unit of code can be a function, a class, etc. These are merely tools of organization. As with any tool, it can be over use...
21
31
3,775
2013-09-04T01:01:32.247
api_errors
softwareengineering.stackexchange.com
507,442
Is it possible to list all permissions where I don't have access
I'm looking for a way to recursively go through my entire file share ( fairly large 3TB of files ) and list out all files/folders that I don't have access to. Due to a migration and some errors on large paths ( more than 255 characters ) we've found some folders/files have lost all permissions, and need a way to find t...
An easier and less confusing way to trap cmdlet specific errors to a file is by using the -Errorvariable parameter. It is built into most cmdlets. It is not reliable to look at the $Error variable as it is a global variable and has a high chance of being stained by other unmitigated errors in the powershell process. Th...
5
2
8,325
2013-05-13T21:31:20.867
infrastructure
serverfault.com
105,864
Sql Server 2008 Backups not quite running
I'm running a server with SQL 2008, and backing up the database with a "regular maintenance plan". (I'm not an expert by far in configuring SQL Server). The execution of this plan is automated by a SQL Server Agent Job. This seems to work, I have my backup files in the hard drive, and every now and then I download them...
Look in the main SQL server logs and the history for the maintenance plan itself to find more info. The job history itself likely won't provide you with the best information.
1
1
1,946
2010-01-24T17:42:06.653
database_errors
serverfault.com
217,264
Mysql ndb cluster - node restart
I just setup a mysql cluster on a fairly decent baby (IBM x3650 M3) with 24GB memory, xeon 6core, SAS 6Gbps HDD. Running Debian Lenny 5. 64bits. Ndb version is 7.1.9a. Our database size on MyISAM is around 3.2 GB. Ndb_size estimation is 58GB for ndbengine. A little info about my database is as follows. 150 common table...
If you are able to change the database schema, normalize till it hurts, denormalize till it works . Partition your data per data node till it suits your performance requirements, but don't neglect replica nodes. If you are concerned about the node boot and start time, look at disk access/read speeds. Look at your raid ...
4
1
1,014
2010-12-30T01:12:05.090
database_errors
serverfault.com
301,207
Group policy proxy settings and Sql Server .NET Client Data Provider connections
Would the proxy settings enacted upon a user by a group policy configuration be applied to a Sql Server connection made by the Sql Server .NET Client Data Provider library, under the following conditions: The proxy settings are enabled to every protocol The proxy settings are bypassed for addresses listed in the local ...
The SQL Server drivers do not use the Internet proxy settings.
0
1
164
2011-08-15T13:52:14.873
api_errors
serverfault.com
1,099,834
Is Gmail removing "Received" in headers?
I added my professional email to my gmail account as POP3 and set it as default for sending emails. Strangely, when sending emails to other emails like hotmail, or even by using tools like mail-tester or mailgenius, for each of them I see in headers something like that : Gmail to Hotmail [CODE] But somehow, when I send...
The esmtps is a secure version of the extended smtp protocol, the LMTP protocol you're seeing in the second request is because that request is more local (e.g., from the same server). You probably wouldn't ever see that esmtps if its not even leaving the host. Some more information about the situation may help, ie, sen...
0
1
515
2022-04-29T21:57:17.077
infrastructure
serverfault.com
117,038
Do management operations such as database copy affect our current db performance?
Example: I have a database named "myDb" I execute on the master: [CODE] Will the performance of "myDb" be affected? Specifically the avg_read_io (data reads)?
After executing copy database operation and database export operations, this is the data that I gathered. I used: [CODE] to real time query performance information. I used a completely isolated Premium P6 (old P3) Database. During the create database as copy , the source database was not affected at all . That means co...
1
3
1,989
2015-10-05T15:32:51.940
warehouse_errors
dba.stackexchange.com
376,644
Mail server Dns zone file configuration
My server hostname is: test02.s80.in and its IP address is: 176.67.172.209 I want to configure a postfix mail server on this server. Can anyone tell me the correct DNS zone file configuration for this server so that I get a spf="Pass", when I send mail from my mail server to gmail or any other mail server.
You need to create a TXT record for test02.s80.in that looks like: "v=spf1 a -all". You can validate the record by using something like: http://www.kitterman.com/getspf2.py Hey, look, Microsoft has an SPF record generator: http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/ Once you generate yo...
-1
3
160
2012-04-04T13:05:48.090
infrastructure
serverfault.com
46,816
Mysterious missing transactional replication tokens
I am looking at implementing Transactional Replication subscriptions in an AlwaysOn AvailabilityGroup. I tried to use this as a guide: https://www.simple-talk.com/sql/backup-and-recovery/expanding-alwayson-availability-groups-with-replication-subscribers/ The reason I say tried is not in anyway besmirching the author -...
This type of behavior is usually caused by an uninitialized subscription. Make sure the snapshot agent ran successfully and the distribution agent is running too. Check out level 10 of my Stairway to SQL Server Replication for more help on troubleshooting replication.
2
2
181
2013-07-22T21:29:56.883
database_errors
dba.stackexchange.com
161,820
Find MIN and MAX Database Backup duration
I have this query to find the duration of backups taken which I want to run against registered servers in CMS across the entire enterprise. The problem though, is how to find only the [CODE] and [CODE] duration per database rather than the runtime of all of the backups. I've messed around a lot with [CODE] and [CODE] b...
Use the [CODE] aggregate to get the min and max rows, then show only those rows: [CODE]
2
4
550
2017-01-20T22:35:40.857
database_errors
dba.stackexchange.com
189,103
sql 2005 fulltext catalogs inaccessible
Recently, and without any errors in the logs, my fulltext catalogs have stopped responding. I can't disable/delete/rename them. SSMS reports a generic error (1222) and using sql commands in the query window to remove the fulltext catalogs results in neverending executions. All the fulltext catalogs in multiple database...
Here's what 'fixed' it. Disable fulltext index service, restart server. uninstall full text service using sql 2005 installer. Restart server. Delete all fulltext catalogs for every database. Install full text service, restart server. All this and no indication as to the nature of the error. :/
1
0
136
2010-10-08T15:51:13.387
infrastructure
serverfault.com
152,613
Handle all authentication logic in database or code?
We're starting a new(ish) project at work that has been handed off to me. A lot of the database sided stuff has been fleshed out, including some stored procedures. One of the stored procedures, for example, handles creation of a new user. All of the data is validated in the stored procedure (for example, password must ...
No, it is not typical that a stored procedure handles all data validation. From my observations, stored procedures should use assertions as a last line of defense against bad data. Like making sure string data doesn't exceed n character length for a particular field. Stuff like the password must meet certain criteria l...
1
5
343
2012-06-12T19:40:31.390
api_errors
softwareengineering.stackexchange.com
771,771
Minicom Serial Port Connection Output
I have recently purchased a Cisco PIX 501 firewall and I have connected to the console port with a serial port USB adapter. After doing this I open up my terminal and start minicom. Here are my configurations for minicom: minicom-conf After verifying the configurations I exit out of the configuration window and power o...
Your config looks ok. I use screen for this, never quite got minicom working fine. Supposing the usb adapter is [CODE] then: [CODE] so 9600 baud, one stop bit, 8 data bits, no parity. If your user is not member of the dialout group (or group indicated on the output of ls), run it as root.
0
0
1,092
2016-04-20T18:13:37.340
infrastructure
serverfault.com
290,860
Non-deterministic performance of query on select, from 1s to 60s on table with 1 billion rows
I'm trying to investigate why the performance of this query is so non-deterministic. It can take anywhere from 1 seconds, to 60 seconds and above. The nature of the query is to select a "time window", and get all rows from within that time window. Here's the query in question, running on a table of approximately 1 bill...
Explanation The all-important difference between the two query plans is the added [CODE] bit in multiple places of the slow version. Slow: [CODE] Fast: [CODE] This tells you that Postgres encountered data (or index) pages that were not cached , yet. Repeat the slow query (possibly more than one time, until the added [C...
5
7
276
2021-05-01T18:46:19.150
warehouse_errors
dba.stackexchange.com
123,764
Why can't I create a public folder?
I have a need to create a new Exchange public folder, as a sub folder to a folder that I'm already the owner of. When ever I try (from Outlook 2007) to create a new public folder, I'm told I don't have persmission. Outlook doesn't let me view the permissions of this folder, however it lets me view permissions of other ...
Resolved. Delving deeper into the permissions (CTRL Click on 'Client permissions' dialog in ESM), the advanced tab showed some odd deny entries. Once removed, public folder creation is back to normal.
0
0
2,287
2010-03-18T11:19:31.383
infrastructure
serverfault.com
891,371
Outlook 2016 applies Exchange attachment size limits to other POP3/IMAP account
In our organization, there is a 10MB limit on email attachment size (through Exchange 2013). Most of our clients have another POP3/IMAP account too (in Outlook, besides their Exchange account). The problem is that when they want to attach files larger than 10MB to emails which are being sent from their POP3/IMAP accoun...
There is one step missing in the above solution. Here is how you need to do it. Go to Microsoft Office 365 admin center. Go to Exchange admin center and select the recipient's mailbox. Select [CODE] > [CODE] . Increase the size to what you need. Go to [CODE] Select [CODE] > [CODE] > [CODE] > [CODE] > [CODE] Add a DWORD...
0
0
2,195
2018-01-09T12:57:25.180
infrastructure
serverfault.com
520,730
nameserver is not resolving - hetzner root server
I bought new root server on hetzner with 2 additional IPs. CentOs 6.4 minimal version is installed. Based on this tutorial i assigned 2 additional IPs. ie, duplicated ifcfg-eth0 file to ifcfg-eth0:1 and ifcfg-eth0:2, then changed IP. It works. These additional IPs are used nameserver registration and registered [CODE] ...
I am not sure why they call these servers "root servers". They look like ordinary colocated servers to me. It might be an incorrect translation. Anyway, there is nothing magic about [CODE] and [CODE] subdomains. By convention these are nameservers for the domain, but this is neither necessary nor automatic. What you ne...
-2
2
2,178
2013-07-04T03:21:29.820
database_errors
serverfault.com
273,307
Home project & work project sharing common library under development
Those of us who do software development not only for a living, but also as a hobby, have probably encountered the following scenario: Say, there is a project at work called [CODE] on which you work together with a number of colleagues. And suppose that this application is making use of a library called [CODE] which is ...
You may think in terms of packages, which makes the location of the source irrelevant. For instance, if you work with C#, your shared library can be published as a NuGet package. When you refactor the library, you don't cascade anything immediately to work application ; instead, you publish a new version of the package...
4
1
170
2015-02-15T17:07:15.827
api_errors
softwareengineering.stackexchange.com
278,837
How can I argue convincingly against duplicating database columns?
I've started working at a new organization and one of the patterns I've been seeing in the database is duplicating fields to make writing queries easier for the business analysts. We're using Django and its ORM. In one case, we keep a MedicalRecordNumber object with a unique string identifying a patient in a certain co...
Your operational database should be highly normalized, to reduce anomalies . Your analytic database (warehouse) should be highly denormalized, to ease analysis. If you don't have a separate analytic database, you should make some highly denormalized [materialized] views. If you tell your senior business analysts / mana...
47
129
5,797
2015-04-11T16:44:11.717
data_quality
softwareengineering.stackexchange.com
389,741
nginx rewrite rules for lithium php framework
I have been trying to get [CODE] running with Nginx with no success. The directory structure of [CODE] is like this [CODE] I copied the [CODE] folder into my [CODE] . The path of lithium is [CODE] Now I set up the rewrite rules this way in my [CODE] [CODE] But nginx always throws a [CODE] error. Why is that happening? ...
It'd be simpler to just point to webroot using [CODE] . Or you can do the following. [CODE] then use [CODE] instead of ugly [CODE] 's: [CODE] Don't forget to protect the other directories.
1
1
1,024
2012-05-16T01:33:43.223
bi_errors
serverfault.com
907,709
AWS API gateway as proxy to EC2 based microservices
I have a couple of microservices running on EC2. My intention is to use the AWS API gateway to allow internet access to the EC2 APIs. [CODE] I am planning to use a geedy HTTP Proxy on AWS Gateway. But I have 2 problems: A) How can I address the EC2 in the "URL Endpoint" in the method integration? Can I somehow use the ...
API Gateway is intended mostly for use with Lambda, so there are some limitations. For the easiest integration, you must have your microservice public and then authenticate between API Gateway and your service by some other means. This doesn't sound like what you want to do... I wouldn't want to make my non-public serv...
5
6
18,920
2018-04-15T10:24:49.657
api_errors
serverfault.com
163,992
What can silently block a port to be accessed on Ubuntu 10.04 Server?
I've got a proprietary service running on port 8090 (actually running on a VBoxHeadless VM and capturing this port from the host machine) on an Internet server. Nmap shows port 8090 open both on host and on VM. The service looks starting (and stopping if asked) ok. Telnet is able to connect to the port from a remote cl...
[CODE] and check your chains there, there could be a weird block rule for certain packets on port 8090. hosts.allow is another one to check. One thing to check with VPN is your router config. Is the VPN subnet being recognised? Is there any kind of explicit allow/deny rules on the router at all? If so, what do they all...
2
1
954
2010-07-26T04:46:19.757
infrastructure
serverfault.com
151,080
Are More Comments Better in High-Turnover Environments?
I was talking with a colleague today. We work on code for two different projects. In my case, I'm the only person working on my code; in her case, multiple people work on the same codebase, including co-op students who come and go fairly regularly (between every 8-12 months). She said that she is liberal with her comme...
Comments don't clutter the code. And when they do, well, every half decent IDE can hide / fold comments. Ideally the story should be told by your code, your requirements document, your commit history and your unit tests, and not by comments. However excessive commenting can only hurt when comments are concentrated on t...
11
22
923
2012-06-01T01:03:40.500
api_errors
softwareengineering.stackexchange.com
838,991
VM starts with system disk in read-only mode
My vm starts with the system disk in read-only mode, so system can't load anything properly. The instance was created with the disk of and old vm, but in the instance properties disk is "boot, read/write" mode. Server responds to ping, and I can connect by using FTP. Files are there but a lot of processes are not loade...
The only typical scenario where a disk get mounted as read only is when the disk is attached to multiple VMs . You might want to check the FS consistency and the information given by dmesg . Another place to have a look is the content of /etc/fstab just in case the default file was re-written and is mounting the disk a...
0
1
2,347
2017-03-17T18:07:30.817
infrastructure
serverfault.com
697,317
ESXI 5.5 NFS to NFS copy is slow
i'm running esxi 5.5u2 standalone with 3 datastores , (local , netapp (nfs) and synology (nfs ) There are two Gigabit network adapters configured. One per vswitch. One for storage and the other for management. the two adapter and Nas are on the same physical switch. i want to copy a vm from the netapp to the synology b...
I think i found a clue . the two cards were on separate vswitch and i tested also the card in the same vswitch and assigning a vmnic to each portgroup. It looks like if i want to force read on vmnic0 and write on vmnic1 to maximize bandwidth something is slowing it down. Now if i put all vmnic on the same vswitch (sepa...
2
1
1,180
2015-06-08T08:16:42.087
infrastructure
serverfault.com
351,009
TortoiseSVN checkout via LAN
I have recently installed TortoiseSVN on Windows and have two computers, A and B. On both machines I installed TortoiseSVN and they are connected via LAN, and I have my repository saved in computer A. I want to access/checkout the repository in Computer A from Computer B, so I tried this URL in the repository to SVN ch...
Within your filemanager (or Windows Explorer), right click within a directory. There should be the entry TortoiseSVN . Then select Project archive . In the next window you'll see URL . That's the one you must change.
0
1
1,874
2012-01-18T12:20:17.093
infrastructure
serverfault.com
499,468
log server setup and testing, with log manager opensource
I've been trying to get a new, centralized, log-server up and running for some testing and have run into some problems. First part is that I've installed Kibana but can't get anything indexed, tried most of Kibanas own troubleshoot. It seems that it won't read remote log files, can't even index the standard logs as mes...
What's the amount of logs that you have per day ? If it's less than 500 MB you can see splunk. It's a pretty cool tool which allows you to index logs and crate graphs / correlation easily. Sure it worth to give it a try. In addition splunk indexes every field separately so handling different formats is there by default...
0
0
453
2013-04-15T11:49:54.187
bi_errors
serverfault.com
224,250
Practical mysql schema advice for eCommerce store - Products & Attributes
I am currently planning my first eCommerce application (mySQL & Laravel Framework). I have various products, which all have different attributes. Describing products very simply, Some will have a manufacturer, some will not, some will have a diameter, others will have a width, height, depth and others will have a volum...
I think the key thing here is flexibility. Since there are different types of products with each having different set of attributes, it would be fair to assume that product as well as attribute types will change. So it isn't very convenient to include attributes in the product tables. Here is what you could do: have a ...
4
5
9,300
2014-01-15T13:38:27.537
pipeline_ops
softwareengineering.stackexchange.com
196,361
Best way to create draw with limitation
I'm writing a program to automatically make the draw for a competition. There are four objects: [CODE] [CODE] [CODE] [CODE] Each Debate has two teams and a judge. Each team participates in three debates. With this, there are the following rules: 1) A team cannot face someone from their same school 2) A team cannot face...
I think you're close. The trick is to start with the first team ('first' can be defined any way you want, including random) and make a list of all the available other teams, in some order. Pair up the first team with the first of the available other teams. Now look make a list of the available judges (again in some ord...
-1
2
135
2013-04-27T18:20:51.420
api_errors
softwareengineering.stackexchange.com
11,651
Ansible: how to display the name of the currently running included_tasks playbook file?
I wrote an Ansible role which does lots of things, it's called "common" and all Ansible hosts are using it. The directory structure is as follows: [CODE] main.yml looks like so: [CODE] The playbook that I'm currently running: [CODE] While I run the "common" role on a server, I want to know which imported_tasks file is ...
If you want to "add base_packages.yml to the title of the task" you'll have to add it to the names of the tasks. For example [CODE] [CODE] might help to automate it.
1
1
414
2020-05-19T16:52:37.600
pipeline_ops
devops.stackexchange.com
665,731
Postfix doesnt apply virtual mailbox rules when external domain sends email
I set up my Postfix to use virtual mailboxes. When I telnet the mail server and send an email from that, it works flawlessly (both when on the mail server and telnetting from a remote client). The mail file lands inside the specified directory under 'new'. But if I send an email from outside, without Telnet, the mail l...
I just repeat what daff said: Your log line was telling the truth. The sender sent the email with recipient address [CODE] . Unless you can prove that the sender composed email with recipient [CODE] and magically google transform it to [CODE] , there are nothing to do here. It's the client fault not your Server Fault .
1
2
210
2015-02-07T00:18:33.130
api_errors
serverfault.com
375,692
How to either completely remove SQL Server 2008 R2 Installation or repair it?
I've installed MSSQL server correctly, then I took some wrong turns and I'm now left in a pretty undesirable state. I wanted to change the server instance to another drive, so I uninstalled SQL server and all of it's features from the [CODE] control panel. Now when I tried to install a new instance, I got a few errors,...
It appears that this was a known issue in a older version. You may want to try the workaround, which involves manually removing the SQL Server Compact Edition components from Add/Remove Programs and then running Repair. You may receive "Error 1316.A network error occurred while attempting to read from the file Path\SSC...
0
1
5,813
2012-04-01T13:21:34.387
database_errors
serverfault.com
837,194
How to block client request in Local Area Network in linux?
we have a Linux based Local Area Networking, Please find the below architecture diagram we have server and client machine connected to through network switch, When any request comes from client we able to block the request in server (192.168.12.10 ). But but client 1 gives the request to client2 any Tcp/IP request we c...
If the clients are also running Linux, you should also be able to block them using iptables. For example, on client 1 if you wish to block all incoming TCP IP traffic from clients 2 and 3: [CODE] and on client 1, if you wish to block all outgoing TCP IP traffic to clients to and 3: [CODE]
3
3
1,382
2017-03-09T07:57:53.660
infrastructure
serverfault.com
181,972
Intel Rapid Storage Technology - Raid5 is very slow
I build a computer with a raid5, using the motherboards raid controller (ASUS P7H57D-V EVO - intel Rapid Storage Technology). The read and write are however very slow, when using the raid controller :( - I am using Windows 2008 R2, and when using the windows software raid, it was ok in speed - so there must be an issue...
Did you just build the array? its possible that it is still syncing all the drives. on a 5x1TB array it took me 9 hours and during that time it was very very slow as there was a lot of background processing and writes.
0
1
4,166
2010-09-16T19:29:41.507
infrastructure
serverfault.com
971,529
Ubuntu samba restore idmap database
so i ran into a disaster and have to get the server up and running on monday morning :D my ubuntu server setup with samba / winbind and joined to active directory domain controller holds the shared folders of many departments with specific access rights based on AD users.. my main server went nuts and everything stoppe...
1- First solution so i found the problem, it turned out that the server was suddenly making a jump in the future of 1 day (date is 1 day ahead ) normally all services are messed up this point, i reboot the server and the time is corrected BUT services are still messed up at this point. I had to also delete all log file...
0
0
722
2019-06-14T22:10:28.897
database_errors
serverfault.com
1,055,995
On AWS during DS record creation I get an error, DS record with DNS name ex.com not permitted in zone ex.com. Why might this be?
Environment: AWS, DNSSEC When I attempt to create a DS record to establish a chain of trust I get an error that I don't understand. My full error. [CODE] Oddly enough when I attempt to add the key to a subdomain like www.example.com it works. But that's not what I need. I need it to work for the entire domain.
The [CODE] record for [CODE] would go in the [CODE] zone as part of the delegation, not in the [CODE] zone itself. This is how the chain of trust is formed, you get the [CODE] with a signature from the already validated/trusted parent zone. (In such an example, it would be managed through your registrar.) Similarly, if...
0
1
2,424
2021-03-05T02:10:02.070
infrastructure
serverfault.com
717,939
How to I configure CentOS command sudo su with a password
I have disable accessibility on my CentOS server by using given username and password, I allow them to access server by using Public Key instead, but I noticed that every account can change to root permission just using "sudo su" without any password prompt. Is there any possible way to "enable/disable" password prompt...
It seems like you've set something like that in [CODE] : [CODE] You have effectively given the users in the sudo group full unrestricted control over your system. Trying to deny them access to the su binary is as others have noted futile as they already have root privilege via sudo and membership of the group. You shou...
-2
5
844
2015-08-31T08:39:54.573
infrastructure
serverfault.com
840,260
How to allow users to login remotely when already granted right through GPO
I have a server running Windows Server 2008 R2 as a domain controller. I have a number of Windows 7 x64 Professional machines. I am trying to set Remote Desktop privileges to all users to login to all my domain machines. I have set the User Rights Assignment for [CODE] to Authenticated users, Users, & Remote Desktop us...
The Remote Desktop Users group in AD controls RDP access to Domain Controllers. It has no bearing on the local Remote Desktop Users group or RDP access to domain joined computers that are not Domain Controllers. For those computers you'll need to use Group Policy Preferences or Restricted Groups to modify the membershi...
0
5
1,358
2017-03-23T19:24:30.200
infrastructure
serverfault.com
300,581
For my RDS SQL server master user, I granted denyreader and denywriter to a database. Now I cannot revoke it
For my RDS SQL Server master user, I have granted [CODE] and [CODE] to the master user on a database. Now I cannot revoke it. There are no other db owners to the database that can change permissions. How can I reverse this???? Can you please help?
From the RDS Docs : If you accidentally delete the permissions for the master user, you can restore them by modifying the DB instance and setting a new master user password. For more information about modifying a DB instance, see Modifying an Amazon RDS DB instance . Performing a password reset appears to do more than ...
0
1
328
2021-10-04T14:09:37.047
database_errors
dba.stackexchange.com
407,083
Wireshark running all the time
Would this cause an issue eventually or is always ok to leave running. SHould it's logs be saved every no and again and if so when?
Generally it's ok, especially if you have it running on a mirrored/spanned port - it's really only a load/disk-space issue. As to when they should be saved, that'd down to your own use case to be honest - not sure anyone can answer that for you. btw - Gerald Combs who wrote WireShark is a user here and often pops up wh...
0
3
3,758
2012-07-12T11:41:05.010
infrastructure
serverfault.com
820,528
Using `#` in nginx location regex?
I have the following two blocks in my nginx config for Kibana. My goal is to provide two levels of access, one to access the dashboard, visualization, and discover pages of Kibana (for developers) and a second level that can access the management and dev tools (for Elasticsearch admins). [CODE] When I run with this con...
The reason this doesn't work is that the [CODE] character is never sent to the server. Unfortunately, there is no way around this using nginx.
0
0
214
2016-12-13T21:31:14.147
bi_errors
serverfault.com
12,821
how to generate sample dataset for classification problem
I am a newbie to data science. I have a 'short text' categorization problem where input variables are either unstructured texts (names, definition, description etc) or categorical. There is not much semantic to the fields as they are product names, territory name, sales order type etc. Issue is I do not have any sample...
I know this isn't answering the question that you actually asked, but I suggest that you NOT generate data for your 'short text' categorization problem. Generated data can work for certain cases when data scientists who are very familiar with an algorithm want to demonstrate a specific feature, but there is a hokeyness...
2
4
2,311
2016-07-16T21:30:29.840
data_quality
datascience.stackexchange.com
183,554
SQL Server 2016 issue regarding migration of in-memory table and foreign keys
Trying to use table memory optimization advisor on SQL Server 2016, seems I need to drop and re-create the foreign keys of some disk based tables, the size of the table is 300 GB and I'm wondering if there is any risk to drop and re-create the foreign keys before table memory migration?
Risk is in between you drop and recreate the Foreign key constraint any process (application, user etc etc) will be allowed to insert data in any one of these tables which can break the referential integrity. If that happens you will not be able to recreate the Foreign key constraint (with checking integrity on existin...
1
1
248
2017-08-15T18:46:20.790
database_errors
dba.stackexchange.com
148,856
Hierarchical permissions in a table stored hierarchy
Assuming the following database structure (modifiable if need be) ... I am looking for a nice way to determine the "effective permissions" for a given user on a given page in a way that allows me to return a row containing the Page and the effective permissions. I am thinking that the ideal solution may include a funct...
Using this model, I have come up with a way to query the Pages table in the following manner: [CODE] The GetPermissionStatus inline table-valued function's result can be either an empty set or one single-column row. When the result set is empty, that means that there are no non-NULL entries for the specified page/user/...
9
11
3,056
2016-09-05T20:02:49.777
warehouse_errors
dba.stackexchange.com
333,117
Nginx common configuration that I might have missed
I recently moved from Apache Mod_wsgi to Nginx, and I have seen a major improvement on speed a lowering on memory usage and I am generally very happy with the it. I am not a server expert, so please be gentle. I am wondering if there are any small configuration that I might have missed, that will cause me some issues i...
I recommend you to set lower keepalive timeout, 75 is too much and practically useless. I usually use 10-20 seconds, that should be enough. But if you don't expect a lot of requests, 75 is okay too.
0
0
283
2011-11-21T08:47:55.107
infrastructure
serverfault.com
573,809
Skip Secure Auth - MySQL 5.6.15
I want to turn off secure auth, 50% Of our clients are having problems Error: Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled) (2049) I tried to add to my.cnf [CODE] But with no luck, any help? Is there any solution except changing clients database passwords, that w...
The first problem is that (eventually) you need to identify everyone who has an old-style password and have them changed to a new-style password. Old passwords are not secure . Now, for the immediate error, this is happening because the client has secure_auth set, but the user has an old password. In order to login wit...
3
3
46,972
2014-02-06T23:10:59.107
api_errors
serverfault.com
39,202
SQL Server 2008 DB Performance on single disk
I have a database in SQL Server 2008 with around 20 GB in size. And it is increasing rapidly. Somehow I can not add multiple independent harddisks to increase IO performance. If a add large table in separate file group, will it help to improve performance on single disk? Or any one has tips to improve performance? Than...
First off, gather a performance baseline in order to know what the situation is now. Keep monitoring the performance to see if there is a trend for degeneration. If the performance seems to become an issue, there are a few things to do. Identify the root cause for lack of performance. Is the server expiring memory pres...
1
2
772
2013-04-04T05:10:04.020
database_errors
dba.stackexchange.com
845,952
DNSCrypt with BIND9 on Debian
I'm stuck. I'm trying to leverage DNSCrypt in the wake of the recent changes with ISP laws in the USA. Here's my setup: Two Debian Jessie servers with BIND 9.9.5-9, fully patched (using stable branch) dnscrypt-proxy 1.9.4 (compiled from source with libsodium18 1.0.12) For testing, I'm just trying to use the OpenDNS res...
[CODE] is not what you want as forwarding is essentially considered a special case of recursion. With [CODE] defined and [CODE] BIND should send all recursion queries to your forwarders. Ie, something like the following in [CODE] ought to work: [CODE] Regarding the [CODE] errors, do check the BIND logs to see what is a...
0
2
3,573
2017-04-22T15:04:04.783
infrastructure
serverfault.com
122,949
What are the personal benefits from writing a boost library
Among the reasons for a developer to publish a self-written library as open source library, there is definitely fame. Now when it comes to Boost Libraries , they are available and promoted in a very anonymous and impersonalized form. The name of the author will be readable in the documentation and source files, but be ...
Well proposing it as a Boost library will for sure make it be recognized as a C++ standard more easily if this library is that good. As Boost requirements are very hard to meet, it ensures that your library is a really good one if it is accepted. Then as Boost libraries are regularly added to the standard, yours can ma...
2
3
710
2011-12-02T17:12:08.693
api_errors
softwareengineering.stackexchange.com