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
203,872
the active directory is rebuilding indices
I have windows 2003 and active directory domain controller installed on it. I also have raid 0 + 1 on that server. One disc failed. So that I removed it and everything was ok but I wanted to replace failed disc do that I bought one (unfortunately not the same but different - bigger space and company, there wasnt the sa...
You need to use the RAID utility (and this differs depending on make and model of your RAID controller) to add the new disk as a member and have it rebuild the array. This can normally be done either with a software tool inside Windows in this case, or during the BIOS POST settings phase of your RAID controller by pres...
0
1
1,977
2010-11-19T11:17:05.473
infrastructure
serverfault.com
379,927
Bash Script To Simulate SMTP Mail Receipt
How would I create a Bash script that simulates SMTP mail receipt and then drops the result into a Maildir-formatted directory (so that Evolution mail reader could read it)? I just thought it would be a cool thing for PHP developers to have so that they could test SMTP outgoing mail without having to connect to a real ...
Wouldn't the easiest answer be to code a simple wrapper around http://quintanasoft.com/dumbster/ ?
3
2
683
2012-04-16T16:23:19.150
infrastructure
serverfault.com
586,825
Apache alias to a file in a virtual host
I'm trying to setup z-push which requires an alias [CODE] that points to a file [CODE] in another directory outside of the VHost location. To test I setup a file in the same path and created the following [CODE] which doesn't work, but if I change the Alias to this [CODE] I can access it at the url [CODE] . Except I ne...
I think the culprit is this [CODE] rule you have on top of your config file : [CODE] With this rule enabled, when you request [CODE] then the [CODE] extension is added and your request becomes [CODE] . And, of course, such a file does not exist. Extract from my log : [CODE] As it seems that this rewrite rule is needed ...
1
1
3,488
2014-04-04T21:51:23.470
infrastructure
serverfault.com
279,870
Get current table name trigger was fired on
My system: Db2 11.1 on Linux. 1.Create some table: [CODE] 2.Create audit table: [CODE] 3.Very very simple sample, when insert into source table admin.tab I would like to insert into admin.audit: [CODE] 4.Above trigger works fine, but is there any way in above trigger I can replace 'admin.tab' constant with current tabl...
Is there any way I can obtain inside a trigger the name of the table on which the trigger is defined? No, there is no such capability in any of the current (as of year 2020) Db2 versions, for reasons that I won't go into. For a comparison, consider why a C function cannot know its name or the name of the function that ...
2
4
575
2020-11-18T09:13:40.553
warehouse_errors
dba.stackexchange.com
1,087,962
Identifying cause of too many CLOSE_WAIT in IIS
I have a windows server running a web api that serves an android app, and today I started getting alarms saying that my server was timing out. This server is running behind Cloud Flare. When I connected to the server via RDC, I noticed that it was using 0% of CPU but had more than 3200 connections as can be seen here: ...
OK I will post my findings here, just in case anyone needs it. Around 10 hours before this issue started to happen, I had ran windows update and KB5005698 was installed. This update was installed on the 2 servers that support the android app. Weirdly enough, the issue started at the same time on both servers, that's wh...
2
1
856
2021-12-22T08:17:14.570
infrastructure
serverfault.com
792,729
Can't change to CloudFlare because dns is hostname
I want to setup cloudflare but the problem is that my ns for the site is also hostname i.e ns1 and ns2.designzzz.com the problem is that if i change the nameserver to cloudflare's in my godaddy how will it affect my other sites using this ns1 and ns2 on the server ? What should i do ?
When you change your NS to Cloudflare you need to setup your DNS records there also. GoDaddy should be only delegating DNS resolution to Cloudflare servers.
0
1
552
2016-07-29T14:03:40.590
infrastructure
serverfault.com
1,117,610
Postfix with ISPConfig and `Sender address rejected: User unknown in virtual mailbox table;`
I have a mail server that was configured with ISPConfig (amavisd, spamassasing, dovecote, etc) and a few non-standard tweaks from the tool's default tutorial (ISPConfig). The server itself works beautifully. However, I have a problem delivering e-mail using an external service called SendPulse. I use the sendpulse SMTP...
I think I understand what's happening and why is this the deficiency of the configuration. The error messages says [CODE] e.g. rejected by some item in [CODE] , likely the last one, [CODE] . Your attempt to set [CODE] was the step into the right direction, but it is only used if no reject_unlisted_sender is happening a...
1
1
2,186
2022-12-09T01:47:20.693
infrastructure
serverfault.com
606,483
Nginx Config on DreamHost VPS
I got my site up and running on nginx on my Dreamhost VPS. Cool. I wanted to limit the number of connections per IP by adding the following to the http block of the site-wide nginx conf file (/dh/nginx/servers/httpd-psxxxxxx/nginx.conf): [CODE] Reloaded nginx and everything works fine and dandy. When the server is rebo...
The problem is that you named your zone [CODE] but then you referred to it as [CODE] , which isn't the name you selected. Either change the zone name from [CODE] to [CODE] in the [CODE] directive, or change the zone name from [CODE] to [CODE] in the [CODE] directive.
2
3
3,145
2014-06-19T15:43:51.060
infrastructure
serverfault.com
316,047
Conditional default value based on sequence
There is a PG table [CODE] with two fk columns [CODE] , [CODE] and [CODE] column. It's guaranteed there will be only one column filled [CODE] or [CODE] . [CODE] I want [CODE] column to be incremented every time new record is being created. But value for incrementing must be picked based on which column is currently fil...
From a data model perspective this seems a bit wierd, but perhaps you have good reasons for it. From your example it appears as if one of the columns is always null and the other one has a value. You can then add a generated column that picks its value from the non-null column: [CODE] Fiddle
1
0
1,414
2022-08-25T12:02:44.190
warehouse_errors
dba.stackexchange.com
440,390
How to scale transactional outbox pattern with document database?
I'm trying to understand CQRS, DDD by writing a small pet project which is somewhat similar to this great repo. I've come across Transactional Outbox pattern and as imo it was correctly pointed out in this article it looks hard to scale this approach to even thousands active users when using document oriented databases...
In this answer I do not dive into MongoDB technology and how to mitigate issues with duplicates manually. I explain what was referenced in the article (Debezium), suggest to use out of the box solutions and mention other patterns than transactional outbox. Debezium If you are willing to use Kafka as your message broker...
2
4
1,673
2022-08-13T12:06:53.523
database_errors
softwareengineering.stackexchange.com
504,670
Can't establish connection between my VPS and itself
I have a VPS with two IP addresses: 74.117.158.92 and 74.117.159.204. If you ping them, you'll find they are both responding. I can also ping google.com etc. from either of them. But I cannot ping one from the other. I can't ping localhost. I can't establish any TCP connections between server and client apps on the sam...
Have you checked in server firewall, Ip should not block in each other's firewall, check as below: in iptables iptables -nL |grep IP in csf grep /etc/csf/*
1
0
804
2013-05-03T04:26:42.183
infrastructure
serverfault.com
90,432
public_html permissions
I have a public_html folder for a user. I change the permissions according to the instructions online: [CODE] and the files already in [CODE] are then visible online. If the user uploads newer files to the [CODE] folder then it isn't visible. I also ran [CODE] . What am I missing to allow the user to upload their files...
You need to check their [CODE] setting as that controls the permissions newly created files get. Most distros set the mask to [CODE] which will give files group read and world read, but other distros have a more restrictive mask which will only set owner permissions.
2
0
1,110
2009-12-03T00:38:55.850
infrastructure
serverfault.com
252,228
How does requirements management work in the long term with Agile projects?
Requirements Management in the short term for Agile projects seems like a solved problem to me. From the Scrum angle new requirements or changes to existing requirements are delivered through User Stories. And User Stories grouped under an Epic or Feature facilitate the delivery of larger more complex requirements. Of ...
This seems to me to be the unspoken elephant in the room with Agile projects: how do you prevent them from evolving into chaos? Let's look at the Agile Manifesto for a moment. Agile desires: Early and continuous delivery Embracing changing requirements Delivering working software frequently Developers and business stak...
16
10
1,449
2014-08-04T11:57:52.033
api_errors
softwareengineering.stackexchange.com
658,235
gnutls-cli hangs when testing an ssl connection
I'm running the command [CODE] and the output is [CODE] and then a blinking cursor, it just hangs there. Using strace, I see that after several lines of code are executed, it reaches a point where it just prints select(6, [0 5], NULL, NULL, {0, 50000}) = 0 (Timeout) Over and over and over again. I tried upgrading gnutl...
You command line is wrong. Instead of [CODE] it must be [CODE] See usage: [CODE] So it actually established a plain connection and waited for EOF from the terminal and only after that it would start with the SSL handshake.
0
2
1,394
2015-01-08T21:59:28.507
api_errors
serverfault.com
349,487
DDD infrastructure layer: implement service+persistence or just persistence
Short intro: I build an application, using .NET, Entity Framework (EF) as ORM and an SQL Server for persistence. My knowledge of SQL Server goes far beyond simple requests, and I use it to drastically cut on DB operations. Still I prefer to use EF to cut on writing direct SQL when possible. I have an application servic...
It sounds to me as though you are getting your self twisted around the dependency inversion principle . I'd suggest giving Greg Young's 2009 essay on Generic Repositories a long read. The TL;DR is that in the common cases he prefers a contract with explicit definitions. Udi Dahan, writing a few years earlier, had simil...
4
3
4,591
2017-05-23T20:27:44.587
database_errors
softwareengineering.stackexchange.com
79,583
PostgreSQL User Permissions
I'm trying make a transition from MySQL to PostgreSQL, but find the user accounts/permissions system to be quite different. With mysql, all accounts are handled internally by mysql. With postgres is seems I need to make an account within the system, as well as within postgres. Is there a guide somewhere as to how syste...
You only need to create system users if you want to use local authentication. For network connections, you use CREATE USER and GRANT much as you are used to in MySQL. The main difference is that in unlike MySQL where the authentication and authorization parts are all inside of tables in the mysql database, part of the ...
2
3
1,283
2009-10-29T16:10:07.620
database_errors
serverfault.com
490,971
HP ML350 G5 Smart Array E200i battery voltage not low
I have a similar problem like this: HP ML350 G5 Smart Array E200i battery error Gets error message that says it is low voltage power on battery. Has measured voltages of the battery and it is exactly what it should be. Error code is: 269 Anybody have an idea what I should do?
Do exactly what was specified in the answer to the question you linked . The RAID controller battery is a user-servicable part. It has a planned lifetime of ~3 years. You should replace the battery (Call HP). Also upgrade your controller firmware, since old versions of the firmware falsely reported bad battery status.
0
2
1,074
2013-03-24T22:26:04.937
infrastructure
serverfault.com
147,803
Avoiding two LEFT JOINs?
Given these 2 tables: [CODE] I insert two columns: [CODE] Then, I query for: [CODE] which returns: 1 foo bar Then, I insert a row with [CODE] into [CODE] : [CODE] Re-running the above query returns the same result. However, I'd like to write a query to get a result of: 1 foo bar 2 null bar Can I achieve that genericall...
Your join clause is the issue here. The reason the query is returning the same result is because your primary table is aaa, and there is no x=2 record in aaa. a left join returns everything in the left table (aaa) whether or not it matches the right table (bbb). Since x=2 does not exist in aaa, it will never join to th...
0
4
249
2016-08-24T19:42:32.700
warehouse_errors
dba.stackexchange.com
212,450
Trying to connect a PostgreSQL database to Eclipse
I have a Postgres (version 9.2) database running on a Centos 7 machine, and I'm trying to connect to it from Eclipse Oxygen on a Windows 10 machine using the Data Source Explorer. When I put in all the information on the Connection Details screen in Eclipse and hit "Test Connection", I get this error: [CODE] I'm pretty...
This line shows the problem: [CODE] As a rule of thumb, typically in Java stacktraces, the first "Caused by" (printed last) is what you want. Your Win10 can't connect to the postgresql on your CentOS. PostgreSQL uses typically the TCP port 5432. It gets a connection timeout error, which means your win10 absolutely does...
3
4
9,727
2018-07-17T15:37:01.380
database_errors
dba.stackexchange.com
291,619
Disabling script execution on Apache2
On a ubuntu-10.04 and Apache2 I am trying to disable PHP execution on /var/www/upload directory. So I've added the following to /etc/apache2/sites-enabled/000-default : AddType text/plain .php Then of course I've restarted the Apache2 service. However, according to my tests, PHP is still being executed on the upload di...
Try using the apache directive 'RemoveHandler' in directory context, http://httpd.apache.org/docs/current/mod/mod_mime.html#removehandler
0
0
824
2011-07-18T16:34:40.980
infrastructure
serverfault.com
850,288
Windows Server 2003 - applied WCRY patch - restarted then RDP Failed (the workstation driver is not installed)
Installed the WCRY patch found here http://www.catalog.update.microsoft.com/Search.aspx?q=KB4012598 After restarting, the server started having issues with the network interface. RDP does not work, error: The workstation driver is not installed. Also, the client computers cannot connect to the server's network drives.
We had to uninstall and re-install the Client for Microsoft Networks to solve the issue. Found the solution here: https://www.pntbrother.com/fix-the-workstation-driver-is-not-installed-windows-server-2003-active-directory/ "Go to “Control Panel“, and click “Network Connections“. Right-click your current network adapter...
3
3
2,300
2017-05-15T22:42:43.190
api_errors
serverfault.com
1,074,170
Domain to S3 Bucket AccessDenied
Hello i have a problem i recibe AccessDenied in my domain I upload my site in to a AWS S3 Bucket, i make public, create a static page, but when i access via my domain.com/mypage i get a AccessDenied. From the aws mydomain.s3.amazonaws.com/mypage works fine. My domain DNS are setup like this [CODE] Any advice to solve t...
This is from the Amazon support documentation : Short description : To troubleshoot Access Denied errors, determine if your distribution’s origin domain name is an S3 website endpoint or an S3 REST API endpoint. Follow these steps to determine the endpoint type: Open the CloudFront console. Choose your CloudFront distr...
1
0
4,133
2021-08-11T03:17:18.900
infrastructure
serverfault.com
345,289
MVC design. Appropriate Connections
OK... I am attempting to implement a simple MVC windows application... There is a helper class (ConvertPDF) that is instantiated by the Controller. As it is currently implemented, the Converter directly updates the View and the Model. I have an inner feeling that this is just bad form! I have included these two associa...
In general the Controller should update the Model, which is mapped to the View It looks like you've gone a bit off track, Mixing your Model and Controller into the Album class. Although this is good OOP for MVC you should add an extra controller class where you put the logic for button presses, events etc. ie [CODE] If...
1
1
197
2017-03-31T01:31:58.553
api_errors
softwareengineering.stackexchange.com
229,160
Mysql limit on the no of users?
We are planning migrate most of our authentication system from within our application to mysql. How many no. of user can mysql handle? I am talking about a couple of thousands at the moment and perhaps a lot more in the future. Am highly apprehensive about doing this, but couldn't find anything more than, if it isn't s...
On a powerful server, you can expect performance about 10000 tps to read and 6000 tps to write(DB about 20Gb with 50 million rows). Also you can use memcached to cache and read-only replica and sharding.
0
1
188
2011-01-31T14:45:54.890
database_errors
serverfault.com
457,672
chef apt_repository fetching fails
I am trying to fetch a specific repository to install a php version but I keep getting 404 NOT FOUND. chef recipe code: [CODE] Trying to fetch : http://archives.dotdeb.org/dists/squeeze/php5/5.4.8 But get the following error : [CODE] but the following works: [CODE]
The issue is not with Chef. Check the URL you are using and try to run the command [CODE] manually and then update your recipe. The 404 means the file was not found and this error code is returned by the dotdeb webservers. I tried opening the URL in my browser and it doesn't exist.
0
0
888
2012-12-13T04:44:09.193
hadoop_errors
serverfault.com
39,284
We are using PostgreSQL to store big data and are concerned it may crash the on-board Neural Net. Any thoughts?
We have figured out how to write Big Data to our PostgreSQL database. We would like to run this (normalized) data into the onboard Neural Network in Orange. Our lead programmer said he thought Orange may very well choke on this large amount of data if we feed it directly into the Orange Neural Net from Big PostgreSQL D...
Yes, Orange does not handle very large data sets very well. In fact, if you try to load in something like the file size that you are talking about (gigabytes of data) it will crash. Whenever you want to create a large-scale neural network, you will need to use packages like Tensorflow and Keras. You can not do this in ...
1
2
554
2018-10-06T18:47:40.640
database_errors
datascience.stackexchange.com
926,164
.htaccess 301 redirect remove [] from the URL
I want to remove '[' and ']' from the URLs and redirect to correct link. Here is a sample URL: [CODE] Needs to be redirected to: [CODE] Here is what I have composed so far, but still not working.. [CODE]
Your directive looks OK, except if this is in [CODE] then you'll need to remove the slash prefix from the [CODE] pattern . For example: [CODE] [CODE] directives in a directory context (which includes [CODE] ) match against the URL-path less the directory-prefix . The directory-prefix always ends with a slash, so the UR...
1
0
415
2018-08-13T14:29:18.970
infrastructure
serverfault.com
12,782
invalid base hashes in `extends` with 'include' -- gitlab-ci
I have a huge .gitlab-ci.yml file that I am trying to turn into the "main" ci file by moving some parts to another files which will then be called with the use of the "include" keyword. .gitlab-ci.yml file: [CODE] .gitlab/ci/_common.gitlab-ci.yml file: [CODE] My file is correctly found by gitlab. It seems that my hidde...
Okay, found it. It seems the .gitlab-ci.yml hidden job needs to have a "script:" to solve the problem. See below: [CODE]
-1
2
4,306
2020-11-17T16:58:04.440
pipeline_ops
devops.stackexchange.com
836,023
IBM X3100 m4 lost RAID configuration
So we powered it down for a move, and on power up the RAID configuration has disappeared. The disks, controllers, etc all look OK, just no RAID so no boot. The suggestion is that it's possible to rebuild the RAID configuration without losing data. Any ideas how? [It seems to be RAID-1 btw] The RAID is ServerRAID-C100 b...
First, try to find out why this happened. It could be that your RAID battery is dead and your configuration is stored only in a CMOS. That would be an unfortunate reality. This problem is likely correctable. I would say that if you want to recover the data on those disks without having to revert to a previous backup, y...
0
0
1,433
2017-03-03T07:10:46.830
infrastructure
serverfault.com
90,211
join value in a RETURNING which is not inserted
I'm doing an insert from a query which joins two tables, then I want the new ID from the inserted row, and a field from the original row which is not involved in the insert. Is it possible? I get a "column doesn't exist" error. [CODE] The [CODE] has a unique constraint on [CODE] . The [CODE] and [CODE] are needed to in...
Perhaps there's a better alternative but I can only think of joining back to the 2 tables. This assumes that [CODE] has a unique constraint on [CODE] and that these columns are not nullable: [CODE]
10
13
9,758
2015-01-26T16:51:24.443
data_quality
dba.stackexchange.com
570,821
Amazon Linux LAMP with php 5.5
I installed PHP 5.5 on my Amazon Linux VPS via the instructions here . The CLI is working fine. I also had apache already installed and running via the [CODE] package. It was running without any issue. I see that there is no [CODE] in the list of available modules. Now when I try to restart [CODE] I get the error: http...
The [CODE] package in Amazon's repositories depends on [CODE] , not [CODE] (which is 2.2). Using the more recent version of Apache should resolve your issues. [CODE]
3
3
1,948
2014-01-29T18:21:58.147
infrastructure
serverfault.com
101,916
Turn off the Linux OOM killer by default?
The OOM killer on Linux wreaks havoc with various applications every so often, and it appears that not much is really done on the kernel development side to improve this. Would it not be better, as a best practice when setting up a new server , to reverse the default on the memory overcommitting, that is, turn it off (...
An interesting analogy (from http://lwn.net/Articles/104179/ ): An aircraft company discovered that it was cheaper to fly its planes with less fuel on board. The planes would be lighter and use less fuel and money was saved. On rare occasions however the amount of fuel was insufficient, and the plane would crash. This ...
38
68
31,597
2010-01-12T14:16:55.230
infrastructure
serverfault.com
926,168
Apache Over SSL - Request Entity Too Large , mod_security not installed
I'm having a problem with Request Entity Too Large when posting large data via AJAX to a Php program. I don't think mod_security is installed or enabled as there is no /etc/modsecurity folder and i can't find anything with the name when searching the server for files. The domain is running on a virtual host in ssl.conf...
It may be many things, but you have this [CODE] directive in Apache which is defined as such: This directive specifies the number of bytes from 0 (meaning unlimited) to 2147483647 (2GB) that are allowed in a request body. See the note below for the limited applicability to proxy requests. The LimitRequestBody directive...
0
1
4,041
2018-08-13T14:42:12.660
infrastructure
serverfault.com
264,033
Postgresql: Permission denied to schema to user created based on master with rights
I'm trying to write a function that eventually will rotate users. Currently I have the code below which works and creates a new user using the prior user which ultimately has the same rights as the master user, ie, can do everything. [CODE] However, when I make a connection with the above created user and I try to run ...
[CODE] Grants on a database object doesn't GRANT rights to the schemas. GRANT
0
0
5,181
2020-04-01T03:55:48.707
database_errors
dba.stackexchange.com
797,650
Centos Monit ulimit not working
Centos 5.9 I have set the below in /etc/security/limits.conf but when mMonit starts my processes the ulimit is still 1024. If I do ulimit -a it correctly shows 500000 as max open files. In /etc/sysctl.conf I have fs.file-max = 512000. Also root is the use that Monit is using to start the processes. I have rebooted and ...
I needed to set ulimit -n 500000 in the init file.
1
2
1,197
2016-08-18T12:41:47.863
api_errors
serverfault.com
825,153
Configuring OpenVPN and SSH access (for another country)
So I am using OpenVPN to connect to an internal network. I have some users that require access from a different country (India). I created an SSH user and generated VPN certs for them to connect. They are able to connect to the VPN with no issues They are able to ping the designated VM via its private static IP address...
Post a [CODE] where 1.2.3.4 is the destination SSH host and the source is one of your VPN users computers. We need to eliminate routing problems first. I was going to do a lot of typing, but then I realized what we need is a network diagram showing this entire pathway, including firewalls, VPN servers, VPN clients and ...
-1
0
426
2017-01-09T19:35:00.197
api_errors
serverfault.com
210,342
Google Cloud SQL Replication Delay
We have a project which does write data on a second generation MySQL 5.6 The master's write behaviour: Average 70 write operations per second. The thing is 2 times a day, application writes data along 3 hours each time. And the each of them writes 2500 operations per second. I believe this write operations cause the ne...
I have seen this happens a lot in Amazon RDS. This occurs with row-based replication when a Master get hammered with lots of writes and they get serialized to one I/O thread. What you should do is dynamically change the following: [CODE] Problem is you need the SUPER privilege, which neither Amazon RDS nor Google Cloud...
1
1
3,352
2018-06-22T09:06:56.110
api_errors
dba.stackexchange.com
21,374
Data Collection reports fail because login is from an untrusted domain
I've set up a data warehouse and Data Collection according to BO. Reports are generated properly when running them in Management Studio running on the server but fail when they are run from Management Studio on a different machine (which is using VPN to connect to the network the SQL Server is on). The error message is...
I have confirmed this is an issue with how the reports get executed on the server -- I reproduced the issue exactly by using two virtual machines, neither of which was in a domain. Moreover, I created a test user (member of the Users built-in group and nothing more) on the SQL box, ran Management Studio locally as that...
3
1
2,191
2012-07-24T08:04:59.083
api_errors
dba.stackexchange.com
684,560
How generate 70-persistent-net.rules for esx?
I have 300+ VMs of ubuntu build on from one ova. On vm there are 5 network adapters. I need from inside vm rename them regarding to VMware ESX order. For example naming in different scenarios: first = eth1, second = eth2, third = em0, etc first = em0, second = em9, third = br0, etc first = phys1, second = phys2, third ...
Idea 1 A VM is meant to be quite isolated from its host, and thus the design is to make this sort of superspection difficult. But, you could do this using the guest-info functionality. You would need to script the host-side, to populate the mappings of guest-hardware topology information (PowerShell etc). and them use ...
0
1
1,164
2015-04-22T07:22:38.960
infrastructure
serverfault.com
419,217
How to set cache to never expire and minimize requests in Nginx?
I have a cache invalidation system in place, so I need to set the cache for css|js to never expire. I tried this [CODE] And this is what I see in firebug: So as you can see, requests are still being made, though they only receive a 'not modified' response. But I want to avoid them entirely, is that possible? Also, I've...
Are you reloading the page to test this? When you do that, browsers generally request every file again (at least Chrome does). If you instead click links to different pages on your site, the browser should just use the cache and not re-request files. Additionally, according to the spec the [CODE] directive can only hav...
7
6
4,955
2012-08-18T13:57:16.580
data_quality
serverfault.com
198,452
Designing an scalable message queue architecture
I have recently started learning the nuances of scalable and enterprise computer architecture, and one of the central components is a messaging queue. In order to learn the most I can from any programming paradigm, I am trying to implement my own version of a messaging queue service. So far, my initial design runs on a...
In short: This is a hard problem. Don't reinvent the wheel. Many technologies solve the message queue layer. They include ZeroMQ RabbitMQ Apache Kafka Redis , with BLPOP or PUBSUB (I've asked how to do this here ). Other AMQP implementations besides RabbitMQ I think it's out of scope for me to discuss the drawbacks of ...
26
16
20,087
2013-05-17T01:00:47.457
database_errors
softwareengineering.stackexchange.com
279,599
How to exclude non-distinct rows in a query
I have a table that contains references to clients impacted in a problem. The parent table contains the problem info, specifically the ProblemID (PbMID). Since one problem can affect multiple clients, we store the client impacted data in a child table. The child table contains an ID field for housekeeping, a PbMID fiel...
You could use GROUP BY , HAVING and a Common Table Expression (CTE) to obtain the data. The GROUP BY and HAVING provides all those PbMIDs that only impacted a single company. If you need PbMIDs that impacted n companies you could change the HAVING to HAVING =n where n is the required number of companies. [CODE] This ca...
0
2
546
2020-11-12T18:02:06.047
warehouse_errors
dba.stackexchange.com
143,626
sqlcmd returning literal 'NULL' for null columns when outputting to CSV
I'm using sqlcmd (SQL Server 2008 R2) to execute a simple query to output data to a .csv file. In the SQL file, I have the following code: [CODE] My problem is that any field containing a NULL value is returned to the .csv file as the string literal 'NULL' rather than an empty string, despite my use of ISNULL to trap t...
I cannot reproduce the problem you're seeing. I'm using a SQL Server 2008 R2 instance, connecting to it via sqlcmd.exe using the following test command, which I've wrapped for readability: [CODE] The output consists of a single line file with a comma between the two columns: , As you can see, there are no 'NULL' values...
2
1
4,367
2016-07-12T15:56:49.580
database_errors
dba.stackexchange.com
303,031
updating values in table to remove specific word
Some of my data has - Automated two or more times. I need to replace the text so it only appears once I first tried to get the value to display by using this failed query [CODE] https://www.w3schools.com/sql/func_sqlserver_trim.asp
(In general, all these string-manipulation functions only operate on their arguments ; if a column name is not one of the arguments, you are not manipulating the column!) [CODE] is for trimming given characters in whatever order and quantity they may occur ; if you want to trim given characters only if they occur as pa...
0
1
1,009
2021-11-23T17:02:41.317
warehouse_errors
dba.stackexchange.com
153,872
Error 1064 - You have an error in your SQL syntax;
I am new to developing field, and I have encountered an error while creating a trigger.Could anyone please figure out what is the error? [CODE] The error encountered is, [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CO...
The syntax is not: [CODE] but it is: [CODE] Use: [CODE]
3
4
4,367
2016-11-01T09:08:37.943
database_errors
dba.stackexchange.com
429,645
Possible to use DRBD on two ESXi virtualized servers?
I have two servers (attached disks have been set up as hardware RAID1 for disk device level failure resilience). Here is the setup in my mind: 1) Install ESXi on each of the physical server, M1, M2; 2) Start one VM on each of the ESXi virtualized physical server V1, V2; 3) Install the DRDB drivers within V1 and V2. Ess...
My question is whether the above setup can achieve the same "networked RAID1" goal that DRDB can achieve in the bare-metal physical machines. Yes, very easily, just forget that they're VMs, it makes no difference (other than a slight performance drop) whether they are or not.
2
3
3,213
2012-09-18T21:31:46.670
infrastructure
serverfault.com
745,932
Allow self password change using LDAP(s) with Samba4
I am trying to create a webapp to allow users to change their own passwords in Samba4 (perhaps, also in AD), using LDAP(s). But when I try to modify the user password using this code: [CODE] I get this error: [CODE] If I change the code, deleting the old password, and adding the new one: [CODE] Then I get this error: [...
"unicodePwd" field or attribute can contains only password under unicode form and encoded with base64: Password to set : MyNewPassw0rd Encoding this password to push it into "unicodePwd" attribute is done like this: echo -n '"MyNewPassw0rd"' | iconv -f utf8 -t utf16le | base64 -w 0 Note the simple quotes around double ...
3
4
2,957
2015-12-30T10:25:55.257
infrastructure
serverfault.com
180,004
I am getting error while restoring FileGroup on SQl server 2012
I have create two filegroup FG1 and FG2. and i have create one table student and associated with FG1. and i have created backup for FG1 with Test.bak file . now i wanted to restore the Test.bak i am getting error like attached screen ..please advise regard's Ravi
The database engine thinks you're trying to perform a piecemeal restore using the UI. This is the formal name of restoring individual filegroups. Sadly, it requires you restore the entire database to maintain transactional consistency (which I don't think you want to do in your scenario) and since you're not overwritin...
1
1
683
2017-07-17T12:41:15.220
database_errors
dba.stackexchange.com
571,309
I have servers that keep becoming inactive in RHEL Satellite 5.3
I have lots of RHEL 5 servers subscribed to a Satellite 5.3 server (I know it's all old, not my choice). After I register servers, many of them seem to fall out and become inactive and require reregistration. This used to affect almost all our servers until I realized the NTP server we were using was way off (also not ...
The best way to ensure RHEL clients stay continually connected to an RHN Satellite server is to run the OSAD daemon ( [CODE] ) on each client and [CODE] on the Satellite server. You can install OSAD on the clients by subscribing them to the [CODE] channel and running: [CODE] On the RHN Satellite server, just make sure ...
0
1
3,557
2014-01-31T15:04:47.380
infrastructure
serverfault.com
846,457
How to get SSL on a service?
I'm building a website which uses a routing (as in street nav) service which I'm running on a seperate server on port 8002 (running ubuntu 16.04). ( Github link to the router project ) The website itself is hosted by one.com. The problem arises when I use SSL on the website. Because my route server has no SSL certifica...
Easy approach: Set up Apache or nginx as a reverse proxy in front of all this, give them a proper SSL cert (e.g. LetsEncrypt) and then get the data via plain HTTP from the backend and send it to the clients via HTTPS.
0
3
94
2017-04-25T14:04:54.480
api_errors
serverfault.com
45,418
Login failed for user Error: 18456 State: 10
In one of my vb.net applications I am getting the error [CODE] But the user has full permission (sysadmin). Also this error happens intermittently. Error log has the following: Login failed for user 'user'. Reason: Failed to open the explicitly specified database. [CLIENT: 192.168.1.69] Error: 18456, Severity: 14, Stat...
The state 38 error is probably a red herring: focus on the state 10 errors. While KB Article #925744 says it is for SQL Server 2005, that is simply because of the date it was written. The symptom it causes would affect all versions of SQL Server that have been released since then in similar or identical ways. Now, if [...
3
2
8,073
2013-06-28T13:53:07.647
data_quality
dba.stackexchange.com
558,177
How to best redirect customers to a login page? (ISP)
I'm trying to come up with the cleanest way to redirect a user to a logon/payment page from an ISP gateway router. We run a small ISP and would like to force users to have to log in prior to getting onto the internet after connecting. I've seen this very frequently on hotel wireless, those 'pay for time' wireless acces...
The only way I know of to deal with certificate warnings requires some control over the clients: You create your own CA and deploy the CA cert to the clients in their trusted CA root certificate stores. You then create a signed certificate for signup.example.local and the aliases [CODE] and [CODE] which is against all ...
1
0
379
2013-11-29T05:58:04.373
infrastructure
serverfault.com
745,852
Consolidate multiple physical network drops to a single server (multiple servers, but each needs to go to all)
I am not a network guy, but rather a general IT guru that knows just a small bit about networking in general (enough to get myself in trouble!). My business has been growing over the last several years, and as it has grown my need for IP addresses has grown with it. As a result, I now have a total of 5 network drops th...
So - there is my question. Is it possible to have multiple subnets delivered to a single server with a single CAT6 cable in such a way as to make all those subnets available to both the host OS and any VMs residing on Hyper-V on that box? Yes, this is exactly what trunked 802.1q VLAN interfaces are for. The datacenter ...
1
2
110
2015-12-29T22:54:15.073
infrastructure
serverfault.com
242,861
Implications of adding a trigger on production database
I am trying to add a trigger on a production database table which includes millions of rows and is used very heavily. There are around 70k-100k inserts per day. When I try to add a trigger to this table, SQL Server takes too much time - until I stop the execution or SQL Server throws a deadlock error. I need to run thi...
To create a trigger on a table a Sch-M lock must be taken on that table. SQL Server allows a single schema modification lock (Sch-M) on any locked object, so a transaction which creates the trigger must wait to acquire a Sch-M lock on the target object. While a process is waiting to acquire a Sch-M lock it is blocking ...
0
1
444
2019-07-15T07:43:21.190
database_errors
dba.stackexchange.com
950,468
SpamAssassin, Postfix, and Multiple Addresses in From Header
I'm working on a problem that I'm seeing with an email scanning server (MailScanner, Spamassassin, Postfix, etc.), and From header spoofing. Unfortunately, some of the versions of these components are old, so this may be a bug in one or more of them. Upgrades are planned, I'm just seeing if an interim solution is appro...
Currently I'm fighting this kind of spam, and to complement the great answer of Deeepdigger currently I have this rule in my Spamassassin. [CODE] The regex part needs to be improved, but this rule has helped me to stop the majority of email been spoofed by this malformed header.
2
1
2,196
2019-01-23T22:33:35.280
infrastructure
serverfault.com
207,906
How to call something that can be both a user and a usergroup?
My idea is, to create an abstract class / interface which can be extended into a user, and into a usergroup. There actually is a good reason for there being this interface connecting the groups with the users as the only differences between a user and a group is that you can login as a user and you can't as a group, an...
In computer security, users and groups are referred to as Principals . Security principals include the following: Any entity that can be authenticated by the system, such as a user account, a computer account, or a thread or process that runs in the security context of a user or computer account. Security groups of the...
1
8
181
2013-08-11T18:05:25.383
api_errors
softwareengineering.stackexchange.com
824,379
Deployment template validation failed while deploying machine in azure
Facing following issues while performing vagrant up with azure provider [CODE] Template file: [CODE] Parameter [CODE] I am deploying both files from local machine as like in below azure group deployment create -f "c:\MyTemplates\example.json" -e "c:\MyTemplates\example.params.json" -g examplegroup -n exampledeployment ...
The ARM template is expecting a parameter called AdminPassword which it's not received. Without seeing your template and parameters it's difficult to know why, but most templates expect parameters as a secure string, so make sure you are providing it in the right format.
0
0
1,547
2017-01-05T12:45:33.217
data_quality
serverfault.com
937,493
libmysqlclient.so.18 is missing on centos 7.5
On centos 7.5 I have mysql 5.7.24 installed, with subsequent installation of mysql-devel . I'm trying to get the MySQLdb module of Python 3.7 working, however, on importing it with (in python) [CODE] I get the following error [CODE] I checked for libmysqlclient.so.18 on my server with [CODE] I get the following result ...
Find and install a package that provides [CODE] [CODE] On your system it may be different.
2
2
21,166
2018-10-27T11:58:52.100
database_errors
serverfault.com
678,132
Windows 2012 Server, DNS resolve host for client
I've been looking for way to resolve host name for client on Windows Server 2012, just like if I added it to [CODE] file of the client workstations running Windows 7/8. In [CODE] file I would add following entries as example: [CODE] So client computers could connect to the address with the URL instead of IP, the machin...
Why don't you just install a DNS server or use an existing one in your environment?
0
0
1,030
2015-03-25T12:07:18.610
infrastructure
serverfault.com
558,747
login page permission has changed suspiciously
I have developed a website with php and apache server on linux centos I am not professional on security issues and I think some folks try to hack my website first please advice me which security things I should follow but my problem: tonight as I tried to login firebug showed it tries to load login.php for serveral tim...
In a situation like this, the first thing I would do is check the Apache log files. There should be an [CODE] as well as an [CODE] file(s). It should give you a clue as to possibly the source and what was done, if anything. The logs are usually found in: [CODE] The second thing I would do, if you think the script was c...
0
1
81
2013-12-02T20:19:26.657
infrastructure
serverfault.com
648,083
OpenVPN Tunnel between two LANs, traffic dropped on the way?
I'd like to create a OpenVPN Tunnel between to LANs 192.168.1.0/24 and 192.168.2.0/24. However somehow packets entering the tunnel on one side don't come out of the other side ... The following hosts are involved: [CODE] I set up OpenVPN and installed routes into the routers, configuration see below. Connection working...
Found the solution myself, there were two problems: After reading through the openvpn manual the word [CODE] caught my eye, which was the first and major part of the solution. For details I recommend reading this tutorial https://community.openvpn.net/openvpn/wiki/RoutedLans . After that almost anything worked except c...
0
0
3,312
2014-11-30T16:36:21.470
infrastructure
serverfault.com
58,939
Is adding index on bit column significantly slow down inserts?
I have a table with about 1 million to 5 million records. Small part of that records have one of bit column set to 'TRUE'. Need to fast find that records. I think that index can speed up searching on this column, but i afraid about INSERTs. Hence my question. Database is working like sort of data warehouse, so there is...
An index on a bit for 1 million records is useless. The optimizer will never ever use it, you'll just pay for maintaining it. A much better alternative is to add this bit as the leftmost key on the clustered index. But I will make a blind shot in the dark and guess that what you have is a queue pattern: records are dro...
11
8
4,704
2014-02-14T12:55:38.613
warehouse_errors
dba.stackexchange.com
45,118
Insert missing rows to subscriber of Transactional Replication
I have established SQL Server Replication between SQL Server 2005 and 2008 R2. SQL Server 2005 is the publisher while SQL Server 2008 R2 is the subscriber. The replicated database is about 40GB. My replication was working most of time OK for few years. A few days ago I saw that I have missing rows inside few tables. Wh...
You will need to run a validation to determine how out of sync your publisher and subscriber are. Then, use the tablediff utility or Red Gate SQL Data Compare to generate the script(s) necessary to get the subscriber back in sync. Then apply the script(s) at subscriber to bring the data back into convergence.
1
1
2,961
2013-06-23T19:49:33.993
data_quality
dba.stackexchange.com
255,685
Handling and managing error codes
I'm looking for examples of creating, handling and managing error numbers/codes. To understand what I'm takling about, let's take example scenario: (EU - end user, IT - it helpdesk) [CODE] ... and exception that produces message [CODE] is being thrown in dozen places in whole system, so IT guy doesn't know where to loo...
Go ahead and use error numbers if you want to use a reference table, but I'd recommend a different approach. In your message tell the user: What error occurred. If it's an intentional thrown error due to user input, tell them what they did wrong in the message. The program name, class name and method name where the err...
4
3
2,343
2014-09-08T09:56:49.677
api_errors
softwareengineering.stackexchange.com
554,898
Phusion Passenger slow rendering JSON response
I have a Rails 4 application that returns a large amount of data that is rendered as JSON (23K records/2.8MB document). Testing this call on my laptop using the WEBrick server, the request completes in 573ms. [CODE] If I switch over to Apache with Phusion Passenger the same exact request takes 3025ms to complete. [CODE...
I would check out http://dtrace.org/blogs/brendan/2011/10/10/top-10-dtrace-scripts-for-mac-os-x/ and in particular, the section on "dtruss" (#5). Use the -e option for the elapsed times and look at all the system calls that Apache w/ Phusion Passenger is making. What you will hope to find is that the slower route is se...
0
1
538
2013-11-14T03:28:39.147
infrastructure
serverfault.com
953,300
How to debug Mikrotik bridge filter forward rules not having any effect?
As part of diagnosing a different problem were trying to add a bridge filter rule that will stop all traffic from forwarding between two interfaces on a bridge. The router has two interfaces [CODE] and [CODE] on a bridge. we then added a rule with this [CODE] i had expected this to stop all traffic that arrived on ethe...
Do you have use-ip-firewall set to yes at interface->bridge-> settings ? ( https://wiki.mikrotik.com/wiki/Manual:Interface/Bridge#Bridge_Settings )
1
1
1,940
2019-02-11T07:34:17.457
infrastructure
serverfault.com
68,675
UPDATE not working properly with linked server
Please see a question I asked here earlier: https://stackoverflow.com/questions/24324823/update-not-working-properly-with-linked-server Dommer suggested using OPENQUERY and this does appear to resolve the problem. Does anyone know why OPENQUERY resolves the problem? I have read the documentation for OPENQUERY here: htt...
The fundamental issue is: Which server processes the query? When using a linked server query, the query is executed on the LOCAL server and uses the linked server to access data on the remote server. (Linked servers are subject to several limitations, some caused by running through the Distributed Transaction Coordinat...
1
2
2,646
2014-06-20T12:35:49.250
warehouse_errors
dba.stackexchange.com
11,199
Does it make sense to apply clustering on aggregation of data?
I was wondering if it makes sense to apply clustering techniques on an aggregation of data, like, I have three different sources of data such as S1 S2 and S3 where each of these sources share some common columns but the majority are not shared. Does it make sense to group all the sources with all the columns in a big d...
Since some features are missing for specific sources, the missing values are not missing-at-random but are systematically missing. In this situation, I'd advise against doing clustering on the combined data set with all available features. If missing values were occurring at random, you could have used some missing val...
2
0
373
2016-04-13T16:48:04.420
data_quality
datascience.stackexchange.com
15,505
How to connect a switch to a wireless network?
We've got a wireless modem which I don't have direct access and now I need to connect 15 PCs to it. These PCs all wired and connected to my 24 port switch. Now how can I make my switch to connect this wireless network so all these 15 PCs can connect to the internet as well. As I said I can't plug anything wired to main...
Use a Wifi AP. Most can be run in client mode, and connect to the modem's AP.
5
5
13,754
2009-05-30T09:46:50.847
infrastructure
serverfault.com
51,450
Are there any known issues with NewSID and Windows 2008 server?
We have a scenario where it's not possible for us to use Sysprep with Windows 2008. Has anyone had any issues using NewSID to generate new SID's on cloned Windows 2008 images? Update: According to Mark Russinovich, the author of NewSID, it doesn't matter if cloned machines have the same SID: The Machine SID Duplication...
You don't need NewSID. See Mark Russinovich's latest blog entry: The Machine SID Duplication Myth .
0
4
1,977
2009-08-07T13:43:33.537
infrastructure
serverfault.com
123,883
Is it fine to have broken intermediate commits, as long as the final commit in any push works?
Related: Should every git commit leave the project in a working state? Suppose I make the following commits locally: Modify the database schema, breaking the application. Update the application so it is compatible with the database schema again. As long as I push both commits, [CODE] remains in a working state. However...
Largely depends on your outfit's branching strategy, but I think that having broken commits on development branches makes a ton of sense in general -- the real big "win" in using source control is to be able to roll back small changes and sometimes you are making a bunch of them and you gotta break eggs to make omlets....
14
10
3,321
2011-12-07T23:25:22.773
api_errors
softwareengineering.stackexchange.com
566,382
Is it possible to use IPv6 to connect to a remote share using 'net use'?
One can use either UNC or IPv4 address to connect to a shared folder on a remote machine using [CODE] , e.g.: [CODE] Is it possible for user to connect using IPv6 as well? Is it something that needs to be configured separately but is technically possible? If I try to specify IPv6 address, I get error 53: [CODE] The rea...
As documented by Microsoft: For example, for the following IPv6 address: 2001:4898:9:3:c069:aa97:fe76:2449 an example for a share might be the following: \\2001-4898-9-3-c069-aa97-fe76-2449.ipv6-literal.net\share For more, see: How do I create a UNC to an IPv6 address? Also note that, strangely enough, Microsoft doesn'...
5
5
16,390
2014-01-10T14:54:36.520
infrastructure
serverfault.com
568,321
How to check last FTP logins using SSH?
I've just bought a new VPS (its operating system is CentOS). As this is my first experience with VPS, I don't know everything about managing and ... One of my customers told me his website is not working like before. JavaScript files could not be loaded. When I checked the files on his hosting package, I saw 3 differen...
I would start with [CODE] and [CODE] (not sure if auth.log catches FTP logins) (all these files/path are for Ubuntu so you might want find equivalent for your system). Basically, look in [CODE] directory that is where all the logs are. Hope this helps.
-1
0
11,839
2014-01-19T10:20:15.400
infrastructure
serverfault.com
559,352
Apache Test page shown instead of ISPCofig
I'm new to ISPConfig and I used website tutorial to setup. I have installed ISPConfig 3 on a vmware VM with CentOS 6.3. I use static IP for guest OS. After installing ISPConfig 3, I went to host OS and tried to open ISPConfig webpage in browser. I used https://[guest-ip]:8080 , but test page for apache was shown instea...
To get rid of the test page: Remove [CODE] (or rename it to something that does not end in .conf) and / or Stick an [CODE] page in [CODE] . The DocumentRoot (/var/www/html) in CentOS has nothing in it. The welcome.conf disables Apache's automatic indexes and sets a custom error page for http response 403 (Forbidden). S...
2
1
4,512
2013-12-05T01:44:18.870
infrastructure
serverfault.com
52,275
Splitting train and test in multilabel classification to avoid missing data in the train set
I have a dataset (600 rows) composed of two columns: -Summary: which contains the text of a document -Keywords: which contains the keywords that identify that document. [CODE] I want to classify a summary in specific keywords. The keywords are not mutually exclusive. My code is: [CODE] I am getting a low accuracy score...
Accuracy is an awkward measure to use to assess a model predicting classification into multiple classes, and rare events are hard for models to predict well. Outcome categories that exist in your test set but not your training set will of course lead to lower accuracy, but it's far from the only thing that can go wrong...
1
0
646
2019-05-20T16:20:48.793
data_quality
datascience.stackexchange.com
627,601
Web proxying with 3rd party authentication
I have a typical website where users have to pay to sign up and access some premium content. This content are internal propietary web servers from different vendors (think of it like graphical management interfaces for some devices). These web interfaces are not accessible from outside by default, so I have to put a we...
You can do it using a shared database and cookies. The workflow can be this way: Unauthenticated ser connects to [CODE] . A file added on every php page checks the session, detects an unauthenticated user, and redirects to [CODE] . User enters login/password, and a session key is added to the database. User is redirect...
0
0
185
2014-09-10T16:05:18.610
api_errors
serverfault.com
223,857
Semi dedicated linux server - trying to figure out reason for sluggish performance
I have a managed semi-dedicated server running Centos and a LAMP setup with PHP 5.2.9. I've noticed over the past couple of months that HTTP requests are taking much longer and page loading speeds across a number of sites have slowed down considerably. There doesn't appear to be any significant load on the server and I...
There are a few things you can try to do to narrow down the source of the performance issue (assuming it is mainly one thing anyways): Create a small HTML file and test accessing it remotely. If there is a performance issue here it is either somewhere on the network link between the servers or the Apache configuration....
0
1
135
2011-01-18T17:24:43.027
database_errors
serverfault.com
30,788
Finding longest matching prefix
I have two tables: Sources: [CODE] Prefixes: [CODE] My goal: To find the longest prefix that matches each of sources. The results would look like this: [CODE] Constraints: I am using SQL Server 2000 and cannot upgrade. I know how to solve this problem using analytic functions, but they are not available in SQL Server 2...
One way ( SQL Fiddle ) [CODE] I am assuming that none of the prefixes are allowed to contain characters such as [CODE] that would mess up a [CODE] search. It uses a variant of the method in listing 5 in this article on TOP N Per Group Queries to bundle the [CODE] along with the [CODE] . Once the [CODE] is known it can ...
4
5
663
2012-12-20T00:01:32.513
database_errors
dba.stackexchange.com
351,747
Can you link aggregate more than 2 physical connections?
What are the limitations of the number of physical connections that can be tied together in a single LAC? Do limitations vary based on hardware type?
It depends on the implementations but 8 and 16 are somewhat common numbers. Some Cisco etherchannel devices are limited to 4 active connections, but you can potentially all the ports on the device.
0
2
114
2012-01-20T02:49:53.227
infrastructure
serverfault.com
568,735
Is weblogic 10.3.6 data source connection pool maximum capacity per domain or server?
My WLS server is connecting to an Oracle DB that has a maximum concurrent connection limit of 3. I have created a data source in WebLogic and set the "Maximum Capacity" value to 3. Is this value calculated across the domain or per server?
The "maximum capacity" setting is per server. So the maximum outbound connections is "maximum capacity" * the number of target servers for the data source. Answer provided by oracle forums .
0
1
1,794
2014-01-21T10:38:27.257
database_errors
serverfault.com
850,499
Unable to Remote Desktop into Windows 2012 R2 Kimsufi Server Due to Possible Windows Hibernation
I recently set up a Windows Server on Kimsufi's dedicated server plan. I was able to successfully get it up and running and was able to successfully remote desktop into the server. After updating the server and restarting it, the server had an update error that caused it to crash. After it crashed I was no longer able ...
Kimsufi explicitly forbids running Windows on their boxes. Ever. At all. In any form. They just don't want to deal with the licensing issues. http://prntscr.com/f8oi68 I don't know if they do anything to intentionally break Windows installations, though.
0
0
377
2017-05-16T18:41:21.700
infrastructure
serverfault.com
65,892
Performance issues when extracting scatter plot data
First off: Sorry for the title, couldn't think of anything better. Feel free to change it though. Ok, assume I have the following table: [CODE] Now I want to create a scatter plot for the categories ( [CODE] as [CODE] , [CODE] as [CODE] based on the [CODE] column). The desired output would be: [CODE] Row 3 from the ori...
There is no reason to use derived tables for this query. It can affect performance badly with MySQL's primitive optimizer. Try this query: [CODE] If the efficiency of the query is crucial, you can add a covering index, with the columns in tailor made order, especially for the query: [CODE]
1
2
187
2014-05-26T09:38:27.663
warehouse_errors
dba.stackexchange.com
35,595
How might a corrupt partition in TempDB result in DBCC CHECKDB reporting no issue?
One of our SQL Servers reported the following error recently: [CODE] Less than 15 minutes later I connected to the server and ran: [CODE] Which returned 'tempdb'. I then ran: [CODE] Which returned no results, indicating no issues with the database affected. How could corruption in the database result in the error messa...
This is a known issue with a fix: FIX: "No catalog entry found for partition ID in database " error when you use SQL Server 2012 Assume that you query the tempdb.sys.allocation_units table in Microsoft SQL Server 2012. When you use NOLOCK hint in the query or the query is under the READ UNCOMMITED transaction isolation...
9
3
9,218
2013-02-27T17:16:33.937
database_errors
dba.stackexchange.com
47,615
Removing foreign key when it is not named
I've created a table named 'student' as : [CODE] Later on, I found that I don't need course_id column, now I want to remove that column, when I tried to do that, a warning message appeared saying : "cannot drop column from the table owned by SYS" then I thought, I must remove foreign key constraint first and then drop ...
You can use [CODE] to also drop any constraint related to the column: [CODE] More details regarding the drop column clause can be found in the manual . If you want to find out how the constraint was actually named (e.g. if you only want to drop the constraint, not the column), you can query the system catalogs for this...
1
1
14,887
2013-08-06T11:48:25.100
data_quality
dba.stackexchange.com
324,302
Is it possible to detect if a screen is off through a browser?
With any method not requiring special permissions. I want to find out if a website can tell if my screen is off. Can a browser access that information in any way?
The javascript method [CODE] can be used to request a callback before the window (or tab) is next refreshed. This may (in some circumstances) occur less frequently if the browser is able to determine that the window is not visible (the usual suggestion is if it is minimized or if another tab in the same window has the ...
-5
0
2,203
2016-07-07T20:12:02.973
api_errors
softwareengineering.stackexchange.com
444,804
How can I implement a lazy-loading cache for REST objects with custom role-based access?
I'm thinking through adding a lazy-loading cache to my API. Currently, REST objects are filtered out (scoped) based on the user's role, and additional constraints in the system. Users of the same role may have access to different objects based on constraints made by administrators, these are accounted for in the db fil...
TL;DR Add a seperate cache for the role(s) a user has. The core premise of a "normal" cache is that it is quicker to fetch the previously returned value (typically from memory) than it is to recalculate it (or fetch the value over the network). For this to work correctly, you need to include any attributes that could c...
0
1
125
2023-04-01T21:19:31.067
database_errors
softwareengineering.stackexchange.com
785,469
Samba4 Bind9 client registration as A Host
I have setup an AD DC using Samba4 with Bind9. Everything works perfectly. The problem I'm seeing is after joining a computer to the domain, the computer doesn't appear in DNS as a Host (A) compared to Microsoft that it automatically add the computer to the list. Has anyone encountered this issue? Are you able to see t...
Samba has the capability to automatically update the BIND zone files via Kerberos. You have to configure bind with auto update . Check this article for full configuration and integration between Bind and Samba as domain controller Samba/Active Directory domain controller
2
3
782
2016-06-22T06:06:58.853
infrastructure
serverfault.com
443,938
Is in my case role based access better than permissions?
Hello StackExchange community, I'm in a bit of an impasse for my current project. The software in question is a collaborative program designed to let employees work together on the platform and assign tasks to each other, that can be further split down into subtasks, as far down as the company would like to divide the ...
It sounds like capabilities may be a good match for your security model, given the flexibility with which a department manager can delegate spending authority to folks working on a project. A downside to that is what it takes to revoke Alice's authority when things change later. Typically it involves transitioning old ...
1
2
340
2023-02-13T15:25:18.710
api_errors
softwareengineering.stackexchange.com
25,108
Why an eigenvector might be reasonable notion of centrality
Using adjacency matrix to represent a connection between node i and node j, 1 means connected and 0 means not connected. Using eigenvector to represent the centrality means the more nodes with high centrality values a node is connected to, the higher that node's centrality value is. Eigenvector itself is just a vector ...
Let the adjacency matrix of our network be $A∈\{0,1\}^{n×n}$ with an empty diagonal ($A_{ii} = 0 ∀i$). Direct approach Let’s start with the approach that a node’s centrality ($C_i$) shall be proportional to the sum of the centralities of its neighbours with a proportionality constant $\frac{1}{λ}$ (chosen thusly with s...
6
6
509
2017-11-25T22:38:29.163
data_quality
datascience.stackexchange.com
266,869
Can't enable wal2json in postgres 12 docker image
I'm trying to enable wal2json in an image extended from [CODE] image. But i'm getting an error: [CODE] This might be because wal2json is also missing from [CODE] : [CODE] Dockerfile: [CODE] postgres server logs: [CODE] the postgresql.conf file has been tweaked to [CODE] Any help with getting this working will be apprec...
2 years later, on postgresql-14 with wal2json. After installing with debezium docker image : https://hub.docker.com/r/debezium/postgres/tags Which basically does what you did https://github.com/debezium/container-images/blob/023a7da62f802051b15e3991e2a28f8d705e8d40/postgres/14/Dockerfile I'm able to use the wal2json ex...
2
0
2,164
2020-05-10T14:12:37.467
pipeline_ops
dba.stackexchange.com
392,092
Architecture for message processing with scheduling, at scale
I have to design the architecture of a system that processes messages in a distributed manner. If this were the only requirement, I would use a message queue like Kafka and distribute the work with Faust . This solution would be perfect for my use-case because the work that needs to be done for each message involves a ...
Kafka does not support scheduled delivery, AWS SQS may be an alternative. Otherwise you have to set up the schedule on consumer side, like you mentioned APScheduler or something similar. Even if you are using Redis or Dynamo db to set up the future timestamp, you can always expire the records after you process them, so...
4
4
4,426
2019-05-19T09:37:38.867
database_errors
softwareengineering.stackexchange.com
444,569
Is ASP.NET's default recommendation of registering dependencies in the Web project bad practice?
Something that's bugged me for years now about ASP.NET (Core) is that it's standard practice to set up dependency injection in the Web project, whether through the [CODE] class's [CODE] method or through the newer [CODE] 's [CODE] style. I recently experimented with adding the following to my [CODE] file to get back to...
You can create an extension method in the project that uses [CODE] that registers the dependencies. Something like: [CODE] In your startup simply call this method using [CODE] which will only require a reference to the project and not the external dependencies of that project.
1
2
175
2023-03-18T19:21:25.213
api_errors
softwareengineering.stackexchange.com
47,367
Playwright: Implementing Page Object Patter into Framework
Recently I have been asking questions regarding Playwright and so far the community has been very helpful. I hope that my question and answers provided will be in use for people who are just starting with Playwright. I have been working on the framework set up in Playwright. Framework consists of Mocha, Chai and uses N...
Have you tried to run it? [CODE] and later: [CODE] What about that missing [CODE] ? [CODE] in the object will be undefined, so none of the methods will actually work and you will get some sort of exception at runtime. A solution could be to send [CODE] to every method: [CODE] and in test: [CODE] EDIT: Another problem s...
2
2
3,036
2021-04-26T10:48:07.110
data_quality
sqa.stackexchange.com
274,807
SQL join on col1 if present else use col2
There are two tables T1(col1) and T2(col1, col2) which needs to be joined. But T2 may have col1 as null in which case col2 can be used as backup. What I want is either join on [CODE] or [CODE] if col1 is NULL in T2. I have already tried these: [CODE] [CODE] [CODE] Which result in the ETL job never ending. Additional in...
The problem here is that using a function or [CODE] around your join predicate means that the database engine can not use any indexes that you might have defined on the relevant columns for seeking so it is forced to table scan. On a large table this can take a long time. Worse, if this is part of a larger query you mi...
0
3
458
2020-09-02T03:45:04.917
data_quality
dba.stackexchange.com
28,237
Getting issue while automating SOAP service using Karate framework
I am a bit stuck while automating SOAP service . I have below url and request xml : [CODE] After running it through Karate i am getting below issue : [CODE] Please help!
Karate is working fine. Look at the error message that has come from the server and work with someone from the dev team. All the best.
2
1
711
2017-07-03T13:55:07.707
data_quality
sqa.stackexchange.com
835,200
Storage Spaces Direct guidelines
I have recently deployed WS2016 DC on 4x DL380 G7s for PoC purposes. Each server has 4x 300GB 10K SAS drives, also, I have a couple of Intel SSDs that I can temporary borrow from my company. My main goal is to test different Storage Replica "modes" and deploy Scale-out File Server role on top of Storage Spaces Direct. ...
Speaking shortly, the deployment sequence looks as following: Deploy necessary WS roles and features Validate the Failover Cluster Create the Failover Cluster Enable Storage Spaces Direct -EnableStorageS2D Create and configure storage pools Example input: [CODE] Create and configure virtual disks Example input: [CODE] ...
12
11
1,788
2017-02-27T16:26:12.087
infrastructure
serverfault.com
764,574
IPv6 + PTR + gmail returning error
I have a problem with mail connected to gmail account. Every time when i wanna send mail i got that error: Our system has detected that this message does not meet IPv6 sending guidelines regarding PTR records and authentication From server providoer i got IPv6 addreses: 2001:41D0:2:DFb7::/64 I add records to file piork...
Don't put [CODE] in the same file as [CODE] or [CODE] . It may seem that because you provided a fully qualified record, the bind would find it. But it won't; bind has no "map" of what to look in which file. It looks at a query from the client, then it looks in named.conf and based solely on named.conf entries it alread...
-1
0
645
2016-03-18T11:24:52.633
api_errors
serverfault.com
159,428
Percona crash after running for some time
my mysql db crash after running for some time. MySQL version is [CODE] It has a slave in another server. My Server info: a physical server with 32 cores && 62G ram the mysql error log at the time below: [CODE] I have no idea what's going on, Anyone could help?
Your server got a [CODE] and killed itself. Those are not common- I've only seen crashes like this (aside from the most common Out Of Memory Killer) when there was hardware (memory or disk) corruption or (more rarely) a software bug: Things I would do: Run a memtest Run a disk test (this 2 will probably give no results...
3
3
3,059
2016-12-29T11:04:42.920
database_errors
dba.stackexchange.com
16,265
Is stratified sampling necessary (random forest, Python)?
I use Python to run a random forest model on my imbalanced dataset (the target variable was a binary class). When splitting the training and testing dataset, I struggled whether to used stratified sampling (like the code shown) or not. So far, I observed in my project that the stratified case would lead to a higher mod...
If the number of values belonging to each class are unbalanced, using stratified sampling is a good thing. You are basically asking the model to take the training and test set such that the class proportion is same as of the whole dataset, which is the right thing to do. If your classes are balanced then a shuffle (no ...
15
14
15,218
2017-01-12T00:58:27.320
data_quality
datascience.stackexchange.com
144,865
Upgrading Fedora to Current Version - Dependent Applications Concerns
Is it possible to upgrade to Fedora 11 and still keep the server functional (it's running Fedora Core release 6 now, with MySQL 5.0, PHP 5.1 and Apache 2.2)? I have a Customer Relationship Management system on there and it is required on a daily basis. I am trying to figure out if I should upgrade (and whether that wil...
You should really talk to your CRM vendor, they will be able to tell you if there are incompatibilities in the new versions, as well as give you some guidance as far as the upgrade process where their application is concerned. Also, without know which CRM you are talking about we can't possibly give you any kind of adv...
0
0
56
2010-05-24T20:55:36.890
database_errors
serverfault.com