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
405,943
Nginx static files exclude one or some file extensions
I'm serving up a static site via nginx. [CODE] And my goal is to exclude requests like [CODE] . Full view is like [CODE] . Despite the fact these URLs ends in such a format they are not static, but fake script requests, so I have a problems with them. What is the best way to do this? How can I add an exclusion for this...
[CODE] . [CODE]
2
1
10,554
2012-07-09T06:13:22.607
infrastructure
serverfault.com
1,146,344
Where do I find the LDAP scheme for Postifx or which alternative should I use?
The howto https://www.postfix.org/LDAP_README.html describes LDAP object with object classes [CODE] [CODE] [CODE] attributes [CODE] [CODE] [CODE] [CODE] Where do I find the LDAP schemata for those? It does not seem to be a standard/core schema and Postfix doesn't provide an schema either. The COSINE schema defines the ...
You can use a be existing Schema Files or create Custom Schema Files. If you haven't done so yet, you may want to review the following OpenLDAP Schema Documentation. OpenLDAP 2.6 Schema Documentation: https://www.openldap.org/doc/admin26/schema.html I believe that the "inetorgperson.schema" file is installed with OpenL...
0
0
107
2023-10-22T15:17:25.757
infrastructure
serverfault.com
154,398
Attempting to restore this backup may encounter storage space problems & Exclusive access Error
I would like to say that as one of POS database when i am try to [CODE] from TSQL. I am getting the below message like this. Attempting to restore this backup may encounter storage space problems. Subsequent messages will provide details. The path specified by [CODE] is not in a valid directory. Directory lookup for th...
Here is what I think is happening. Error 1: Attempting to restore this backup may encounter storage space problems. Subsequent messages will provide details. The path specified by "C:\Software Lab\Database\SLQ.mdf" is not in a valid directory. Directory lookup for the file "C:\Software Lab\Database\SLQ_Log.ldf" failed ...
0
1
1,376
2016-11-06T13:42:42.053
database_errors
dba.stackexchange.com
245,927
SMO, Powershell, & Failed Logins
Background At my current organization, we've got a SQL Agent Job running a Powershell script, originally based on Script All Server Level Objects to Recreate SQL Server . This job writes a bunch of scripts that can be used in the event we need to do disaster recovery. Our version queries a separate database that lists ...
The answer to almost all questions about Powershell/SMO is to use SMOs object model less, and TSQL more. EG [CODE]
2
3
247
2019-08-21T20:24:11.890
database_errors
dba.stackexchange.com
640,077
New root CA will not list schema version 2 & 3 certificate templates
I'm trying to decommission a Server 2008 machine that hosts DC, NPS, and CA. I've deployed two new servers to take over as root CA and RADIUS server (both new servers are 2012R2). The new root CA is issuing certificates (DC authentication auto-enroll), and the new NPS server has been restored with our existing configur...
if existing CA server (2008-based) is not yet decommissioned, you need to remove all certificate templates from this CA. add desired templates to new CA (2012R2-based) for issuance. No , there is no dependency on domain functional level.
0
1
3,398
2014-10-27T21:09:32.867
database_errors
serverfault.com
520,597
How to securely connect to multiple different LDAPS servers (Debian)
I'm trying to connect to multiple different LDAPS servers. A lot of the documentation I've seen recommends setting [CODE] , but that strikes me as horribly unsecure to not verify the certificate. So I've set that to [CODE] . All the documentation I've seen says I need to update ldap.conf with a TLS_CACERT directive poi...
Bundling unrelated certificates isn't an uncommon practice. It is the way that [CODE] manages its CAs. However, that method can make it more difficult to remove certificates you no longer wish to trust. Perhaps you'd like to go the hashed certificate directory method. This is the way that [CODE] manages its CAs. Put yo...
4
0
1,730
2013-07-03T16:33:32.390
infrastructure
serverfault.com
223,839
Error 1062: Duplicate entry 'mydb/regimes' for key 'name'
I am not an expert on databases but I'm modeling a database on mysqlworkbench 8.0.13 and when I try to run the script it breaks at this table(regimes). I can't figure out what KEY 'NAME' it is referring to. There's no key called name on this table. I use this table's id as FK on two other tables. And both relationships...
[CODE] is an error indicating you've tried to [CODE] or [CODE] (explicitly or implicitly) a row in a table using a key that already exists and that key column is defined as being unique in the table/index. This could be a primary key or another key that has been explicitly defined as unique. However, in your case, I su...
1
1
11,328
2018-11-30T13:22:45.560
data_quality
dba.stackexchange.com
369,419
How to implement unique usernames from a list of phrases
I am looking to create a random username based on a set of existing phrases plus an integer since there can be multiple users with the same phrase. For now lets assume there's 12 phrases such as [CODE] , so a user who signs up could randomly receive [CODE] as a unique username. The user would be stored in a MySQL table...
If you want to ensure its unique, two ways immediately come to mind: pre-generate 1,000,000 unique user names (or whatever amount you think you might need). When a user signs up, pull one from the list and mark it as used. After generating one, simply check if it is already in the database, and if it is, try again, and...
-1
4
141
2018-04-16T03:24:58.817
database_errors
softwareengineering.stackexchange.com
148,346
How do loop through a dynamic SQL statement using a cursor?
I have the code below. When i run it i get the same value for all the rows fetched by the cursor. I want it to display the result fetched by the dynamic SQL and if the value returned is null i want the code to display 'N'. Please help. [CODE]
The problem is that your dynamic query never produces a null. When the condition in the dynamic query's WHERE clause is met, the output parameter is assigned a [CODE] . But when the condition is not met, nothing happens, and the [CODE] parameter keeps the value assigned at the [CODE] line – consequently, the [CODE] var...
0
1
2,942
2016-08-30T18:02:31.867
database_errors
dba.stackexchange.com
1,023,406
Can't receive email from certain office 365 organizations - untrusted root
I have a 2013 exchange server on premises. Two different domains domain1.com domain2.org. They are both validated and whether you send to domain1 or 2 , email gets delivered. Barracuda is in front of the server - and I think this is what's causing the issue. I'm having an issue where I can't receive emails from users f...
Since there is no issue with other Office 365 tenants, this issue may be related to these two organizations. You mentioned, “Only thing that changed was that the domains were verified using office365” which two? Your domains domain1 and 2? You may check if there is any logs in Barracuda about the message. And contact O...
1
0
2,879
2020-06-29T23:25:35.500
data_quality
serverfault.com
879,645
Win Server Domain/DNS name error - A.BxCx.org - vs.- A.Bx.Cx.org
I just got a request asking if I could volunteer/help out a local shelter with their network. They're having a "bunch of issues" / slowness /etc. They had a SBS 2k3 server with about 40 domain clients. A consultant told them that 2k3 and exchange was the problem. They paid to move email to Google and upgrade the Server...
The problem was attributable to migration from win2k3 AD to Win2k12 AD, during the process the AD domain Bx.Cx.org carried out successfully. host.subdomain.TLD is acceptable even in Win2k12 while configuring a DC & AD domain. Temporary fix is to add CNAME and domain controller (name server) entries in Domain regitrar's...
1
0
183
2017-10-21T21:01:36.003
infrastructure
serverfault.com
244,754
Convert sql_variant to varchar to select left 2
I am trying to populate a column (versionstatus) with if the service pack needs updating. I have created a lookup table which lists the SQL Version, and the latest product version, e.g. SQLVersion LatestSP SQL Server 2016 13.0.5026.0 I then have a second table which contains product versions, and want to compare this v...
Try explicitly converting the [CODE] column to [CODE] before applying the [CODE] function. The following simple example worked for me. [CODE] [CODE]
3
5
9,769
2019-08-07T11:17:08.623
database_errors
dba.stackexchange.com
550,959
I can't ping to my EC2 instance although icmp has been set
I wasn't able to ping to my ec2 server although I've done the following command: [CODE] when I try this again it gives me: [CODE] now when I ping from my laptop it gives me: [CODE] any idea on what to try on next?
since you pasted a public IP, i had to see... 64 bytes from 54.251.103.225: icmp_req=1 ttl=51 time=192 ms 64 bytes from 54.251.103.225: icmp_req=2 ttl=51 time=191 ms looks like you may be limiting icmp at your location? otherwise, if this was fixed after posting, remember that allowing icmp open to the world means that...
0
2
1,261
2013-11-06T00:42:21.577
infrastructure
serverfault.com
958,480
GCP: Assigning storage bucket read permission to an IAM Role?
I have a seemingly easy question regarding IAM users, roles and bucket access in Google Cloud Platform. I have 2 users U1 and U2 defined in a project. They are both in role R1. I have a bucket S1 that I want to give both users read access to, via UI or Console. I don't want to give storage.reader (full read access to a...
I think you are confused about how Roles work in GCP. One role in GCP is a collection of permissions since those permissions cannot be assigned directly to an identity ( user, group or service account ). Now, regarding your question and referring to the documentation mentioned above, in this link are described the role...
0
0
913
2019-03-15T16:59:56.010
infrastructure
serverfault.com
42,405
No Such Element (Selenium)
I have checked far and wide for a fix for this. But to no avail. Nothing seems to work. I am trying to locate a Username and Password box to enter in the information. But it comes up with the error [CODE] I have tried to find using id but still no luck. Any ideas? [CODE] This is the inspect element [CODE]
[CODE]
0
1
546
2020-02-03T16:55:14.007
data_quality
sqa.stackexchange.com
881,376
Is it possible to set up individual logging files for specific database in Postgresql?
Update What I mean is can I have multiple log files per database? Probably not but I was curious if there was anything possible like this out of the box with Postgresql or if you required a third party product or building your own app to do this. I saw from another thread you can do this: ALTER DATABASE your_database_n...
You can set the global [CODE] . Then for the specific database: [CODE] I also have this in my global config so the log file shows the db name and the user. [CODE]
2
3
1,055
2017-11-01T15:46:16.073
database_errors
serverfault.com
203,382
Bypass truncated data type error in `CREATE TABLE AS`
I am attempting to recreate the code from this excellent tutorial in MariaDB 10.2 to try and build nested sets from an existing adjacency list. (The goal being to ingest changes to the adjacency list one at a time and then rebuild the nested sets at certain time intervals). However, I've hit a snag with this bit: [CODE...
After much googling, I came to realize that the error message was exactly correct though somewhat vague. [CODE] meant that somewhere in my query, my [CODE] was being converted back to a [CODE] data type. Once I figured that out, re-reading the query made me consider how this little gem was working: [CODE] . Turns out, ...
0
1
492
2018-04-09T09:49:49.910
data_quality
dba.stackexchange.com
101,334
Index Strategy for MySQL Query that matches on one column and between two others
I have a table that contains a set of measurements for a continuous stream of processes. Although each process is individual, they are categorized into groups. The events have a start and end timestamp and a process group identifier. The table structure is as follows (InnoDB, MariaDB 10): Table Name: measurements [CODE...
(Not an answer, but too clumsy for a comment.) have an index on process_group_id, start_timestamp, end_timestamp. However the query does not appear to use anything but the process_group_id part of the index. It is actually using [CODE] although it does not say so. What was the [CODE] ? That may give a clue. Also try [C...
2
0
200
2015-05-12T20:51:31.350
database_errors
dba.stackexchange.com
23,662
MySql server connection problem
We've recently begun to have some downtime due to our database server (MySql) stops responding/refuses connections. We get the following (a lot) when we monitor with mytop: [CODE] The IP is our own and should be allowed to connect to the server, and it works most of the time. Some MySql distribution info: [CODE] Does a...
[CODE] prevents the server from looking up the reverse DNS recording for the connecting client. If the connecting client doesn't have a reverse DNS entry then the connection may hang for a brief period of time while it attempts and fails to make this lookup. I can see from here that [CODE] doesn't resolve to anything. ...
2
5
766
2009-06-10T20:36:35.143
database_errors
serverfault.com
392,387
multiple openVPN instances - tun1 fails
Various resources are on the below LAN, one of which is Linux openVPN server. For complicated reasons, I have to run 2 openVPN server instances, VPN1 and VPN2. VPN1 works great, hands out 10.8.0.x tun0 IP's to connecting clients. Clients are then able to access any resources on 192.168.44.x LAN, all is well. VPN2 is se...
You will want to remove the ifconfig-noexec on the server. On the client, you should keep it since you're setting the IP of its tun interface separately. On the server, the tun1 interface doesn't come up if you specify ifconfig-noexec (basically, the OS isn't running essentially [CODE] ). So, nothing on the LAN will kn...
1
1
13,974
2012-05-24T19:35:56.690
infrastructure
serverfault.com
298,938
Exchange Account recieves emails internally but not externally
I created an new exchange account, if we send emails to this address from inside the domain it works just fine, they are delivered with no problem. if you send him an email from any address outside the domain it is returned to the user saying the delivery failed. What Can I check in exchange to resolve this issue? UPDA...
It could be a number of things. Starting with the basics or ports and DNS? Is the exchange server publicly aval? MX records setup for the domain and pointed to your exchange server?
1
0
4,138
2011-08-08T17:29:02.483
infrastructure
serverfault.com
1,108,234
nginx allow sending redirect from app to client
I am trying to redirect a user back to my mobile-app after successful login. (linking back to the app) For this, I send a [CODE] response with this link: [CODE] My server code written in go looks like this: [CODE] The [CODE] works as a reverse proxy loadbalancing to 2 Servers running the rest-API. here is the config: [...
Seems by default nginx passes [CODE] in the [CODE] header (see below), you will need to change that to the actual host: [CODE] Syntax: [CODE] [...] By default, only two fields are redefined: [CODE] -- https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header [CODE] name and port of a proxied server as ...
0
0
548
2022-08-15T14:28:12.133
api_errors
serverfault.com
319,799
MySql 5.5 intermittently allows access to command SHOW BIN LOGS
I've written software that reads the MySQL bin log and uses it to sync data to another, external application. I did my development and testing on versions of MySql and MariaDB without issue. We've now deployed our application to a new client, they are using MySQL 5.5. We created a new user using these commands: [CODE] ...
https://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-6.html says: Important Change; Replication: The SHOW BINARY LOGS statement (and its equivalent SHOW MASTER LOGS) may now be executed by a user with the REPLICATION CLIENT privilege. (Formerly, the SUPER privilege was necessary to use either form of this statement...
3
2
133
2022-11-16T20:25:16.987
database_errors
dba.stackexchange.com
507,346
Password authentication failure in PostgreSQL 9.1 from remote client
I run PostgreSQL 9.1.9 in Debian Squeeze server (using backports). The contents of pg_hba.conf file is: [CODE] I have set the password for postgres user with: [CODE] I try to make a connection from PgAdmin, but I cannot make it work. It keeps throwing out the authentication failed error. My client is the one with the I...
Since you mention pgAdmin, if you used it to modify the [CODE] account, you may suffer from its password expiration's date bug mentioned on dba.se in: PostgreSQL user can not connect to server after changing password Basically the workaround is: [CODE]
2
3
2,024
2013-05-13T16:30:45.350
database_errors
serverfault.com
803,908
Client Certificate Authentication: don't display browser popup when no client certificate is present
We have a web app that uses client certificates for authentication, and this causes problems for users that have client certificates, but not ones for our app. Indeed, they have a popup showing up asking to provide a certificate when the SSL connection is initiated, but they don't have a certificate for our app (they h...
The server can only request a client certificate or not and additionally provide a restriction which CA's are accepted as the issuer of the client certificate. What a client does with the information is fully up to the client, i.e. the server has no control over it. There is no way for the server to only optionally req...
1
3
1,462
2016-09-19T07:44:13.837
api_errors
serverfault.com
86,775
HTTP Header Issue
We've been having weird issues with our web server. Sometimes when you click around you will get the http header in plain text on the web page. HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html; charset=utf-8 Server: Microsoft-IIS/7.0 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Date: Mon, 26 Oct 2009...
I agree with @djangofan's comment. It looks like you have a caching server or caching enabled. Are you using ARR or a cache server or some other type of caching? I know that ARR 1.0 had a caching bug that would cause this.
1
1
348
2009-11-20T19:49:32.300
infrastructure
serverfault.com
331,352
any way to keep track of all queries and their number per hour or per day in SQL server
in SQL server, i would like to keep track of all queries and their count , based on specific time frame and keep thsir historiacl record. like every hour , which query ran for how many times. We have a database server which gets too many issues and we are able to see that number of querie is at certain timeframe increa...
I would suggest to activate the query store: https://learn.microsoft.com/en-us/sql/relational-databases/performance/monitoring-performance-by-using-the-query-store?view=sql-server-ver16
0
2
179
2023-09-19T10:55:54.160
database_errors
dba.stackexchange.com
170,740
Do unit tests sometimes break encapsulation?
I very often hear the following: "If you want to test private methods, you'd better put that in another class and expose it." While sometimes that's the case and we have a hiding concept inside our class, other times you end up with classes that have the same attributes (or, worst, every attribute of one class become a...
When I was younger and raised this question, I was told that I really don't need to write unit tests for private methods. Surprisingly, this turned out to be true. If you take a behavioral driven approach to unit tests, this makes perfect sense--your public methods are what are being asked to do stuff. The fact that th...
30
41
7,556
2012-10-20T23:56:12.087
api_errors
softwareengineering.stackexchange.com
5,107
Docker for Windows 7 with Visual Studio 2017 Integration
My objective is to have a development environment with docker and Kubernetes integrated with Visual Studio 2017 so that I can run the app on the docker container from directly within Visual Studio. I'm on a Windows 7 OS. My research has taken me thus far: Docker for Windows only supports Windows 10+. As an alternative,...
If you are on win 7, you cannot use the current "docker for windows", which only works for win10 pro and server 2016. Your only solution is to use the Docker Toolbox https://docs.docker.com/toolbox/overview/ . Incidentally you must use it with Oracle's VirtualBox. But you don't need any virtual machine to make this wor...
1
1
881
2018-10-03T18:46:09.320
pipeline_ops
devops.stackexchange.com
732,378
FTP EPSV command and iptables
Troubleshooting an issue with an FTP connection going through an iptables firewall and seeing some strange issues with passive mode. We are trying to connect to an FTP server and get the directory listing, and it seems to work in PASV mode in all cases, but times out when EPSV is sent instead. The server understand EPS...
Vendor has acknowledged this is a bug in the release of the software we are running.
0
0
363
2015-10-28T23:06:21.203
infrastructure
serverfault.com
159,390
Linux: disallowing access to a network when the user has a static-defined IP address
In my network I run dhcpd3 set up to assign IP addresses only to specific MAC addresses. It works wonderfully, I even integrated it with bind9 to automatically create direct and reverse DNS hostnames with a custom TLD and all. But one thing I haven't figured out yet: if the user sets up a static IP on his machine he wi...
You can't do that at the IP level; if the user configures his computer to have a valid address/mask, it will be able to access your network. The only option here is filtering the access at the MAC level, thus allowing only Ethernet cards belonging to computers (or devices) you trust. 802.1x is really the best solution ...
3
4
817
2010-07-11T16:45:06.380
api_errors
serverfault.com
309,218
How can I modify a jenkins job configuration programatically without a restart?
Jenkins jobs have config.xml files that store the configuration of that job. I have a "job manager" job that modifies the configuration of other jobs, but I can't seem to get it to acknowledge the new configuration without restarting Jenkins. The jenkins-cli.jar command line tool strangely doesn't seem to have an optio...
It turns out the crutial info seems to be wget's "--auth-no-challenge" option which apparently is for obscure webserver configurations like Jenkins that don't follow expected protocol: [CODE]
11
8
16,311
2011-09-08T03:15:17.733
pipeline_ops
serverfault.com
455,902
Mail won't start up after migration to Mountain Lion Server
I'm not sure where to start. Our hard disk died on server running 10.6.8. Installed new disk. Followed Apple's migration instructions to 10.8.2. All services are operational except Mail. [CODE] Edit: [CODE] (as requested): [CODE] Permissions on [CODE] (as requested): [CODE]
Your problem is listed in your log [CODE] Create directory /Volumes/Server HD/Data/spool and assign postfix permission to it. Then restart your mail service. Please keep in mind this MAY NOT solve your postfix problem completely, but at least let you move a step forward. 2 potential problem to your main.cf (1) With a c...
0
1
1,564
2012-12-07T01:59:38.503
infrastructure
serverfault.com
253,828
Postgres Search Path between connections
I'm a noob to Postgres, and am setting up a multi-tenant database using one schema per tenant. To target each tenant I need to set search_path accordingly. I'm worried about accidentally executing something intended for one tenant on another tenant, if the wrong search path is picked up somehow. I will be executing Fun...
You should clean the state when you return a connection to the pool. This is typically done with [CODE] . If all you need is to reset configuration parameters, you should use [CODE] .
0
0
276
2019-11-21T10:04:00.393
database_errors
dba.stackexchange.com
1,011,460
Nginx will not start
I'm currently trying to get nginx set up to help me run a website from home. I've followed the following instructions to set up nginx: [CODE] Once I try to run [CODE] , I get [CODE] Running [CODE] I get the following: [CODE] Running [CODE] produces [CODE] I have checked in the nginx error log and it repeats the followi...
The error message is pretty explicit: directive "root" is not terminated by ";" in /etc/nginx/conf.d/writefreely.conf:6 edit file: /etc/nginx/conf.d/writefreely.conf go to line 6 add ";" at the end of the line restart nginx
0
0
9,921
2020-04-08T15:23:01.960
infrastructure
serverfault.com
1,114,615
How to use ALB Ingress without rewriting every helm chart?
I am trying to use ALB ingress with default helm charts, but struggle to solve simple problems with headers. In Kubernetes ingress-nginx it's easy to add annotations to add headers (CORS), but with ALB I can't do such a simple thing. I can solve this problem with the sidecar Nginx container, which will add headers, but...
Unfortunately, this is not possible with ALB ingress controller. Sources: 1 , 2
0
0
130
2022-11-02T10:11:17.923
pipeline_ops
serverfault.com
46,511
Server 2003 SBS Crashing seemingly at random
I have a Windows Server 2003 Small Business Server that has begun crashing more and more often. The machine does not physically power off(so I don't think it is a power supply issue), but it does not respond to any network activity. When I force a restart by holding down the power button(at 11:43:20 AM), the only relev...
It could be a million things from a faulty driver down to hardware problems. I would say before going any further, the best thing to try would be to go to system properties (right click on computer and click properties) then go to the advanced tab, click startup and recovery and untick the Automatically restart button ...
1
1
1,659
2009-07-27T14:39:57.847
database_errors
serverfault.com
403,289
How to inherit a static function in a class?
Probably the answer is you can't. However, I would like to have a work-around to solve my problem. Objective I am trying to create a program in which I try to avoid nulls as much as possible. Problem I am using the empty object pattern in places where null could have been returned. Like this: [CODE] and here is the Use...
You indeed can't inherit a static function. But if you need that static function to create an empty object, then you can also require that the derived classes implement a particular constructor. The base class could then be, for example [CODE]
0
3
1,534
2020-01-04T04:16:24.443
api_errors
softwareengineering.stackexchange.com
1,009,849
iptables is not working as expected after changing a rule
Some background: There is a machine, lets call it "Machine A", (running Xubuntu 18.04) that I am hosting Minecraft on behind a firewall, that I'll call "the firewall" from here on out, (running Ubuntu Server 16.04). Previously the Minecraft server was running on my file server, call it "Machine B", and everything was w...
Got it. The script I included does not flush out the nat table whenever it runs which was causing my old rules to persist causing the issue I was running into. The following article helped me solve this issue: best way to clear all iptables rules (best way to clear all iptables rules on Server Fault). I added [CODE] to...
0
1
402
2020-03-28T16:28:09.817
infrastructure
serverfault.com
71,621
What is the difference between a non-functional requirement and a quality attribute?
I'm trying to understand the difference between non-functional requirements and quality attributes. Are they the same thing? You can find a set of quality attributes in the ISO 9126, now ISO/IEC 2500xx SQuaRE family of standards. I know that each system is defined by a set of functional requirements and every of this r...
I think that you are thinking about this a little too hard. Functional and non-functional requirement are not really as separable as you are suggesting, Take the login case for example. The user SHALL be able to log in through a web interface. Technically, this is a functional requirement. The system MUST respond to lo...
17
12
38,707
2011-04-27T03:39:46.963
data_quality
softwareengineering.stackexchange.com
475,932
WebDAV on server exposing ZFS data from another server
Is it even possible to have WebDAV server hosted on one computer and its pulling the "data" (folders and files and all) from another server? Something like so: [CODE] Where the CentOS proxy is the WebDAV server that every connection would access to see the files, where the files are actually stored on the FreeBSD ZFS s...
Yes, just remotely mount the ZFS filesystems on the proxy machine (using NFS/CIFS/whatever) and then run a WEBDAV server which serves the mountpoints.
0
1
680
2013-02-06T06:42:47.547
infrastructure
serverfault.com
530,006
Why is SSH/SFTP failing for commands with larger returns?
We have a SFTP server which was working fine until we added another ISP. The connection to the SFTP server is not going through the new ISP, I confirmed it with [CODE] . No change was made on the server either. But since then, some users' SFTP or SSH connections time out/hang if the executed command has a larger return...
I believe the commenter hit the nail on the head, this is a classic example of an MTU issue (and path MTU not properly detecting the smaller MTU necessary for that particular path that is failing). You should check that the intermediary devices in the path that is failing are properly allowing MTU path discovery packet...
1
2
2,670
2013-08-10T01:50:59.997
api_errors
serverfault.com
449,406
Simplest DNS solution for remote offices
I look after a bunch of remote offices that connect via VPN - a Cisco ASA 5505 in each office acts as Firewall and VPN end point. Beyond that we keep things as simple as possible in the offices to minimise the support burden. We don't have any kind of server except in offices large enough to justify having someone dedi...
Two things: If the internet connection is sketchy what good is having a local DNS server if all they'll be able to do is use it to resolve DNS for external resources (web sites). If they can't access HQ resources because of the sketchy internet connection then I don't see any point to being able to browse the internet,...
1
2
961
2012-11-16T13:02:42.863
infrastructure
serverfault.com
324,992
Unlike C++, why does uncaught exception in JavaScript not terminate the script?
As someone used to C++ and new to JavaScript, I find this behavior odd. Whether a program runs directly on the platform like C++ ones, or it runs at a higher (or deeper?) level like JavaScript ones, conceptually, a program a program and an exception is an exception. Then why does JavaScript have this behavior? Is JavaS...
A major difference between C++ programs and Javascript scripts is that a C++ program typically runs for a much longer time than a Javascript script. A C++ program with a GUI executes continuously while you are working with the program. A Javascript script on the other hand only executes for a short time to respond to a...
4
12
1,322
2016-07-16T08:03:26.907
api_errors
softwareengineering.stackexchange.com
32,203
How to get JMX Counter in PerfMon Metrics Collector
I am trying to get JMX monitors graph in Perfmon Metrics collector listener but getting all server metrics like CPU, Memory , network I/O except JMX. When I am going to apply this counter then getting the following error in perfmon agent: ERROR [CODE] Started Perfmon agent on default port 4711 which is applicable for j...
You need to start your application under test , not PerfMon Server Agent with these parameters [CODE] Depending on your application deployment you need to add these properties to application server, the majority of them respect JAVA_OPTS environment variable, refer your application or application server documentation t...
1
1
1,170
2018-02-21T06:41:43.340
data_quality
sqa.stackexchange.com
270,793
Postgres function/procedure won't return value
I'm new to PostgreSQL, coming from SQL server and I'm having trouble creating a function and/or procedure. First of all, may I just clarify that the only difference between a function and a procedure is indeed the support for transactions? Now going back to my problem, I want a simple func/proc that returns the current...
may I just clarify that the only difference between a function and a procedure is indeed the support for transactions? No, the biggest difference is that functions are intended to return something while procedures are not. In PL/pgSQL, the result of a SELECT statement needs to be stored somewhere (which is what the err...
0
2
4,266
2020-07-12T08:41:47.190
database_errors
dba.stackexchange.com
959,596
Disabling SSH access into prod VM on GCP
As per title, for example if I disable SSH access into VM on GCP, but someone wants to remotely manage VMS , build docker containers or manage Cloud storage objects what they have to do? Grant people access to use Google Cloudshell Config VPN connection to GCP to allow SSH access to Cloud vms. My though: If people asks...
If you want containers on GCP, consider Kubernetes Engine . GKE uses [CODE] as its interface to the cluster, as allowed by users roles in IAM . No one needs to ssh into the cluster nodes. SSH is the only good way get a shell on a GCP Linux instance. Access is controlled in two ways: Who has the private SSH key associat...
-1
0
3,490
2019-03-23T03:51:11.673
pipeline_ops
serverfault.com
181,585
Why would I use Control.Exception in Haskell?
I'm trying to really master Haskell error handling, and I've gotten to the point where I don't understand why I would use Control.Exception instead of Control.Monad.Error. The way I can see it, I can catch Control.Monad.Error exceptions in both pure and impure contexts. By contrast, exceptions defined in Control.Except...
[CODE] is designed for use: in otherwise pure code where the addition of an error-related monad or other error reporting structure would be too cumbersome in cases where one thread or process needs to raise an asynchronous exception in another process, outside of the type system's constraints. For an example of the fir...
4
6
1,189
2013-01-04T22:47:33.653
api_errors
softwareengineering.stackexchange.com
144,674
unique constraint on a column with duplicate values
How to create unique constraint on a column with duplicate values,without disturbing the existing data.i have already tried the method below, To create a normal index first and then create a unique constraint. But in this I won't be able to drop the unused index created first.i don't want that . Any other clean methods...
I'm sure this has already been asked before , but .. from the Oracle documentation Further down the page, when you look for what each constraint state is: VALIDATE | NOVALIDATE The behavior of VALIDATE and NOVALIDATE always depends on whether the constraint is enabled or disabled, either explicitly or by default. There...
1
4
20,897
2016-07-22T16:26:28.277
data_quality
dba.stackexchange.com
175,714
Trigger to generate protocol number
I need help with creating a trigger that will generate a protocol number. The following sequence must be followed: [CODE] 323926 = fixed number YYYY = year MM = month DD = day XXXXXX = Number we must automatically generate from 1 that will go to 999999 My difficulty is that this incremental number should return to 0000...
I wouldn't do this, I would store them all separate and generate them with a function. [CODE] Now to query it, [CODE] If that's not good enough you can always create a view or materialized view out of it... [CODE] Why would I do this? More efficient storage. You store the inputs to the function rather than output which...
3
4
231
2017-06-07T20:06:05.747
warehouse_errors
dba.stackexchange.com
48,533
Why use Variational Autoencoders VAE instead of Autoencoders AE in Anomaly Detection?
I have read many papers that recommend using Variational Autoencoders over Autoencoders since they have a more probabilistic approach and the ability to use KL divergence on the latent dimension. But when trying to test both networks I find that the variability of the output in Variational Autoencoders is reducing the ...
Variational autoencoders encourage the model to generalize features and reconstruct images as an aggregation of those features. This is what the latent space encodes, a compressed feature vector. Vanilla autoencoders memorize the input and map to the output without the generalization. If you want to extrapolate from yo...
1
4
4,377
2019-04-03T15:39:26.900
data_quality
datascience.stackexchange.com
415,896
Email Notifications Implementation - Web Application
Good day, I'm having difficulty structuring how I should set up email notifications for a Django app that I built. As I'm seeing an increase of users in the app, it increases the occurrence of email notifications being sent out. The app sends out email for every important event, examples are registration, confirmation,...
I think using a third-party CRM for things like this is still definitely your best bet, until you start seriously scaling. I personally haven't have the same experience you've had with Mailchimp (that's what I use, and most emails land in recipients' inbox), but I would play around with other options and see which best...
0
1
82
2020-09-14T16:08:33.127
api_errors
softwareengineering.stackexchange.com
1,141,915
ansible pause not working with when conditionals
example play: [CODE] the debug works fine however the pause task never runs. The [CODE] conditionals are the same. If i run this against a single host with [CODE] it works fine however running it against a group of hosts and the pause task works for the first host but not the rest [CODE] is no good to me as i specifica...
[CODE] is an action plugin does an uncommon thing: it bypasses the host loop. Which has an effect the same as forcing [CODE] that is to say run once even if multiple hosts are targeted. (The implementation is in strategy plugin code.) This is what "bypass_host_loop full" attribute means in the plugin docs, which you ca...
0
1
317
2023-08-18T20:12:05.003
pipeline_ops
serverfault.com
10,868
Text Mining error
I'm trying to get used to text mining using orange. I set up a very easy workflow loading a corpus (tab separated text file containing 10 entries), using a corpus viewer that shows my data correctly and a topic discovery item. But I always receive an error Message at 95% of topic discovery called: [CODE] What do you th...
One thing I've noticed about Orange is that anytime you get an error calling [CODE] , there will be some sort of [CODE] or [CODE] that it is a child of. Take a look at the rest of the errors and look for some type of value or formatting error, or post your full error log in a pastebin so I can take a look.
1
1
370
2016-03-24T11:53:06.690
data_quality
datascience.stackexchange.com
929,147
Multi router network and IPv6 DHCP/RA issues - How to assign default routers?
I've again got problems with our LAN. There are 4 WAN gateways all on the same subnet, all with 100M uplink. On IPv4 I advertise default routers using a ISC DHCP Server. On IPv6 there doesn't seem to be an default gateway option in DHCP - all is managed via router advertisements. But how do I specify which client shoul...
IPv6 doesn't provide options to force clients to use a specific gateway. Instead it let's clients make the choice themselves. You might be able to do some filtering on your network so the clients don't see the RAs from remote parts of the network, but this would be a hack. The solution is to split your broadcast domain...
-1
1
348
2018-09-03T06:29:42.020
infrastructure
serverfault.com
138,320
Duplicate rows - how to remove one?
I have a pretty large table (~114 million rows) containing OS MasterMap data. This is freshly loaded data in a new table. When trying to set the primary key, I get this error: [CODE] Somehow, I have ended up with an exactly duplicated row. Every field is the same in these two rows. I want to delete one row, but keep th...
This will work I think: [CODE] And another variation. Not sure which will be more efficient: [CODE] But note what the docs say abut [CODE] : [CODE] The physical location of the row version within its table. Note that although the [CODE] can be used to locate the row version very quickly, a row's [CODE] will change if i...
5
11
6,938
2016-05-12T09:53:00.640
data_quality
dba.stackexchange.com
573,470
No ouptut from kpartx -av and -l
I am trying to learn how to use kpartx, and am having some trouble. My end goal is to use nested LVMs for virtual machines, where the VM's "/home" is in one nested LVM and the rest of the VM is on a second nested LVM, so I can use snapshots for /home and /"everythingelse". When I issue "kpartx -av /dev/vg2/LVM1", I get...
first, just to be clear kpartx will detect and present any block device nested in your lv. be it a pv or anotger partition type. Next if your underlying device is encrypted there is no chance kpartx can see anything. Further more, I an not sure I understood your setup, but if do, I doubt this would work. lvm metadata s...
0
0
1,453
2014-02-05T19:30:49.953
infrastructure
serverfault.com
185,328
Executing SSIS catalogue package from a different machine, authentication fail
I am having an issue running a SSIS package which uses a C# script component to carry out a HTTPS file download and load the data into a SQL Server database. On our infrastructure we have a management (MGT), SQL Server (SQL), and Integration Services (SIS) machines. The package is deployed into the Integration Services...
You're on the right track, but I suspect you're still running into the double-hop issue. SPNs are a step in the right direction to resolve this, but next you need to setup delegation for your SQL Server Instance so that it can properly pass along the AD token. I will recommend that you setup constrained delegation for ...
2
2
1,464
2017-09-07T15:15:46.400
database_errors
dba.stackexchange.com
227,713
Windows Server 2008 R2 - LATENCY ISSUES
I am experiencing a massive amount of latency between 2 servers boxes. (900 milliseconds) The servers have a physical lan line connecting them - so there is virtually no network latency. 1 application on 1 server connects to 1 application on the other server . Nothing else. I am running windows server 2008 R2 - on a de...
The very first thing I'd do is attempt to update the drivers for those Broadcom NICs. I've seen weird issues much like this one due to driver-whackery on Broadcoms.
1
3
7,499
2011-01-27T17:20:46.143
infrastructure
serverfault.com
321,479
Developing database for powerplant-- HELP!
I am network admin at a municipality that has been tasked with creating a database to log information from our powerplant. I know I don’t have the skills to do this, but since I have some knowledge on website development (which isn’t much either) they asked if I would create it. There are 15 columns, but I only care ab...
There will be some sort of submitting/editing button added later. Hourly employees will be entering this data in via website. I'm assuming the day the employees enter the data is the day that's associated with the data being logged itself. So in your table you should have a column with a name like [CODE] that is of the...
0
0
52
2022-12-27T19:01:53.797
database_errors
dba.stackexchange.com
1,070,605
Nginx: unable to proxy some paths to Node.js server (between dwo docker containers)
So my current setup is the following: I am using docker (rootless install) and want to use Cryptpad (which uses Node.js) with Nginx as a reverse Proxy (disclaimer: I never worked with Nginx before). Cryptpad and Nginx both are running in separate containers. To serve the static files, I created a volume where all stati...
After some more trying I found a configuration that worked: I simply copied the other lines from proxy_passes from the example and so the resulting definition for /block/ looks like [CODE]
0
0
214
2021-07-25T17:24:36.973
pipeline_ops
serverfault.com
607,450
MS DNS conditional name resolution
I have a network with a lot of different subnets and VLANS. Some are specialized server zones, other are for clients or simple transit subnets. We use MS Active Directory, MS DHCP and MS DNS which all are cooperating as normal with hostnames automatically added from DHCP to DNS in their respective domains. Our servers ...
Since your DCs are all members of the same domain, doing a host lookup on the domain will round robin any of the records, whether they be in your secured or local zone. However, if you have created separate sites and associated the correct subnets in AD's Sites and Subnets MMC, then clients should be using the DCs in t...
1
2
133
2014-06-24T07:26:29.593
api_errors
serverfault.com
623,268
Ubuntu: package installed, but files missing?
I have been playing around with the [CODE] directory, installing the related pacakge ( [CODE] ), removing it, removing the directory manually (just playing around to get the configuration synced to my configuration repo). Now I just want to reinstall the official package, so I do: [CODE] What?! Empty?!? Have I installe...
So, I posted the question too early. Let me answer it for reference. The config packages are special for [CODE] . To let [CODE] re-install them, first they must be purged . This solves the problem: [CODE]
2
3
3,179
2014-08-22T09:44:47.140
infrastructure
serverfault.com
546,207
Unable to configure apache to restrict access by IP for proxy
I added following into my httpd.conf (after VirtualHost): [CODE] yet, I'm able to access my VirtualHost from other IPs: [CODE]
I found answer from: mod_proxy - Apache HTTP Server and I test it (It works!(TM)): [CODE]
3
6
20,824
2013-10-15T17:34:38.180
infrastructure
serverfault.com
148,206
IIS 6.0 SQL 2000 Deadlock erros
I have recently started a new job and they have a webserver that talks to a separate database server. It has recently been causing deadlocks errors when running ASP pages such as: ERROR: MSSQL 2kTransaction (Process ID 103) was deadlocked on lock resources with another process and has been chosen as the deadlock victim...
Usually deadlocks are an issue with either database design or inconsistencies with how the application accesses database resources. It's often that you will find resolutions to problems by making changes there, vs. the infrastructure. Deadlocks are often frequently not found during functional testing, but do tend to be...
1
0
224
2010-06-04T14:28:30.457
database_errors
serverfault.com
216,991
VNC connection via SSH proxy machine
I would like to make a VNC connection from home to a Windows machine at work. The Windows machine is not accessible from the outside, but there is a Linux box that does have port 22 open, so it would seem that this can be done. I suspect it's just a command that "forwards" connections to port 22 on the Linux machine to...
ssh -L 5902:[vnc host]:5901 [ssh host] then: vncviewer localhost:2 from: http://www.cl.cam.ac.uk/research/dtg/attarchive/vnc/sshvnc.html
6
10
13,507
2010-12-29T10:33:47.183
infrastructure
serverfault.com
907,469
Postfix Maildir virtual_mailbox_maps and virtual_alias_maps with multiple entries
Using Ubuntu 16.04 Xenial / Postfix 3.1.0 I have setup virtual_mailbox_maps with virtual_alias_maps using Maildir . I need Postfix to deliver mail both to an outside email address and to the appropriate Maildir folder(s). Instead, despite my best efforts, Postfix chooses the first match/occurrence. It will either deliv...
It looks like virtual_alias_maps might be the answer after all. You just have to specify it like this in the virtual_alias_maps: [CODE] Of course, You should have admin@mydomain.com in the virtual_mailbox_maps. I found the answer here (example 2): https://workaround.org/ispmail/jessie/types-of-email-domains
4
2
3,520
2018-04-13T07:29:20.307
data_quality
serverfault.com
214,586
Unable to connect to Red Hat port, but able to ping?
Let me preface with this that I am a linux and network noob, so talk slowly and use big words. We have a Red Hat machine running GNOME 2.16. We're trying to stand up a webapp there. From the windows development environment we are able to ping RH, but cannot telnet to the web container Error: Connecting To our.ip.addres...
Looks like you pretty much covered everything you can do on the OS side, go a-knockin on IT's door and see what they have to say.
2
1
7,200
2010-12-20T20:43:28.717
pipeline_ops
serverfault.com
15,270
SQL Server Activity Monitor - Resource Waits - Logging > 1400 ms/sec, how?
I have an SQL Server 2008 R2 server. I open "Activity Monitor", and inside the "Resource Waits" category, I see that the "Logging" category is taking up more than 1400 ms/sec. That doesn't seem to be normal, what does that mean and how do I diagnose the cause? UPDATE: I ran this query, suggested by Shark: [CODE] and go...
I would check disk health / performance for volumes holding your transaction logs. You are seeing a delay due to the durability requirement , logging is backed up. Check for I/O delays on tlog files in activity monitor as well.
8
4
30,630
2012-03-19T18:07:12.313
database_errors
dba.stackexchange.com
939,984
Dual Interface Network Card Issue on 2nd NIC
I'm working on reconfiguring an existing production server and having trouble with a dual port Intel PCIe card. It's running CentOS 6.4 [ 2.6.32-358.23.2.el6.x86_64 ] and it seems like it's a driver issue on the 2nd NIC as it's detected by the system. There was a bond interface that I believe at some point both these I...
This was caused by having an unsupported SFP module installed in the second port. Thanks to Michael Hampton's suggestion of checking [CODE] I was able to find this line; [CODE] After installing a supported transceiver and rebooting, the interface then came up as expected as eth1.
0
0
265
2018-11-14T11:58:03.843
infrastructure
serverfault.com
266,483
Where do I set the following Apache directive? Header unset Accept-Ranges
Sorry if this is a basic question, but when I searched for the answer, nothing really seemed to tell me precisely where to put this directive in Apache2 (I'm dealing with a 416 Range Request error).
The docs say "server config, virtual host, directory, .htaccess". So, anywhere you need it.
1
2
1,332
2011-05-05T01:21:07.463
infrastructure
serverfault.com
214,936
HADR wait on servers without HA configured
I am investigating a slow SQL Server 2012 server in a virtualized (VMWare 6.5) environment, and have come across three different waits on the server that are... confusing. These are [CODE] , [CODE] , and [CODE] waits. All three of these have essentially the same wait time (about 1000ms / sec). From research, I see that...
Why would the HADR_FILESTREAM_IOMGR_IOCOMPLETION wait occur at all? According to Paul Randal's wait stats library entry for this , waits are to be expected whether AGs are configured or not: This wait occurs every 0.5 seconds for 0.5 seconds, regardless of whether any availability groups are configured. Note however th...
1
1
1,662
2018-08-14T21:14:24.540
database_errors
dba.stackexchange.com
967,657
Nginx load certificate files based on host
I want to serve the right ssl certificate based on the $host variable with an exception for any host being *.mydomain.com or mydomain.com The certificates fall in two groups: Local certificates: *.mydomain.com mydomain.com External certificates: www.user1.com www.user2.com It is important to know that www.user1.com and...
Hosts that are all served by the same [CODE] block should use the same certificate. Have your certificates reissued or create a duplicate [CODE] block. Supposedly in nginx 1.16 it is possible to use a variable to specify the ssl certificate to use, but I have never found anyone who managed to make this work. In any eve...
0
0
117
2019-05-16T18:09:13.280
api_errors
serverfault.com
949,455
proftpd locking up after a set number of processes reached
We have a proftpd server (1.3.3g) running on centos6 which when it seems to get over approximately 150 processes running locks up and prevents any more connections. The proftpd server connects to MYSQL to handle user authentication. I have run the proftpd paranoid log and can see no failures in that as well as checking...
The problem turned out to be that the database tables were MyISAM and not InnoDB so when it got busy the whole table locking caused a cascade effect. changing those tables to INNODB has solved the issues as its now only locking rows.
0
2
514
2019-01-17T02:49:51.693
database_errors
serverfault.com
798,282
HP Smart Array odd read/write performance through ESXi
I have a HP Proliant DL380 G7 w/ HP SmartArray P812 W 1G-BBWC, This is plugged into a D2600 Storage enclosure with 1 mini sas cable. All firwmware versions are the latest (including the disks). There is also the internal backplane plugged into the internal SAS port. There is one RAID 5 storage array (Across 3 * 4TB SAT...
You're running an HP DL380 G7, which should have an internal Smart Array P410 array controller. Can you post the VMware ESXi build number? The driver and HPSA version matter. An update may be necessary . I'd suggest using the P410 for your internal disks and keeping the P812 for your external enclosure. You should also...
1
1
2,559
2016-08-22T09:37:59.243
infrastructure
serverfault.com
222,241
Need to call a script at logon based on hostname. Win 2k3 Domain and XP/7 workstations
I have a user logon script. I want to install printers based on hostname. Inside this folder \domain.local\SYSVOL\domain.local\Policies{DF3F608C-8D78-934F-B79F-1965F3C4409B}\User\Scripts\Logon I have cmd files for each host/workstation and the logon.cmd. Terminal Servers are honoring the environment variable %clientnam...
The variable [CODE] doesn't exist unless you have connected to a computer through RDP. You should probably be calling [CODE] instead. You could specify a different script for the terminal server that uses [CODE] . Or you can write a conditional in your script that will use [CODE] if it is present, and if it isn't then ...
0
1
427
2011-01-13T21:57:43.063
infrastructure
serverfault.com
1,003,364
nginx 500 (24: too many open files)
[I posted this on the Nginx forums, but had no responses a week later, so trying here] I am a Linux and Nginx novice, but have learnt enough to get it installed and running and working as a simple reverse proxy for two internal webservers. This has been running fine for months, but I recently started getting 500 errors...
Your nginx server is not keeping up with the number of requests arriving. More precisely it lacks available file descriptors to open connections to the upstream. These are regulated by three parameters: The per-system limit in /proc/sys/fs/file-max , which limits the maximum number of fd s for the whole system. Don't c...
12
20
48,493
2020-02-17T11:03:40.223
api_errors
serverfault.com
724,897
Can I set up a VoIP phone to connect to it's gateway over VPN with different subnets?
A little background first: Currently, we have a main office and a remote office. They are connected via site-to-site VPN. Main office uses a Cisco router with DHCP at 10.10.10.0/24 while the remote office also has a Cisco router issuing IPs at 10.10.11.0/24. Our phone system consists of the AT&T Syn248 gateway and its ...
There definitely is. Actually this is a basic routing task. I suppose your problem is that you are mixing terms - "network gateway" and a "phone gateway", so it would be better using term "PBX" instead of the second one. So, remote phone should have your PBX IP or name in the part of the configuration describing VoIP p...
0
0
1,081
2015-09-25T19:35:35.033
infrastructure
serverfault.com
323,151
AMQP broker and happen-before guarantees
I am trying to figure out how an AMQP broker, such as RabbitMQ, can be integrated in our architecture. This should allow to easily scale horizontally in the future. For the sake of simplicity, let me ask the question via an analogy. Say you have: A set of bank accounts . We assume that the the number of accounts can gr...
So, You have two issues here 1: Prevent/Resolve Simultaneous actions (withdrawals) on a single resource (bank account) 2: Enforce processing actions (withdrawals) in a particular order In your example, you could resolve 1 in a number of ways, but lets take the simplest. Processing the withdrawal calls ReduceBalance(acc...
2
1
105
2016-06-24T09:29:58.687
api_errors
softwareengineering.stackexchange.com
731,764
Using IPV6 with Dante
I have a server with one ipv4 ip and plenty of ipv6 ips. i would like to setup Dante to work as a socks proxy server in my server. I need to assign different port to each ipv6 port. Now i can use ipv4 without a problem and when i connect with my server and check my ip it successfully show my ipv4 ip. I didn't wanna sho...
No, you would need a NAT64 (or some other) address family translator. Tayga http://www.litech.org/tayga/ would be an example of one.
0
0
2,119
2015-10-26T18:26:28.037
infrastructure
serverfault.com
2,209
Why is Jenkins unable to read config.xml?
[CODE]
There would be many reason for it. If you are writing/updating [CODE] , then the possibility of a syntax error may be in [CODE] . So you can recover it with the following steps: Step 1: Stop jenkins service [CODE] step 2: [CODE] to another file for backup [CODE] step 3: Start jenkins service [CODE]
4
8
46,368
2017-10-01T22:41:19.363
pipeline_ops
devops.stackexchange.com
193,314
mark packets by multiple rule
I have a problem with iptables rules. This is my scenario: eth2: Internet connection br1: local network I want to mark only packets entering from the Internet interface(eth2) destinated to local net(br1). How to mark packets with src eth2, dst and IP address?
you can match both input and intended output interfaces in the FORWARD chain with "-i eth2 -o br1"
0
1
163
2010-10-21T08:52:18.587
infrastructure
serverfault.com
490,203
Why is my GPO not being applied on Terminal Servers?
I have a GPO linked to the Users OU, with some User Configuration settings set (specifically, settings for Folder Redirection). These work fine when users log on to their desktops, but they do not apply on the TS. There are no errors in the event log relating to Group Policy. Running gpresult /r on the TS indicates tha...
Sounds like the ou where the remote desktop server is located has a gpo with loopback policy processing, with 'replace'.
2
2
4,220
2013-03-21T19:26:57.103
infrastructure
serverfault.com
883,194
Can any user inside a organization remove a project?
Recently, I have created a project to apply full permissions on a such google account from my organization. I realized that any account could enter and destroy any project. I don't know if this is an issue or my configuration is failing. Someone has already faced this prolem? Thanks in advance
I believe that is your configuration that is failing. I guess that you have given too much power to users making use of wildcards without realising it. When you add a member to your project from the IAM & Admin menu you can specify a punctual user through an email address or a group of them with wildcards such: Google ...
0
0
71
2017-11-13T13:48:21.520
infrastructure
serverfault.com
1,132,481
SMTP Relay - Keep sender SPF valid
We use a email setup (incoming mails) in the following order: Internet -> on premises mailserver (=> attachment filter, antivirus, spam filter) -> forward to Microsoft 365 Exchange Online using hosted SMTP Relay (postfix on our web server). My problem is, that mails, Microsoft recives, are failing the SPF check because...
There are plenty of options for you to consider. SRS SRS would require you to rewrite the [CODE] header to change the domain on which SPF is checked. But this will then impact the bounces that are returned to that address instead of the original [CODE] address. So, I would not recommend this action. Transport Rule in E...
0
1
1,211
2023-06-02T12:08:52.343
infrastructure
serverfault.com
151,301
How do I know if I am using Scrum methodologies?
When I first started at my current job, my purpose was to rewrite a massive excel-VBA workbook-application to C# Winforms because it was thought that the new C# app will fix all existing problems and have all the new features for a perfect world. If it were a direct port, in theory it would be easy as i just need to go...
First, I'd recommend this Programmers SE post because it gets to good points pretty quickly: What is agile methodology? The core to working within an Agile methodology is iterative development, so as to create value, adapt to changing customer needs, and always have a working app in front of you (as Andrew answered ). ...
2
5
470
2012-06-02T15:42:27.183
data_quality
softwareengineering.stackexchange.com
594,856
Does using a peer topology mitigate the risk of server failure?
My client manufactures a medical device that takes various measurements of a given sample and writes the results to a database. The amount of data generated is relatively small. In the current configuration, each device has its own computer, and that computer runs an instance of a database server. The devices are not n...
A peer to peer software architecture can be an efficient and fault tolerant way to disseminate information between nodes assuming you already have redundancy in the underlying network. The peer to peer architecture can also protect you against data loss if multiple nodes keep the data. In typical peer to peer systems n...
2
0
136
2014-05-13T18:16:40.137
infrastructure
serverfault.com
160,924
Can I get a tree-structure from a self-referenced (hierarchical) table?
Given a hierarchical table like this: [CODE] I would like to obtain the whole tree structure. For instance, using this data: [CODE] I would like to obtain: [CODE] I'm fetching records using a recursive query like this: [CODE] And this is the current result: [CODE] I can't figure out how to order it by levels. Is there ...
Add a "path" field and sort by that similar to a file path. As ypercube mentioned, the sorting is overly simplistic in this example and just happens to work but for simplicity's sake I'll leave as is. Most of the time when I use this pattern I sort by name rather than ID anyway. [CODE] Here a rextester
9
8
25,801
2017-01-12T21:59:34.250
warehouse_errors
dba.stackexchange.com
163,176
How to change db owner after the associated AD account is disabled
The new Senior DBA requested that the previous Senior DBA's Active Directory account be disabled. He forgot to check, however, for databases where the previous DBA was the owner. We now have ~60 databases with an orphaned owner. Is there a way to fix this without temporarily re-enabling the disabled AD Account? Note: I...
Run this for each database. [CODE] To generate the script to change them all: [CODE]
1
3
1,941
2017-02-03T19:12:36.557
warehouse_errors
dba.stackexchange.com
774,848
nginx sub uri on another root
I'm stuck on an nginx rule : I have to use Nginx on our monitoring server, it uses Zabbix. I succesfully configured nginx for zabbix so that I can access monit.domain.com and it sends me to zabbix). But I cannot setup monit.domain.com/dashboard so it displays the content of /usr/share/dashboard/pages , that is php too ...
Ok, I got it to work like it should with this cofiguration: [CODE] So in the end, redefining a new root and nest a php segment to specify that it should be interpreted works.
1
0
367
2016-05-04T16:36:35.150
bi_errors
serverfault.com
60,872
How to store prices that have effective dates?
I have a list of products. Each of them is offered by N providers. Each providers quotes us a price for a specific date. That price is effective until that provider decides to set a new price. In that case, the provider will give the new price with a new date. The MySQL table header currently looks like: [CODE] Every o...
For items that vary based on time (such as being able to answer things like "what was the price of X on date D" or "which cow was in feedlot Q on date E") I recommend reading the book "Developing Time-Oriented Database Applications in SQL." While this book is out of print, the author has graciously made available the P...
19
17
11,529
2011-03-22T21:48:19.213
database_errors
softwareengineering.stackexchange.com
1,043,979
NTP synchronizing always in local
I have an Ubuntu 16.04 with the following NTP configuration: [CODE] But it is always synchronizing with localhost (I think it is because the lower stratum value): [CODE] However I want it to synchronize with the external NTP [CODE] I have added the ubuntu ntp server to the ntp.conf file: [CODE] And now I see that it ha...
ntp.pool.org Should be pool.ntp.org (reference: https://www.pool.ntp.org )
0
2
1,294
2020-11-26T09:14:56.687
infrastructure
serverfault.com
54,628
fast ML algorithms for binary classification with (large+sparse) binary input data
I'm sorry that this is so very broad, but as a non-ML scientist it feels to be almost impossible to keep up with recent developments (esp. in deep learning etc.). Hence, I'm asking for guidance on how to handle this specific use case: The goal is to predict a binary output from ~50,000 binary input variables (the input...
I mentioned in a comment that boosting might be a option. However, after second thoughts, I guess (as far as I can tell from the description of your data) that you might be better off starting with logistic regression with regularization (lasso, elastic net, ridge). Why? You want to learn „fast“ (not much tuning etc) Y...
2
0
933
2019-06-27T15:29:59.360
api_errors
datascience.stackexchange.com
178,422
Is there a way to use something like RewriteRule ... [PT] for an external URL?
I have a non-apache web server running on port 8000, but this cannot be accessed from behind corporate firewalls. So, I would like to use my apache 2 server as a proxy to this other web server. I've tried using: [CODE] ... but this does not work; I get: Bad Request Your browser sent a request that this server could not...
I wouldn't recommend using [CODE] for proxying unless you have a reason; [CODE] may be more powerful, but it sounds like you wouldn't need it.. For example, it sounds like you just want the following: [CODE] Make sure you enable mod_proxy ( documentation here ) as well. Good luck!
1
2
1,684
2010-09-06T09:23:35.017
infrastructure
serverfault.com
326,485
Why is agile all about the test-driven development (TDD) and not development-driven test (DDT)?
So I am new to agile, but not test-driven development . My professors in college were all about the idea of tests then code then tests. I am not sure I understand why. From my perspective it is a lot of upfront cost that will most likely be changed as your code evolves. This is how I imagine TDD and why it confuses me....
One of the benefits of a TDD approach is only realised when you also do emergent design. So in your first analogy, you wouldn't write 100 tests, as there's no possible way that you'll know what your software will look like. You write one test. You run it. It fails. You write the smallest unit of code to make your test ...
74
83
12,288
2016-08-03T14:19:32.977
api_errors
softwareengineering.stackexchange.com
779,025
Inotify & Rsync - Don't move files before download is completed
I am using a local website which downloads files to my server. Using an Inotify daemon I'm listening for file changes in a specific folder (the one I am downloading to) and executing a script which moves those files into another folder using rsync. However my problem here is that rsync moves the files before they are c...
The reason mv would probably work, is because the file would actually be the same file . So the upload process would be writing to a given inode, and the mv command simply updates the source and destinations so that the inode is in a different location. But any programs with an open handle to the file would be able to ...
1
1
2,649
2016-05-25T17:05:43.850
infrastructure
serverfault.com
107,221
What do they really mean by class incremental learning
I war reading Class-incremental learning: survey and performance evaluation on image classification . I do not understand clearly what system do we expect at the end. It is 1. or 2. 1. train a model to predict whether inputs belongs to the class A or B: model 1 train model 1 to predict whether inputs belongs to the cla...
As far as I understand your two options, option 2 is certainly closer to the correct answer, because your first option appears equivalent to training two independent models. Note that in general incremental learning is not limited to the case of adding new classes to the training data though. Incremental learning means...
0
1
122
2022-01-19T11:01:47.230
dbt_errors
datascience.stackexchange.com
100,771
improve database design for monitoring application
I need assistance with my DB design, I have a monitoring script that produce the following data every minute , and produce stats about virtual machine performance. [CODE] I'm trying to store the following info into my database, I have create single table I have created table as follows [CODE] Now this table has grown s...
Add an index, not a unique key: [CODE] I believe you are using PHPMyAdmin to add the index, and in PMA, unique is the default choice when you want to add an index, and that is why you are getting the duplicate key error.
0
1
100
2015-05-06T14:57:04.207
pipeline_ops
dba.stackexchange.com
223,518
Is there a disk space impact when choosing NULL vs empty array {} for the default of an ARRAY[] column?
My intuition is [CODE] will take up less space than [CODE] when used as the default value of an [CODE] column in PostgreSQL. Am I correct?
AMG's answer worked great but it has some bugs/spelling/case errors. I tried editing it but the edits were rejected. Here's his recommendation cleaned up (copy/paste-able directly into SQL Editor), and the results. 1 - Create 2 tables: [CODE] 2 - Make 1 million inserts for each table with: [CODE] 3 - Check table disk u...
6
11
2,327
2018-11-27T07:07:13.220
database_errors
dba.stackexchange.com
1,131,602
Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection
I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host. Unfortunately, I keep getting the following error no matter what I do: [CODE] The problem perplexes me because it is possible to ssh from control-host t...
I am wondering how it is possible to ssh from control-host to target-host without any problem. According to the output of [CODE] , the target host is clearly refusing the public key supplied by the control host. [CODE] A SSH packet type 51 means [CODE] , according to RFC4252 : These are the general authentication messa...
0
0
827
2023-05-21T08:53:13.420
pipeline_ops
serverfault.com