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
209,121
FTS is slow when searched word appears frequently in rows
I have a [CODE] table with a [CODE] column indexed for full text search: [CODE] The problem I have and that I'd like to understand is that searches involving frequent words are very slow. Here's a normal fast enough query on a rare "word": [CODE] And here's a very slow query on a frequent term: [CODE] It can be noticed...
Your bitmap has grown too large to fit in [CODE] , and so it has "gone lossy" where it records just the blocks that contains matches (for some blocks), and then needs to recheck each row in those blocks. [CODE] Doing this is slow. Especially so because you are using a functional index, and so it has to re-parse [CODE] ...
3
3
287
2018-06-08T15:33:31.347
database_errors
dba.stackexchange.com
8,794
Restrict user logon in Jenkins
We have been using groovy script to read the build queue state: [CODE] Then we add Azure AD plugin . It requires an account with the [CODE] permission to run a script. We use a tech account, but the problem is that everyone can logon interactively using this login and became Jenkins admin. Is it possible to have this a...
If you're running this code today via script console, you're probably running into a RejectedAccessException from the sandbox which is why you require admin access to run this coupled with and or needing administrator access to use the script console. If you put this code into a shared library , the code becomes truste...
2
1
87
2019-08-02T12:27:26.760
pipeline_ops
devops.stackexchange.com
24,519
Why is SQLite adding unused disk space to "free-list" after deleting a lot of data in a database?
The SQLite FAQ states the following: (12) I deleted a lot of data but the database file did not get any smaller. Is this a bug? No. When you delete information from an SQLite database, the unused disk space is added to an internal "free-list" and is reused the next time you insert data. The disk space is not lost. But ...
As Phil wrote, freeing pages from the free-list would require that pages are moved around (and that all references to those pages are adjusted). When data is deleted, it is very likely that some other data will be inserted afterwards, and that data can then just use the pages in the free-list. Returning those pages to ...
3
5
2,817
2012-09-19T09:25:54.813
warehouse_errors
dba.stackexchange.com
449,250
monitoring rx/tx stats of current connections on Linux
In a Linux netfilter router, connections table only includes information on end of connections. Where I reach real time rx/tx information for each connection? (In freebsd, session table already provides) Thank you.
I am replying my own question: The answer is conntrack accounting. sysctl -w net.netfilter.nf_conntrack_acct=1 tcp 6 299 ESTABLISHED src=144.111.111.11 dst=192.168.1.2 sport=35042 dport=22 packets=585 bytes=41244 src=192.168.1.2 dst=144.111.111.11 sport=22 dport=35042 packets=423 bytes=195796 [ASSURED] mark=0 use=2 Tha...
1
1
719
2012-11-16T00:05:14.037
pipeline_ops
serverfault.com
635,231
dist-upgrade from Debian 7 (wheezy) to 8 (jessie) results in 'Failed to execute operation' errors
After upgrading Debian 7 (wheezy) to 8 (jessie), any system critical action results in one of the following messages appearing: [CODE] Last time this happened on my local test machine (which was using sid), it was unable to boot after that. It would just get stuck. How could this issue be resolved? Would simply downgra...
Solution Test 1: Downgrade to earlier versions. Result: Broken System (not bootable) Solution Test 2: Restore from backup, update, upgrade, dist-upgrade. (upgrade step can be left out, no change in final result) Result: Broken System (not bootable) Solution Test 3: Reinstall Debian 7, edit sources.list to include jessi...
0
1
2,791
2014-10-11T04:26:06.893
infrastructure
serverfault.com
179,890
DBCC CHECKDB grows tempdb to a huge size - Legacy MS SQL Server 2008 R2 Instance
I have an older Microsoft SQL Server Instance (2008 R2 SU3 GDR - Build: 10.50.6220). When I run DBCC CHECKDB via a Maintenance Plan, the TempDB grows very large. The largest DB on the instance is 95GB, and while running a data integrity check [CODE] grew to 40GB before filling up the filesystem. Here's the error messag...
Actual serious although unusual suggestion: drop all the indexes in the database - or some of them - then "DBCC CHECKDB" has fewer things to check. Of course you can put them back after... Alternatively, rebuilding indexes may produce a simpler arrangement of data for CHECKDB to analyse... this is actually a guess, but...
2
1
3,094
2017-07-14T20:47:46.567
data_quality
dba.stackexchange.com
88,351
Need to change IP addresses on 35 servers remotely
We are going through a network redesign and I have 35 Windows 2003/2008 servers at a remote location that I need to change the IP address, gateway and DNS informaiton for. Ideally I would like to be able to preform this from a command line on my local system (Windows 7) remotly, so I can script out the process to updat...
Would PSTOOLS psexec suffice for this? You can open up a command prompt on a remote machine from your local desktop with: psexec \\servername -u username -p password cmd
3
4
14,616
2009-11-25T20:59:30.307
infrastructure
serverfault.com
952,061
Why is UUID missing after creating ext4 filesystem on RHEL7 ec2 instance
I'm using Ansible to configure a server. This server is running on AWS Ec2 and I'm attaching to it four EBS drives. When I run my ansible playbook it will fail about 50% of the time. The failure is when I mount a path to a newly formatted drive. While investigating I noticed that one of the four drives appears to not h...
If [CODE] or [CODE] does not show the filesystem then it is possible that the partition type was not correctly recognized by the kernel, or the kernel view was not updated after [CODE] . There are a number of situations where garbage on the disk can cause problems, including external lvm IDs, software raid signatures o...
2
1
2,500
2019-02-02T22:09:52.920
pipeline_ops
serverfault.com
890,598
How can I log IP addresses of all connections to virtual machines in Azure?
We have a private Azure network configured with a Virtual Network Gateway where all traffic is passing through. Network Security Groups are not currently used. I've tried to enable diagnostic logs on a VNG and archive to a storage account, but I don't see logs coming in the storage account blobs. Do VNG diagnostic logs...
You need to enable NSG Flow Logging. Check the article below: https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-overview This will give you: Outbound and inbound flows on a per-rule basis The NIC that the flow applies to 5-tuple information about the flow (source/destination IP, so...
1
0
3,280
2018-01-03T21:28:11.120
hadoop_errors
serverfault.com
68,085
Windows Essential Business Server
We are currently going through the process of installing windows essential business server. We successfully made it through the utility/planning of the servers with no issues. Going through the setup process when running the environmental tools test, we receive this error code: "An error occured when reading the name o...
It's possible that your FSMO roles aren't correctly defined. Run a DCDIAG on your existing DC and see if you get errors regarding the roles. If you do, then follow this article to seize them over to that current DC: http://support.microsoft.com/default.aspx?scid=kb;EN-US;255504 Once the roles look correct (you can quer...
0
0
97
2009-09-23T16:17:48.153
infrastructure
serverfault.com
1,834
MyISAM Performance: Join Decomposition
in High Performance MySQL on page 159 they talk about breaking up complex queries into simple ones: Converting [CODE] To [CODE] And sort of doing the actual join yourself in your application. My Question is whether this is stil such a good idea when the final query has a where-clause with a few thousand IDs it needs to...
I have done this in a few places. Doing multiple simple queries and building an ID list in the application logic, even with the ID list containing 10,000+ ID's made significant performance increases. The table I was querying had around 5 million records and doing a JOIN was painfully slow. After switching to using IN w...
7
2
830
2011-03-22T04:10:29.353
api_errors
dba.stackexchange.com
66,715
Mongodb: slow shard balancing
I've decided to shard a collection with 500M+ documents into 24 shards. All shards are on the same machine without replicas as was advised in this title (core sharding). The shard key is {"_id":1}. I encountered, that chunk migration is extremely slow. It have been processing 2 days and progress is about 30%. I tried t...
Math first: you moved 150M documents in 2 days, which is roughly 860 documents per second including metadata and indices, where reading and writing all occurs on the same machine. That is not what I would call slow. The description coming to my mind is "lightning fast". ;) Since there is no real distribution of the wri...
1
2
1,985
2014-06-06T07:24:04.373
api_errors
dba.stackexchange.com
906,111
StrongSwan build and run at startup
I've been asked to deploy an IPSEC server for a project and after doing some research, StrongSwan looks like a good candidate. Since this project requires top security, I decided to install the latest version of StrongSwan (5.6.2) as it seems to fix a few security issues and what-not. So I've spent the past few days wo...
If you configure with [CODE] the [CODE] daemon will be built and a systemd service unit named [CODE] will be installed. You can manage that (like any other systemd unit) with [CODE] . So to start it at system boot enable the unit with: [CODE] ( Note: The systemd service unit was called [CODE] before 5.8.0 .) Also, a mo...
4
6
15,526
2018-04-05T08:21:38.147
infrastructure
serverfault.com
96,316
Jmeter-How to record AJAX calls
I am testing a chat application and trying to record the same. When I post a message in chat app, the action is not getting recorded in Jmeter. I can see the pages in Jmeter but the posting message is not shown. Basically, when I post a message in chat app, it is a Ajax call and a connection will be established. Whenev...
I would check out this post: http://jmetertips.blogspot.com/2009/04/ajax-testing-with-jmeter.html
0
2
4,946
2009-12-21T13:43:38.637
infrastructure
serverfault.com
318,512
Accessing network share in explorer on different domain not prompting for credentials. Access is denied
I'm accessing a machine on a different domain in Windows explorer. When I navigate to the machine (ie. \MACHINENAME), I'm able to see all the shares on that machine. I'm not prompted for a username/password. As soon as I try to access one of the shares, I get the error: [CODE] However, if I try to access a different ma...
Use [CODE] Note: [CODE] e.g. [CODE] [CODE] is actually "user", [CODE] is your account name.
2
1
12,422
2011-10-04T22:05:29.643
infrastructure
serverfault.com
612,606
Varnish config to fallback to another port
I am playing around the different config setups. Currently I have Varnish-cache in port 80, Apache2 in port 70 and Nginx in port 90 in the same machine. The Varnish is configured in such way that it talks to Nginx by default, eg: config [CODE] My question is how to make Varnish fallback to Apache if Nginx is dead ? The...
Try using a fallback director There are several directors in Varnish, the fallback director will start to use an endpoint only if the others are considered dead.
2
0
329
2014-07-15T09:24:31.033
infrastructure
serverfault.com
342,511
what type of scripting is this and is it suggested for my environment?
First of all, I hope I am not duplicating another post. If so I will delete immediatly. I have gone through many of the questions/answers on this website trying to find what scripting language I should use and I see many people recommending PowerShell, especially if they are completely new to scripting like myself. The...
If you work in a Microsoft environment, then the answer is Powershell. Powershell is practically a requirement for Microsoft administrators going forward. It is designed to replace and supersede VBscript in every way. Not to mention it's pretty much the most awesome thing that MS has done in... maybe ever! To your ques...
3
6
98
2011-12-19T21:23:21.120
data_quality
serverfault.com
38,094
Algortihm for making predictions from minimal data
I am working with classification problem. I have a dataset with a lot of features. A lot of them can easily determine class. On production, I want to ask the user to provide me with only part of the information. Which algorithm is able to make pretty accurate predictions from incomplete data? I was thinking about decis...
If your feature set is really huge and most of the variables are strong features and can determine a class on their own, i would try to go with Logistic Regression using elastic net (probably less on the lasso and more on the ridge side, so you do not throw away features which happen to always co-occur in your dataset ...
2
2
43
2018-09-11T09:53:57.987
data_quality
datascience.stackexchange.com
945,591
RDP over UDP failing on Windows 10 1809 with reduced MTU links
Since updating to Windows 10 build 1809 on both RDP client and server, I'm seeing a black screen after the initial logon sequence completes when connecting over a link with a smaller-than-ethernet MTU, and when UDP transport is enabled. These scenarios work as expected: LAN link, MTU 1500 bytes, both TCP and UDP transp...
I think you can try disabling URCP (Universal Rate Control Protocol) for Terminal Services on your server as described here: Windows 10 RDP black screen when connecting to Server 2019 On your Server 2019, open the registry editor and navigate to HKLM\SOFTWARE\Microsoft\Terminal Server Client Create a new d-word (32-bit...
15
2
33,497
2018-12-17T00:08:34.007
api_errors
serverfault.com
396,843
KVM instance creation fails with 'virtio-net has no peer'
When I create a Windows Server 2008 instance for KVM with this command: kvm -m 2048 -cdrom win2008.iso -drive file=windowserver.img,if=virtio -boot d -drive file=.virtio-win-0.1-22.iso,index=3,media=cdrom -device virtio-net-pci -net nic -net user -nographic -vnc :5 The command returns with the following error: Warning:...
I don't think that you want the [CODE] parameter. If you want to use the virtio NIC, add the [CODE] option to the [CODE] parameter like this: [CODE] Your entire command would look like this then: [CODE]
0
0
1,913
2012-06-08T10:36:22.987
infrastructure
serverfault.com
259,056
Replication with Always On availability groups
I have a three server set up: SQL01 – Primary server SQL02 – Secondary server SQL04 – Remote distribution server SQL04 – Subscribe SQL01 / SQL02 DB's are part of basic availability groups and i am trying to configure transaction replication of some of these databases to SQL04. SQL04 is the remote distributor. I have be...
The problem is that procedure only works if read access is enabled for the secondaries and, as per the documentation , Basic Availability Groups do not allow readable secondaries. You need to manually perform the checks that this procedure normally handles as per the doco: This is expected behavior. You must verify the...
0
1
1,107
2020-02-06T16:35:30.157
database_errors
dba.stackexchange.com
966,480
Watchguard SNAT not working
We are currently changing our external IP Address and trying to setup external access to your internally hosted website again without much luck. We use Go Daddy as our DNS host for our web domain and we use Watch Guard as our internal firewall. We up setup a rule on the Watch Guard for both HTTP and HTTP traffic, with ...
The source of the traffic isn't your Telstra TID link, it's ANY. The Telstra TID link isn't the originator of the inbound traffic and as such the source ip address of the incoming traffic is not the Telstra TID link. The source ip address of the traffic is ANY web browser coming from the WAN (public) that's trying to g...
1
1
465
2019-05-09T00:54:30.447
infrastructure
serverfault.com
200,301
Why did my Always On AG lock up?
I am in over my head here. tl;dr; did a shrinkfile (I know, I know) (shrinking a 100gb file with 10gb of empty space by 2gb), it ran for ~15 minutes, then everything broke. What I don't understand, is WHY did everything break? We have two servers in a synchronous AlwaysOn Availability group. Sql server 2014 sp1. server...
WHY did everything break? Based on the curated errorlog output you gave us, shrinkfile was waiting on a current open snapshot transaction to finish: 3/13/2018 4:17:07 PM DBCC SHRINKFILE for file ID 1 is waiting for the snapshot transaction with timestamp 22194769242 and other snapshot transactions linked to timestamp 2...
1
2
7,222
2018-03-14T22:16:40.810
database_errors
dba.stackexchange.com
379,930
O0o.oops() [console.c(83)]: Opening console failed and ssh_exchange_identification: Connection closed by remote host
During maintenance yesterday I did a mistake moving files and instead of mv ./* /destination-path, I typed mv /* /destination-path ... :( I stopped the process of moving in the middle and then moved files back to / and everything looked fine. But I logged out and now I can't log in on this server, neither through ssh, ...
No you are not completely screwed, that's why you took the time to make good backups. Now just go to your server and restore them.
1
8
383
2012-04-16T16:25:37.773
database_errors
serverfault.com
41,325
Schema information within Trigger?
Background : (Multi-tenant design;separate schema per customer, all table structures identical;Data-warehouse / non-OLTP system here; Postgres 9.2.x). Reviewing patterns for the following problem: I have a matview that needs to be updated if an underlying condition is altered (in this case, an inclusion BOOLEAN). Was c...
If the effect isn't required until a later point in time, I would execute the payload at that later point in time and not via trigger. This way you can collect multiple updates on the underlying table and avoid redundant calls of the DDL script. Depending on your circumstances, a [CODE] column or simple [CODE] flag in ...
0
1
914
2013-05-01T16:57:54.030
warehouse_errors
dba.stackexchange.com
108,538
What to do when you are building a feature and the denominator is zero?
This is something that looks very simple to solve, but I couldn't find any hint - perhaps I'm not asking Google the right question. Let's say you own an Internet Company. You have the total consumption of your customer in the current month, the consumption from last month and the month before. You want to create a feat...
You are describing time series data. Lag values are typically not divided. Lag values are typically subtracted, thus zero values are an issue. Time series variations are often modeled with autoregressive integrated moving average (ARIMA) .
1
0
106
2022-02-25T21:00:48.173
data_quality
datascience.stackexchange.com
87,965
How can I send mass emails and SMS to our customers without our domain being marked as spam?
I want to be able to send our customers email and/or SMS reminders when their billing dates are coming up. A couple issues: 1) How do you send SMS? Do I need to register for a SMS number or some service? 2) I don't want our company's domain to ever be marked for spam, and I fear if I send these notifications through ou...
In spite of your emails not being a marketing tool, I would still recommend that you look into a service like Constant Contact or iContact that will manage your list of recipients and keep track of the opt-in/opt-out process. Concerning the SMS portion of your question, a quick Google search reveals that indeed there a...
0
2
2,000
2009-11-24T21:53:40.293
infrastructure
serverfault.com
479,689
Cloudwatch alarms strange behavior
We're implementing some new alarms recently that needs to monitor CPU for 1 min period. Alarms are acting in very strange way. They show Good status for a min and for the min after they show Insuffucient data sign Reason: Insufficient Data: 1 datapoint was unknown. Does this mean any problems in the configuration? If t...
Do you have detailed monitoring enabled on your instance? If you create CloudWatch Alarms for period 1 minute without detailed monitoring enabled, it will stuck at [CODE] for 4 minutes after showing [CODE] for every 5th minute . This is because with normal monitoring the reporting data comes with the interval of 5 minu...
3
9
8,698
2013-02-17T14:55:51.813
infrastructure
serverfault.com
427,140
NAS4Free disk encryption and ZFS error
I have installed a NAS4Free on a VM, and as recommended, I installed it on a 1GB virtual disk, and assigned another disk 500GB to this VM for file storage. I have created the disk, encrypted it, created a ZFS virtual disk, and then a ZFS storage pool. Everything was working. On every restart of this VM I needed to go o...
This one fixed my problem :) http://forums.nas4free.org/viewtopic.php?f=16&t=1271 After added the disk has ZFS pool in disk management... Go to ZFS > Configuration > Detected > import > import again (force to imported has it adviced) ... the configuration will appear. Go to ZFS > Synchronise to apply the configuration.
0
1
2,334
2012-09-13T15:18:28.433
api_errors
serverfault.com
231,606
Deny Cisco VPN Access to Active Directory Users?
I run Windows 2008 Server, I have Cisco ASAs setup for site-to-site vpns and remote-access vpn. After researching, i read that you could change dial-in options to allow or disable VPN access for remote users. however, i tested this on myself and it didn't do anything.. I have AAA servers setup, using the a/d server for...
Check this out http://www.cisco.com/en/US/products/ps6120/products_configuration_example09186a008089149d.shtml#configldap
0
1
1,898
2011-02-05T16:24:30.797
api_errors
serverfault.com
400,341
Address already in use - Amazon AWS
I've run into a really weird issue. I was debugging a server 500 error script on our EC2 instance and found that we didn't have ioncube loaders installed. So I went to go install them and I created a new file at [CODE] and initially I inserted the value of [CODE] and restarted httpd at which point it told me: [CODE] So...
If there isn't anything listening on port 80 as per the suggestion from David Schwartz, the problem is most likely that you have two [CODE] directives in your Apache config. They may not be near each other or even in the same file. Try [CODE] to find them and remove one of them.
1
4
2,941
2012-06-19T22:37:07.697
api_errors
serverfault.com
143,885
Mysql not loading correctly
PHP 5.3.2 Apache 2.2.15 Mysql 5.1.X Windows XP SP3 I have now configured everything correctly but get a timeout when trying to connect to Mysql via PHP. So frustrated. I don't get an error message, the script just times out. I have made sure I have the correct paths. Fatal error: Maximum execution time of 60 seconds ex...
With PHP 5.3.X + Apache 2.2.X on a Windows system it seems like one has to use 127.0.0.1 as localhost. This has not been the case with PHP 5.2.X in my trials. I will continue using php 5.2 until I can fully figure out what I am doing wrong.
0
0
147
2010-05-20T20:29:48.543
database_errors
serverfault.com
207,972
sshd segfaults errors every minute on Red Hat system
UPDATE (7th Dec 2010) & WARNING: I copied the files discussed below (from the /var/tmp/vi.recover directory) to my Windows PC and sacnned with ESET NOD 32. It identifed two of the file (sshd: and juno) as the Linux/RST.B virus. Not sure if it is accurate in saying that but since the machine is a development server I'm ...
Can you tell me if hpsmh is installed and running? [CODE] Also, if hpsmh is installed, what are the permissions on its install root?
0
0
2,070
2010-12-01T17:06:57.607
infrastructure
serverfault.com
256,667
Is this a valid design pattern for a Haskell main function?
After developing several Haskell applications I've found myself rigorously segregating impure code and failable ( partial ) functions from their pure & total counterparts. These efforts have noticeably reduced maintenance cost associated with the applications. I have found myself over time relying on the same high leve...
This design makes several non-trivial assumptions: The user's input will not depend on the results of pure or impure computations. The impure computations will not depend on the result of pure computations. The program logic will not loop; it will run only once. My other comment on your structure is that you do not nee...
8
7
671
2014-09-18T16:53:18.300
api_errors
softwareengineering.stackexchange.com
954,775
SSL Certification with nginx and tomcat
I have an nginx server, which can forward request from subdomains of [CODE] . I want to secure the connection with SSL, so I generated a certificate, called [CODE] and added it as both the [CODE] and [CODE] since I generated it with OpenSSL, where both the key out, and the certificate was this single file. It works fin...
I found the solution: I had to create a certificate from the key file, with the domain I want clearly stated (it'll tell where it's needed when generating). I used the [CODE] command, made sure the right files are added to the right Keystore, and I was all set
0
0
1,051
2019-02-19T21:50:14.623
api_errors
serverfault.com
57,333
Making /var/www/codes only accessible in the Internet by Apache
Which settings should you use in `/etc/apache2/enabled-sites/000-default to make content only executable and readable for the user in the given folder? I have the following /etc/apache2/sites-enabled/000-default [CODE] My permissions at /var/www/codes [CODE]
If you only want people to be able to access apache, and nothing else then you need to use a firewall. You could use [CODE] - uncomplicated firewall to only allow port 80 in. However it's not a big deal if you don't have a firewall on linux, since it's quite secure by default.
0
1
230
2009-08-21T21:55:08.467
infrastructure
serverfault.com
410,538
Can I manage thousands of concurrent connections with a non-Node stack?
I'm developing a social network with Django (Python) + Postgres SQL. My site will have a chat feature so that users can communicate to each other in real-time, and the communication will be only from user-to-user (so there won't be chatrooms with more than two people). Let's say that in the future my social network has...
Always be prepared to do things over, sometimes you have to. But also don’t let perfect be the enemy of good enough. Since this is a first attempt, program it using the languages and libraries you know. Once you have a good feel for things and have actual data, you can refactor/rewrite parts of to meet your performance...
-1
4
176
2020-05-24T10:01:18.607
database_errors
softwareengineering.stackexchange.com
314,299
mod_rewrite fails to redirect into the lib folder
I've got a rewriterule that works for everything except the lib folder. The rule is [CODE] It's one of a much more complex set of rules but I've disabled all but this one. The rule works fine for everything but the contents of the lib folder: http://site.local/lib/cookies.js works but http://site.local/uk/lib/cookies.j...
The question got answered on serverfault. It turns out there's some scary default behaviour whereby if you write the rule in the virtualhost and don't explicitly redirect to a path starting with %{DOCUMENT_ROOT} it looks for matching paths in the root of your file system first. I've appended the answer below: After mes...
0
0
207
2011-09-22T10:00:55.133
infrastructure
serverfault.com
930,563
Microsoft DNS behaving strangely
I'm having this peculiar issue with Microsoft DNS. Basically, we have domain.com that's a split horizon setup (external public DNS and internal DNS are both authoritative for separate zones), don't ask me why, it was like this when I got here. In this AD we have 3 domain controllers, serving as DNS servers for the inte...
I'm having trouble understanding your flow from the description but... I would encourage you to have separate recursive and authoritative servers for your domain on the external side and have the internal DCs point to the external recursive servers with server forwarding. This setup is commonly referred to as split DNS...
0
1
115
2018-09-12T12:00:08.463
infrastructure
serverfault.com
839,431
Is it possible to masquerade a packet on a bridge?
I have a container which has an incoming VPN. A connection into that container will be assigned the [CODE] IP. The virtual NIC of the container has an IP of [CODE] and a gateway (on the host bridge) of [CODE] . When directly logged into the container, a packet will leave with [CODE] as the source and will know how to c...
For shorewall, you can edit /etc/shorewall/masq, to look something like: [CODE] You will also need to create an entry in /etc/shorewall/hosts and /etc/shorewall/zones for the VPN range, and of course add any necessary rules to /etc/shorewall/rules. However, I think you might have a case of the XY problem . If I underst...
1
1
2,320
2017-03-20T14:27:30.283
pipeline_ops
serverfault.com
937,835
Options for an ultra-fast small LAN
I need to transfer several terabytes/day between three windows computers. Two computers are employed to acquire medical imaging data (500 Gbytes/sample, ca. 6-7 samples/day), and the third is dedicated to data analysis (browsing through 3D stacks, etc.). Thus far, the computers are connected through gigabit ethernet. T...
"Best" is a matter of requirement and budget. 100GbE switches are readily available but pricey - and as Michael has hinted, your data sources and sinks likely won't be able to keep up with 12 GB/s. Beyond 100GbE there's also 200G and even 400G Ethernet but that's pretty much overkill for just a few TB/day. 10GbE is pro...
1
3
137
2018-10-30T10:54:32.423
api_errors
serverfault.com
64,272
How to design to avoid two-way reference between two tables
I am having a problem with foreign keys between two tables. I am trying to model a relationship between members of a club and their relatives. This is a straightforward many-to-one relationship, with many relatives related to one member. However, one and just one of this relatives must be the main contact. Also, many m...
Sounds like you may need a self-join: Get rid of the relatives table entirely Define the [CODE] as a foreign_key to the [CODE] column of the [CODE] table. Or depending on the relationship a many-to-many resolver table in the middle: Get rid of [CODE] from [CODE] Get rid of [CODE] from from [CODE] Add a new table [CODE]...
1
2
3,423
2014-05-01T07:45:50.380
warehouse_errors
dba.stackexchange.com
315,802
Embed column containing JSON in FOR JSON AUTO
If I have a table with a column containing an arbitrary valid JSON document, can I embed that document into a query returing JSON other than as a string? For example: [CODE] Actual output: [CODE] Desired output (note that the parsed value of [CODE] has been embedded): [CODE]
Use [CODE] with no path to prevent escaping [CODE] outputs [CODE]
0
2
147
2022-08-18T23:42:00.003
warehouse_errors
dba.stackexchange.com
192,169
Special letter behaviour problem?
I asked question in very blurry manner because I cannot explain in short sentence what is my problem about. In general I have a set of procedures which transforms text and XML. Inside the procedures I have a lot of [CODE] and [CODE] variables and a table with [CODE] column. Inside my data I have special letters (for ex...
The question is a bit vague, but typically when you have Unicode characters and you end up with question marks or boxes, the problem is actually relatively simple. When you declare a Unicode string with [CODE] , you need to prefix them with an [CODE] . N stands for national, not nvarchar (admittedly, a U prefix - for U...
0
6
72
2017-12-01T13:41:44.580
database_errors
dba.stackexchange.com
50,085
How do you handle "CMD does not support UNC paths as current directories"?
I am attempting to change directories to a file server such as: [CODE] However, I get the following error: CMD does not support UNC paths as current directories What are my options to navigate to that directory?
If you're considering scripting it, it's always helpful to learn about the [CODE] and [CODE] commands. Sometimes you can't be sure what drives letters are already used on the machine that the script will run on and you simply need to take the next available drive letter. Since [CODE] will require you to specify the dri...
47
50
191,442
2009-08-04T23:16:23.653
infrastructure
serverfault.com
8,255
Test results that differ from running via command line versus IDE
I have just run a set of automated tests via the command line using Maven as my build tool and JUnit4 as my test execution framework. There was a report of two errors which were recorded in a text file as [CODE] . I decided to run the same class from the IDE and received no errors. Has anyone experienced this? If so, c...
Three possibilities: The IDE inputs (e.g. arguments and environment variables) are not the same as the command line inputs. You can check that with print statements or logging. The libraries are not the same. I assume you know how to check this. You found a timing problem. To check this, first determine which element i...
2
3
152
2014-04-07T13:19:56.000
data_quality
sqa.stackexchange.com
256,150
Is a long list of parameter checks an anti-pattern?
Background: I'm working on an application that will manage backup generators. These generators need to be able to be "linked" together. For example, Generator B might serve as a backup for Generator A. If A fails, then the software turns B on. Or they might be linked in a load-sharing configuration, where Generator A a...
When you need to check conditions that aren't business rules, that's where it gets suspect and a bit smelly. I try to avoid those where possible. Some of your tests seem suspect: [CODE] This looks like a check that should be made by the type system. i.e. its a type restriction and ideally your function signature should...
5
7
916
2014-09-12T21:07:33.313
database_errors
softwareengineering.stackexchange.com
276,248
Restoring schemas with the sequences
This evening a developer asked to restore only schemas from a database into another database. A colleague of mine did this, but after that the developer came to me saying that the sequences are missing from the restored schema. I think this was the command my colleague used to get a dump of the schema only : [CODE] And...
Simply add [CODE] for all the sequences you want to dump.
0
0
1,198
2020-09-29T10:25:49.807
database_errors
dba.stackexchange.com
589,541
NFS server "access denied" after client Reboot
I have a number of NFS servers on a set of commercial NAS hardware we bought. I also have about 20-30 other machines that mount each of the NFS servers. Generally the setup works well, but I've observed that occasionally after I reboot one of the clients that it will report [CODE] I seem to be able to fix this by loggi...
[CODE] on NFS means that - for some reason - the NFS export doesn't have permissions to mount. What's the export options you have configured? Any chance you've got netgroup or host-based allow lists? If so, it might be down to name resolution. If your NFS server can't resolve your client's IP (maybe it's DHCPing?) it'l...
0
0
884
2014-04-16T18:45:37.437
infrastructure
serverfault.com
101,420
SQL query to list software by major versions
I have the following code i am tiring to get it to only show one line in the results for each major version, i need to combine all of the rows that are the same Like so. [CODE] Results : [CODE]
try this: I removed a few fields and changed the group by [CODE]
1
1
695
2015-05-13T15:45:59.760
warehouse_errors
dba.stackexchange.com
27,119
How to have daily error and access logs on Apache (for Windows)?
We're running Apache 2.2.9 (Win32) with a few virtual hosts configured on the one server. Each has it's own ErrorLog and CustomLog settings which are in the format of "logs/[domain name]-error.log" and "logs/[domain name]-access.log". Unfortunately these are now creating quite large files. On IIS you can specify the lo...
What you're looking for is the rotatelogs program that comes with apache http://httpd.apache.org/docs/2.2/programs/rotatelogs.html For instance, to rotate your logs daily at midnight: [CODE]
13
13
29,538
2009-06-17T09:08:39.817
infrastructure
serverfault.com
776,530
Getting "flogin error: Error: TIMEOUT reached" when adding Brocade switches to Rancid
I've set up Rancid on my Ubuntu 14.04 system for a couple of devices which all work fine except for all devices of type 'foundry' (Brocade). Every hour a cron job executes rancid-run as the rancid user. I tested both the flogin as the clogin binary login scripts. flogin This is what I see in every log: [CODE] My .clogi...
It seems that with foundry devices the autoenable / no enable part of the .cloginrc file gets ignored. I fixed my problem by having users automatically go to privileged exec mode: [CODE] After executing rancid-run again I was able to get all my switches' config successfully.
2
2
1,748
2016-05-13T07:52:10.950
infrastructure
serverfault.com
108,338
Best way to get data into Colab Notebook
I am working concurrently with multiple very large datasets (10s-100s of GBs)). I signed up for Colab Pro+ thinking it is the best option. However, I face a significant bottleneck in getting data into Colab. My options all seem very bad: Downloading from AWS (where the data is located) - very slow. Uploading data to Go...
Try Faculty Platform. I had a good experience with large datasets(10s of GB) with them. Faculty Platform
1
0
155
2022-02-20T05:47:25.933
data_quality
datascience.stackexchange.com
561,448
MySQL memory usage - Periodically need to run FLUSH TABLES or memory usage keeps growing with large-pages turned on
After switching our rather memory + physical core rich database server to large-pages, we have noticed a small issue. The memory usage almost looks like there is some sort of memory leak. But running FLUSH TABLES purges about 10gigs of used memory (depending on when we run it of course, as in how long we wait). Attache...
I don't think this is a memory leak. It could simply be that without large pages your memory usage hit an upper bounds (ceiling) which was why memory usage looks flat. After switching to large pages MySQL may have simply been able to better make use of the available memory. The system isn't hitting swap. I'd say closel...
3
2
2,941
2013-12-15T10:14:12.627
database_errors
serverfault.com
564,464
nginx Request line too large
I'm getting the error: [CODE] When I access the a specific url on my server like this: [CODE] On nginx.conf I have: [CODE] I can't find documentation on that specific issue, the docs for large_client_header_buffers mention 400 Bad request, but changing "large_client_header_buffers" from 4 8k; or 8 8k; or 8 16; didn't f...
This error seems to come from a Gunicorn backend, not from Nginx. You can change it's limit by passing the parameter [CODE] or set [CODE] . You can see a description here .
16
20
23,084
2014-01-01T15:33:08.537
infrastructure
serverfault.com
690,654
How does ubuntu, mysql determine hostname?
This is the specific Q: I have apache running on ubuntu in parallels and mysql running on this VM and on the host OS X. Since I try to emulate my production environments locally I connect to the remote mysql server on OS X. I do that successfully for some clients and now I have a new one. I have umhef.ca, osx and dom.b...
If you can log into MySQL as root@localhost run the following [CODE] What does this tell you: USER() reports how you attempted to authenticate in MySQL CURRENT_USER() reports how you were allowed to authenticate in MySQL When you got the error Access denied for user 'rootd'@'umhef.ca' (using password: YES) The host par...
1
1
10,880
2015-05-08T16:32:24.487
database_errors
serverfault.com
681,410
Need help importing data to new SQL server from MySQL folder
My hard drive crashed, and can no longer write, but it can still read. Because of this, I was unable to export my SQL database to an .sql file for later importing. I can still access the drive, and install the mysql folder off of it, however, I do not know how I can import the data from that folder into my new MySQL se...
With both the old & new drives attached, issue the following command to dump the DB on the read-only disk: [CODE] where /tempdir/ is a temporary directory on the new (read-write) disk. From here, you can reimport your data on the new MySQL instance by using the following command: [CODE]
-1
0
211
2015-04-08T21:44:58.630
database_errors
serverfault.com
69,614
Would it be okay to stop training my neural network?
When the validation error of my Neural Network that I am trying to train is slowly decreasing but not by much, is it okay to stop train the network at that point, or do I need to increase the training time until the minimum validation error is reached? For instance, in the last 5 epochs my validations errors are shown ...
You should keep training. In many scenarios ~1% decrease in validation loss a bid deal in itself. However, looking at the trend it looks like you validation loss is set to decrease by more than ~1%, if you let it train form, say, 20 more epochs. The decreases will get smaller and smaller, but they will accumulate. Gene...
0
0
147
2020-03-13T00:24:17.823
data_quality
datascience.stackexchange.com
1,031,270
On linux, is there a way to record the ports a program tries to communicate over?
Problem : I am trying to determine which ports to open for specific programs I have a number of programs that need to access services on remote hosts, but I don't know which ports they are trying to use for the purpose. Rather than opening the firewall up to [CODE] (or [CODE] ), I would like to identify which ports a p...
You could try strace: [CODE] Here is an example output: [CODE] The lines you need are those with the [CODE] .
1
4
698
2020-08-24T14:19:30.487
api_errors
serverfault.com
281,791
What causes DBCC CHECKTABLE to return "session is in the kill state"?
A scheduled job step ran [CODE] on a table but returned the following error: Cannot continue the execution because the session is in the kill state. [SQLSTATE HY000] (Error 596). The step failed. What causes this error?
Many things cause a session to enter a kill state. If other user kills your session, or if running command throws an error which severity needs terminate the connection (check this for more info https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/database-engine-error-severities?view=sql-server-ver...
0
2
1,682
2020-12-18T07:34:33.833
warehouse_errors
dba.stackexchange.com
423,132
How to deal with classes with same purpose from different libraries?
I have a question regarding software design/architecture. Are there any best practices or design patterns regarding the usage of classes with the same purpose from different libraries? Let's imagine this simple [CODE] which uses two libraries [CODE] and [CODE] . [CODE] and [CODE] both have a class to deal with 3D-Posit...
Your wrapper class should probably not just be a "holder" from which you can get the underlying object, but also abstract the functionality you need. For example (excuse syntax errors, I don't write much C++): [CODE] and similar code for [CODE] which abstracts away whatever functionality [CODE] exposes for getting the ...
-1
2
196
2021-03-08T07:21:21.687
api_errors
softwareengineering.stackexchange.com
324,732
Can't get MariaDB docker to work without password
I want to add MariaDB to my docker compose file, like this: [CODE] Now I can connect using [CODE] and entering the [CODE] password, but I can't connect using [CODE] and no password. It says: [CODE] I also tried adding [CODE] or [CODE] to the environment variables, but that also doesn't work. It works when I add an actu...
The code from the entrypoint is: [CODE] So the [CODE] (and the old [CODE] that gets copied to [CODE] ) must not be empty for it to create a user. [CODE] (aka [CODE] ) only ever applied to the root password hence the name change . One way is to use the [CODE] to have a [CODE] file: [CODE]
1
1
1,416
2023-03-14T08:37:37.783
pipeline_ops
dba.stackexchange.com
306,660
RDS slow queries after few weeks
Since I updated from MySQL 5.6 to 5.7 I started to have very slow queries in my Aurora RDS instance. In my local XAMPP the same queries took a few seconds but in RDS some of them were about 6 minutes. Trying to offer a fast solution for my customer I migrated the database from Aurora RDS to a normal MariaDB RDS instanc...
Suggestion/Observations to consider to reduce time required for query completion. [CODE] Test your query to see if same results are provided but faster. [CODE] Observation, AND Bicycle.number Observation 2 singular vs plural table name qualifiers. Is confusing to me when both are used but may be best for you. Observati...
1
1
777
2022-01-27T11:02:42.043
database_errors
dba.stackexchange.com
270,740
select rows on distinct column value without vendor-specific sql syntax
I'm trying to select distinct rows without any vendor specific syntax. My table layout is as follows: [CODE] I'm trying to select all rows where state = 'ENQUEUED', servertag is in ('DEFAULT'), the rows should be ordered by createdAt AND the rows should be unique on the field mutex. The goal is to only have 1 row with ...
Errors? First off, I suspect a subtle error in your query: [CODE] You limit results to mutex with servertag 'DEFAULT', but the restriction is not repeated in the [CODE] subquery. So you exclude mutex that have a row with state 'PROCESSING' and any servertag. May be intentional, but it smells like an error. Even if noth...
1
0
239
2020-07-10T14:41:25.563
database_errors
dba.stackexchange.com
268,523
Is storing data that can be inferred go against data normalization?
To simplify lets say I have two tables PROJECTS and JOBS . A user creates a project and runs 1 or more jobs using a project. So it would possible look something like this: PROJECTS [PK] project_id etc. JOB [PK] job_id [FK] project_id job_run_date etc. Ideally I want to be able to list all projects by last used (last jo...
Storing an attribute derived from a different table does introduce some risk of inconsistent data, if you fail to update [CODE] after updating [CODE] for some reason, so you need to develop means to maintain integrity, e.g. by adding a trigger to [CODE] . It does not necessarily goes against normalization principles pe...
0
1
200
2020-06-04T19:41:35.093
warehouse_errors
dba.stackexchange.com
65,746
MultinomialNB predict_proba doesnt return labels with the probability
I have a model what looks like this [CODE] I use the MultinomialNB classifier to predict a new product name into a category. Before it gets predicted i want to get the probability of the prediction. So in psuedo it looks likes this: [CODE] What I get is this: [CODE] Its an array of 235 items, It makes sense, because if...
Found the solution, with the [CODE] attribute you can find the predicted classes. Then you have to concatenate the [CODE] together with the [CODE] . In Python it looks like this [CODE] What returns, depending on the if statement: [CODE]
0
0
573
2020-01-02T17:19:49.657
data_quality
datascience.stackexchange.com
66,396
NetLogon and RPC Errors
Situation: Co-located DCs connected by T1 to client working location. The T1 is averaging at about 2/3 usage. All 1 Active Directory. I am trying to deploy a start-up script to clients at the working location though GPO. It seems to work on some computers and not on others, but consistently. For example, it will always...
I think you may have multiple simultaneous issues. I'd turn on USERENV debugging on a client where the script isn't running and see what comes up there. Create a registry key "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Diagnostics" and under that key, add a REG_DWORD value "RunDiagnosticLoggingGlobal" set to 1. ...
1
2
15,233
2009-09-17T19:23:59.257
data_quality
serverfault.com
734,558
Can't load driver file apr_dbd_mysql.so when restarting Apache
I have an Apache 2.2 version running on a Centos 7.1 machine running a LAMP stack (MySql version 5.6). Apache has been configured to enable the DBD modules, and running a DUMP_MODULES using httpd shows them as loaded. When I try to stop the server I get the error: [CODE] I have tried to install various packages such as...
You're so close. apr_dbd_mysql.so was created when you installed apr-util-mysql from yum. This is a shared module and provides apache with the driver required to communicate with mysql. Simply move apr_dbd_mysql.so into your apache modules directory ../apache2/modules/ and that should fix your bug.
1
1
7,393
2015-11-06T21:54:49.597
database_errors
serverfault.com
491,572
NFS drops out when .bat script is run
I have a .bat script that runs from a Windows 7 machine. Part of the script is to use plink to ssh into a Red Hat machine and run a couple commands. I have about 4 or 5 plink commands within the script. For example: [CODE] where [CODE] is a mounted NFS share, which is located on a server running Windows Server 2008 R2....
I don't know if this is part of the problem or not, but mounted file systems don't need fsck or dump. The fifth field, (fs_freq), is used for these filesystems by the dump(8) command to determine which filesystems need to be dumped. If the fifth field is not present, a value of zero is returned and dump will assume tha...
2
0
230
2013-03-26T18:34:59.213
infrastructure
serverfault.com
754,021
Server 2008 R2 PS script cannot update Active Directory
I have a Powershell script that updates users attributes in Active Directory that runs just fine from the PowerShell ISE. However when I try to run the script as a scheduled task it cannot access Active Directory to make the changes. I know the script runs because it send an email when it starts and it sends an email i...
Getting a PowerShell script to run as a scheduled task on Server 2008 R2 can be a tricky task. Here is what I did and it works. Scheduled Task Settings General Security options: Run whether user is logged on or not (selected) Do not store password. The task will only have access to local resources (unchecked) Run with ...
0
0
107
2016-02-04T14:50:11.083
infrastructure
serverfault.com
260,451
I want to be notified when a LAN IP goes live
Is there a tool or something that can notify me whenever a local IP goes live on my network. It could be that it continually ping that IP and display a notification to me whenever that IP return a packet. I'm a programmer myself and I can write such a tool myself without a problem, but if there exist such a tool alread...
If your network uses DHCP you may try arpwatch and filter for the specific MAC address of the host you're looking for.
0
2
179
2011-04-16T17:10:58.420
infrastructure
serverfault.com
119,479
How do I find and delete a cron job?
I created a cron job for a wordpress plugin that i no longer want running. I am not very good at navigating around in unix. The cron job was the following: [CODE] Does anyone have pointers how to navigate to this cron job and delete it? Thanks!
run in console: [CODE] then you will get crontab opened with an editor, simply delete the line there, save the file and quit editor - that's it...
1
13
28,553
2010-03-04T15:21:03.300
infrastructure
serverfault.com
82,829
Volume Rebuild Failure after disk replacement in HP MSA1500/MSA20
I have a historically flaky MSA1500 with 2xMSA20 enclosures attached. Recently a disk failed in one of the enclosures. The LCD display reports that interim state recovery for all volumes was successful. On hot-swapping the failed drive, one of the volumes failed to rebuild with error: [CODE] The other 5 volumes have su...
OK so this was one of those 'edge case' issues I feel. On closer inspection with an HP engineer it was determined that one of the other drives in the RAID was unrecognised. Interestingly it is one that we have had replaced before. As the LUNS are configured in ADG, we can tolerate 2 drive failures. The failure of the r...
2
1
3,288
2009-11-09T09:28:32.303
api_errors
serverfault.com
380,648
installing SVN server using NGINX
I am trying to install SVN server and use it with my NGINX webserver. i have tried this in server section in nginx/sites-enabled/svn i have added this location /var/svn/repos { proxy_pass http://127.0.0.1:81; #include /etc/nginx/proxy.conf; set $dest $http_destination; if ($http_destination ~ "^https://(.+)") { set $de...
I have had success with something like this. You might be able to simplify it even more, but it might provide you with a working configuration. In nginx.conf (or other .conf-file under /etc/nginx/conf.d): [CODE] Then in /etc/httpd/conf.d/subversion.conf [CODE]
3
5
20,758
2012-04-18T12:53:53.937
api_errors
serverfault.com
603,875
Server won't boot, kernel panic - not syncing
After a reboot of a CentOS 6.2 server we are getting a kernel panic with the following error: [CODE] When passing init=option selinux=0 to the kernel at boot the server will boot without a problem. I have tried searching for what init=option does but I have not been able to find any recourses explaining it. Could someo...
Note to self, and everyone else: Make sure you type disable d instead of disable when you give up and instead decides to disable selinux! cat /etc/sysconfig/selinux [CODE] A typo in the SELINUX value will cause a kernel panic.
2
2
18,813
2014-06-09T15:49:08.300
database_errors
serverfault.com
365,954
One Single Table or Two Smaller Tables
We currently have a [CODE] table in the database, this has quite a few columns in it. Around 50% of the columns are barely used in the system (only on one or two pages). We've been discussing amongst ourselves whether to split this table into two tables e.g. [CODE] and [CODE] . Our thinking is also that we could then s...
We currently have a Users table in the database, this has quite a few columns in it. So? Your queries should only be retrieving the columns that they require, so having extra ones lying around in the table is irrelevant. We trying to think about db index size ... Unless you have a user base as large as FacePlant or Twa...
-2
5
215
2018-02-14T20:24:33.943
database_errors
softwareengineering.stackexchange.com
140,005
PHP/mail : server sends email originating from wrong domain
I have a Mediatemple dv (Plesk) server with two domains, each has static IP. I had domain1 as main domain and domain2 as secondary. When A PHP script from domain2 sends email the headers show the IP address of domain1 as the origin. Received: from domain2.com (domain1.com [70.ipof domain1]). I want only domain2 to be m...
Needed to define reverse DNS http://www.ntchosting.com/dns/reverse-dns.html
0
0
2,454
2010-05-09T15:29:45.070
infrastructure
serverfault.com
472,120
Detailed Errors not working for WCF Service in IIS
If I were to change the web.config file to have errors in it, I only see the standard 500 - Internal Server Page. Despite setting the Error Pages mode to Detailed, I can't see a detailed error message. How do I sort this? The reason is I'm wanting to make changes to a WCF service to add tracing, but that gives a 500 er...
WCF tracing can be more complex to configure that the usual web.config settings for an IIS web site. If you want the information returned to the client (which should only be done in development), try the includeExceptionDetailInFaults setting: [CODE] http://msdn.microsoft.com/en-us/library/system.servicemodel.servicebe...
2
1
12,708
2013-01-24T17:44:43.560
api_errors
serverfault.com
168,071
How to use network fileshare as user's home, and not roaming profiles
Some of my users are very frustrated, because their login/logout times are reaching into the minute ranges. We have a few shift workers using the same machine, and invariably, the second shift has to sit around for literally 5-10 minutes while the previous user logs out, and the new user can log in. There is high netwo...
The feature you're looking for is folder redirection . This feature, on it's own or in combination with roaming user profiles (I recommend using both) will allow you to keep the largest folders of the user's profiles on the server and speed up logon times. I also recommend creating the folders and setting the permissio...
0
5
3,491
2010-08-07T15:07:08.380
infrastructure
serverfault.com
139,687
When to use DISTINCT
When is it good to use [CODE] and when not? Basically whenever I see [CODE] keyword I start to get cautious as most of the cases it is ends up finding that actual query has some problems (not selective enough, bad joins, incorrect logic and so on). Do you have similar experience or is it just me?
[CODE] is sometimes an indication that someone has 'fixed' a query that returns duplicate rows in a naive way. This (mis-)use is probably more common among those with relatively little database experience. That said, some people (Chris Date, for example) argue that [CODE] should be the default qualifier for [CODE] ; we...
5
14
3,165
2016-05-27T05:42:58.317
warehouse_errors
dba.stackexchange.com
1,119,477
Cloudflare API token permission to edit terraform cloudflare_list resource
Recently I had an API Token that allowed me to access Terraform [CODE] and [CODE] resources. That token expired, and to my surprise, it vanished from the UI, so I cannot see the configuration that was working before. I managed to figure out that I need [CODE] for [CODE] . But I still don't know what is needed for [CODE...
For [CODE] , it depends on: single : [CODE] bulk : [CODE] and [CODE]
0
3
1,027
2023-01-04T22:31:29.430
pipeline_ops
serverfault.com
426,537
How to increase confidence in changes without a great test suite?
I've worked on a few codebases without a great automated test suite, where changes that concern the whole platform have to be thoroughly tested by developers and there would be a high risk that a degradation is introduced with each release. How do you prevent this from happening? The less than perfect answers from my e...
Tests prevent regressions. There are other tools which would prevent regressions, but unfortunately they are either less effective (example: code reviews), or extremely expensive (example: formal proofs), which leaves us with tests as the best option. So you find yourself in front of a codebase which should be tested, ...
2
6
140
2021-05-19T18:19:52.833
api_errors
softwareengineering.stackexchange.com
956,806
regular nmap scan flaky; hosts are missing sometimes
I'm using nmap 7.6 to scan my local wired network every minute. The problem is that the scan results are flaky: Sometimes hosts are missing in the result, although they are definitively available (e.g. the router that I use to get into this network). A minute later, the same scan finds the machine again. My nmap comman...
nmap seems to have a bug that I stumbled over: https://github.com/nmap/nmap/issues/92
0
0
743
2019-03-05T09:39:36.100
infrastructure
serverfault.com
1,031,891
Redis service hangs with systemctl and Type=notify
I have followed this answer: https://serverfault.com/a/893075/210494 . I have CentOS 7.8. redis.service [CODE] redis-master.conf [CODE] When I run this service, the Redis process starts but the [CODE] hangs and I have to press Ctrl-C to get back to shell. This is in the logs: [CODE] If I comment out [CODE] , then syste...
Ok, the problem was that [CODE] support is not compiled by default. You need to compile it explicitelly. I will write a PR to update README.md in sources because this is not explained. This commit is responsible for this behaviour. I found it in this issue: https://github.com/redis/redis/issues/7217 [CODE]
4
11
9,649
2020-08-28T15:42:54.750
database_errors
serverfault.com
214,375
Postgresql small index for row contains query
I want to store several hundreds of gigabytes of geodata in a postgresql database. I want to query the data on position, time and/or a unique identifier for each object. My table layout is similar to this: [CODE] BRIN indexes on [CODE] and [CODE] perfectly serve the needs, since they speed up the queries with relativel...
Since seems like each value of [CODE] has many occurences in the table. Given that, you can use a GIN index with its compressed posting lists to save space. Usually GIN indexes are used with array types or their equivalents, but you can use the [CODE] extension to get access to GIN indexes with a scalar type. However, ...
0
1
44
2018-08-08T09:49:48.070
database_errors
dba.stackexchange.com
1,118,163
NGINX: localhost redirecting to _
nginx version/1.18.0 (Ubuntu) — Ubuntu 22.04.01 LTS x86_64 kernel 6.0.8 I've got a server (install specs above) that has multiple host names, is running nginx, and everything is working (including nginx, with redirects from http: to https:). In fact, here's how I'm doing that in my default server: [CODE] Here's the str...
There was no information on the question what client was used to make the request. As written in nginx documentation , [CODE] variable contains: in this order of precedence: host name from the request line, or host name from the “Host” request header field, or the server name matching a request Here, "request line" mea...
1
1
578
2022-12-16T02:53:55.833
infrastructure
serverfault.com
246,677
Inserting with implicit type conversion causes warning for cardinality estimates
I noticed this while doing some performance testing recently. When I insert a value into a column that will require an implicit conversion (e.g. [CODE] into [CODE] ), I get a warning: Type conversion in expression [CODE] may affect "Cardinality Estimate" in query plan choice. Being a concerned citizen, I checked all of...
Like other execution plan warnings, this one is informational. If your query performed slowly, or you noticed that cardinality estimates were incorrect, the warning would give you information about where to look for a possible cause. As a purely practical matter, that is pretty much the end of it. The precise condition...
8
10
1,213
2019-08-30T19:58:23.933
data_quality
dba.stackexchange.com
1,148,338
How do I setup Postfix to discard email sent to an alias in a MySQL virtual alias table?
I'm trying to setup Postfix to discard mail when there is an alias record in the MySQL address that forwards the mail to user [CODE] . All mail that is sent to [CODE] should be black-holed. Instead, when a database record is set to forward an address to [CODE] , I get the message forwarded to me at my personal email [C...
In the virtual aliases table, make the alias [CODE] , ie: [CODE] If you just use [CODE] it will resolve to [CODE] which will forward to the wrong place or fail. Also, make sure that the [CODE] daemon is enabled in [CODE] and that [CODE] is in the list of local destinations: [CODE]
0
0
93
2023-11-21T23:45:46.587
database_errors
serverfault.com
1,089,663
TCP DUP ACK/Out-of-Order/Previous segment not captured/Retransmission flooded on wireshark logs
Due to slow network, I installed wireshark on the device(laptop) to find this This is a log of the device using internet(Downloading a file),as you can see at the right end of the screenshot, the whole log is full of these TCP DUP ACK/Out-of-Order/Previous segment not captured/Retransmission /Fast restransmission/Spuri...
Could this be in any way a possibility that the device is being targeted by hackers? Almost certainly not. Retransmissions and out of order packets are the result of congestion or other packet loss between your computer and the remote end. It could be something on your network, or something on the Internet, or both. Th...
0
2
12,449
2022-01-11T12:41:29.303
infrastructure
serverfault.com
129,874
Fully FOSS EMail solution
I am looking at various FOSS options to build a robust EMail solution for a government funded university. Commercial options are to be chosen only in the worst case scenario. Here are the requirements: Approx 1000-1500 users - Postfix or Exim? (Sendmail is out;-)) Mailing lists for different groups/Need web based archi...
You're best off sticking to "standards" as much as possible, in my eyes that means; MTA: Postfix IMAP: dovecot Auth/routing/etc: OpenLDAP Mailing lists: mailman Spam/virus: amavis + clamav + $commercial_scanner + SpamAssassin Webmail: Squirrelmail is probably your best option. You could try Roundcube. Calendaring: just...
6
4
1,305
2010-04-06T19:11:20.473
hadoop_errors
serverfault.com
447,653
Does SSL also encrypt the DNS address?
If I make an HTTP request to: [CODE] will the connection also encrypt the domain address ( [CODE] ) ? So that sniffing the traffic still makes it impossible to guess what the requested DNS address is. Note: I'm talking about the DNS address, not the resolved IP address.
No. In order for the web browser to determine the IP address of some host, say [CODE] , it must look that up in the DNS, and that separate connection is not encrypted. SSL/TLS, therefore, does not completely protect against malicious ISPs. Such an attacker can still determine which site the web browser wants to access,...
7
12
6,295
2012-11-11T22:34:04.547
infrastructure
serverfault.com
497,051
git-http-backend, ro for all, write requiring password? (with lighttpd)
I'd like to offer up read-only access to my GIT repos for everyone (i.e. no username/password required), but require authentication for writing. The [CODE] man page suggests this is possible by matching against the location [CODE] . For Apache 2.x it'd look like this: [CODE] Now, I'm using lighttpd, but translating the...
I found a working configuration with the help of the people on the git mailing list: http://www.spinics.net/lists/git/msg203744.html
0
0
785
2013-04-07T18:13:42.633
api_errors
serverfault.com
647,172
nginx and SSL redirect
I have a nginx server which I use as a proxy. I want to have all requests forwarded as normal http requests, expect request to api.mydomain.org, those request I want to run with ssl/https. This works fine with the following: [CODE] However, this will redirect all request to subdomains which are not specifically specifi...
Add a default server block that will catch unknown Host headers and deny connecting to them. [CODE] You may want to add your public IP address(es) to your [CODE] directive in your first block to accept connections using HTTP/1.0 or HTTP/1.1 with the IP address.
2
1
188
2014-11-26T09:34:19.017
infrastructure
serverfault.com
142,801
(13) Permission denied on Apache CGI attempt
I have recently upgraded my Apache2 server, and am now unable to run a CGI app. My logs are showing (13) Permission denied unable to connect to cgi deamon after multiple tries I understand that the error message means Apache is being denied some permission to some file, and I'm stumped as to how to track down and solve...
may or may not work, seems highly unlikely, but someone had a similar problem, and this was the solution; [CODE] or whatever the directory for apache's logs is, on your server. http://www.mail-archive.com/apache-fp@lists.joshie.com/msg00585.html
6
3
15,859
2010-05-18T00:38:49.387
infrastructure
serverfault.com
734,135
Unable to access shared folder using hostname
I'm currently having issues accessing shared folders on a Windows Server. The Architecture: Flat standalone network with 2 Windows Servers (2008 R2 SP1) and 2 Windows Clients (Windows 7 SP1 64bit). All machines are configured with a static IP address, configured in a single workgroup (i.e. no DC). Each machine is confi...
So, to sum up: Problems like this are frequently caused by inconsistent name resolution. When accessing file shares, try to use real host names as they are configured in the System Properties dialog, and not any kind of alias. If having troubles, try accessing the share by the IP address of the server. If still unsucce...
3
0
22,316
2015-11-05T12:32:27.947
infrastructure
serverfault.com
956,872
Network connected devices not visible from a workstation solved - but why?
The problem was that devices on the network were not visible in Windows Explorer's Network folder. The devices were accessible using Remote Desktop Connection, and in many cases, the devices could be contacted within Windows Explorer by simply typing their network address into the address bar. But eventually even that ...
It could of been many things, I'll list a few that come to mind. *Services needed to be enabled/restarted on your local workstation. *The ARP tabled needed to be flushed. *DNS Cache needed to be flushed on your workstation, and on any caching server. *The WINS database might of had to be reset or, the cache cleared. *A...
0
1
43
2019-03-05T17:12:22.467
database_errors
serverfault.com
157,795
Even data distribution on hadoop/hive
I am trying a small hadoop setup (for experimentation) with just 2 machines. I am loading about 13GB of data, a table of around 39 million rows, with a replication factor of 1 using Hive. My problem is hadoop always stores all this data on a single datanode. Only if I change the dfs_replication fatcor to 2 using setrep...
There are a few things about hadoop that may help you: a) the first copy of a block is always written to the local node for processes running inside the cluster. Additional replicas are made elsewhere. b) hadoop is designed for lots of nodes. That is why the default replication is 3. With small clusters, there are lots...
1
1
448
2010-07-06T11:41:27.270
database_errors
serverfault.com
804,040
Getting 'File Not Found' on Wordpress Page
I created a new Wordpress page, I can't access it in the browser and my Apache error log shows: [CODE] Here is Aapche.conf [CODE] and this is .htaccess inside the theme: [CODE] What is the cause of this? Thank you!
Chaning .htaccess inside Wordpress to this solved the problem [CODE]
1
1
10,754
2016-09-19T17:01:00.993
infrastructure
serverfault.com
125,286
Error: 18456, Severity: 14, State: 5; SSMS > Network sever from PC
I just completed my first install of SQL as a server based, Enterprise Edition. I wanted to check it out using SSMS on PC using my Admin Access. But could not connect. For security reasons my admin account and my Network ID on my PC are different, so I knew I would not be able to use 'windows authentication', but I tri...
My team lead, pointed out the issue. As I could not find the issue/solution here, posting it for others. I knew I could not use windows authentication, so I was trying to use SQL Server Authentication, this was the problem. To access SSMS as a different user - When opening SSMS from your PC; Shift + right click > ‘Run ...
2
2
6,231
2016-01-05T17:38:48.840
api_errors
dba.stackexchange.com
494,910
Can ping google.com, but can't ping cnn.com
I have just upgraded from 10.04 to 12.04. I didn't notice the problem at first. But when installing horde with the pear installer it failed to download all of the packages. So I did a little hunting and realised not all hosts are reachable: Ping google.com [CODE] Ping cnn.com [CODE] At first I could not reach any hosts...
That's because CNN blocks ICMP-Echo-Request packets and Google doesn't, which makes ping not work. Ping is no longer a reliable reachability test for Internet hosts due to the number of firewalls that block all ICMP traffic as a risk-vector.
0
4
1,068
2013-03-31T11:49:58.310
infrastructure
serverfault.com