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
716,405
Valid CoreOS multi tenancy scenario?
I'm currently tinkering with a scenario for using CoreOS. It's probably not the 1st class use case. But I'd like to get a pointer if it's valid though. As I'm really at the beginning of getting a grip on CoreOS I hope that my "use case" is not totally off. Imagine a multi tenant application where every tenant should ge...
It sounds like your main issue is routing. You'd need to configure some sort of routing layer that is the entry point into the cluster, reads the host header and forwards the traffic on to the appropriate container(s). A common way to do this is confd + nginx running in a container. The second part of this is to have y...
1
0
329
2015-08-24T18:53:01.950
database_errors
serverfault.com
160,210
Splitting data into two tables, in one go
I am using SQL Server 2008 and have a problem which I don't know how to solve without using many temporary tables and an unreliable join. Table 1 contains 6 columns of data, which is then split into two tables. Col1 to Col3 goes into Table 2, and Col4 to Col6 goes into Table 3. Getting the data into Table 2 and Table 3...
If you use MERGE to insert the data into [CODE] , you can generate a mapping table between [CODE] and [CODE] : [CODE] Unlike INSERT, which would let you reference the [CODE] table's columns only in the OUTPUT clause, the MERGE statement allows you to reference the source table's columns as well. That is key to this sol...
5
7
7,029
2017-01-06T18:34:56.750
database_errors
dba.stackexchange.com
147,854
Postgis distance filter does not work as expected
I have a issue with simple PostGIS query. Here is a query: [CODE] And here is a result: [CODE] For some reason row with id = 58 is returned and its distance is [CODE] despite I've used where filter [CODE] I guess Postgis calculates distance with greater precision? How I can avoid this situation?
Fixed by converting distance to [CODE] and rounding: [CODE] I've found it here http://postgis.net/docs/manual-1.4/ST_Distance_Sphere.html , under "Examples".
0
0
132
2016-08-25T08:49:08.073
warehouse_errors
dba.stackexchange.com
169,491
dropped connection when port forwarding on Cisco 1841
I'm trying to setup remote access to a security DVR inside of a client's network. The network admin has setup port forwarding on their Cisco 1841 - each device (there are two DVRs) requires a single port for access. [CODE] This works - I can use the client application to connect to the two external ports, and I get bac...
Port 2000 is the Skinny Call Control Protocol , Your DVR should not use this port as it's reserved for another usage. Many firewall like Cisco ASA or PIX will do inpection when paquet cross the firewall using the port 2000. This is probably why you lost the connection after 45s. The firewall detect that you are not usi...
1
0
585
2010-08-11T20:12:13.213
infrastructure
serverfault.com
384,933
Lighttpd can not start when including mod_rewrite
Here is my server modules list ( [CODE] ), its working without any problems, and lighttpd is running correctly while using this list: [CODE] The problem appears, when I want to uncomment the [CODE] module: [CODE] Then I'm getting the following message, when I want to run my web server: 2012-05-01 15:01:18: (plugin.c.16...
[CODE] That's the problem. Don't modify [CODE] within a conditional block. See here .
0
1
3,790
2012-05-01T14:41:33.837
infrastructure
serverfault.com
647,060
Haproxy - timeout http-request vs timeout http-keep-alive vs timeout server
I'm trying to wrap my head around how the haproxy options [CODE] interact with each other. I'm running an Apache website on two app servers living behind a haproxy load balancer. Right now I don't have keep-alive enabled, but I've been experimenting with enabling it because I think it would help optimize the site. My g...
Just to clarify a bit. I hope this also answers your questions. timeout http-request Is the time from the first client byte received, until last byte sent to the client (regardless of keep alive). So if your backend is too slow or the client is sending his request too slow, the whole communication might take longer tha...
12
21
42,344
2014-11-25T21:07:57.913
infrastructure
serverfault.com
60,396
How to keep corporate Blackberry devices "on time"?
Does anybody know if the BES Server has any option to "provide" the time to the devices on sync? The issue here is, we have users travelling to other Time Zones who are changing the TIME of the BB instead of the TZ, but that's playing havoc with things such as calendars, etc and will impact a future deployment of Softw...
On the device itself you can select the option to sync to the blackberry time source from inside the Date/Time settings. There is not settings in the IT Policy to force these settings however. Reference Guide for BES IT Policy
0
1
3,215
2009-08-29T22:18:22.257
pipeline_ops
serverfault.com
422,195
Cost estimation from agile story points
I am new to project management. I have been through a series of lectures. I am stuck with a problem and have no idea how to proceed with it. I would highly appreciate it if anybody could give me pointers. Below is the mentioned problem. I need to calculate how much time will it take and cost us to complete a project wi...
There's really no good way to do this. The first problem is that story points and velocity are a relative measure that is highly sensitive to changes. Whether it's a team member taking a day off, learning something new about the work being done, process changes, permanent addition or removal of staff to the team, and o...
-2
3
376
2021-02-13T02:01:49.540
api_errors
softwareengineering.stackexchange.com
409,348
Postfix masquerade local user
Is it possible to rewrite in postfix the local user that is sending email from the shell. I'm able to masquerade root@localhost to user@example.com using smtp_generic_maps without a problem. Unfortunately if I email somewhere like gmail the email is coming from "root (user@example.com)". What would be the best way to m...
It depends on how you "send mail from the shell." You're looking at a message From: header, which is part of the e-mail message, and hence not of interest to an MTA like postfix. When using sendmail(1), set a proper sender address in the RFC822 message you pass to it. FOr details on how to provide a proper sender addre...
0
1
523
2012-07-19T18:42:37.407
infrastructure
serverfault.com
841,498
The setup of S2D that delivers up to 2M IOPS to SQL FCI
We are about to deploy shared storage researching for ultra-fast storage to implement Microsoft SQL Server Failover Cluster (FCI). So far the project goes, we would to start with 500K IOPS for 8k blocks about 70r/30w pattern. Also we would like to have an ability to encrease pefromance up to 2M IOPS (for same pattern) ...
It's a bad idea to use consumer SSDs in your SDS deployments. VMware VSAN and Microsoft S2D both assume writes will be "atomic", so one ACK-ed by host is actually on persistent memory; consumer SSDs don't have any power outage protection so they MIGHT lose your data. Write endurance is also very different. https://blog...
8
8
892
2017-03-30T08:26:08.743
database_errors
serverfault.com
110,812
How To Develop Cluster Models Where the Clusters Occur Along Subsets of Dimensions in Multidimensional Data?
I have been exploring clustering algorithms (K-Means, K-Medoids, Ward Agglomerative, Gaussian Mixture Modeling, BIRCH, DBSCAN, OPTICS, Common Nearest-Neighbour Clustering) with multidimensional data. I believe that the clusters in my data occur across different subsets of the features rather than occurring across all f...
The field of feature selection for clustering studies this topic. A specific algorithm for feature selection for clustering is Spectral Feature Selection (SPEC) which estimates the feature relevance by estimating feature consistency within the spectrum matrix of the similarity matrix. The features consistent with the g...
1
3
380
2022-05-09T21:13:17.063
data_quality
datascience.stackexchange.com
59,586
Configure minimum character requirement for wildcard searches on OpenLDAP
I've seen OpenLDAP directories that have a minimum character requirement for queries on the LDAP directory and I want to set that up on mine. For example, the following search fails: [CODE] and the following search succeeds: (uid=abc*) I can't remember what the error code was when it failed, but I think it was unwillin...
I suspect you want to look at access control http://www.openldap.org/doc/admin21/guide.html#Access%20Control
2
1
538
2009-08-27T15:12:48.553
infrastructure
serverfault.com
715,227
Perc H700 disk rebuild keeps going offline
I have a Dell Poweredge R710 with a Perc H700 Raid controller. It's in a RAID 6 configuration currently with 2 failed disks. It does boot to CentOS in it's currently degraded state. I would like to replace the disks, but whenever I add a new one and run a rebuild it runs for a few minutes then puts the new disk offline...
You're most likely encountering read errors on one of the remaining online drives. If you have Dell's OpenManage Server Administrator installed, you can use it to export a controller log, which should contain details about any errors that occurred during the rebuild process. Exporting a Controller Log in OpenManage Ser...
1
1
1,805
2015-08-19T10:48:31.577
infrastructure
serverfault.com
64,965
Buffer pool above 90% utilized causes MySQL to crash
Without getting deep into the architecture and setup, is it common behavior for MySQL to act in this manner? EDIT I'm using Rolando's script to identify how full the innodb_buffer_pool is. [CODE] Thanks
First, take a look at the InnoDB Architecture Look closely at the Buffer Pool in the upper left corner. There is an Insert Buffer inside it. It is responsible for migrating changes to nonunique indexes from the Buffer Pool to the Insert Buffer inside the system tablespace (better known to us commoners as ibdata1). When...
0
3
1,623
2014-05-12T08:39:25.433
database_errors
dba.stackexchange.com
146,806
Can a query write to the binary log BEFORE it has finished executing?
I have a Database which is a Slave and a Master. e.g. it replicates data from our main site, and then onwards to a set of slave databases. (this is mainly a test facility so not monitored out of hours). On Sunday morning at 7:55 it started executing an [CODE] query. This is a standard query that executes thousands of t...
If you're getting conflicting info from different sources, use the official documentation: http://dev.mysql.com/doc/refman/5.5/en/binary-log.html Binary logging is done immediately after a statement or transaction completes but before any locks are released or any commit is done. This ensures that the log is logged in ...
1
1
2,748
2016-08-15T09:59:32.890
database_errors
dba.stackexchange.com
316,715
in PostgreSQL REPMGR Master-Slave environment is it necessary to have same H/W config for HOT STANDBY setup?
I have a PostgreSQL repmgr Master-Slave setup with HOT standby enabled . In such repmgr configuration isnt it possible to configure the postgresql.conf in Primary and secondary DIFFERENTLY WHILE HOT STANDBY WILL BE ON. I mean parameters below: shared_buffers, max_parallel_workers, max_worker_process, max_connections et...
There are only a few settings that must not be lower on the standby than on the primary: [CODE] [CODE] [CODE] [CODE] [CODE] None of these except [CODE] can be a resource problem, and you can use a connection pool to deal with that. All other parameters can be lower. As long as you don't intend to failover to that stand...
0
1
154
2022-09-09T16:02:25.233
database_errors
dba.stackexchange.com
963,356
Getting a domain name from a squatter when I have no trademark?
I am going to start a website for a blog and my profession. I am not a business and have not registered a business. I have no patents or trademarks. Basically, I'm an individual. However, my ideal choice of domain name is taken by huge domains.com. I think they are what you'd call cybersquatters? It's not just I who ha...
From a legal point, you have no right to request that domain even after getting trademark since they are the owner before you registered the trademark. So your only chance is waiting if they renew the registration or buying the domain from them. From the business point, I can generate domain names that will be probably...
-3
2
266
2019-04-16T18:22:05.487
infrastructure
serverfault.com
120,681
How important is it to install on the program files folder?
In a proper installation of an average software, its executables would be in the program files folder; its user data in the user's application data folder; it's non user specific data in the all users application data folder; and it should usually be able to run under non-administrative privileges. These guidelines cou...
Technically: Yes. Logically: No Business wise: I know a lot of companies that would throw you out based on obvious quality issues. Even if you do not certify for windows, you should not blatantly violate common sense and guidelines. I personally would return the software as faulty and bill you for every minute we spent...
7
2
8,385
2010-03-09T11:45:18.893
infrastructure
serverfault.com
594,255
Monitoring important log files on multiple linux hosts?
I have a few servers running on AWS and have Nagios/Icinga doing the monitoring of all critical services. We're trying to figure out the best way to monitor all logs - [CODE] - on the system so we know about issues (for e.g. that Apache reached the [CODE] threshold yesterday) immediately via email. We only look at logs...
I spent a couple of days searching ("log management solutions"), I discovered just the tools I was looking for. The following 3 tools are Cloud based logging tools, are easy to setup and configure. They ship system logs and custom logs to their servers, store them, let you search and setup email/webhook alerts for rege...
0
0
3,121
2014-05-10T06:26:58.213
pipeline_ops
serverfault.com
897,169
Installation Exchange 2016 IIS starts too many processes
I'm trying to install Exchange 2016 on my Windows Server 2016. I'm getting the error that there is too less RAM: So I checked and I saw that the RAM is at 94%. My machine has 8GB, so this should be enough. The problem is, that IIS starts a lot of worker-processes (30-40 processes). (We already had installed Exchange on...
One thing you can try is looking at the Exchange Setup Log, which should be located at the root of the drive you are trying to install Exchange on. Whenever I'm installing Exchange, I like to have that open in the CMTrace tool at the same time. The CMTrace tool does "tailing," which means that it updates the console as...
1
0
274
2018-02-14T09:19:53.693
infrastructure
serverfault.com
109,987
iptables drops some packets on port 80 and i don't know the cause
We are running a firewall with iptables on our Debian Lenny system. I show you only the relevant entries of our firewall. [CODE] Some packets get dropped each day with log messages like this: Feb 5 15:11:02 host1 kernel: [104332.409003] dropped IN= OUT=eth0 SRC= DST= LEN=1420 TOS=0x00 PREC=0x00 TTL=64 ID=18576 DF PROTO...
I have seen a very similar issue on my own systems and I may have an answer as to what is happening. Apparently, TCP allows the client to send a FIN packet, and you to ACK that FIN packet, but still keep your end of the connection open and push more data through it, sending your own FIN packet at some time in the futur...
5
4
4,233
2010-02-05T14:35:09.077
infrastructure
serverfault.com
317,776
Scaling up with zeromq REQ and nodejs
In the excellent book Node.js the right way the author shows this example: [CODE] and then says: There is a catch to using ØMQ REP/REQ socket pairs with Node. Each endpoint of the application operates on only one request or one response at a time. There is no parallelism. He then uses the nodejs cluster module to fix t...
This has not so much to do with Node.js but more with how zmq works. If you read the paragraph about ZMQ_REQ there is this part: This socket type allows only an alternating sequence of zmq_send(request) and subsequent zmq_recv(reply) calls. So a worker that receives a request can only receive an other request once the ...
1
2
1,093
2016-05-07T06:40:16.130
api_errors
softwareengineering.stackexchange.com
1,055,844
Forward ssh connection to Android devices
In my lab I want to set up a ssh jump host that forwards incoming ssh connections to Android devices that are connected to it via USB. All Android devices have USB-tethering turned on. The tethering connection spawns a network adapter in the sub net 192.168.42.0/24 for each Android device. Every Android device runs a s...
After a little while I got it working. Instead of iptables I use [CODE] . Therefore, start adb so that it listens on all local interfaces: [CODE] The -a option makes adb listen on all local interfaces. Start adb without it if you only want to work locally. Afterwards use [CODE] to forward incoming ssh connections to th...
1
0
2,273
2021-03-03T20:48:52.970
infrastructure
serverfault.com
545,906
sendmail smart host not working on server
I am trying to set up mail relay on a server to use relay.jangosmtp.net. I have done this before on many other servers but have never had this issue. I updated my sendmail.mc with this: [CODE] I then ran [CODE] For some reason after I restart sendmail and try to send an email it does not use the smart host relay. This ...
Look for two pairs of [CODE] and [CODE] sendmail log entries. The second [CODE] log entry should show relay via the smart host. The first pair should be generated by [CODE] sendmail and the second by [CODE] sendmail. You can connect [CODE] and [CODE] log entries using queue id (e.g. [CODE] ).
0
1
1,567
2013-10-14T17:17:47.540
infrastructure
serverfault.com
104,890
Predicate not resulting in expected scan
So I have this query that I'm trying to tune and am running into an issue that I'm having trouble understanding. First of this is the query I'm using. [CODE] When I run this query the execution plan I get looks like this. So the query is doing a very large scan on this large table returning 30 million rows just to pare...
Your query is looking for values between [CODE] AND [CODE] . Of which it looks like you have about 30 million. Unfortunately there is a bug with the cardinality estimations where [CODE] is involved where the components get reversed. [CODE] Returns a range of [CODE] to [CODE] . Extremely likely you have no dates in that...
6
4
74
2015-06-23T15:35:22.773
database_errors
dba.stackexchange.com
639,236
How can I prevent myself from being automatically logged out of a cisco nexus switch because of inactivity
Is there a way where I can prevent myself from being logged out of a cisco nexus switch/router (or any other cisco device) after a period of inactivity? I get this message after being kicked off: [CODE] I have the following in ~/.ssh/config (have tried specifying via command line flag as well: [CODE] Which does not see...
You can set [CODE] on the line you are using to configure it. The timeout is in minutes and [CODE] means no timeout. Example: [CODE]
0
2
4,124
2014-10-23T19:34:13.503
infrastructure
serverfault.com
288,103
Linux Pipe, Warning Messages, stdout
This is probably the best place to ask the question in its simplest form. I am writing a script which takes output of a command and puts it into a variable. After some debugging I figured out the command when it errors does not goto stdout but to the console (or wall). See example below: When the command runs successfu...
[CODE] This will redirect stderr to stdout, so grep will see the output.
3
6
1,957
2011-07-07T23:27:27.373
infrastructure
serverfault.com
922,372
How to backup and restore informix db using Onbar tool with ONPSM cloud storage device?
I am having a hard time using the Onbar tool (which relies on Onpsm primary storage manager for Informix db (server 12.1) using the cloud device (AWS s3). https://www.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.bar.doc/ids_bar_526.htm On the backup server, I have created a a DBSPOOL and LOGPOOL devices using ...
Finally had the time to make a test with [CODE] and [CODE] to make an Informix backup to Amazon S3. The test setup is 2 [CODE] virtual machines ( [CODE] and [CODE] ) with an Informix server on each. The machines can talk to each other and with Amazon S3. [CODE] will have Informix server [CODE] and [CODE] will have Info...
1
1
2,881
2018-07-17T23:50:52.163
database_errors
serverfault.com
333,433
How do I migrate from a JBOD configuration to a single-volume setup?
Need some help with something I couldn't find a solution online. I have CassandraDB running on a server. This server has 3 mounted volumes /data1, /data2 and /data3. In my scylla.yaml file, I've specified the working_directory and data_file_directories to all of these three mounted volumes so data is being written to a...
As long as there are multiple nodes in the cluster, the easiest answer here is: Decommission the node. Rebuild the hardware/instance with the desired disk configuration. Rejoin the node to the cluster. Repeat for each node as required.
1
0
28
2023-11-24T06:27:36.010
database_errors
dba.stackexchange.com
14,497
Can I move a system database from one version of SQL server to another?
We are moving our databases from one computer running SQL Server 2005 to a different machine running SQL Server 2008. I am following the steps found here , in an attempt to copy over the master database, with all the user logins and server-level permissions, however it is telling me the backup cannot be restored becaus...
No you can not move the master database (or any system database) from one version of SQL Server to another version of SQL Server. You would need to install SQL 2005 on the server, then restore master. Then upgrade to SQL 2008.
2
5
1,483
2012-03-06T19:15:49.793
database_errors
dba.stackexchange.com
102,442
Licencing relating to a standby Sharepoint stack
Possible Duplicate: Can you help me with my software licensing question? We're planning on having an active stack and a warm standby stack, where the sql server databases are mirrored. The servers in the warm standby stack aren't used at all (apart from health checking, and updates), until we fail over. Do we need to p...
It depends on if you bought SA on your servers and whether or not they are on all the time or not whether or not you need additional licenses. Cold DR servers are not required to be licensed providing you have SA, warm servers are required to be licensed. As indicated previously, contact your preferred MS licensing spe...
1
3
508
2010-01-13T21:41:48.817
database_errors
serverfault.com
185,498
centos container, installing mariadb server
I am trying to run a mariadb server on a docker image(CentOS Linux release 7.3.1611 (Core)). I install mariadb with command yum install mysql. after installing complete, i try to execute command mysql but i got this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock...
It sounds like you're new to Docker. You may want to spend some time reading through documentation and examples to get a better feel for how things work. First, simply installing software doesn't necessarily make it run, and that is certainly the case with CentOS and other Red Hat variants. On a bare metal host, you wo...
0
3
2,632
2017-09-09T10:56:09.167
pipeline_ops
dba.stackexchange.com
7,284
Test status got changed to 'Outdated' in Quality Center. How to change to Ready?
I deleted some Business components and consolidated tests in Quality center. Then I consolidated them again and created the Business components back. Now, the status of those testscripts got changed to Outdated. I checked each and every component in the script (right mouse click and go to the component) and they all ex...
Quality center has possibility to redefine the workflow of any group of records, therefore it is hard to say what you should do. Probably you do not have the possibility to change it, indicating you are not an administrator of the project, so you should ask your administrator what is next step in the workflow. I can on...
3
3
125
2013-12-07T04:35:44.970
data_quality
sqa.stackexchange.com
97,991
SQL Server Mirroring can't connect to mirror database
I am at my wits end with this. I am trying to set up mirroring between a development server and my local machine. The error that keeps coming up is: Msg 1418, Level 16, State 1, Line 1 The server network address "TCP://machineabc:7023" can not be reached or does not exist. Check the network address name and that the po...
I got this same error a few weeks ago, despite the fact the connection was fine; it was actually due to an authentication issue. If you don't have domain connectivity between the two machines, you can use certificates to create credentials that can be used for mirroring endpoints. To do this, you create a certificate o...
2
3
8,575
2015-04-16T07:19:47.520
database_errors
dba.stackexchange.com
155,989
Merge 2 directory trees in Linux without copying?
I have two directory trees with similar layouts, i.e. [CODE] I would like to merge the the dir1 and dir2 directory trees to create: [CODE] I know that I can do this using the "cp" command, but I want to move the files instead of copying, because the actual directories I want to merge are really large and contain lots o...
[CODE] This would create hardlinks rather than moving them, you can verify that they were moved correctly, then, remove [CODE] and [CODE] .
35
30
28,499
2010-06-29T18:05:09.493
data_quality
serverfault.com
46,185
How do you test Microservices?
I'm in charge of leading a QA Team and one of our tasks is to develop Automated Microservice Tests. We've been successfully testing these Microservices for a year. In summary, our Testing Process is: Review the documentation Usually the Microservice output will vary accordingly to ~6 input combinations. We write the Sp...
There needs to be little more clarity on how the team currently works and what they expect to be working as. By reading the question it looks like the current Test strategy is like : Huge drawback of this implementation: This takes away the basic pillar of microservice architecture, this test creates a dependency betwe...
3
5
281
2020-11-14T13:55:46.703
api_errors
sqa.stackexchange.com
134,682
slow count on text column
Table t1 with 500k rows, 2TB in size, one text column. SQL Server 2008 R2 SP3. [CODE] This is running forever: [CODE] Unable to change the table, can only fix this with new indexes. But can't create an index on the text column. No experience with full text indexes. What should I do to improve it, please ?
I suggest a filtered index: [CODE] Now your query should be able to use that index instead of the clustered index, and it should be much more efficient. Even better, it enables you to look at the metadata views, so you read one row (or a number of rows equal to the number of partitions) instead of doing any sort of man...
0
4
144
2016-04-07T15:13:06.850
api_errors
dba.stackexchange.com
913,720
Dell MD1220 RAID issue
This is probably going to be the stupidest question of the day, but I have to ask it because I can't seem to find an answer anywhere else. With that said: It is my understanding that EMM 0 serves bays 0-11, and EMM 1 serves bays 12-23. Is this a correct assumption? What I am looking to do, is to build 2 separate arrays...
Not a stupid question at all - you likely just don't know where to find the information. This is one of the supported "modes" of the enclosure, detailed in the Hardware Owner's Manual , and is referred to as "split-bus mode". Ensure that the small switch on the left side of the front of the enclosure is set DOWN (the p...
2
2
179
2018-05-25T04:42:11.430
infrastructure
serverfault.com
940,351
Conntrack is blocking UDP NAT
I'm working on an application that should relay udp packets from one host to another according to some rules. It is basically NAT. I negotiate UDP ports with both hosts and after that I need to receive from host A and send to host B with the negotiated ports. So i'm dinamically adding and removing [CODE] rules. # my ad...
Disabling connection tracking is not suitable as NAT depends on connection tracking, so NAT will stop working. You must clear any relevant existing connection tracking records after the NAT rules are inserted, so that any subsequent arriving packets will check the [CODE] table for the new DNAT/SNAT rules instead of jus...
2
4
3,831
2018-11-16T14:12:24.313
infrastructure
serverfault.com
117,578
XScope program for Linux/XFree or X.Org
Where can I find an XScope program, debugger/tracer of xlib calls, for Linux with XFree/X.Org?
The source is available at http://ftp.x.org/pub/individual/app/ I don't see a lot of binary packages. Building it from source is not difficult. What distribution are you using?
0
1
1,004
2010-02-28T06:17:21.330
infrastructure
serverfault.com
1,123,989
Getting IP suitable for email server
I am trying to use a VPS to host an email server using postfix. OpenDKIM and certbot was used to get DomainKeys and TLS. The data center setup reverse DNS. In case it matters, the IP is 188.68.231.119. It appears it is not on any of the public IP address blacklists. However, hotmail and gmail refuse to post it in the i...
I use AWS for my mailserver: my mail is accepted everywhere, but you need some skill to set up things right. Basically you need to get an IP (and check that it is not already blacklisted) and configure the hostname, mx and A record for the mailserver, the reverse dns for your IP should be equal to the hostname. You sho...
2
0
162
2023-02-28T21:23:01.587
infrastructure
serverfault.com
325,579
SQL Server: Using Service Broker to parallely run several stored procedures
I need to use Service Broker in order to run several stored procedures parallelly (instead of sequentially). Please be aware that I need to use Service Broker, not alternative solutions such as SSIS or SQL Agent Jobs. I use SQL Server 13.0 (2016), SSMS 19.0 as well as AdventureWorksDW2016 as a database. Unfortunately, ...
Per [CODE] on the Learn site ; MAX_QUEUE_READERS =max_readers Specifies the maximum number of instances of the activation stored procedure that the queue starts at the same time. The value of max_readers must be a number between 0 and 32767. Configure the queue with three queue readers, and see if that helps. Since you...
2
4
707
2023-04-04T12:05:02.677
database_errors
dba.stackexchange.com
17,446
Is it OK to create hundreds of databases in SQL Azure versus one big one and run the risk of deadlocking
I need to create highly scalable solution - where field devices in thousands of sites are delivering data in real time to a back end system, and SQL Azure seems to fit the bill nicely in terms of adding sql databases and application servers. Each field device is effectively sending 400 sensor values every second - for ...
I thought I would post a quick answer about how the project actually worked out. In the end, we didn't use Azure. We used a standard SQL Database server - with each engine being in a different database. In theory, a master database holds the connection information for each engine. It is therefore possible to store diff...
2
1
3,588
2012-05-04T06:48:59.427
database_errors
dba.stackexchange.com
314,817
.htaccess Rewrite: Internally have it be /mypage, but in the url look like /Home/mypage
I probably have this completely wrong: [CODE] Can someone set me straight to make all urls http://site/somepage1 , http://site/somepage2 , be rewritten as http://site/Home/somepage1 , http://site/Home/somepage2 . Is there one rule that would capture all of those urls, and prepend '/Home' to all the urls? Thanks in adva...
As simple as this: [CODE] Obviously, if you request URL with [CODE] in it directly (e.g. [CODE] , it will not be rewritten to [CODE] -- so keep this in mind in case you have subfolder named the same as main folder. UPDATE: Considering new information, lets try this approach: [CODE]
0
1
221
2011-09-23T13:02:21.643
infrastructure
serverfault.com
72,123
How to avoid the SORT operation in SQL query that contains ORDER_BY condition?
I am optimising a PostgreSQL query which involves three tables and a ORDER_BY condition. It seems that PostgreSQL prefer to arrange a SORT operation to perform the ORDER_BY condition, rather than using the index. The raw SQL looks like this: [CODE] I have already created an index [CODE] on the [CODE] table. [CODE] Howe...
ORDER BY is not that expensive by itself. The problem here is that it is used together with OFFSET. So postgresql does sorting of all data before it can take needed 10 rows. You are probably implementing paging using ORDER BY + OFFSET. This is a known postgresql limitation and there is postgresql way to handle this.
4
4
1,588
2014-07-23T02:48:41.713
database_errors
dba.stackexchange.com
11,396
How to locally resolve host name starting with variable slug?
An app, running on my laptop in development mode, comprises several Docker containers, one of which runs a Django web app. This web app expects to receive HTTP requests using a hostname with a variable leading part, e.g. "test-account.survey.com", in which 'test-account' is a slug representing a particular account, and...
People often use dnsmasq for this. You can wildcard sub-domains like this fairly easily for local testing using it. Here's an example - https://qiita.com/bmj0114/items/9c24d863bcab1a634503 but there are plenty online.
2
1
169
2020-04-21T09:37:35.620
pipeline_ops
devops.stackexchange.com
28,128
Disaster recovery plan development best practicies or resources?
I have been tasked with leading a project regarding updating a old and somewhat onesided disaster recovery plan. For now we're just looking at getting the IT side of DR sorted out. The last time they did this they set their scope by making up a single disaster (the data center flooded) and planning for it to the exclus...
An excellent source of information is Disaster Recovery Journal ( about ). Community resources available include the current draft of their Generally Accepted Practices (GAP) document, which provides an excellent outline of the process and deliverables that constitute a solid business continuity plan and process. Also ...
29
12
1,821
2009-06-18T16:32:36.830
database_errors
serverfault.com
1,108,980
Running amd64 UBI9 images with podman on Apple Silicon
I'm trying to run an amd64 UBI9 image on Apple silicon with Podman. Podman provides a Fedora CoreOS VM to run containers in. It allows for installing qemu binaries to run "foreign architecture" containers. Problem is, the architecture of the UBI9 images is x86_64-v2 and the qemu-x86_64-static binary in the Fedora CoreO...
Your command, you specify 'amd64', it won't work... You run a ARM processor. And the VM is aware of that. You can't run a x86 image on a ARM. Or you could run: [CODE] I am not sure about this one TBH. I think it does ''emulation'' but really not sure. But I know the container will start.... P.S: Do not forget that not ...
2
0
1,596
2022-08-24T13:54:17.677
pipeline_ops
serverfault.com
121,679
Workflow of sharing code for small teams
Problem is, we have developed a small CMS, that is different per implementation (currently). Of course development of this is never complete. Sometimes, we are working on more than one project that implements it (by copying-pasting the code files of the CMS to each project), and we add a new feature that we want to sha...
This is not a problem of selected version control but the problem of product architecture. There is very similar question where you find that you are not the only one challenged with this problem. General advice is avoid any copy-paste between implementations. This can be obviously done only if you have single branch f...
4
4
341
2011-11-25T09:12:20.980
api_errors
softwareengineering.stackexchange.com
415,824
How to start a WebSphere MQ in SHARED mode?
We encounted an error wherein the Oracle support said we need to restart the IBM Websphere MQ in SHARED mode, but I cannot find a documentation on how to do it. I consulted some MQ teams and they are also puzzled with the requested option. Can I have some link on how to do it? The Oracle KnowledgeBase article follows: ...
I think they are referring to how the adapter opens a MQ queue. A queue can be opened in a shared or exclusive mode. In shared mode more than one application can consume messages from a queue. In exclusive mode only one application can open a queue and consume messages. Check [CODE] and [CODE] settings (via MQSC) for t...
3
3
952
2012-08-09T08:32:54.170
database_errors
serverfault.com
290,097
Document and best practices for configuration of a dedicated server (Centos) to serve just one website
I have just bought a dedicated server and they provide me a IP address, access info as root and machive with Centos 5. I would like to serve my django app in that machine but because I have no experiences such server issues I don't know what is the best way to do that. I have install mysql, python 2.7.1 and django as r...
don't run it as root, it is a safety risk make a seperate user for mysql that only has the rights it needs, you can even make different ones : (if you only need to read for certain users only give that user read rights) http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide install a firewall, close everything a...
3
4
287
2011-07-13T18:40:42.283
hadoop_errors
serverfault.com
95,933
What are practitioner's thoughts of the IEEE software engineering certifications?
Possible Duplicate: Has anyone done CSDP certification? The value of certifications notwithstanding, I'd like to know what you know or think about the certifications offered by the IEEE. They're called CSDA (entry-level) and CSDP (mid-level) I'm a big fan of certifications, they work for me since I like to have a clear...
I took the CDSA certification in December 2010, about 5 months before graduation, and after I had finished the required courses in my undergraduate software engineering degree program. As soon as I have the recommended experience, I'll be sitting for the CSDP certification as well. Overall, I feel these certificates ar...
2
2
2,675
2011-07-26T00:22:56.903
data_quality
softwareengineering.stackexchange.com
344,975
Kernel Printk: xx message suppressed
Hi I have a watchguard firewall, and I lost access to the firewall before xmas, therefore I visited the site, upgraded the firewall to the latest firmware but unfortunatly, I am now having similar issues where I will lose access to the firewall, sometimes it will let me in sometimes nothing. I thought this was an issue...
It's a bug in the 11.3.x series software, has been around for well over a year. I'm not sure if the 11.4.x versions still have this (11.4 only runs on the newer XTM model's, not the e-series devices which I suspect you have) but the answer I got from Watchguard Support was to just ignore them. More discussion over on t...
2
3
6,777
2011-12-29T10:04:46.847
infrastructure
serverfault.com
686,385
OSX 10.6.8 can't find OD users after DNS change
I recently switched out a DNS server, to a more stable one, but now of my mac servers are giving me some trouble. When the network cable is in, I'm getting stuck at the login screen, even when trying local users, so I pulled it out. After that I successfully logged in to a local admin, and checked whether the mac serve...
The problem was YP bind. it still thought that it sould get the OD accounts from the old ip, so that was why it couldn't find them. I deleted the file accociated with the domain in /var/yp/binding/ and restarted the system. The machine is now acting normal to ssh and logging in from gui.
0
0
79
2015-04-29T09:30:39.343
infrastructure
serverfault.com
571,148
Email attachments not appearing under very odd circumstances
One of my employees is having trouble sending mail with attachments to an external party. We're using Outlook 2010 in conjunction with Exchange 2010 Standard. Here's what I've deduced so far: Sending from employee's mailbox on employee's PC to external party - email arrives with no attachment Sending from employee's ma...
OWA is basically/essentially a client-less connection to the user's mailbox in Exchange. For the purposes of troubleshooting user-email issues, you should consider what you see in OWA to be what is actually on the server. Therefore, the fact that attachments send properly in OWA, but not from an Outlook client tells yo...
0
1
955
2014-01-30T21:57:26.133
infrastructure
serverfault.com
241,643
DB2 Audit Policy not producing EXECUTE data
I'm trying to set up an [CODE] on a DB2 AWSE V10.5 FP5 database running on Red Hat Linux Server 6.8. The definition for the policy is : [CODE] This is producing data for all the categories, except EXECUTE. My test script includes statements that fail with SQL0204, SQL0206, etc. but no data is extracted into the [CODE] ...
A note in the manual explains why these statements do not make it into the audit log: The preparation of a statement is not considered part of the execution. Most authorization checks are performed at prepare time (for example, SELECT privilege). This means that statements that fail during prepare due to authorization ...
0
0
160
2019-06-28T15:50:56.290
warehouse_errors
dba.stackexchange.com
199,694
Oracle PDB broken after upgrade from 12.1 to 12.2
We upgraded our development environment Oracle 12.1 RDBMS to 12.2 version. The CDB contained 3 PDBs of which 2 upgraded nicely but 1 did not. The resulting situation is that during the upgrade SYSTEM and SYSAUX tablespaces ran out of space which caused all the packages etc also to fail. Now we cannot rebuild the intern...
As suggested by Balazs Papp, opening the PDB in UPGRADE mode did the trick. After that I was able to set the STORAGE limit, resize the tablespaces and rebuild broken packages.
0
0
907
2018-03-08T09:50:42.737
pipeline_ops
dba.stackexchange.com
241,277
Project Server 2010 site creation - the database connection string is not available
I am trying to get Project Server 2010 up and running on a Win Server 2008 box. I've got Sharepoint 2010 installed and Project Server 2010 installed. I open SharePoint Central Administration, then I go to Manage Service Applications > Project Server Service Application. It looks like there is a site under the "Sharepoi...
I noticed that there were some databases that already existed in the SharePoint database instance, and I wondered if the project site creation process was getting messed up because they were already there. I deleted the default instance of the project web app, then created a new one, and this actually worked. Hope this...
0
0
1,144
2011-02-28T18:42:40.883
infrastructure
serverfault.com
291,557
Slow Index scan on PostgreSQL
I have a table named [CODE] , which has a size of ~10GB and contains ~100M rows. As you may guess it is a partition of a partitioned table, but I don't think has something to do with the problem I'm encountering, as I'm only working on one partition at a time. The table has multiple columns, but three are of interest: ...
Reading 1124 blocks to get 1904 rows is unfortunate, but normal. What is not normal is the I/O time: almost 20 ms for a single 8kB block. Either your I/O system is really overloaded, or the disk is amazingly slow.
1
3
2,211
2021-05-14T10:27:54.453
database_errors
dba.stackexchange.com
824,326
How to add SPF1 record properly on GoDaddy
I setup postfix and mailx (Fedora25) for sending mail through a contact form on my website, and I am looking to add SPF1 and DKIM signature for increase my validity, but I'm having a hard time sorting out how to add the SPF record to my DNS Zone file on GoDaddy. I already had a Google verification TXT record, so I can'...
Define both; this is a friend's list of [CODE] records. His email got migrated to google just fine, and the SPF one works (both in testing, and according to one of openspf.org's recommended testing tools ): [CODE] Though I will add in passing my customary grumpy note that an SPF record that doesn't end [CODE] is functi...
1
1
1,030
2017-01-05T08:45:29.237
infrastructure
serverfault.com
327,530
Network issue migrating an VMWare guest to an OpenVZ container
I've migrated a server from vmware to openvz, both are running on the same physical host (I plan to eliminate vmware). If I give the new openvz container a new IP anybody on the LAN and outside network can get to it with no problem, but as soon as I change its IP address to the original IP (that the vmware guest used t...
Adding the hint as an answer: You might be running into an ARP caching issue - have you verified the ARP cache contents of the hosts which are unable to connect?
0
1
224
2011-11-03T19:11:27.687
pipeline_ops
serverfault.com
233,316
Is there a name for the number of values a variable can take?
For example, a bit or a boolean can be either 0 or 1 so the number 2 is associated with it. Similarly, for a byte which is 8 bits, the maximum number of different assignments would be 2^8. Is there a name for this number? When we pass everything through our system that has ECMAScript, Java and MySQL, then a boolean doe...
I would call it cardinality (and indeed I have used it in that sense). It is strictly the cardinality of the set of all values a variable can take. Edit: for example, a 16-bit integer can take exactly 65536 values. The cardinality of the set of all values that the integer can take is 655536. Once you start to consider ...
5
6
460
2014-03-22T12:42:58.543
database_errors
softwareengineering.stackexchange.com
1,033,813
I have to take rdp session into two different servers in succession before I can take rdp to the PKI server - Automate this?
Is it possible to write a powershell script that executes on my laptop and copy data from pki server back to my laptop.? If yes How would one proceed to do so? Right now all this is done manually. What kind of permissions would I need. I have all the passwords for rdp. could the credentials be passed on the successive ...
PowerShell could launch the RDP client (mstsc.exe) and begin the first session with saved credentials but it could not do the same thing on the next computer. If you are able to use PowerShell Remoting instead of RDP, you could do a double or triple hop file copy from the server all via PowerShell.
0
0
57
2020-09-14T11:41:32.463
infrastructure
serverfault.com
255,582
Postgres EXPLAIN ANALYZE is super slow
there is Postgres 9.6 on Redhat I want to EXPLAIN ANALYZE slow query (quite complex one) and it takes too much time. My session with EXPLAIN ANALYZE consume 100% of one CPU and doesn't finish even after 24 hours. How to analyze the issue if Postgres can't build an execution plan?
If you only want to look at the execution plan, run [CODE] without [CODE] . [CODE] will cause the query to be executed, which provides much more useful data, but takes as long as the query runs.
4
11
3,742
2019-12-13T13:56:42.980
database_errors
dba.stackexchange.com
14,318
Type mismatch: cannot convert from WebElement to List<WebElement>
Whenever I am trying to use a list element, this error is showing [CODE] in appium. Please help! [CODE]
Just replace the [CODE] method with [CODE] . Since the [CODE] method always returns a [CODE] instead of a List of WebElements. The [CODE] method will return the list of webelements, which can be referred by a variable of type [CODE] . So the line of code will looks like,.. [CODE] Done.
1
3
13,139
2015-08-17T02:23:12.367
data_quality
sqa.stackexchange.com
1,104,763
How do I deploy a docker container on AWS Elastic Beanstalk privately such that only other AWS resources can access it?
Need to make an AWS deployment decision. A lot of this tech (docker, beanstalk) is pretty new so I don't know best practices (and I'm also foggier than I'd like to be on networking and security). Tech details: I have a docker application from a client (python w/fastapi) that takes POST requests and spits out machine le...
Solution using Security Groups (I think): Create an elastic beanstalk environment normally, then modify it's Security Group to only allow access from the IP of a Network Interface of the security group of your trusted AWS resources. I created a normal elastic beanstalk environment (no VPC), launched it, and confirmed i...
0
2
253
2022-07-04T15:55:07.983
pipeline_ops
serverfault.com
45,104
JMeter - how to use external property files robustly in GUI and non-GUI mode?
I've got a JMeter test plan that I'm in the process of amending to use external property files for environment details and thread group numbers - similar to this link: https://octoperf.com/blog/2019/01/14/flexible-test-plans/ I've got this working on the command line. I can pass in paths to different property files for...
You can path your [CODE] or whatever else properties file you want to use to JMeter via [CODE] or [CODE] command-line arguments Non-GUI mode: [CODE] GUI mode: [CODE] in this case JMeter GUI will open and all the properties defined in the [CODE] will be read into memory and accessible by __P() function It is also possib...
0
1
2,967
2020-06-30T10:50:51.177
data_quality
sqa.stackexchange.com
335,795
Unexplained MySQL memory usage
I am experiencing an issue with MySQL memory usage increasing over time to a point where OOM Killer kills the MySQL process. I have 3 servers configured with Group Replication (1 Primary and 2 secondary). The servers are running on AWS EC2: m5.2xlarge (32GB RAM, 8vCPU,500GB Amazon EBS Storage) Debian 11 MySQL 8.0.36 Li...
[CODE] Observations: Version: 8.0.36 32 GB of RAM Uptime = 14:50:16; some GLOBAL STATUS values may not be meaningful yet. 370 QPS The More Important Issues: Suggested setting changes: [CODE] Try turning off the performance_schema (if the cloud allows such). Contrary to your goal of decreasing memory usage, increasing [...
2
0
168
2024-02-13T14:11:43.447
database_errors
dba.stackexchange.com
88,671
Extract data from json format and paste to column using python
In my column with json data, I have this list I want to extract to column: [CODE] I have extracted other data using this code but the value was string and not a dictionary: [CODE] I tried to use this for the above format of data but I got this error: TypeError: sequence item 0: expected str instance, dict found What sh...
Given that the data snippet you provided is not a valid json structure I assume that the data is a list with dictionaries in it. Using this assumption, you can extract the values to a nested list using a list comprehension: [CODE]
0
1
510
2021-01-29T14:43:11.680
data_quality
datascience.stackexchange.com
545,232
Unable to set Cookies on Live Domain on IE on a Specific Situation
I have a project hosted on a live server has a domain like: www.abc.com On live domain: I am unable to set cookies in IE (7, 8, 9, 10) - as it is explained in the code below - (cookies are enabled on the IE browser), but able to set cookies in Firefox, Chrome, Opera and Safari without any problem. The server time is co...
I have solved the problem, it is trivial. The third party settings was not enabled in IE in privacy advanced settings!
0
0
290
2013-10-10T19:40:54.763
infrastructure
serverfault.com
24,376
Use of TfidfVectorizer on dataframe
I have the dataframe which has two colums(Reviews and Label): [CODE] I want to apply the TfidfVectorizer on the DF. I have written the following code. [CODE] which is giving an error: AttributeError: 'list' object has no attribute 'lower' Why is this throwing an error?
Your reviews column is a column of lists, and not text. Tfidf Vectorizer works on text. I see that your reviews column is just a list of relevant polarity defining adjectives. A simple workaround is: [CODE] And then run the vectorizer again. That will fix the problem.
6
5
17,990
2017-11-05T17:46:21.110
data_quality
datascience.stackexchange.com
167,052
Update BIOS on Sun Fire X4150 server
I have some Sun Fire X4150 servers with a very old BIOS release (1ADQW015), which seems to have some compatibility problems with WMware ESX Server 3.5 and Windows 2008 R2 virtual machines; so I want to update the BIOS on them. The problem: according to this page , if your servers run ELOM (mine do), you first need to u...
So here it is: https://dev.lugh.ch/sun.iso . Update: Unfortunately I don't have this ISO anymore, sorry.
3
4
5,303
2010-08-04T15:23:38.807
database_errors
serverfault.com
244,851
RAC database fails to start
I encountered the below errors when i am trying to start the RAC DB/instances. The Cluster/CRS is up but could not bring up the RAC DB instances. Environment: 2 Node RAC (12cr2) on Linux 7.3 [grid@Server-666 ~]$ /oragrid/app/grid_home/bin/srvctl start database -db rac PRCR-1079 : Failed to start resource ora.rac.db CRS...
I figured it out, its due to file permission issue under $GRID_HOME ls -l $GRID_HOME/bin/oracle chmod 6751 $GRID_HOME/bin/oracle Once permissions are fixed, try restarting db services.
0
0
11,509
2019-08-08T10:38:40.470
database_errors
dba.stackexchange.com
1,108,301
Using variables from task in following loop task
I want to deploy some stored procedures across multiple MSSQL instances on multiple server. In my playbook I have a task which gathers all the instances on a server which I use in the following tasks to loop everything on any instance. I use this method on many of my playbooks but in this one I also need to be able to ...
"When you use register with a loop, the data structure placed in the variable will contain a results attribute that is a list of all responses from the module." https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#registering-variables-with-a-loop so for this: [CODE] the [CODE] will be an array of di...
0
1
803
2022-08-16T11:18:03.963
database_errors
serverfault.com
675,712
Random XEN guests do not boot complaining disk not found
Performed the latest Citrix XEN Server 6.2 updates, skipping anything related to 6.5. Everything seemed normal after fixing GrubConf.py except that a few random Windows Servers would not start. XenCenter failing machine log tab mentions " Error: This operation could not be performed because the specified virtual disk c...
Received much better information from the commandline: [CODE] Clicking eject next to ' DVD Drive 1: ' fixed this and the servers start up. So turns out it had nothing to do with the "harddisks" but just "optical discs."
1
2
1,620
2015-03-16T02:16:40.210
infrastructure
serverfault.com
1,116,058
Force sending DHCP options
I have a lab spectrometer that boots using PXE from boot files stored on a computer. They exist inside a local network with the computer acting as both the DHCP and TFTP server. The spectrometer contains three components, two boot fine and one is probelmatic. It requires that boot-size option is given. However, it does...
If you do not mind using an all-in-one Windows application (DHCP, proxyDHCP, TFTP, HTTP, etc.) then you can do what you want with Serva .
0
0
63
2022-11-18T13:48:34.117
infrastructure
serverfault.com
250,406
Update a column based on another's table column value
I have a table Users [CODE] and a table UsersInfo [CODE] I tried to update column [CODE] with 0 when the [CODE] is not null. I read similar questions and ended up with the following query, which is not working as expected, as it is updating all the columns with [CODE] [CODE] what I am missing? Thank you!
[CODE] ?
0
1
214
2019-10-07T06:38:44.467
warehouse_errors
dba.stackexchange.com
214,320
Create DDL Trigger Dynamically
I'm trying to create a DDL Trigger dynamically so I can create a job that checks each database and creates the trigger if it's not already in place. To do this, I'm using sp_foreachdb. The code works on it's on but I can't get it to work with sp_foreachdb so I'm guessing I've missed a single quote. However, I'm struggl...
You are missing an [CODE] . See updated as below: Note: Use Aaron's version of [CODE] [CODE]
1
2
435
2018-08-07T18:38:11.320
database_errors
dba.stackexchange.com
458,756
Exchange 2010 - Mailbox Export much larger than actual size
I issue this command to export the mailbox of a user: [CODE] After 2 minutes or so, this file have been generated: Notice the size of the export file, and now this is the actual size of the mailbox on the server as seen from outlook: Where does this extra ~100MB in the export file comes from?
It is likely the additional items that are exported, such as the recoverable deleted items (dumpster). I would mount the .PST file in your outlook profile and check each folder to see exactly where the additional mail items are. A mailbox export will export EVERYTHING within the mailbox, including items that aren't vie...
2
3
1,896
2012-12-17T16:44:41.717
infrastructure
serverfault.com
289,727
Select distance between cities in two directions
I have a distance table and a cities table. I have joined them in a way where i now have: cityA_id,city_A,cityB_id,cityB, distance in km i need to get the distance betweens cityA and CITY B and then get the distance between cityB and CityA in the same query result. (meaning if Albany to Auburn is 36 Km i want to also c...
I believe your CTE already gives you the list of all distances between any two [CODE] , so you just need to join the CTE to itself on reversed [CODE] fields to get the reverse results like so: [CODE]
1
1
635
2021-04-13T10:09:40.440
warehouse_errors
dba.stackexchange.com
208,465
Random "not accessible" "you might not have permission to use this network resource"
Win7-64 client computers connecting to a NAS share randomly get denied access. This appears as a dialog box appears saying "\\myServer\MyShare02 not accessible...you might not have permission to use this network resource..." or a dialog repeatedly asking for a password. A re-boot fixes the problem. While the problem ex...
When this happens, the event log usually doesn't show anything useful. When the problem appears, using 'net use' (net use \myServer\MyShare02 /user:myId password) will result in this message: [CODE] 'net use' doesn't show any existing connections so 'net use * /delete' doesn't help. When the problem appears, a reboot a...
0
1
6,576
2010-12-02T17:53:39.617
infrastructure
serverfault.com
1,012,939
AWS EC2 Ubuntu 18.04 ssh connexion reset (Permission Issue)
First of all, sorry for the eye bleeds At some point of various debugging, I kinda raged at permission issues and brought up the Exodia card chmod -R 777 * .* / And suddenly the DNS parameters of my instance started malfunctioning. Every ping would give me Temporary failure in name resolution, even google.com To solve ...
I found a solution to my problem. Created another Ubuntu 18.04 Instance Turned off the faulty instance Detached the volume from the faulty instance Attached it to the new instance, and mounted it Repaired the permissions on the mounted /etc/ssh keys Unmounted and Remounted on the original instance SSH Works!
0
0
202
2020-04-18T16:57:12.683
infrastructure
serverfault.com
78,644
Postgresql: How do full_page_writes help prevent data loss?
From the postgresql docs [full page writes are] needed because a page write that is in process during an operating system crash might be only partially completed, leading to an on-disk page that contains a mix of old and new data. The row-level change data normally stored in WAL will not be enough to completely restore...
Many (most?) redo records actually need the block to be in some reasonable state in order to replay into it. Consider: Not all WAL records are row-level. Say you read and replay a WAL record that says "I defragmented this block according to the usual rule of defragmenting blocks". This would be a deterministic operatio...
5
2
1,121
2014-10-08T02:19:02.190
database_errors
dba.stackexchange.com
272,080
Disk-to-tape using Networker and Data Domain
My previous question covered disk-to-disk backup to reduce our backup window, and now I also need to take the disk backup and move it to tape. Is this something I can do with Networker and deduplicated backup? I know that an ideal solution would be to replicate the Data Domain elsewhere, but we are one site only. Anoth...
I thought that EMC kept all of the documentation behind a login wall unless you are a customer, but it turns out that's not true. So I was able to download the manual and check it out myself. Turns out you can take the Data Domain backup to tape. In Networker lingo, this is a backup clone. This will lose the Data Domai...
3
2
3,590
2011-05-20T22:22:53.027
database_errors
serverfault.com
49,358
WebDAV "PROPFIND" exception in IIS due to network share?
We're finding continuous exceptions in our event viewer on our live box to the following exception: [CODE] We've narrowed it down to occuring when people try to access shares on the box from within the network, and have discovered (we think) that its due to the WebDAV web services extension being previously disabled by...
In answer to your questions, If you enable WebDav, it will stop these messages because there would no longer be any forbidden errors. That being said, if no one is doing anything that would require or rely on a WebDav connection, I would no enable it as there is no reason to be using it and you could possibly be openin...
2
0
1,840
2009-08-03T15:36:52.457
infrastructure
serverfault.com
228,511
expdp Hangs at DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM in oracle 12c
Expdp Hangs at Below Stage for long time even in structure backup also . [CODE] Database Version: - Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production so please let me know to get solution & if it is 12c Bug then please mention bug number also P.S :- here is expdp full script [CODE] Database Siz...
So in the end it's just a time issue you have. You would have to open up a ticket with Oracle if you want to speed things up. This is probably not an Oracle issue, but possibly an issue with your database design. You have to understand that the Data Pump Export Utility has to determine all relevant constraints and rela...
1
2
2,730
2019-01-31T05:58:31.087
database_errors
dba.stackexchange.com
372,689
Synchronise work across docker containers in a queue
I have a rather simple (i thought) setup that causes me some grief. I am using a queueing system (AWS SQS) and a few worker docker containers with code written in .net core that pull from a queue and process messages. Multiple workers can pull from a queue at the same time. Certain operations belong to a single job. E....
The typical way to handle something like this is to have each worker post a "done" message to another queue, then have an additional task that only waits for all the done messages before cleaning up the job. Another way that's a little more coupled to your database implementation is to use the database guarantees to do...
2
1
1,202
2018-06-18T06:39:42.057
data_quality
softwareengineering.stackexchange.com
181,576
Error 71501, 71561 while encrypting columns using always encrypted feature of SQL Server 2016
1) I am trying to encrypt some varchar columns which are not identity / primary using the always encrypted feature of SQL Server 2016, but getting an error code 71501,71561 for unresolved and / or ambiguous reference. How do I resolve this ? 2) Is there a way to nominate a column as primary key for all tables at once ,...
Regarding your first question, which version of SSMS, are you using? If it's older than 17.0, I recommend trying the newest version ( https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms ). Based on your description, I suspect you are using SSMS 16.x. The likely root cause of this probl...
1
1
449
2017-07-24T07:07:57.097
database_errors
dba.stackexchange.com
966,122
Kubernetes aggregation certificates - apiserver client authentication allowed names
Definitions I'm using in this question: Main apiserver: the core kube-apiserver Extension apiserver: an addon like metrics-server I am reading through the configure aggregation layer guide and I don't understand the main apiserver's use of [CODE] . In section Kubernetes Apiserver Client Authentication it says: The conn...
I think I understand now why the main kube-apiserver needs this allowed names list: The kube-apiserver is a frontend for all the extension apiservers. So the requests always go through kube-apiserver first; it aggregates the requests and then passes them onto the correct backend extension apiserver. Hence it'll need to...
1
1
120
2019-05-07T01:24:14.570
api_errors
serverfault.com
444,298
Optimal variable-time logging of a real-time data stream
Cross-posted from stats stackexchange Say I have a logging utility in my application that I use for recording timestamped diagnostic log messages. I want to add tracking of some performance metrics to this log. Moreover, I want to do this intelligently, so as not to explode the size of the log files. A convenient way t...
Decide how much memory your filter is allowed to consume. This is what you have to work with when deciding if something is interesting enough to send to the file. In here you can hold more than you send to the file. You just can't hold it for long because new stuff is coming in and you need somewhere to put it. Not sav...
-3
1
83
2023-03-04T04:30:28.567
api_errors
softwareengineering.stackexchange.com
671,241
WebRTC on standalone asterisk - no audio
After struggling with Asterisk for WebRTC for a few weeks now, I decided to put my problem on this forum. My Problem is as follows: Im not getting audio from WebRTC to WebRTC clients. I work in a LAN environment. Situation - Call from JSSIP to JSSIP (same client) with a standalone Asterisk server. Problem There is no a...
The configuration and the call setup looks OK. The 200 OK response would be very important to see. Also you should enable webrtc logs in the browser and check that also (or submit here) so we can see where it is actually sending the (DTLS encoded) SRTP. Here is a detailed description about WebRTC setup in Asterisk 13 ....
7
1
5,677
2015-02-25T08:52:41.190
api_errors
serverfault.com
210,915
Is blocking an entire web-client due to compatibility a reasonable request?
A little bit of background, we've made an electronic POS system for registered vendors of items of a well known brand. The vendors are required to login to use the system. Recently, IE has been giving us lots of painful maintenance problems than before. Our boss is getting worried about running into further maintenance...
Is this request technically viable? No, not least because technical users will be able to spoof the requests - that said those users that are capable or walking round the limitations are more likely to be using a browser that doesn't cause you problems. Is this request reasonable? Maybe - but I refer to my earlier answ...
1
11
838
2013-09-09T14:16:32.807
api_errors
softwareengineering.stackexchange.com
359,277
Linux Terminal: Change cursor position after 'up arrow' key press
I just switched one of my systems from Gentoo to Ubuntu. There is one difference between the two setups that is driving me mad, and I cannot figure out how to fix it. When I use the 'up arrow' to go to a previous command, the cursor is moved to the start of the line. In Gentoo the cursor would remain at the end of the ...
With respect to zsh, in debian, therefore in ubuntu too, it seems to be caused by the global zshrc settings (/etc/zsh/zshrc). I've been looking for this for a while. Today I wrote to the zsh-users list and got the answer: http://article.gmane.org/gmane.comp.shells.zsh.user/12079 There's even a debian bug about it: http...
0
2
1,165
2012-02-12T08:31:19.933
database_errors
serverfault.com
404,464
Unnecessary (?) ReadOnly fields in Interfaces
Under the context of dependency injection - that is, an interface has mostly one implementation - I took the habit of exposing via the Interface a bunch of fields which are never called by the consumer classes. These fields reflect a high-level implementation strategy; I decided to expose them via my interfaces because...
I like that you are thinking about knowledge management, which to me is very important, and I'm not completely against small compromises in architectural elegance if they improve the productivity of your development team. That being said, I believe your readonly fields connote something very different about the class. ...
3
3
719
2020-01-30T16:40:37.213
api_errors
softwareengineering.stackexchange.com
437,333
Best way to calculate profit/loss with historical data
Problem I need to build a profit/loss graph for a mobile app. The api from which I can get the historical price data only allows me to retrieve 1 item at a time. If the user has 500 items that would create an api failure since I can only make 50 req./min. What is the best way to calculate this? Let's say the user buys:...
If you can do only 50 requests per minute you'll never be able to provide individual charts per user if you use up your precious API requests to serve one user request. Your only chance is to gather historical price data and keep it in your own system, using your 50 requests per minute in a daemon process to update you...
0
1
99
2022-03-13T03:09:29.677
database_errors
softwareengineering.stackexchange.com
341,564
Where does complex, heavyweight validation logic go?
I've been struggling to figure out a clean way to validate things when objects have complex relationships and the validation requires expensive operations (e.g., making DB queries or other RPCs). Looking around, I couldn't quite find something that answers this question, so here goes. I've read a bit about domain drive...
Validation can be put in many places depending on the type of validations. Common places are the UI for fast responses/great ux, on the command itself, on the command handler and on the Aggregate. In the specific case of the Document with usernames and the external service I whould put the validations on the command ha...
4
3
338
2017-02-04T21:14:26.167
pipeline_ops
softwareengineering.stackexchange.com
182,206
Mac WebDAV Connection Read-Only Issue on Windows Server 2008 WebDAV Folder
I set up Windows Server 2008 (x64) and installed the WebDAV extension to IIS 7 (also x64) and created a WebDAV share. I also created a self-signed certificate and enabled HTTPS on the box - requiring HTTPS to connect to the WebDAV share. I can connect to the system via Vista and connect to the "network folder" just fin...
The OS X Finder request DAV Level 2 support, that is, a working LOCK extension. Without that the share will be mounted read-only.
4
4
2,124
2008-09-16T20:28:31.970
infrastructure
serverfault.com
40,412
Equivalent of MRG_MYISAM in databases other than MySQL?
Does anyone know if other database have something equivalent to MRG_MYISAM (aka the MERGE table type/storage engine)? I know about fragmenting, but this is not quite the same AFAIK. We're using MRG_MYISAM to avoid large amounts of duplicate data across customer specific databases, so MRG_MYISAM is perfect. That said, I...
From the description of the [CODE] table type in the MySQL documentation at https://dev.mysql.com/doc/refman/5.0/en/merge-storage-engine.html it appears this is similar to creating a view that uses a [CODE] statement to connect multiple tables, either from a single database or multiple databases. In Microsoft SQL Serve...
2
1
579
2013-04-19T00:57:39.513
data_quality
dba.stackexchange.com
1,040,045
On AWS, is it possible to have CloudFront proxy requests to API Gateway while maintaining the request's query string?
I have a CloudFront distribution configured with multiple Origins, including an API Gateway deployment. I'm trying to create a Behavior on CloudFront so that any requests received to a [CODE] path will be redirected to the API Gateway and what I did was to simply create a new Behavior with the path pattern as [CODE] an...
This caught me out too, with both the query string and headers such as [CODE] . However, the docs state that to pass the [CODE] header to the origin it must be used as a cache key: Cache key settings specify the values in viewer requests that CloudFront includes in the cache key. The values can include URL query string...
1
2
2,152
2020-10-25T22:01:53.250
pipeline_ops
serverfault.com
591,641
Can Heartbleed cause a server to crash?
I know about the basic Heartbleed vulnerability and it's consequences and cause. However, I recently read that Heartbleed may cause a server to crash. I am wondering if this statement is true and if so, why is that so. As far as I understand Heartbleed simply sends back the length the client requested and misses to che...
The answer to this question involves a bit of background in how paging works. In modern operating systems applications do not access physical memory addresses but rather virtual memory addresses. The mapping between virtual and physical memory happens in chunks called pages. The page size depends on the hardware, the m...
1
3
284
2014-04-27T20:27:43.780
infrastructure
serverfault.com