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
435,758
Does 'ssh <remote> -t <command>' has a timeout? killed by Signal 15
I want to run a job on remote server with no login. I found that I can run my job using ssh as: [CODE] However, the job would be killed by Signal 15 after a while. Does SSH force some timeout? NOTE: My jobs takes a few hours to be completed.
If I may suggest using screen [CODE] This will start screened top process with session name 'ServerFault' . Later on you can simply re-attach this on remotenode using [CODE]
1
3
1,287
2012-10-07T21:42:19.350
infrastructure
serverfault.com
330,934
Got an error when trying to get ER-diagram on SQL Server
We are using Microsoft SQL Server 2016 Management Studio (version 13.0.16106.4) connecting to an instance of SQL Server 2016 running on Windows 2016. The authentication is "SQL Server Authentication" and the username has admin permissions. When we try to get the ER-diagram of a database, by right clicking "Databases > ...
Windows error code 0x534 indicates an invalid SID, likely an invalid database owner. Change the database owner to a valid login to keep the SSMS diagram tool happy: [CODE]
0
2
141
2023-09-05T23:25:18.213
database_errors
dba.stackexchange.com
390,947
ERROR: function make_standard_name(unknown) does not exist while installing OSM-nominatim API
I am installing nominatim on my own server using the guidence of http://wiki.openstreetmap.org/wiki/Nominatim/Installation ... But I am facing problem while adding country phrases / codes to my pgsql DB. I am doing this with following command as given in above link: [CODE] But, I am getting following error: [CODE] I do...
The function make_standard_name(text) is added to the database by the proceeding step in the install process: http://wiki.openstreetmap.org/wiki/Nominatim/Installation#Import_and_index_OSM_data If this function is missing then either that step was missed or an error occurred during that step. You will need to run it su...
0
0
256
2012-05-21T07:17:11.007
infrastructure
serverfault.com
137,744
Shared memory error while connecting to Oracle
I get this error message each time I try to connect to my Oracle XE local database under Ubuntu 15.10 : [CODE] I have read on some forums that i have to delete my /dev/shm repository : [CODE] I tried actually to do that but it seems that [CODE] is used by several processors including my firefox navigator. Any help will...
Looks like there are some hoops with fire you need to jump thru for installing Oracle XE on Ubuntu. You may want to try following the article here: http://meandmyubuntulinux.blogspot.com/2012/05/installing-oracle-11g-r2-express.html Oracle is very finicky when it comes to installing on particular OS's. It's very specif...
0
1
438
2016-05-05T19:09:13.813
database_errors
dba.stackexchange.com
404,344
An older, experienced contractor used an SQLite DB for various queues - am I, a young dev, justified with feeling uncomfortable with it?
Context: I'm an embedded dev with only 2 years of solid experience. I'm the sole technical employee of a startup of 4 people. We have an MVP of our product out and are getting ready to develop the next iteration of it. The original MVP was developed by a partnered contractor team, with one older embedded dev doing ever...
Your first problem is that you think of the design as "wrong." That's really not the right way to consider things. Rather, different designs make different design trade-offs. Any design has pros and cons that have weighed against each other. If there is a problem with the design it's not that is "wrong" but rather that...
10
27
4,578
2020-01-27T17:10:13.357
data_quality
softwareengineering.stackexchange.com
676,216
Time problems in a Windows domain
I need some help getting NTP set up correctly on our Windows domain. We have 2 physical servers: Physical Server 1 Domain Controller (DC1) Physical Server 2 (Hyper-V Host) Data 1 (also a Domain Controller), Exchange1 I have connected to each server and run the [CODE] command and below is the output. The reason for doin...
By default, Member Servers and Clients should use NTDS as their time source. As mentioned above, this is provided by a thread of the PDC Emulator's AD-DS role. The PDC Emulator should sync to at least two - preferably three - reliable time sources (RTSs). I say two, as it's possible for the PDC Emulator to drop its own...
1
1
464
2015-03-17T18:33:00.333
infrastructure
serverfault.com
234,260
configure Bind to have a custom domain on tumblr
I got a server that have inherited and use Plesk to configure a bunch of stuff. I would like to use a custom domain on Tumblr and for that I need to create a A rule in bind. So far my attempts have failed. I have a master zone define in named.conf as follow: [CODE] and the zone is defined like that: [CODE] I have the m...
May I suggest using this free online tool to help you debug where the problem is. http://www.howismydns.com/tools.php In bind9 you could use names or IP addresses to define DNS entries and you can use * wild-card as well so, I can't see the problem in this zone configuration.
0
1
369
2011-02-11T07:51:05.957
infrastructure
serverfault.com
153,383
How to avoid server crash during backup of dabase using a crontab
I'm on shared hosting, so I want to avoid using too much system resources. I have a crontab that schedules a MySQL database backup. The database is about 2gb before compression. When that crontab runs, the system seems to crash, because the http server stops for a minute or 2. Is there anything that I can add or edit t...
Try using the -q option of mysqldump to see if it could help. Otherwise, try using multiple mysqldumps specifying individual tables.
0
0
203
2016-10-26T10:32:27.987
database_errors
dba.stackexchange.com
1,095,672
export new env params without outputting to terminal
I'm trying to run a script and bash export is outputting text when I don't want it to because it's breaking up the output. I need to run a script which extracts some information and then inserts it into the next commands environment, kind of like acquiring the AWS secrets for the awscli and transparently passing them i...
[Expanded from comments:] The [CODE] command was sending its output to standard error (stderr) rather than standard output (stdout), and [CODE] only captures stdout. There are basically two ways to fix this: The better option is to fix [CODE] so it sends the variable values to stdout rather than stderr. If that's not p...
0
1
279
2022-03-08T17:22:13.417
infrastructure
serverfault.com
275,876
MySql: does max_user_connection concern SUPER user?
On MySql 5.7 I've setup variable [CODE] . I have several users, their number of simultaneous connections is effectively limited. Now I have created a brand new user with [CODE] privilege. Is this user's connection is concerned by the [CODE] variable too ? Thanks Edit: I know the max_user_connection documentation, but t...
No, it the limit counts for every connection independent of which kind of user connects This limits the number of simultaneous connections that can be made by any given account See manual
2
3
108
2020-09-22T10:46:09.753
database_errors
dba.stackexchange.com
987,504
openfortivpn kills my routes
I am trying to use openfortivpn to connect. Previously I had been using the Fortinet VPN client on MS-Windows - I now get blue screens every time I try to start it (I am downloading the upgraded version, but want to configure this on Linux for other reasons). The infrastructure I am connecting to has a lot of sub-nets,...
It turns out it will be possible to automatically do that trick using an ip-up script, I'm still trying to make it work. And here is the answer : You can create an "ip-up" file and use --pppd-ipparam for routing: Just add the following file into your [CODE] : -you can call it whatever you want- [CODE] Here, [CODE] shou...
1
3
2,705
2019-10-10T14:02:48.203
infrastructure
serverfault.com
509,501
How to get notified of mdadm RAID problems?
I am running Ubuntu 12.04 LTS. Yesterday I found a message in my mailbox saying that my server was shut down. I proceeded to reboot the system, but it didn't come up after many minutes, and I didn't have a hardware KVM system to see what the kernel was printing to the terminal. So I rebooted the system to a Linux rescu...
What could cause the disks to suddenly become out of sync? It could be any hardware or software fault in the path between the drive platters and the data in memory. Which could mean, but is not limited to: drive head, drive controller, connecting head on the cable, the cable itself (internal wire break), the port the c...
7
2
7,789
2013-05-21T09:39:18.890
infrastructure
serverfault.com
38,225
What to do when coding begins to feel boring, like it is all just more of the same?
I started programming at the age of 6 on a Commodore 64. Now I'm 28, and I have to complete 4 courses from a first degree in Computer Science. I'm starting to get bored with writing code after all these years. I've taken a course in Computer Science in theoretical computer languages and 10 years of C system coding in n...
That was bound to happen. If your primary interest lies with code, it will drive you crazy, frustrated and depressed once in a while, some day permanently. Get interested in developing products and enjoy seeing people use them. That's the ultimate goal of writing the code, right? Code is merely a tool to get something ...
37
51
30,153
2011-01-19T18:22:10.600
database_errors
softwareengineering.stackexchange.com
311,305
Bidirectional real-time sync of large file tree between two distant linux servers
By large file tree I mean about 200k files, and growing all the time. A relatively small number of files are being changed in any given hour though. By bidirectional I mean that changes may occur on either server and need to be pushed to the other, so rsync doesn't seem appropriate. By distant I mean that the servers a...
DRBD in Dual-primary mode with a Proxy is an option.
24
5
10,470
2011-09-14T13:43:33.923
infrastructure
serverfault.com
929,467
Seemingly valid SRS-processed message is being rejected by gmail servers
I have a virtual private server with its own IP and have configured SPF, DKIM, DMARC, SRS (with [CODE] ) and all that jazz. Let's call it [CODE] . Most things are working, mail is being delivered to gmail --to the spam folder, because the IP doesn't yet have any reputation, but that should improve over time. However, w...
The key information is currently not available in the headers you've specified. The DMARC result is based on the 'From' header of the message. What is the value of that header in this example message? DMARC required alignment on the 'From:' header and either SPF or DKIM. I don't see and DKIM headers, but based on the '...
1
0
301
2018-09-04T22:11:37.273
infrastructure
serverfault.com
788,963
Netcat works but SSH does not
I'm trying to connect to my ssh server. When I do I get the usual error: [CODE] But when I run [CODE] I get: [CODE] I'm not sure what the next step of how to troubleshoot this would be. Any thoughts?
You do not show what command you are using to connect via SSH It looks like you did this [CODE] The syntax would be [CODE] Example [CODE] Though, port 22 is the default SSH port and you should not need to specify it at all.
0
2
2,172
2016-07-10T00:43:23.707
infrastructure
serverfault.com
695,557
nginx: No client certificate CA names sent
I have nginx and want it to verify client certificates. So I bought commercial certificate for server, and non-commercial for clients. Basically I've generated client certificates with easy-rsa scripts. Connecting with client certificates validation disabled works as expected. Connecting with "ssl_verify_client on;" fa...
The reason was an error in nginx configuration, SSL options were specified twice.
8
5
9,237
2015-05-30T20:59:43.420
data_quality
serverfault.com
298,357
What database & design would you use for legos
I'm trying to conceptualize an interesting problem I am designing for. Using lego's (the plastic construction toys) as an analogy seems to work well. If this is a fairly recognizable problem, then I'd appreciate any reference to related information. Given the scenario details below, what database would you choose, i.e....
A standard RDBMS could easily handle this problem. You have a defined schema, a simple one at that, which deals with common industry problems such as Inventory and Production. Having worked at an engineering and manufacturing company, all of our systems (even third party that we utilized) were on RDBMS, generally Micro...
0
2
124
2021-08-21T02:16:01.747
data_quality
dba.stackexchange.com
394,112
CloudFront cache limit
Say I am serving 3 million requests of static and dynamic images per month from an EC2 machine (origin), and each image is about 15 KB, and my guess is that the approximate amount stored in the CloudFront cache will be about 15 GB of images, since 50% of the image requests are frequently repeated. Using the AWS calcula...
CloudFront will only keep data in its cache if it's "paying its way" through transfers. There is no specific fee for using cache. If your traffic is as low as you expect though, it's unlikely that as much information as you expect will remain in cache. This basically means you won't see as little traffic to your own se...
0
1
822
2012-05-30T19:45:31.957
infrastructure
serverfault.com
275,907
Why does our MySQL server become non-responsive with the processlist showing tons of processes waiting in STATE=init, INFO=commit?
I work for a company that's been around for a while and has a large MySQL (5.6.48) monolith running in RDS. Recently, the database has starting going unresponsive for 10-30 minutes at a time during peak traffic time. This often happens 3 or 4 times throughout the peak traffic hours. During these unresponsive times, it ...
You are seeing the victims. Probably only a few of them are the villains. Look at "Time". A few 'system' processes may have very large times; look at the next couple -- they may be the ones that started the problem How big is [CODE] ? If it is more than a few dozen, it is inviting a log jam. When a lot of threds are ru...
2
0
944
2020-09-22T19:19:54.193
database_errors
dba.stackexchange.com
442,238
backing up a virtual machine
I inquired with the support of justcloud.com telling them that I have a vmware vm that I was wondering if it could be backed up while in use. I can back up the vm once it is shut down but I was wondering if their "shadow copy" would back it up while running. This was their response: Thank you for your email. I am reall...
Shopping/product recommendations are off-topic, but I will address the technical inaccuracy in the response that you got. A VMDK is a virtual disk, which is a container that contains all of the files in your VM. It is very possible to back this up, and all enterprise products support this. The way that it works is that...
3
6
441
2012-10-25T12:27:43.250
infrastructure
serverfault.com
35,137
How to test code, that depends on file system errors?
I am developing a lib for a Linux project that stores files using boost::serialization . Because the files might be very large (1-50 GiB) and the program might fail writing them at some point (we are talking about thousands of them) I want to use a simple backup system to recover the files if they are not valid. I have...
How would you test it manually? Then wonder can I automate this later? One scenario is that the disk it is writing to is unmounted for a short while, this probably result in some sort of error: Thread the test and in parallel unmount the file system on which the data gets written. This will result in a end-2-end test, ...
5
1
173
2018-08-08T17:15:59.957
database_errors
sqa.stackexchange.com
249,526
Table with Clustered Columnstore Index bigger than a Clustered Rowstore Index
We have a query that is doing an index scan on a 36 million row table that has a Clustered Columnstore Index. All the cost of the plan is pretty much on the index scan of this Clustered Columnstore index. I dropped the Clustered columnstore index and replaced it with a Clustered rowstore index, and created a non cluste...
Unfortunately, you destroyed all the evidence that could have lead to an answer when you got rid of the CCI. I'd suspect a lack of maintenance (rebuilds/reorgs) lead to uncompressed rowgroups, or lots of deleted rows leftover in them. One way to test this would be to create a second copy of the table with a CCI on it a...
0
2
315
2019-09-24T18:20:06.410
warehouse_errors
dba.stackexchange.com
282,118
Optimal Indexing Strategy
For the sake of discussion, please refer to the simplified structure of our ecommerce database below (running on MySQL 5.6 using InnoDB engine). At this point in time, the transactions and the transaction_items table stand at approx. 11.5MM and 15MM rows/each. These 2 are also the tables used the most (daily) for recor...
So tackling this in the simplest of ways, the common predicates I see across your example queries are [CODE] and [CODE] . So you should have an index composed of at least those two columns (and optimally in the order of most unique to least unique), so likely the first column in the index would be [CODE] and then the [...
-1
0
97
2020-12-24T19:16:06.200
database_errors
dba.stackexchange.com
260,912
Problem with RAID5 (mdadm) - disk detached
Having these lines in /var/log/syslog [CODE] Right now, i'm unable to do anything on /dev/sdc. Is there any way to try to re-attach it? I don't want to power-down the server unless absolutely necessary System: Debian Stable 2.6.32-5-amd64 mdadm version 3.1.4-1+8efb9d1 cat /proc/mdstat [CODE] mdadm --examine --scan [COD...
Try the following with the /proc filesystem: http://tldp.org/HOWTO/SCSI-2.4-HOWTO/mlproc.html
1
1
1,199
2011-04-18T14:17:37.323
infrastructure
serverfault.com
197,857
How to create a large sample database?
I have few sample databases but they are quite small in size. I want to create a database with records upto 50GB. I want to learn many aspects of the database and also want to test our application's performance against it. How to gather random data?
A number of sources on the internet allow you to download their content, and it often reaches into the 10's or 100's of GB. Two that I can think of off the top of my head are: Wikipedia ( http://en.wikipedia.org/wiki/Wikipedia:Database_download ) StackOverflow ( http://blog.stackoverflow.com/category/cc-wiki-dump/ ) Th...
0
1
5,942
2010-11-03T19:17:57.790
infrastructure
serverfault.com
335,344
Postgres list all roles with permission to execute a function
I would like to list my functions & stored procedures along with the roles that are able to execute them. I can get similar information on tables via [CODE] I would like the equivalent of this for functions & stored procedures. I am using Postgres v15. Thanks for your help
You'll have to query the system catalog [CODE] directly: [CODE] The query is taking into account that the default privileges are "execute for everybody".
0
0
19
2024-01-30T21:16:47.600
database_errors
dba.stackexchange.com
257,746
Is there a way to prevent variables from changing their type in Python?
It is useful to have the interpreter derive the type of a variable automatically. This on its own is similar to the [CODE] keyword in C++11. However, in Python variables can change their type after being declared for the first time. This potentially can cause a lot of errors. I haven't seen any reasonable use case for ...
A Python variable is not like a C variable, which is to say it is not a box with data inside it. A Python variable is more like a sticky note that has been stuck on a box with data inside it. The type of the box's data rarely changes, but the sticky note can be passed from box to box to box. So, the type isn't really c...
2
3
4,250
2014-10-01T11:47:43.010
api_errors
softwareengineering.stackexchange.com
1,030,525
Can all docker volumes be into a partition and would it be good for backup -cloning- purposes? (ex:/var/lib/docker/volumes/ in /dev/sdb1 @fstab)
I'm thinking of migrating all our documents and spreadsheets infrastrucure from and old standalone samba server to one of those popular self-hosted solutions and I'm trying to do the best long-lasting error prone easy (re)install. I've made it easy to do the first installation with own docker-compose file based on exam...
Is using Volume mounts mandatory? If not you should check Bind mounts. Simply take the file system from Server A, copy it to Server B and mount it as Bind mount. On the positive side the migration effort is minimal and you have the possibility to store it wherever you want on the server. No need to store it in /var/lib...
0
0
422
2020-08-18T02:02:50.017
database_errors
serverfault.com
932,367
Redirect links to sub location with nginx
I am having a problem with trying to serve two different sites using the same server. I have a landing page at the root of timothylim.is and a separate blog at timothylim.is/writing . I have the following nginx configuration with two different locations: [CODE] However, when any of the links are clicked on the '/writin...
The problem here is that the software running in [CODE] location generates wrong URLs for your resources. If possible, you need to change the "base URL" or similar setting in your [CODE] location software to be [CODE] . This way the software will generate working URLs on your pages.
0
0
560
2018-09-24T13:25:57.673
infrastructure
serverfault.com
915,332
Can I add custom attributes to Active Directory schema using PowerShell only?
I have a Windows Server 2016 Standard with no desktop experience installed. I want to expand the Active Directory schema with custom attributes. I can do it on a desktop environment using MMC without issues. Can I do it using PowerShell only?
try to look this: http://www.rebeladmin.com/2017/11/step-step-guide-create-custom-active-directory-attributes/ should be what you need.
0
0
1,247
2018-06-05T19:48:00.687
infrastructure
serverfault.com
998,033
iptables v1.6.1: ! not allowed with multiple source or destination IP addresses
I have a docker elastic search cluster running on Ubuntu, since docker writes directly to iptables and by default allows connections from any ip address I am trying to add rules to the iptables to only allow connections from 2x specific ip addresses. [CODE] When I run this command I get the following error: [CODE] Any ...
You can split the rule into a [CODE] (or [CODE] if you prefer) rule and a [CODE] rule: [CODE]
3
4
4,549
2020-01-07T23:13:02.177
pipeline_ops
serverfault.com
60,033
Bad ARP Cache static entries
I have a weird issue that popped up on our network. Once or twice a week a user (it's always a different user) would complain about not being able to communicate to our Small Business Server 2003 that handles Exchange, DNS and file sharing, essentially cutting the machine off from any sort of network communication. Whe...
Try to identify if the MAC address belongs to any equipment on your network. You can lookup vendor addresses here . Do you have a wireless access point on your network, is it secured? look for the MAC addresses of any connected devices. You can normally view these from the access point. Do you have any virtual machines...
1
4
3,338
2009-08-28T15:22:49.947
infrastructure
serverfault.com
25,232
How best to validate functionality using the console log?
Please focus on the area highlighted in red. As shown, when I try to do a search by typing "7396198", the [CODE] never disappears, so search is not working. I can do an assertion for whether [CODE] text is present and validate the search functionality. But as shown in the screenshot, the console log indicates that ther...
It is possible to read the logs with Selenium in C# : [CODE] Still I am not sure I would parse them, except maybe looking they are empty. Test behavior not the implementation, the implementation will probably change more often then the behavior. You do not want to change tests when the implementation changes.
1
1
1,108
2017-02-01T06:36:53.903
data_quality
sqa.stackexchange.com
281,631
Handling the foreign keys in data entry
I have two tables (Order and equipment) and they should be linked together by the order No. the SQL script is as the following: [CODE] by checking the 'equipment' table, it includes 'Order_No.' as a foreign key from the 'Order' table in addition to other foreign keys from other different tables. I entered the data of o...
Foreign Keys don't automatically generate in the child referenced tables unless you use the CASCADE specifier in the declaration of the foreign key. See Why foreign key doesn't update? for more information on how to use CASCADE with foreign keys and alternative solutions.
0
0
114
2020-12-15T22:14:07.023
warehouse_errors
dba.stackexchange.com
7,060
SQL Server 2008 R2 "Ghost Memory"?
We have a dedicated SQL Server 2008 R2 machine that is experiencing some strange memory issues.. The machine itself has plenty of resources including two quad-core processors, 16gb of RAM and 64bit Windows Server 2008 R2 Enterprise (it is a Dell PowerEdge 2950). The strange problem is that the system is reporting 82% o...
You won't get a true picture of memory usage from Task Manager if the account the service is running under has the lock pages in memory privilege (edit: as per Mark Rasmussen's comment/link). To determine how much memory is being used you can look at: SQLServer:Memory Manager\Total Server Memory perfmon counter DMVs I ...
12
15
10,456
2011-10-21T13:26:13.407
database_errors
dba.stackexchange.com
27,332
How to take ownership of files from the command line?
Every so often I run into a file that I need to take ownership of. I normally use [CODE] for changing ntfs permissions, but it doesn't seem to do ownership. Under *nix I would run something like [CODE] . Is there a windows equivalent to [CODE] ?
subinacl is a Windows sysadmin's power tool for doing everything to do with ownership and ACLs. You can change the ownership to anyone other than just you ( you can't do this with the GUI ). [CODE] This lets you set the permission to any user you like, without having to be an administrator (as I believe takeown.exe req...
38
25
179,788
2009-06-17T14:55:56.680
infrastructure
serverfault.com
569,258
Can't connect to SVN with tortoise svn
I have a server with SVN installed Lately, I installed a new router in the office (D-Link) and ever since then - I can't connect to the SVN remotely using tortoise SVN (connecting the server directly to the internet solves the issue) The weird thing is that when the server is connected through the router I can access t...
You confirmed you could access to the SVN server as [CODE] ; can you also confirm your local repo has the same URL? This is because you wrote you used port-forwarding, which implies that the SVN URL in your existing local repo might be different from the "current" SVN URL [CODE] . If that doesn't help, you can try rese...
0
0
22,980
2014-01-23T06:40:06.867
infrastructure
serverfault.com
179,445
How do you relay HTTP Port 80 Connections to Tomcat Port 8080?
I am working with a CentOS VPS and would like to achieve this without running tomcat as root.
you have two options: Put an apache or other webserver in front of the tomcat server and pass the requests to the tomcat. This post shows how. Using iptables redirects. Nearly the same question is discussed here
-2
1
1,205
2010-09-09T07:48:11.870
infrastructure
serverfault.com
1,081,385
Cabling for SAS controller and SuperMicro BPN-SAS-825TQ
I´ve managed to get one of the SuperMicro low-end server to my lab. It is chassis 825TQ-R740LPB with a BPN-SAS-825TQ backplane. The specification document is saying, that this backplane is SAS compatible. But the server has a motherboard with only a SATA controller. All 8 SATA ports from the motherboard are connected t...
HP P410 has mini-SAS (SFF-8087) connectors, so you can use Supermicro CBL-0097L-02 or CBL-0176L-02, or any other SFF-8087->4x SATA cable except crossover ones.
0
1
396
2021-10-22T10:30:46.127
infrastructure
serverfault.com
617,765
Monitoring solution that doesn't duplicate source data?
I need to analyze data stored in multiple databases. Each of them contains a few TB of logs and sensor data. If I use Splunk or ElasticSearch/Kibana, I see 2 solutions: Batch import everything Write some scripts to import only the data I need, on demand This is not optimal because with 1. I duplicate TB of data, and wi...
To be able to search you data quickly i advice Elasticsearch Depending on what the logic behind relevant data should be you can use ElasticSearch Rivers http://www.elasticsearch.org/guide/en/elasticsearch/rivers/current/ This allows Elastic search to pull all (relevant) data. My experience says the TB of data you have ...
0
0
273
2014-08-04T12:44:13.673
bi_errors
serverfault.com
224,209
Temp tables not being created in SQL Server Azure
I have created a stored procedure that creates multiple temp tables for use in the sproc and then drops them at the end of the sproc. The problem I am encountering is I can execute the stored procedure just fine in management studio, but when I attempt to create an SSIS data flow that retrieves the rows returned by the...
To do this you will need to use global temp tables, i.e. [CODE] . Additionally, the [CODE] property will need to be set to [CODE] for the the parent container of all the objects involved. This will keep all of the SSIS components in the same transaction. Within the container, the tasks can use use the same [CODE] level...
0
1
224
2018-12-05T14:48:39.780
database_errors
dba.stackexchange.com
1,028,447
Why is the Linux kernel such an important/popular thing? Are there must-know things about it for day-to-day work?
DISCLAIMER: I have been a Windows guy for as long as I can remember, but I now slowly moving to Linux, Docker and Kubernetes (oh, boy!). On Windows I developed and administered commercial applications and seen large-scale solutions. I have never explicitly gone out of the OS user mode/space and into anything from the k...
It depends on what you are doing. With things like Docker and Kubernetes, you are creating environments for other applications to run in, so these are a bit tighter integrated into the kernel than regular applications that do things on their own and just use a few system functions. You would also touch lower-level subs...
0
2
48
2020-07-31T13:36:20.040
database_errors
serverfault.com
22,940
Reason to not use nullable number in Oracle?
Our company is interfacing with another software company for a joint project, and we were told that, if a particular value should not be displayed, we should pass in a -5000 (their arbitrary sentinel value); the reason is that no number column in their Oracle database supports null values, on the recommendation of thei...
Realistically, the requirement is crazy. Like all great crazy ideas, however, it is probably based on a nugget of potential reasonableness taken far out of context by people that have no understanding of the underlying rationale. It can be reasonable to design a database schema such that no [CODE] values are allowed. I...
12
17
3,734
2012-08-22T19:14:30.947
data_quality
dba.stackexchange.com
227,991
ZFS + FreeBSD + virtualbox
I'm configuring a FreeBSD server hosting virtualbox serving half dozen mission critical busy mail servers. I just learned ZFS, I'm quite attracted, but have a few questions: what is the CPU overhead of ZFS? I googled and found little (or no) benchmark for that. from what I learned, when ZFS updates files, it keeps the ...
I'll address #3 here. I don't think VirtualBox+FreeBSD+ZFS is the best solution for what you're proposing (based on your usage of "mission critical" and "busy"). What do you hope to accomplish by using ZFS? It's a great filesystem and I'm definitely an advocate, but what value does it add in this case? Snapshots? Check...
3
4
3,781
2011-01-28T07:40:25.893
infrastructure
serverfault.com
969,115
Jenkins slave unable to clone from Gitlab
I have an autoscaling Jenkins cluster on AWS, which spawns & runs agents via JNLP. Both Master & Slaves run on Ubuntu. I don't quite understand where Jenkins actually stores the SSH keys for Gitlab, or if/how the slaves are expected to use it. Whenever I run a Jenkins job on my slaves, I get the following: [CODE] I can...
My guess is that your ssh key is not added in your github account or Jenkins slave process runs with a different user than the one you used to run git from command line. If that is the case - you'll need to add ssh key to your github accouunt or need to approve the initial host key verification for that user before you...
1
1
3,927
2019-05-28T11:15:41.587
pipeline_ops
serverfault.com
514,104
Chef Server vs Chef Solo
I'm putting together a structure to run a Rails application. The application itself runs on Heroku. However, it makes requests to a cluster, which performs the call through a program in C. To be able to recover from crashes faster, I want to create a routine using Chef. I managed to write a "cookbook" that installs eve...
This question seems subjective, but I'll try to approach this answer objectively. The Chef Server provides a publishing system and search index with a RESTful API. This means you can: Distribute cookbooks for nodes through a single location that has an API, and primitives for creating version constraints, retrieval, al...
8
13
4,825
2013-06-07T13:10:26.433
pipeline_ops
serverfault.com
351,763
NGINX on OSX - Performing terribly slow
I I've been trying to get NGINX up and running on my OSX 10.7 Lion computer. I have it running however simple html pages every few are taking a long time to load; for example: [CODE] Same thing happens with php: [CODE] If i hit refresh, it seems as it's almost rebuilding the entire page before it renders and creating s...
Start by stripping out all unnecessary configuration options. Get the setup to a bare-bones 'Im only serving HTML files' default configuration. Remove optimizations. Slowly start adding aspects back in a few at a time, restart your stack and test. If you're feeling ambitious, you can run [CODE] on a single server proce...
7
2
4,708
2012-01-20T04:26:17.293
infrastructure
serverfault.com
89,756
Extracting structured data from semi structured data
I want to use machine learning and NLP to convert semi-structured data in text files to structured data by predicting the patterns in the files and splitting the fields for example if I have a text file that looks like this : Input : [CODE] Desired Output : [CODE] The semi-structured files are not fixed-width so we can...
I am making the following assumptions: The first column of numbers is the first few digits/numbers in each line The last column of numbers is the last few digits/numbers in each line So, in the second column, texts like [CODE] should not have numbers in the front or end. So, [CODE] will be interpreted as [CODE] and NOT...
0
0
85
2021-02-22T17:34:51.230
data_quality
datascience.stackexchange.com
885,502
HDD on a S Type VM Azure
When you resize a VM to a series that only supports SSD you get the following warning You've chosen to use a standard disk on a size that supports premium disks. This could impact operating system performance and is not recommended. Consider using premium storage (SSD) instead. If the VM does not require SSD due to its...
If the VM does not require SSD due to its usage is this really something to worry about? In Azure, SSD have a high performance. If your VM does not require SSD, we can select to use HDD. As far as I know, nothing need to worry about, just need to consider IO.
0
1
98
2017-11-28T12:11:22.533
infrastructure
serverfault.com
843,946
Turn old computer into WAN accessible file server?
I need to create a file server (possibly smb?) out of an old computer I have. This essentially needs to be a network drive that can be accessed over WAN by a Mac. The server can be Windows, Linux, or Mac based. I know that SMB, NFS, and even sometimes AFP can be quite slow to access, but I don't know which one is best ...
You might try looking into the Nas4Free project: https://www.nas4free.org/
0
0
287
2017-04-11T16:43:48.493
infrastructure
serverfault.com
419,723
Request Entity Too Large error while uploading files of more than 128KB over SSL
We have a web portal setup on Java spring framework. It is running on an Apache Tomcat app server. Portal is served through Apache web server connected to Tomcat through JK connector. Entire portal is HTTPS enabled using 443 port of apache. Apache version is: Apache/2.4.2 (Unix) which is the latest stable version of Ap...
I managed to solve it by putting certain configuration in the Apache [CODE] file. Here is the sample configuration: [CODE] Earlier I was not giving correct configuration. The key is the exact URL location which is causing HTTP 413 error. In the location directive exact URL location needs to be given. [CODE] is the para...
7
19
38,307
2012-08-21T17:36:57.963
infrastructure
serverfault.com
948,987
zfs cache disk for the block device, any performance advantage?
I plan to create ZFS pool with cache option: [CODE] and then ZFS with -V (-V means block device will be created) [CODE] Question: ZFS cache device affects performance in case of creating block device? My OS: debian 9.5 Thanks in advance.
L2ARC works for both datasets and volumes. Truth to be tell, ZVOLs are little more that "hidden" files with some specific block abstraction - and they sit atop of the DMU (just as regular datasets with regular ZPL). That said, it is not possible to predict if and how much the additional L2ARC will benefit your workload...
1
0
176
2019-01-14T14:17:08.280
infrastructure
serverfault.com
1,112,038
Using a External VPS server to act as a firewall / proxy server for a locally hosted server
TL;DR I am trying to use one of my linode servers as firewall / proxy server for a locally hosted game server (using 28015 udp and 28082 tcp ) so that the ip of the locally hosted server is not exposed since I have other services running, I have used openvpn to forward all outgoing connections from the local server to ...
Update: I have solved the issue, took me a while and I had posted this question after over a month of working on this issue for way too many hours a day. Not sure what the exact issue was but the server did not like me forwarding the connections to the public ip of the local server. So I did some messing around and cha...
0
1
665
2022-10-01T17:02:04.820
infrastructure
serverfault.com
215,648
Virsh: Different XML with edit than dumpxml. Why?
I'm trying to fetch the VNC access data from a virtual machine managed by libVirt. However, when I run [CODE] , the vnc passwd is missing: [CODE] Checking the same using [CODE] , I see the password is actually there: [CODE] Why is this? Is this intentional (what reason?), or could this be a bug?
This is intentional; look for VIR_DOMAIN_XML_SECURE flag in libvirt sources.
0
1
518
2010-12-23T12:10:30.103
infrastructure
serverfault.com
1,406
Windows Server unable to synchronize NTP time reliably
Why does Windows Server (2008, in this case, but I've seen the same problem in 2003) seem to have problem synchronizing time? I've seen this error in my System log across a variety of servers: The time service has not synchronized the system time for 86400 seconds because none of the time service providers provided a u...
Jeff, I found this article . Might be of some help to you. You might have already read this but I thought it was worth a shot. HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags This registry entry controls whether the local computer is marked as a reliable time server (which is only possible if the pr...
42
20
44,011
2009-04-30T18:16:30.923
infrastructure
serverfault.com
974,350
HDD Datastore goes offline when VM Starts
I have a VMWare ESXI 6.7 host that has 2 VM's on it (pfSense and FreePBX). When I start the pfSense machine I get a lot of errors about iSCSI and the data storage within VMware goes offline. The box has 1 HDD connected via SATA to the MB (Avoton Board). When this happens I cannot browse the datastore. The only way I ca...
It can be both related to ESXi and Hard Disk health state. ESXi always records SMART of the disk, so check out the ESXi logs and submit a support request to VMware support
2
2
159
2019-07-08T09:55:12.250
infrastructure
serverfault.com
853,019
Ansible Just Hangs
I had everything for the most part working the way I wanted. And then, I have not clue how this happened; none of my Ansible playbooks will connect to remote systems (It Just Hangs). I can SSH into them fine from command line, with any account. Below is a Ansible Ping test. My localhost is fine, and playbooks will exec...
I fixed it, known_hosts had an issue. I remove the 10.6.16.106, ssh-keygen -R 10.6.16.106 and , ran ansible ping, it added it back in , and it worked.
2
4
6,424
2017-05-30T12:49:59.910
pipeline_ops
serverfault.com
95,479
How to recreate missing Team Foundation Server database?
I've been trying out TFS 2010 Beta 2 on my local machine, or at least, had installed ready to do so. I had some issues with my MSSQL2008 server so I completely uninstalled and re-installed it and that sorted it. However, I'm now in limbo with TFS. I have the software installed, but it has none of the SQL databases inst...
Unless you have a SQL backup (or the MDF and LDF files) I think you will need to re-install. http://social.msdn.microsoft.com/Forums/en-US/tfsprerelease/thread/2836afce-2075-4f0d-b50c-dca8c1add929
0
2
1,230
2009-12-17T21:21:23.283
infrastructure
serverfault.com
108,575
WMI Notfication and database mirroring
Hi all I'm having a problem configuring a WMI alert that I would like to use with database mirroring. I'm running on Windows 2008 Enterprise X64 with Server 2008 Enterprise X64 also SQL Server has SP1 installed. Basically I click on alert select WMI after that I typed the below SQL statement SELECT * FROM DATABASE_MIRR...
Based on the query in your question, the event will fire only when there is an automatic failover (state = 8). If you want the WMI event to file on a manual failover, as in your test, you need to also check for state = 7, which is the state of a manual failover. To check for both manual failovers and automatic failover...
1
1
989
2010-02-02T02:14:32.957
database_errors
serverfault.com
388,042
How can I have Apache display a static maintenance page for all but certain users?
I need to be able to put our site into maintenance mode, excepting certain users to allow for QA/Dev to be able to test changes to the site/database during the maintenance mode. The problem is that the list of IPs will be changing every time we do it and do to policies, we cannot modify the main apache configuration fi...
You can have the blacklist/whitelist in a separate file. Have a look at http://httpd.apache.org/docs/2.2/rewrite/access.html#host-deny - it should give you enough to go on to start with.
2
1
1,113
2012-05-10T19:25:24.833
infrastructure
serverfault.com
703,596
Iptables redirect HTTP traffic to proxy
I have a local HTTP proxy running, if I configure my browser to go through it works perfectly but I would need to leave the browser configuration blank and only redirect the traffic to the proxy with iptables (or any other mechanism). I tried these rules (separately) without succeeding (proxy returns 400 bad request er...
This is called "transparent proxy". You need two things to do it: Your proxy server should support it (transparent proxy). Squid is a well-known proxy server which supports transparent proxy mode. Configure your firewall / router to redirect HTTP traffic to your proxy like the iptables rule you have.
0
0
2,829
2015-07-05T09:16:11.680
infrastructure
serverfault.com
122,353
How do I in "Navicat for PostgreSQL" run a simple PL/pgSQL script like I would in MS SQL Server Management Studio?
I don't want a function or anything. I just want to run/test a simple script with some PL/pgSQL features in it. Something like the following: [CODE] I'm sure the syntax is correct, but it doesn't work in the normal "Query Editor" like I'd do it in Microsoft SQL Server. I get the following error: [CODE] I'm running Navi...
[CODE] You can not use IF outside procedure code, but Your construction possible run like this
1
1
650
2015-11-28T21:43:09.950
data_quality
dba.stackexchange.com
149,136
I wish to restore a gzipped tarball - what does mongodump --archive do? Howto do a mongorestore with --gzip?
I created a backup with [CODE] I tried to restore that with [CODE] and receive erorr [CODE] In docs I read that the gzipped tarball should be created with [CODE] What does this parameter do? Howto emulate that with [CODE] and [CODE] ? Which format does mongorestore expect with [CODE] ?
I think the problem you have is that the archive format created with [CODE] is not a tarball (and the docs don't say it is anywhere that I could find). Rather it is a custom packaging format which you can see the details of here . Based on a quick scan of the code, it looks like a lightweight format containing a series...
3
4
11,744
2016-09-08T17:49:03.710
hadoop_errors
dba.stackexchange.com
11,706
Performance difference between subversion checkouts and exports?
Is there any performance difference between subversion checkouts and exports when running your webapplication? We already implemented this in our deployment process, without measuring for differences (which feels bad. and is bad.). Our intentions were: a) dumping overhead (.svn folders and its contents) and b) improvin...
It'd be heavily application dependent. With applications I've deployed, it's been irrelevant, as there's absolutely no directory traversal of the application directory going on from within the applications. Some frameworks, particularly Rails, will do auto loading of files within the application and do directory traver...
3
3
2,173
2009-05-24T00:20:40.730
pipeline_ops
serverfault.com
242,769
Problem with deploying django application on mod_wsgi
I seem to have a problem deploying django with mod_wsgi. In the past I've used mod_python but I want to make the change. I have been using Graham Dumpleton notes here http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango 1 , but it still seem to not work. I get a Internal Server Error. [CODE] [CODE] [CODE] [CODE]...
You can set the WSGI variable for this. In your Apache config: [CODE] This is the same as setting the [CODE] environment variable which, as pointed out in topdog's answer, only works with mod_python.
1
0
510
2011-03-03T15:07:10.457
infrastructure
serverfault.com
1,026,165
Synchronize users and passwords from LDAPS (Novell-based) to Azure Active Directory
We are a school and have a Novell/NetIQ directory service for our local computers. Multiple services (such as Moodle) are connected over Open LDAP/LDAPS (Port 636) for user authentication. We would also like to have the same usernames/passwords for Office 365. Till now, we import the usernames from a csv-file at the be...
Microfocus Identity Manager is one approach. This installs on top of eDirectory and can synchronize user data to multiple different systems. It is not trivial to install but not that hard. There is a driver specific for Azure. As an educational customer they have good licensing deals. (I work at a consulting firm that ...
1
0
488
2020-07-21T17:48:52.587
api_errors
serverfault.com
742,416
mariadb mysql parallel installation apache and php
I'm trying to install mysql and mariadb on the same server as a parallel installation, each service on a different port. I installed mysql server using apt-get on a debian-based distro and then mariadb following this tutorial using mariadb pre-compiled binaries. At a first glance everything seems to work fine because: ...
Found a partial solution to this problem Apache, PHP and therefore other CMS can connect just fine now. Edit file /etc/php5/apache5/php.ini and depending on which driver you used (mysql or mysqli) set the corresponding variables to use the socket file used by MariaDB: [CODE] or [CODE] So for convenience you should now ...
1
0
839
2015-12-11T12:30:06.773
database_errors
serverfault.com
716,564
Why is my AWS instance's private IP outside of the subnet's range?
I'm trying to launch an instance with the private IP address 172.31.32.101 using Terraform in my default VPC (CIDR 172.31.0.0/16), in the eu-west-1a subnet that has the CIDR 172.31.32.0/20. I can usually do this with no problem, but more and more I find that [CODE] fails with the following error: [CODE] I suspect that,...
The [CODE] resource in the example does not have the [CODE] attribute provided, so the instance would launch into your account's default subnet for the target region. It's likely that the default subnet is not the one you were trying to use, and so it has a different IP address range. To fix this, determine the appropr...
4
4
6,595
2015-08-25T09:14:46.230
pipeline_ops
serverfault.com
223,001
SQL Server created a new errorlog file but instance and agent were not restarted
One of our jobs failed but the job history had already expired by the time we investigated. We could, however, see that a new log file was created around the time it failed. There was no instance restart (checked os_sys_info) or agent restart (looked in sys.processes) and nobody using it knows how to cycle the log. Mus...
I would assume it's more likely that the procedure [CODE] was called. There's a possibility someone accidentally right clicked on Error Log and then clicked [CODE] instead of [CODE] which also calls this procedure. What I would do is create an audit event on this procedure for the future so you can see how this occurs....
3
5
43
2018-11-20T17:32:46.340
database_errors
dba.stackexchange.com
44,438
MySQL Database Normalization Foreign Keys. One to Many relationship. With Diagram
Here is my database design. I've been doing a lot of reading and still don't really know what I'm doing. Hoping you guys had tips! My DB will have millions of entries. Many "People" rows will have null values below idCounty and some rows will be half null. DB is written to once, never updated. Read many times and mostl...
To make first,middle,last name searchable, should I make them Primary Keys? No, any field in any table is "searchable". A primary key is a unique identifier of a row in a table. Your [CODE] field satisfies this requirement, though since you stated the table will have millions of rows, you'll want to make that an [CODE]...
4
1
4,632
2013-06-13T02:25:34.350
data_quality
dba.stackexchange.com
358,695
How to find out that SMTP server is in open relay?
I used [CODE] for network security testing. It found that SMTP server was in open relay. Here is the output: [CODE] I'm unable to reproduce this problem. How do I reproduce it myself without scanner?
As juwi has in his answer, just make a network connection to tcp/25 of the server in question. You can use telnet for that, or netcat. Here's an example of an SMTP transaction: http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol#SMTP_transport_example A relay is closed if it fails after you try to submit a RCPT ...
3
3
30,763
2012-02-10T10:20:28.873
infrastructure
serverfault.com
166,929
How to route UPnP broadcasts to another subnet?
I got my internal subnet 192.168.1.x (255.255.255.0) where is an UPnP server sending broadcasts. Machines in this subnet can receive these broadcasts just normally. There's another VPN subnet, VPN clients get leased addresses in subnet 192.160.0.x (255.255.255.252). These two subnets can communicate without any problem...
You need an IGD device, you can setup your linux box to act as one. http://linux-igd.sourceforge.net/documentation.php
0
0
10,814
2010-08-04T08:31:55.747
infrastructure
serverfault.com
717,711
Are zero byte files an indication of file system corruption?
I recently noticed a strange behaviour. I could not restart a productive webserver running since more than a year because the configuration was invalid: [CODE] After further investigation I found a couple of files unter [CODE] to have a file size of zero bytes [CODE] Is this an indication of file system corruption? I'm...
No, a zero bytes file is not an indication of file system corruption. Likely symptoms of file system corruption include: Error messages from the file system showing up on the kernel log I/O errors when trying to read/write on the file system Bogus file attributes, owner, sizes, names showing up in directory listings. T...
0
2
1,202
2015-08-29T16:30:05.277
database_errors
serverfault.com
765,142
Delegating Subdomain finds Authority but no answers
I'm having a bit of trouble with a delegated subdomain using powerdns. My setup is quite straight forward. Example.com 2 powerdns servers. 1 Master, 1 Slave. [CODE] Then my sub domain looks like: 2 more powerdns servers. 1 Master, 1 Slave. [CODE] When im on a host on that ubuntutest host on the subdomain i can resolve ...
Your command: [CODE] Is only asking for nameserver (NS) records, so that's all you're getting back.
-2
1
1,992
2016-03-21T16:55:54.233
infrastructure
serverfault.com
398,957
Endpoint returning only new and updated records
let me state some items. I have this endpoint that returns a list of objects, and I would like to return only the changed ones. I have an App calling this endpoint that caches this list, and today it refresh the whole list every time the endpoint is called. I would like to manage, to return to apps only the records, th...
Just add a query parameter (e.g. [CODE] ) that the client can use to fetch only items that have changed since the last time. The modification time should be part of the item's data, so the client can just take the youngest modification time of its cached items to select everything new.
-2
1
48
2019-09-26T19:03:28.983
api_errors
softwareengineering.stackexchange.com
452,394
How do I solve caching problems such as cache invalidation and data race in a monolithic app?
When creating a distributed web application, cache invalidation can be a big deal. However, our web application doesn't need distributed load, as we don't expect to serve more than 1k users at a time. For now, we've had a multithreaded asynchronous web application written in Rust. The web application is run on only one...
common cache invalidation strategies There are two hard problems in computer science: naming, caching, and off-by-one. It's unclear what compute resources your caching hopes to conserve, and what cost function applies for "stale" results. If RAM resident set size is the concern, then a LRU cache would be the typical re...
-1
3
133
2024-03-12T00:19:38.587
database_errors
softwareengineering.stackexchange.com
925,107
Hyper-v 2016 VM replication between domain and workgroup - no longer working
I have three hyper-v servers on an AD domain, which replicate between themselves nicely. I have two other hyper-v servers which are separate, in their own workgroup, they are being built in my personal environment for deployment in a temporary environment for a couple of weeks. The two workgroup servers replicate their...
It's maybe too late for you but it can still help another reader. I've encounter this issue and solved it by removing the replication server from the trusted-host list. (I was in a full Workgroup server configuration)
0
0
1,099
2018-08-06T13:26:56.227
pipeline_ops
serverfault.com
431,670
Mysql process taking all the memory
When I checked my process on VPS, I can see 18 instance of mysql running. What could be wrong? [CODE]
Nothing is happening. MySQL has a bunch of processes and is waiting for something to do. Notice how the columns are [CODE] % CPU and [CODE] % memory. That 8.1% is just the shared about MySQL needs to run, but it isn't really doing anything since it has zero percent CPU usage. This can also be confirmed by the output of...
0
1
1,459
2012-09-25T07:50:31.087
database_errors
serverfault.com
267,344
SQL (Redshift) SELECT COUNT from CSV column
Hi exchange community, Problem statement and details: I am trying to query a column that contains CSV data to produce a count of instances of each value in the table. There are a total of 14 possible values in the CSV data. These are static and will never change. Each record contains at least one value in the CSV colum...
Was able to figure this out by unioning my individual count statements. [CODE]
1
1
274
2020-05-17T18:55:29.577
warehouse_errors
dba.stackexchange.com
772,716
iSCSI Windows Cluster share target or target per node
I have a lab environment where I have a Synology NAS that provides iSCSI targets which are used by Windows 2012 R2 VM's running on virtual box. I want to setup a Windows Failover Cluster and in order to do so the VM's need to share a disk. I added a new target with a new LUN. I added this via the iSCSI initiator on the...
What I read and what I understand suggest to me that in either case you're likely to end up with corruption unless you're using a cluster-aware file system such as CSVFS. I'm not a Synology user, but I do work with iSCSI and Failover Clusters. I would say that in your case, allowing multiple sessions will be the most a...
3
1
2,258
2016-04-25T11:13:14.330
data_quality
serverfault.com
1,059,715
Should I update Serial on SOA when migrating DNS for my domain
I'm in the middle of moving DNS for a personal domain from a legacy hosting provider to AWS Route 53. Old SOA record on the old hosting provider's DNS: [CODE] As it's created on AWS for the hosted zone: [CODE] As you can see, serial on AWS is [CODE] vs [CODE] on the old DNS. Should I alter the SOA record on AWS such th...
The SOA serial number is only relevant when your secondary authoritative name servers rely on zone transfers from the primary authoritative name server for the replication of zone data. Then after each change the serial must be incremented for the secondary to be aware of the update to the zone data. When you are compl...
0
4
1,406
2021-04-08T07:37:08.893
infrastructure
serverfault.com
341,348
Repairing MySQL databases - restoring data issue
Today I reinstalled Web-Developer Server Suite and although all my old PHP pages work, the databases don't... I copied them over from my backup folder and only some of the tables re-appeared. How would I restore all data in the databases: when I look in phpMyAdmin some are missing or incomplete. It's the first, and hop...
I have always restored a previous instance by copying the whole $PATH/lib/mysql/data folder to the new instance. Just ensure that the folder is owned by the new MySQL instance and everything should launch OK.
0
0
69
2011-12-15T20:06:22.707
database_errors
serverfault.com
1,031,650
Server memory (htop)
Can anyone explain what the colors in the memory section represent? Is this server healthy, or does it need more RAM? l
Press F1 for help and htop will show you a legend which explains each color.
1
2
77
2020-08-26T21:40:39.940
infrastructure
serverfault.com
80,696
Importing CSV file using SQL Server Import and Export Wizard (SQL Server Express)
So I am having a heck of a time importing a CSV file. The ultimate goal is to create a repeatable process to import the file. The only way I've been able to import the file is in a roundabout way using MS Access (Import into Access then export to SQL Server), which it happily and merrily does without issue. But surely ...
The method of insert doesn't appear to be the problem, more the data itself The error you are receiving is because one of the columns you have in your database table is too short (see your column 'wikipedia_link') see what length it is and if you can increase it, note it is quite possible to have more errors on other c...
2
1
1,893
2014-10-20T22:52:31.667
bi_errors
dba.stackexchange.com
203,430
greping apache logs
Hi all I am a bit new to grep etc.I did read the man page and searched internet before asking the question here.I am having a server which is running behind chain of reverse proxy servers.An application is giving me problem and I have to analyze the header response all those servers are accessible on SSH consoles so I ...
I'd recommend learning to punctuate your sentences in addition to learning how to use software tools. I need to get only those responses based on time stamps (which can be ranges from users) which gave errors But the log sample you've provided does not contain the HTTP status code - is this from the error log? If not t...
0
1
413
2010-11-18T14:18:21.473
infrastructure
serverfault.com
257,553
Installing PHP with iconv on Mac OSX 10.6 gives error: "Undefined symbols for architecture x86_64"
I am setting up PHP on my local web server with iconv, which should be there by default, but I am getting the following error: [CODE] Now, presumably this means that my iconv is not 64 bit. I tried to download libiconv and manually reinstall it with 64 bit, as such: [CODE] But I get the following error: [CODE] In my co...
I've had exactly the same problem on OS X 10.7, i.e. couldn't compile PHP due to the libiconv x86_64 errors, but have solved it as follows: Build an x86_64-only version of libiconv: [CODE] This will put the compiled files in /usr/local/lib Then run ./configure in the PHP source directory, then 'make' When you get the e...
-1
2
4,486
2011-04-08T21:59:31.053
infrastructure
serverfault.com
358,017
Short unique alphanumeric ids that are protected against transcription errors
For some payment methods users fill out paper forms with a 9-digit reference ID. Numerical IDs have the flaw that users can make transcription errors (lost digits, duplicated digits, switched digits). You can trivially detect those errors by adding a checksum (e.g. modulo-based from the ISO 7064 standard). But how can ...
A potentially better way, if all users of the system share a common language (e.g. English), is to use a system similar to the one used by what3words . The idea is to come up with a dictionary of words that can be uniquely recognized even in case of all likely misspellings. This is, obviously, no easy task, but the fac...
5
1
377
2017-09-25T15:21:35.303
data_quality
softwareengineering.stackexchange.com
423,358
Good design for a class with multiple methods to test but one public method
I've been trying to refactor some existing code which is in essence a giant nested procedural call inside what should otherwise be an object oriented architecture. The entry point to the relevant code is a static function, which iteslf calls other static functions calling other static functions etc. totaling to a few t...
Why did you make these methods private in the first place? Hopefully you wanted to hide implementation details. Doing so helps keep the relationship between this class and code that uses it simple. That is to say, decoupled. If you let test code sneak past that public method then the test code defeats that attempt at d...
0
2
910
2021-03-13T22:24:00.900
api_errors
softwareengineering.stackexchange.com
400,757
Java (or other Java-like languages): Best practice for many optional parameters?
Code design question for Java or Java-like languages (excluding languages which support default values for method parameters such as Javascript flavors): You would like to implement a method with the following features: Take N parameters, for some reasonably large but finite value of N (like N > 2). O(N) of those param...
If you have few parameters or very few sensible combinations of those parameters go for multiple overloads of the method with different parameter sets. If this generates a substantial number (more than 3-4), go for a config object instead Why? The number of necessary overloads increases with quadratically with the numb...
2
4
1,029
2019-11-07T21:31:16.793
api_errors
softwareengineering.stackexchange.com
422,130
Are there any known problems installing Development Edition MS SQL Server Aside SQLEXPRESS
I have an application running on SQL Express SQL 9.0. Are there any known problems installing a Development Edition of MS SQL Server 2008 R2 along side SQL Express? In other words, is there a known problem having two different flavors of SQL Server installed? Is the Development edition treated like a second instance? I...
Aside from the normal cautions and warnings about a side-by-side SQL installation, there are no "known issues" as a result of doing a side-by-side installation between SQL Express 9 and SQL Server 2008 R2. This guy's done it without issue, as have I, though with different versions. Pretty sure it was SQL Express 2005 a...
1
2
167
2012-08-28T19:08:41.840
database_errors
serverfault.com
971,121
Google cloud talent solution quota exceeded error
I am using google cloud talent solution APIs on free trial account. I am able to execute APIs using API explorer, but for profile read API I am getting error "Quota exceeded for quota metric 'jobs.googleapis.com/profile_read_requests' and limit 'ReadsPerMinutePerProject' of service 'jobs.googleapis.com' for consumer 'p...
The Profile Search service is only accessible via the beta program RESTful API and has the limited support either for GCP Cloud Talent free tier customers or those who're working on billable support plans.
-1
0
87
2019-06-12T14:41:25.197
infrastructure
serverfault.com
872,700
VPC-TRANSIT: Difference between detached VGW and Direct IPSec connection (csr1000v)
Picture worth thousands words So i draw 2 different network diagrams involving the VPC Transit infrastructure on AWS using csr1000v. Direct connection between csr1000v and on premise Connection using detached VGW instead Can anyone tell me if there is a big difference between using one or another schema. The major one ...
One interesting point you have pointed out is that one can use non-cisco routers on-prem and configure CSR. Apart from that I would say that if you are using a Multi-site on-prem configuration and with a 2 ISP for (active / failover) config; then detached VGW configuration would help. You can use DMVPN cloud to setup t...
0
0
1,725
2017-09-08T13:27:33.740
infrastructure
serverfault.com
300,647
State Machine Memory Management Problems
My state machine handles requests and returns the next state. In the below simplification, I've got two states here, [CODE] and [CODE] . Running state is the end state, and just returns itself. Running state has state (as in memebers) that need to be preseved, I'll use the integer [CODE] to represent them. [CODE] The p...
My potential solution: Pass the pointer as a reference. Alter it in the handle as needed. I'm not a big fan of mutating parameters in general, but I think this might be the way to go? [CODE] Incidently, here is the state machine I was designing: https://github.com/mikeyjkmo/ableton-freetime-looper
1
1
334
2015-10-23T09:12:33.240
api_errors
softwareengineering.stackexchange.com
12,162
Directory that a user can read, but root can't?
There's a directory underneath my homedir called ".gvfs". As my regular user account, I can read it just fine: [CODE] However, as root I can't "ls" or even "ls -d" it: [CODE] And, just to make sure: [CODE] This is just a simple home installation of Ubuntu 8.10, no NFS or anything weird like that. I see that the directo...
From: http://bugzilla.gnome.org/show_bug.cgi?id=534284 This is all unfortunate, but its a decision that has been taken by the fuse people at the kernel level (user others than the one who mounted the fs can't access it, including root) and there is nothing we can do about it. Also see: https://bugs.launchpad.net/gvfs/+...
10
22
11,368
2009-05-26T06:17:00.553
infrastructure
serverfault.com
277,503
Can't connect to internet with dynamic IP
I have a small business network with the DNS server being run on Windows Server 2003. Most of the computers in the company have a dynamic IP address assigned through the aforementioned server. One of the Windows 7 computers has difficulty connecting to the internet unless we assign a static IP. It has no trouble connec...
Is this machine on a domain? Some squirrely issues can be caused by having a network set as something other than a "Home" network in Windows 7. Also, [CODE] may help , so may Dial-A-Fix (Dial-A-Fix does not work with Windows 7, per here ). Also, ensure the machine is getting the proper DNS suffix and the gateway is an ...
1
2
12,172
2011-06-06T15:48:18.083
infrastructure
serverfault.com
256,980
Should I mark what blocks mean in data-* attributes?
I was writing a webpage today with a comment after the start of every major section. Instead of using a comment, which comes with the bulgy [CODE] syntax, could I instead put this in a [CODE] attribute? This would be more for me than anything else, so I don't want to put it in an [CODE] or [CODE] , but it would also le...
Use a class. A class labels the contents on it if you work semantically. That you can use a CSS selector on it is, of course, also good and useful, but in general it describes the role of the element, and that's exactly what you are looking for. Next to that, people are used to reading class names as semantic data desc...
1
6
115
2014-09-22T20:21:25.737
api_errors
softwareengineering.stackexchange.com
314,243
How Can I Write a Postgres "if" Based on a SELECT?
If I have a function in PostgreSQL, I can validate its arguments (eg. a [CODE] argument) like so: [CODE] What I can't figure out is how to do the same thing with the results of a SELECT query, ie. something like: [CODE] (And yes, I know PostgreSQL will give me an error without that line, but I want to have a friendlier...
Yes, that is possible, but the subquery needs an extra pair of parentheses: [CODE] One pair of parentheses is for the subquery, one for the function call. The more readable way to write this is [CODE]
0
2
98
2022-07-11T00:55:57.593
database_errors
dba.stackexchange.com
323,177
Create non clustered indexes in background without awaiting the outcome in Sql Server
I have to release a new version of an application. I created two scripts one to move the schema and one to migrate the data. The script contains a long list of queries. The application needs to stay offline as little as possible, for this reason, I'd like to make this script run faster. I noted that the biggest slowdow...
What you could do is to break down your script into multiple scripts/queries: Script does something Non-clustered index creation Script continues to do something Then the solution would be to use more than one session to do the work: Your app creates a session, runs step 1. When step 1 is completed, your app needs to s...
1
2
160
2023-02-07T17:10:08.130
database_errors
dba.stackexchange.com
723,995
What will happen in a network if multiple devices have the same MAC address?
What will happen in something like a wifi connection where different laptops are set with the same MAC address . To make it more interesting what will happen if there are multiple devices with same MAC address and different IP addresses.
I had this problem some time ago; there were two ethernet cards with the same MAC address in a 10 stations LAN. In auto configuration mode (DHCP), the first computer to boot would take an address and the second was given the same address by the DHCP server. (The switch was stupid enough to never mind the MAC address co...
0
1
2,313
2015-09-22T12:35:23.317
infrastructure
serverfault.com