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 |
|---|---|---|---|---|---|---|---|---|---|---|
835,257 | how to set postgresql 9.6.2 to autostart when built from source on CentOS 7 | I've installed postgresql 9.6.2 from running from source. I performed the [CODE] , [CODE] and [CODE] commands, which installed the database perfectly. I then installed the user, created the db using [CODE] command, and am able to log in locally to postgresql user to perform local sql queries. My question is autostart. ... | When using systemd, you can use the following service unit file (e.g., at /etc/systemd/system/postgresql.service): [CODE] | 1 | 2 | 807 | 2017-02-27T21:12:36.347 | database_errors | serverfault.com | |
105,812 | What is limiting the batch requests per sec | We have a newly created Azure SQL Server 2014 instance. The specs for the server are as follows Pretty bare bones, I know. Since this is just a testing server, we have opted to set up the data files on the [CODE] drive itself. We wanted to do some performance testing to see what it would be like compared to an on-premi... | This is just a pure guess (I cannot find anything to support this), but I believe that the reason it is much slower when you perform it on your local box is that it is going through the iteration on your local box. If you did this as a cursor, I believe this would process everything from SQL and be much faster. AKA [CO... | 2 | 1 | 1,815 | 2015-07-02T20:19:05.663 | database_errors | dba.stackexchange.com | |
295,381 | Sum A Column Using Unique Groups Of Time Periods | I have data that looks like this: [CODE] I want to get the sum of [CODE] for [CODE] grouped by unique combinations of [CODE] and [CODE] . If [CODE] is NULL, it should be considered not to end. So the result should look something like this: [CODE] I don't need the dates, just the sums, although it would be nice to have ... | Check this: [CODE] If you need the info for separate [CODE] then add according [CODE] to each subquery in [CODE] . https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=46a3202548714c17dc553b43d1fa5ccc | 0 | 0 | 57 | 2021-07-07T18:39:36.607 | warehouse_errors | dba.stackexchange.com | |
85,104 | Solutions for Labelling Training Data for Binary Classification Problems | I have a huge dataset for which I am trying to use an 80-20 (Holdout method) approach to train and test my model. However, the dataset I have been given has 6m rows. The objective is to train+test+validate the model before using live data traffic for real-time predictions. The expected result here is "It's not corrupte... | Ofcourse not. Here is a simple possible solution. Do unsupervised learning. If you do it good and efficiently you will only see these two groups in your data (binary classification). And your silhuette score will be high. Hence you can automatically than label these groups/clusters. | 2 | 0 | 30 | 2020-11-08T12:09:33.747 | data_quality | datascience.stackexchange.com | |
281,337 | how to select the not null value of a column when it has both null and not null value in teradata? | consider a table named "TABLE-A" with below data. [CODE] I need to select ID,hcc fields from TABLE-A in the combination of ID,D_CD. when the combination has single hcc value (even it is null) it should be fetched. But, when it has both null and not null values, it should fetch the not null value only. So the output mus... | What I did to solve this was: [CODE] and populate it: [CODE] And then run this query: [CODE] Result: [CODE] As desired! In future, could you please provide a fiddle with your table DDL and DML! This should work with Teradata - I double-checked and it does support Common Table Expressions! | 0 | 1 | 2,266 | 2020-12-11T11:34:12.403 | data_quality | dba.stackexchange.com | |
222,418 | Performing wildcard search using the json_contains function in mysql 5.7 and above | I have some nested json data that i get using the [CODE] function. Now I need to to check whether a certain value exists for a particular key which I am using as follows in my query:- [CODE] The problem with this approach is that I require the entire string "FirstName LastName" to find this row in the actual result. No... | You can use JSON_SEARCH with wildcards: [CODE] Will return the path: [CODE] If you want to filter by this, use an alias and check it in a [CODE] clause: [CODE] or.. in a [CODE] : [CODE] https://dev.mysql.com/doc/refman/5.7/en/json-search-functions.html | 4 | 6 | 5,781 | 2018-11-13T10:54:50.717 | database_errors | dba.stackexchange.com | |
884,759 | How does "restart: always" policy work in docker-compose? | I have docker compose file with PostgreSQL and my application, like this: [CODE] The problem is that [CODE] policy does not seem to work when I kill the container (simulating app crash using [CODE] ) and docker-compose does not restart my container, even though the Exit Code is 137 . I observe the same behaviour when I... | When you use docker kill, this is the expected behavior as Docker does not restart the container: "If you manually stop a container, its restart policy is ignored until the Docker daemon restarts or the container is manually restarted. This is another attempt to prevent a restart loop" (reference) If you use docker sto... | 84 | 53 | 247,308 | 2017-11-22T20:19:07.913 | pipeline_ops | serverfault.com | |
333,286 | What are the idiomatic approaches to cross-server upserts? | This is a very common problem, faced by virtually every DBA who has to responsibilities to both application and BI teams. Consider the following: You have two T-SQL servers , Production and Reporting. Every day, at 6am, you want to copy new data from Production to Reporting. There may be filters or some other ETL done ... | From the information you provided, I would encourage you to look into Azure Data Factory if you are cloud friendly. It would allow you to only send the rows you need from one server to another (assuming you have logic in place that allows you to track changes in the source) Similar to SSIS, but a little more modern, an... | 1 | 1 | 114 | 2023-11-20T12:54:03.890 | database_errors | dba.stackexchange.com | |
217,577 | Why am I seeing MailSlot Browse messages on unrouted ports of my Linux box? | I have a Linux box (Debian squeeze) with several NICs. The ones of interest are: eth3 - my main link to the network (dhcp on 10.20.30.0/24) eth0 - the first connection to my test network (static: 192.168.1.2) eth4 - the second connection to my test network (static: 192.168.1.1) My routing table looks like this: [CODE] ... | Looks like AsustekC_54:85:eb is sending a broadcast which is your eth0 interface. There is probably a service on the server broadcasting this on all interfaces. | 1 | 1 | 2,448 | 2010-12-30T22:59:38.083 | infrastructure | serverfault.com | |
1,090,368 | freeradius and openldap : vlan attribution working with radtest but not with wpa_supplicant | Both of my services freeradius and openldap are on the same server. The schema Freeradius is loaded into openldap. I configured the [CODE] of a user to link to a group. In this group, I have [CODE] set to give the informations of the vlan. When I use the command [CODE] in local (or from the remote and already authentic... | I am using the peap-gtc protocol for authentication. To pass the attribute information in the Access-Accept packet, I had to edit the following freeradius file : [CODE] . [CODE] Now the switch port get configured in the corresponding vlan. | 0 | 1 | 585 | 2022-01-18T15:04:28.947 | api_errors | serverfault.com | |
35,219 | Choosing the right algorithm in HashBytes function | We need to create hash value of nvarchar data for comparison purposes. There are multiple hash algorithms available in T-SQL, but which one the best to choose from in this scenario? We want to ensure the risk of having duplicate hash value for two different nvarchar value is the minimum. Based on my research on the int... | The [CODE] function only takes up to 8000 bytes as input. Because your inputs are potentially larger than that, duplicates in the range of the field that gets hashed will cause collisions, regardless of the algorithm chosen. Carefully consider the range of data you plan to hash -- using the first 4000 characters is the... | 24 | 20 | 21,026 | 2013-02-22T05:44:02.703 | data_quality | dba.stackexchange.com | |
132,827 | Changing MAC address on the Fly on old kernel 2.6.x | I'm doing some research on old kernels and running the following on 2.6.7 or 2.6.8 gives a resource busy error. But on 2.6.28 the command works as expected. How would I determine which kernel allowed this command to change the mac address on the fly? ip link set dev addr You can see some screenshots below. Thank you! (... | This turned out to be a driver related issue. Once we received new drivers from the manufacture the task worked as its supposed to be. | 0 | 0 | 207 | 2010-04-15T18:23:38.073 | infrastructure | serverfault.com | |
710,323 | Power outage during RAID1 build | I was 60% complete building a two-disk RAID1 on my Ubuntu 14.04 server with the command [CODE] when I accidentally tripped a circuit breaker in my house and shut off the server. Damn. Now when I try to re-run the command I get [CODE] when I try to check progress I get [CODE] How do I get things going again? | Building is done (it's immediate). It's the resync that continues now, the difference is that during resync the array is already usable. All seems to be fine here, try writing to /dev/md127 (ie. create a filesystem), and auto-read-onl y status should switch to read-write . Until the sync is finished the performance wil... | 1 | 1 | 128 | 2015-08-02T19:16:48.047 | infrastructure | serverfault.com | |
853,793 | Windows Server As Router // Internal and External | apologies if I've posted this to the wrong forum topic, hopefully a mod can move it over if so :) I've been having a issue for a while now, and i know this isn't best practise, and its not intended for use, its just something i want to work on for personal development and experience. So, i have a Server with Windows Se... | Your LAN2 [CODE] is actually [CODE] , already including LAN1 [CODE] . (Educate yourself about Classless Inter-domain Routing CIDR, read RFC 4632, 3.1 .) Therefore, your client computers on LAN2 can't understand they would need routing to [CODE] as it already is a part of their own subnet; they try to connect there on d... | 0 | 1 | 104 | 2017-06-03T12:02:50.093 | infrastructure | serverfault.com | |
318,443 | Exchange Upgrade - GAL won't load | A recent reinstall of Exchange and now when I try to load the GAL in Outlook, error says The Bookmark is not valid. I'm pretty sure this is a permissions issue, but I don't know where to look. | I suspect you have some OAB issues, since this is what Outlook actually uses when you're in cached mode. It would be good to turn up the diagnostic logging for the OAB generation process and do a manual rebuild of the OAB. Hopefully the error will come to light in the event log. If you need to paste warnings/errors fro... | 2 | 1 | 226 | 2011-10-04T18:07:33.433 | infrastructure | serverfault.com | |
17,730 | MySQL Cluster Installation | I am very new to mysql-cluster.I downloaded the binaries and was trying to configure it on my local machine. Can anybody suggest how to install it on single machine with the 1 management node,2 data nodes,1 sql node. Also what are the importance of each type of node? I need the basics steps to install the mysql-cluster... | For single machine setups, you can also check out the Cluster Sandbox: http://www.severalnines.com/resources/mysql-cluster-sandbox-pre-defined-packages Good luck! Vinay http://www.severalnines.com/ Edit By RolandoMySQLDBA 2012-05-15 13:34 EDT Check out the Training Slides : http://severalnines.com/mysql-cluster-trainin... | 2 | 3 | 642 | 2012-05-11T10:23:20.087 | database_errors | dba.stackexchange.com | |
75,749 | ValueError: X has 3 features per sample; expecting 1500 | [CODE] here is preprocessing of dataset code [CODE] please help me someone to reslove this error. Iam new to machine learning am not understanding where i made mistake. Thanks in advance!! | You should not so a fit transform while prediction. You should save the fit model in your preprocessing code for the tfidfvectorizer and use the same vectorizer while predicting. Otherwise your vectorizer is learning new word representations and whose dimensions might not be 1500 what you have specified in your preproc... | 1 | 0 | 5,275 | 2020-06-10T01:29:23.117 | api_errors | datascience.stackexchange.com | |
827,326 | postgresql track counts and autovacuum is not working | In the startup log entries indicate the autovacuum not working. I query the pg_stat_user_tables table and the last_vacuum and last_autovacuum columns are empty in spite of the vacuum query I ran just before. Connecting pgadmin to the database gives the indication that the vacuum is not working. I am using postgresql on... | I want to elaborate on the answer @Daniel gave and the solution to my problem. I had set up the iptables in order to get acces to postgresql like this: [CODE] I assumed this was plenty. However when i used [CODE] and restarted the postgres server the error disabling statistics collector for lack of working socket was g... | 5 | 1 | 2,468 | 2017-01-19T15:25:33.150 | database_errors | serverfault.com | |
950,354 | Salt: Raise Error if file.replace did not find anything to replace | Maybe I am blind, but I could not find a way to let the [CODE] call fail, if file.replace did not replace a single line. If the pattern I provide did not match, then I want to get noticed. Example: [CODE] Case1: DisallowBar found and replaced, gets replaced: OK Case2: AllowBarUntilMidnight is already in the file: OK Ca... | Saltstack is a configuration management tool so when using states you define what you want, you normally don't bother to be warn when something is done or not. So in your example I would say "you want replace pattern X by string Y" and that's it. Saltstack does the job to replace the pattern if it exists and do nothing... | 0 | 0 | 545 | 2019-01-23T11:27:07.193 | infrastructure | serverfault.com | |
587,204 | puppet apply and extlookup | I still use extlookup (Yes, I know that it's deprecated :-( But I can't find time to move to hiera). My problem - I need to move from puppet master/puppet agent setup, to puppet apply that is run locally. Everything was smooth... except of extlookup. When I try to use: [CODE] And if somewhere inside of classX (or insid... | This is the only solution that came into my mind after some thinking: [CODE] As with puppetmaster setup I put in site.pp extlookup_datadir and extlookup_precedence . So I don't need to change anything in my manifests - only to use this "wrapper". I'll appreciate any better solutions :-) | 1 | 0 | 269 | 2014-04-07T14:37:59.290 | pipeline_ops | serverfault.com | |
187,412 | How can I setup replication with the DNS name instead of the Server Name | We are using SSL certificates from a public CA on each SQL Server in our (push) transactional replication topology, and wish to have the EncryptionLevel = 2 for our Distributor Agents. Currently EncryptionLevel is set to 1, and works fine. (The difference between 1 and 2 is that 1 tells the agent to just to use encrypt... | I was able to get this working, but with a fairly unsatisfying workaround - so if anyone else can contribute a better solution, please do. I am concerned that this solution will have unknown side-effects. The broad steps are: Remove everything to do with replication from the Publisher/Distributor, up to and including t... | 4 | 2 | 1,223 | 2017-10-02T06:19:58.860 | data_quality | dba.stackexchange.com | |
1,012,465 | Detecting stuck SSH control master sockets | I use OpenSSH's ControlMaster features quite a bit to speed up new connections to a few systems which I use heavily. I have the following in my [CODE] : [CODE] Generally, this works great. However, there's one major annoyance: if the ControlMaster socket for a host gets “hung” due to a network interruption, [CODE] just... | TL;DR [CODE] I'm guessing [CODE] is not applicable here because the master is already connected. This is not specific to [CODE] but you could easily apply it just to relevant entries in your config. You can use two different methods to detect stale connection: [CODE] Uses mechanisms in the underlying socket. [CODE] (up... | 9 | 11 | 2,339 | 2020-04-15T18:20:36.943 | infrastructure | serverfault.com | |
490,856 | removing software raid without data loss | i wonder if/how i can stop my linux machine using the installed software raid, without loosing any data. All information i found was about removing the superblock of any hdd, and this is o/c what i dont want. so i wonder how i can archive my goal of booting w/o any read. do i have to remove the device from the array, r... | In my experience, an [CODE] RAID-1 can be broken by [CODE] ing the partition, using [CODE] to stop the array, then mounting either half of the partition in place of the array. Furthermore, if you use [CODE] to retag the two constituent partitions from type [CODE] (Linux RAID autodetect) to type [CODE] (Linux), the kern... | 0 | 1 | 2,533 | 2013-03-24T03:36:25.740 | hadoop_errors | serverfault.com | |
153,508 | Group policy not applying | I am new to group policy, so there might be something simple that I'm missing here. I've created a policy at the User configuration level which calls a VBScript that pushes out a customized hosts file to all users in a particular Organizational Unit. It works fine with Admin Users, but doesn't work with Non-Admin Users... | I hate telling you this, because you anything you think you should be using using HOSTS files for should really be done with DNS. Having said that, a non-Administrator user can't modify the HOSTS file (and you've figured that out already). A logon script runs under the context of the user logging-on, so if the user can... | 0 | 3 | 452 | 2010-06-22T09:11:42.023 | infrastructure | serverfault.com | |
503,399 | SpamAssassin Presets | We're currently migrating our mail from a manually administered RHEL box to a CPanel box, which I'm so excited about I will probably weep a little when it finally happens. As part of the migration, I would love for clients to see an immediate spam reduction as spam has been a bit of a bug bear on our current server. We... | Did you have SpamAssassin installed on your old server? If so you can issue the commands On old server: [CODE] After you copy to new server On new server: [CODE] If you are looking for a spam database to add to your server one suggestion is to install Razor. You did not specify what operating system you are using but h... | 0 | 1 | 111 | 2013-04-29T00:45:09.737 | infrastructure | serverfault.com | |
500,641 | Unusual behaviour after post-Windows Update reboot | One of our Windows 2008 R2 SP1 servers hung during a shutdown whilst performing a Windows Update - I elected to "Shutdown and apply updates" - which with hindsight may not have been an optimal choice. The server hung on the regular grey "Shutting Down Windows" screen, not the one where it tells you it's installing upda... | This is by design. It's common for the OS to install updates before the reboot, and then after. You will see this screen when you have updates with huge files. The updates are queued up, then installed. We tend to see it more when installing Language Packs, Service Packs, large updates, etc. If your concern you can alw... | 2 | 6 | 6,823 | 2013-04-18T16:02:40.003 | infrastructure | serverfault.com | |
294,640 | Is Java package level scope useful? | I understand the idea of package scope, and at times have even thought I wanted it. However, every time I set down with a serious intent to try using it I discovered it did not fit the needs I thought it would serve. My main issue always seems to be that the things that I wish to limit the scope of are never in the sam... | Throughout the [CODE] package there are instances where code is written with package level protection. For example, this bit of [CODE] - a constructor in Java 6 : [CODE] or this getChars method : [CODE] The reason for this is that the designers of the code (and [CODE] can be thought of as a rather large library) wanted... | 13 | 2 | 14,429 | 2015-08-26T14:57:36.660 | api_errors | softwareengineering.stackexchange.com | |
1,085,996 | mTLS: restrict client cert to specific subdomain? | tldr Via mTLS, I'm trying to find a way of issuing a client cert that only grants that client to access a specific subdomain. I have a suspicion that this isn't possible, but I'm not certain. What I'm trying to accomplish Let's say I have a server listening to anything routed to [CODE] Each customer is assigned their o... | Client certificates contain only the information to authenticate the user. Any restrictions on what the authenticated user can do (authorization) including on which site the certificate will be accepted are up to the server who checks the certificate. | 1 | 3 | 608 | 2021-12-11T05:36:09.853 | infrastructure | serverfault.com | |
365,214 | Wireless LAN Bridge with WAN VPN Failover | My network is below, it's currently just an ordinary 192.168.0.0/24, the branch offices needs to have access to resources on the main site. Currently all internet traffic go across the bridge and through the Watchguards WAN connection. The Watchguard issues all DHCP leases to both sites. Currently the Branch site WAN c... | You might want to look at a dynamic routing protocol like OSPF which both devices seem to support. However that would require that you give the main office one network range, and the branch office another. Whether that's the case now or not isn't clear from your question! With OSPF, both paths would be active at the sa... | 1 | 0 | 849 | 2012-03-01T08:48:43.890 | database_errors | serverfault.com | |
562,094 | Not able to view data through Hive mapping to Cassandra | After loading data from Oracle DB to Cassandra via Sqoop, I was able to view my data through both Cassandra and Hive. I was told that while doing so, 2 files would be generated for each, creating space issues. To resolve this, I dropped the table in Hive and created an external table and mapped it to my column family i... | Try creating the table like this: [CODE] | 1 | 0 | 724 | 2013-12-18T07:05:22.897 | warehouse_errors | serverfault.com | |
984,828 | How to fix slow iSCSI speed (in comparison to SMB)? | I have a NAS which provides SMB and iSCSI targets, and a server which is directly connected via a 10 GbE link (no switch in between). I experience slow speeds with the iSCSI target in contrast to "high" (expected) speeds with a SMB "target". See the speed comparison between SMB (Y:) and iSCSI (E:): How to investigate t... | You're using a much too small dataset for your benchmark to have any value, and you don't provide enough information by far. How are the samba share and iSCSI target configured? What is the hardware configuration like on both ends of the link? First, 3 of your results (CIFS read and write, iSCSI read) ran at link speed... | 4 | 4 | 5,196 | 2019-09-19T09:46:18.503 | infrastructure | serverfault.com | |
558,731 | How to check if MySQL server is working or not? | I have installed Webuzo on my unmanaged VPS. I am not able to install any applications, since it is giving me errors such "Unable to connect to MySQL server". But through terminal, the MySQL status is running. Can anybody help how to troubleshoot? | Many ways to do it - in your terminal: [CODE] or [CODE] What you're facing is probably authentication failure or database misspell. Did you try logging in with same creds via Terminal? [CODE] Hope it helps :) | 29 | 46 | 546,570 | 2013-12-02T18:41:43.897 | database_errors | serverfault.com | |
444,621 | Can you setup a whitelist for allowed files in Amazon CloudFront | I'm using CloudFront as a CDN, and my website as an origin for pulls. Basically, I have cdn.mydomain.com pointing over to Cloudfront, and Cloudfront pulls any requests from www.mydomain.com . However, I don't want users to be able to request things like cdn.mydomain.com/default.aspx or cdn.mydomain.com/Robots.txt . In ... | Yes, a less hacky approach is to just put your static files into an S3 bucket and use the S3 bucket as the origin pull. Leave your webserver out of it altogether. | 3 | 1 | 1,355 | 2012-11-01T22:25:12.510 | infrastructure | serverfault.com | |
341,958 | CentOS - Percona MySQL - Not Reading /etc/my.cnf | I've compiled Percona 5.5 on my CentOS 6.1 server and it starts fine, however it doesn't appear to be reading my /etc/my.cnf file. [CODE] Here, I expect to see a value of 'utf8', not latin1. Currently the /etc/my.cnf set as a symbolic link pointed to a my.cnf file which is currently in version control, so it looks like... | I ended up just copying the my.cnf from the version control path to /etc/my.cnf, and everything works fine. Going to go with this until I can drop more time and configure selinux to allow mysqld to access /home/src/config. | 1 | 0 | 4,256 | 2011-12-17T19:39:27.597 | database_errors | serverfault.com | |
272,729 | VMware ESX virtual machine, Windows 2008 Server R2, memory full but process total nowhere near? | We have set up a TFS 2010 server on a Windows 2008 R2 server, and it has recently started to time out and give long operation timings. When I log on to the machine I can see that task manager performance tab says that 3.86GB out of 4 is allocated, yet when I go to the processes tab and sum up all the running processes ... | The performance of a host will degrade instantly whenever "thrashing" occurs - continuous swapping in and out of memory pages under tight memory conditions. You might have a memory leak somewhere. If the task manager does not show excessive memory usage for a single process (BTW, which value were you looking at? The ta... | 4 | 3 | 1,081 | 2011-05-23T13:28:26.273 | database_errors | serverfault.com | |
739,177 | Cant search or order sage transactions when data files are stored on VM Server | We are having an issue where Sage wont search or order the transaction screen of any company when the Company file in sage data is pointed to a VMware workstation hosted server. All our client PC's can access the data stored on the VM, and sage pulls the company data through fine, but as soon as you try to search throu... | The issue Lied with permissions to the users on the domain, they need to specifically set to have full control over the sage data folders. This sorted the issue for me. | 0 | 0 | 23 | 2015-11-26T15:35:23.663 | infrastructure | serverfault.com | |
453,423 | Why do signed deb packages say they're not authenticated when copied to my private deb repo? | Quick Version I have set up a private deb repository and copied some signed deb packages into it. I have installed the signing key locally. However when I try to install from the repo I get this warning: [CODE] When installing manually, I can just press y but I want to install these packages automatically using puppet,... | Are you sure the packages are signed? I'm not sure, but I guess there should be appropriate signature files. We are signing our whole repositories, so there is only one signature for the whole tree, and we let reprepro do this for us. | 5 | 4 | 1,117 | 2012-11-29T12:41:55.217 | pipeline_ops | serverfault.com | |
454,282 | Postfix- call web service after receive of mail | I have postfix installed in ubuntu. I want postfix/any other way(please suggest) to call the web service and provide the email in text format to that. FYI: the web service contains the code to read the keywords in email and reply to that mail accordingly(so the headers must also be sent to the webservice) what can i do... | BTW: I got the answer for FREE we can use shell script as in here or php as in here | 3 | 0 | 1,159 | 2012-12-02T10:20:52.420 | infrastructure | serverfault.com | |
12,770 | how can I import python module tkinter in gitpod | I can't import pyton module [CODE] in my gitpod workspace. My .gitpod.Dockerfile contains: [CODE] but when I run my project I get [CODE] [CODE] shows me [CODE] . Installed packaged are: [CODE] | That problem occurs because the [CODE] image uses [CODE] and the module path is different ( source ). To use python modules, you need to install them using [CODE] or [CODE] . | 0 | 1 | 493 | 2020-11-15T18:48:37.020 | pipeline_ops | devops.stackexchange.com | |
77,086 | How much swap do you allocate for your Solaris server? | I'm still seeing system administrators using the old rule of thumb that swap should be double the memory, even in servers with 32GB of memory. These systems have relatively expensive disks (shipping with 200GB drives) and allocating 64GB of that to swap seems a bit excessive. I was wondering how much swap do you alloca... | The swap = 2 * memory is coming from the old days when during a kernel crash the kernel dumped the memory to the swap device and you were able to check what happened after you rebooted your system. Nowadays for example linux is skipping this at all, and I don't run my system with enabled dump file setup. So, this doubl... | 5 | 7 | 6,533 | 2009-10-22T08:21:14.837 | infrastructure | serverfault.com | |
121,536 | get all the count of sub category from the product table in single query with mysql optimization | Table structure: [CODE] Query executing : [CODE] Desired result: To get all the count of product per sub category. Trying to avoid: Joining the table itself as the number of rows are too much to join as execution time is too much. Edit: [CODE] Output 114 This query works properly for the single subcat_id but how to imp... | Seems you want a simple [CODE] : [CODE] An index on [CODE] would improve efficiency of the query. | 0 | 3 | 2,413 | 2015-11-19T05:48:25.103 | database_errors | dba.stackexchange.com | |
332,070 | TDD on an already started project | I am currently implementing my own programming language. Until now I have written: An [CODE] class for errors (to be thrown) encountered while processing the input source code; Some [CODE] functions (each one with a different tag, passed with a template, like [CODE] or [CODE] ) which help constructing [CODE] objects wi... | TDD is less a testing but more a coding technique. The question you need to ask here is not "shall I test this class or not" but "I want to implement a small change in my code base, how can I write a test which is red before the change, and becomes green after the change" For example, a small change might be the introd... | 1 | 3 | 228 | 2016-09-26T13:48:41.773 | api_errors | softwareengineering.stackexchange.com | |
1,017,438 | Google Nearline Bucket Point in Time Clone | I had a Google Cloud Nearline bucket synced to my NAS. The NAS suffered data loss and it may have made its way up to the bucket. No versioning or logging was enabled so I have no way of knowing beyond modified timestamps and even if that is reliable it would only elude to corrupted data and not lost data. I'm wondering... | since this issue is very specific to your project the best course of action for a case like this is creating a Public Issue Tracker and through it you'll be able to provide all needed info to see what we can do. I will make sure to take over your PIT request as soon as you create it and make sure to take the attention ... | 0 | 0 | 63 | 2020-05-16T18:16:44.917 | data_quality | serverfault.com | |
85,767 | Mercurial not receiving push | I have a mercurial web-frontend (hgwebdir.cgi) installed on a server, and an installation of nginx was installed in front of it as a reverse proxy to the web-frontend as my friend suggested. However, whenever a large changeset is pushed (via a script), it would fail. I found an issue ticket @google-code that describe s... | I spent ages trying to get hgwebdir working with nginx and it is a bit of a hassle, because hgwebdir won't send the request to the browser for authentication. In the end I solved it like this: [CODE] This is the only way you can do it, really, as limit_except can't be combined with fastcgi_pass - in fact no conditional... | 3 | 0 | 1,252 | 2009-11-18T03:05:55.523 | api_errors | serverfault.com | |
758,590 | Enable IKE tracing on windows 10 VPN | I have an IKEV2 VPN setup (including certs) that worked fine on windows 7. On Windows 10, the same config fails with 'IKE authentication credentials are unacceptable'. Server is StrongSwan. The last line in the log for a connection attempt is: [CODE] I cannot see any issues in the strongswan log, in fact I don't even s... | For enabling logs atleast in Creators update and above for windows we added a new trace provider. [CODE] There is also VpnClient_dbg for additional verbose logging | 6 | 5 | 17,967 | 2016-02-20T11:39:01.827 | api_errors | serverfault.com | |
329,087 | Disparity between load times of a single site between myself and a client | I have a client who says that their website loads very slowly, but I cannot reproduce this behavior. I have run a couple of site speed tests and the site scores relatively well. My client has tried loading other sites of a similar footprint; all of which load fine. My client's Internet connection is not great, but if t... | The best way is to do the tests from the client site. Can you travel there or remote in? If not, just instruct them how to do the tests. Browser plugins such as firebug or the chrome inspector tools will show you timing for each of the site components - this data is invaluable. | 0 | 3 | 75 | 2011-11-08T22:35:46.870 | infrastructure | serverfault.com | |
962,334 | Adding machines to the domain in a Read Only Domain Controller (RODC) site | I have a site with terrible physical security and a terrible network connection. So I need a domain controller onsite (for when the network connection goes down) but it also needs to be a RODC for security reasons. The machines onsite in this office have access to other read write domain controllers in other parts of t... | Sadly it seems you will have to create a computer account and then replicate it through your AD domain like what you already found: https://docs.centrify.com/en/css/2017.3-html/index.html#page/Planning,_preparation,_and_deployment/How_to_join_a_domain_with_a_read-only_domain_con.5.html There is this script I found that... | 3 | 0 | 4,614 | 2019-04-10T00:08:22.813 | infrastructure | serverfault.com | |
371,651 | High scale architecture using Event Sourcing and Eventual Consistency | I want to share with you and know what your opinion/improvements are regarding a solution I was tasked with a technical interview I faced. The exercise: You need to create an API which will indicate based on a DNA if a person is male or female. This API must have two endpoints: POST /genre: It will receive a DNA (a mat... | The problem as stated is unsolvable. The requirements for the api is that it return 200 or 400 to the request. Essentially a synchronous RPC call But also that it will be 'overwhelmed' occasionally. Which demands a asynchronous solution. Any solution which fits the requirements will crash as the webservers hit their op... | 2 | 2 | 355 | 2018-05-27T17:46:28.077 | pipeline_ops | softwareengineering.stackexchange.com | |
888,962 | WSUS Error 8000FFFF | Two issues with our WSUS Some of our Servers (2008r2/2012r2) and Win 7 got error 8000FFFF when installing security updates from WSUS. For most of servers and desktops are just working fine. From WSUS report, I can see the updates have been installed on a Win 7, but when I check it manually, I dont see it from [CODE] or... | Before installing this update, install KB3177467, the last Servicing Stack Update for Windows 7 and Windows Server 2008 R2 SP1, to resolve this issue. https://support.microsoft.com/en-us/topic/servicing-stack-update-for-windows-7-sp1-and-windows-server-2008-r2-sp1-october-9-2018-898e4be1-168e-59e2-5536-edd55c4e7cc8 Fro... | 5 | 0 | 1,197 | 2017-12-20T03:33:01.973 | infrastructure | serverfault.com | |
1,127,379 | Error while customizing selinux policy for domain | I am following the steps outlined under this link to customize selinux policy for specific domains (types). For the domain [CODE] , I get the following suggestion from [CODE] for a denial logged: [CODE] Based on the procedure outlined in the above link, I do [CODE] and get the following error: [CODE] I had generated th... | The default_t type is missing from your generated custom_rules.te file. You should open the custom_rules.te and modify the gen_require block like that: [CODE] Then save the file and compile again like this: [CODE] | 1 | 0 | 213 | 2023-03-29T00:39:09.663 | infrastructure | serverfault.com | |
1,070,750 | On which OU should we delegate permissions for adding computer to a domain - clarify microsoft docs | Following principle of Least-Privilege Administrative Model I'm making custom group for managing domain, that would be less privileged than Domain Administrator. For starters it should have permission for adding computer to a domain. I'm testing many different ways of achieving this and I came across this article from ... | Your AD environment should be organized in a way that best suits your/your company's needs. A common approach is to create OUs for individual departments and having sub OUs for Computers and Users. Then, for example, if you want to delegate control to someone for only one department, you would pick the OU representing ... | 0 | 0 | 881 | 2021-07-27T06:35:27.970 | infrastructure | serverfault.com | |
561,869 | Can xxx.com point to www.xxx.com on DNS? | I'm having a problem with my DNS configuration. Everything is quite nice except for one big fact: xxx.com doesn't resolve to anything. I have no idea how to config this, so any help would be nice. | No, you can't create a CNAME record for your xxx.com to point to www.xxx.com. You'll have to create for an A record with the same ip-address as on your www A record. According to RFC 1912 A CNAME record is not allowed to coexist with any other data. In other words, if suzy.podunk.xx is an alias for sue.podunk.xx, you c... | -3 | 3 | 12,242 | 2013-12-17T09:50:08.530 | infrastructure | serverfault.com | |
776,708 | Azure AD Connect Import | I'm running into an issue with the latest version, 4.1.1.180, that I can't resolve. After installation, the AD Connector is now failing and throwing errors. They fail on the import and export run profiles. They sync fails with the [CODE] status The event log then registers two events [CODE] Event 6401 [CODE] I've insta... | I had exactly the same problem happen to me, and in troubleshooting I found this MSDN forum post: https://social.msdn.microsoft.com/Forums/en-US/8cdb6596-11ce-4b06-a02c-14ea440146bc/problems-with-latest-azure-ad-connect?forum=WindowsAzureAD This fixed it for me without needing to do anything else: "Just run Synchroniza... | 0 | 2 | 9,450 | 2016-05-13T23:36:55.570 | api_errors | serverfault.com | |
60,169 | SQL 2008 Replication corrupt data problem | We took a SQL 2000 database. Took a lightspeed backup. Restored on SQL 2008 active/passive cluster. Then setup replication to replicate the data back to SQL 2000. So 2008 is the publisher/distributor, and 2000 is doing a pull subscription. Everything works well, execpt we occassionally get corrupt data in varchar/text ... | If you run SQL Profiler on the Distribution database and the subscriber database do you see the corrupted data on both the distribution database and the subscriber or just the subscriber? Have you tried running the distribution agent on the Publisher/Distributor? | 0 | 1 | 558 | 2009-08-28T22:05:23.880 | database_errors | serverfault.com | |
266,266 | SQL Server Linux(Ubuntu) Connection Options | In general SQL Server Connection Protocols allows three different connection protocols: TCP/IP Named Pipes Shared Memory in linux by default installation we can connect to the SQL Server using TCP/IP, the question is is there any options for named pipes or shared memory or UNIX sockets? Also, it seems there is no optio... | Shared Memory and Named Pipes protocols are only available with SQL Server on Windows. Note the documentation links above call out "SQL Server (Windows only)" in the APPLIES TO header. | 0 | 2 | 1,664 | 2020-05-01T11:16:45.467 | database_errors | dba.stackexchange.com | |
260,520 | Optimize/Speedup query | Below query is used for inserting and updating the tables in the SQL Server database. The XQuery is slow while executing in SSMS for first time. Query insert new [CODE] [CODE] modify balance [CODE] modify transactioncr [CODE] Table schema [CODE] Execution plan The execution plan is attached here sql execution plan Samp... | I don't think there is anything you can do to optimize the XML_DML statements. But you can do something about the [CODE] check in the where clauses. It is better to fully traverse down to the value you are checking before the predicate. So instead of [CODE] you could do [CODE] . Query plan for your version of [CODE] th... | 6 | 8 | 234 | 2020-02-25T10:30:59.173 | api_errors | dba.stackexchange.com | |
346,472 | Missing Dependency issue when trying to install apc extension for php | I'm trying to install apc extension for php according to this tutorial: http://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html but can't successfully run the first command. Here is what I get: [CODE] Does anyone what these two errors mean and how should I fix it? [CODE] I think this is the reason why I can... | How did you install php-5.3.8? The php-devel package has to version match with your installed php. Install the corresponding php-devel first and then try again with installing php-pear. I don't know if that package will be looking for a particular version of php, though. If so, you'll need to find the version-appropria... | 0 | 1 | 424 | 2012-01-04T11:56:01.640 | infrastructure | serverfault.com | |
192,064 | Mysql database replication with geo-distributed servers | I am just a developer, who doesn't have deep knowledge in DBA. So need experts suggestions in this. I have two offline databases in two cities, I want to make a synchronization between two databases using a third database which will be stay alway online in a live server. My problem is like this, Location A database is ... | One solution that could work is a Galera cluster with one node in read-only mode. (See e.g. here for info about geo-distributed Galera cluster.) Galera cluster is a (virtually) synchronous multi-master solution. MariaDB and Percona provide this technology, as does Galera themselves . There is one problem: Since you wou... | 2 | 0 | 759 | 2017-11-30T11:11:00.223 | database_errors | dba.stackexchange.com | |
152,177 | Develop for Desktop and mobile use? | I am in the very beginning of developing an app / desktop program. I want it to be cross-platform and possibly also as a tablet version (preferably Android Icecream sandwich). Note that I need to run it offline. I thought about the following approaches: ADOBE Air, since I do not need much performance. Plus I did some w... | [CODE] You can develp with html5/js and wrap this app into a native mobile app using phonegap | 3 | 4 | 2,989 | 2012-06-09T16:02:49.617 | api_errors | softwareengineering.stackexchange.com | |
1,057,491 | App Engine Restarts | I know that the App Engine restarts to apply fixes etc. If there is more than one instance of your App Engine, does it restart those at the same time, so will that allow a more "100%" uptime if there is more than one instance running. We had been deploying daily as that seemed to allow Google to apply fixes, but in the... | As was mentioned in another thread , according to the documentation there are 2 main reasons for an unexpected restart: Instances restarted on a weekly basis [ 1 ]. A health check giving an HTTP code different from 200 [ 2 ]. | 0 | 2 | 191 | 2021-03-18T13:50:36.203 | infrastructure | serverfault.com | |
293,377 | Non-working ACL configuration | I want both my users 'tobias' and 'www-data' to be able to read and write to a specific directory. To that end I have chowned it to tobias:www-data, added tobias to the www-data group and added setguid to the directory. Files and subdirectories are correctly created with www-data group owning them. The next step is, as... | It seems to work here: [CODE] To be honest, I don't know much about Linux ACLs, but it seems to me that the [CODE] option isn't what you need – it should be enough for the [CODE] options to be set as above. | 2 | 1 | 600 | 2011-07-23T17:23:13.100 | infrastructure | serverfault.com | |
194,629 | File creation dates of archived WAL files not in line with archive_timeout in PostgreSQL 9.6 | I have configured [CODE] (i.e. 5 seconds) for a PostgreSQL 9.6 database in order to conduct tests around point-in-time recovery. My [CODE] invokes [CODE] into a local archive directory. If I check the file modification dates in that local archive directory I see that WAL files are typically created in there only approx... | The documentation has an answer to this: When this parameter is greater than zero, the server will switch to a new segment file whenever this many seconds have elapsed since the last segment file switch, and there has been any database activity, including a single checkpoint (checkpoints are skipped if there is no data... | 1 | 1 | 286 | 2018-01-04T15:21:13.503 | pipeline_ops | dba.stackexchange.com | |
86,052 | 3 Node Replica Set all became SECONDARY | My 3 set replica set all became secondary and I'm not sure why. The logging I got was: db1 [CODE] db2 [CODE] db3 [CODE] rs.conf() [CODE] rs.status() [CODE] | This is a typical network issue. If you check your logs all nodes lost connectivity with each other the same time which means that your network layer failed. Your configuration is fine , i would propose you to use DNS names instead of IPs which will make you more flexible. | 5 | 1 | 288 | 2014-12-12T18:34:41.010 | warehouse_errors | dba.stackexchange.com | |
343,939 | Realtime frontend dashboard, calling api every 3 seconds, reduce cpu loads | I am working on a networking project. Where I am creating a dashboard to view real time status (CPU/memory usage, up/down traffic and few others) of multiple routers by calling API request to server which will call another API request to the routers ( Mikrotik Routers, they offer api to do configuration and get statuse... | Would you not be wanting to cache the data on backend somewhere then allow the Ui to request this, rather than setting off a chain of calls every time. You can then reduce the internal calls to one set per 3s or whatever the refresh rate is? Having the calls chain through the system is good for testing, caching lets yo... | 4 | 3 | 2,230 | 2017-03-11T06:07:36.300 | bi_errors | softwareengineering.stackexchange.com | |
298,704 | How to use ASSERT to confirm the value of `current_user` | While building up my schema (i.e., dev mode), I would like to use ASSERT to "confirm" that I'm doing what I think I'm doing. I tried to use [CODE] Postgres renders the clause as a select statement and reports the error that [CODE] . Right now, that's throwing me a bit given the like: [CODE] I'm new to using Postgres (a... | If I continue on with the given scenarios, [CODE] Got it. | 1 | 0 | 208 | 2021-08-28T13:04:04.743 | warehouse_errors | dba.stackexchange.com | |
11,524 | Unit testing client-side Javascript without the browser | I asked this question on the stackoverflow site: https://stackoverflow.com/questions/27469850/has-client-side-javascript-unit-testing-gotten-lost ...but I think it's a little to open ended. So instead... Does it make sense to unit test client-side Javascript outside of the browser environment? A few notes to inform rea... | Yes, it does, and even if we (our company) don't do it currently, we are working towards it as a goal. One way (to gain speed) is use PhantomJS - headless browser (it executes all commands but does not paint screen unless you want a snapshot). This might, or might not, count as "browser environment". Another way is to ... | 1 | 1 | 625 | 2014-12-14T16:16:22.080 | data_quality | sqa.stackexchange.com | |
717,686 | Dirty Shutdown - Repair or Reseed? | I have a 3 node Exchange 2010 DAG (2 servers in production, 1 in DR). Each mailbox database has 3 copies (2 in production, 1 in DR). Backup Exec takes a backup from the passive copy in production however this has failed due to dirty shutdown. We cannot take a backup from DR at the moment, so my question is can I just r... | If you mean "repair" as in using ESEUTIL, don't do that with a DAG-replicated database. It changes the signature and you'll wreak havoc on it. Assuming that the database doesn't remount and resume sync automatically, then just reseed it. | 4 | 4 | 271 | 2015-08-29T12:25:24.853 | airflow_errors | serverfault.com | |
102,442 | Do I need a database license for my application? | I am developing an application for cemetery management. It is my first "big" project, so I'm not familiar with the "corporative" side of this. First, some info about the app: Has 3 local database files , one for authorizations (Login and permission purposes), another for option storing (each of these two has only one t... | It does not sound like your database and application would be very big in current terms. You could look into the freely available Microsoft tools for Visual Studio Express and SQL Server Express: https://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx http://www.microsoft.com/en-us/server-cloud/produc... | 1 | 4 | 584 | 2015-05-25T20:56:26.063 | warehouse_errors | dba.stackexchange.com | |
255,971 | Trigger SQL Agent job based on text in error log for an AG failover | I have a 2 node AG setup (Not an FCI). I need to configure an alert to trigger a job based on a string found in the error log showing that the node is now the new primary. The string I want to use is: 'primary_pending' to 'primary_normal' This is what shows in the error log when the secondary node becomes primary. I wa... | You need to select [CODE] in the database name selection. The error you are checking for is not related to a specific database, so having a database specified is effectively filtering it so the alert doesn't care about it. I just tested this using RAISERROR to log a message that included "'this' or 'that'" and it worke... | 2 | 1 | 452 | 2019-12-19T15:49:35.103 | database_errors | dba.stackexchange.com | |
118,303 | SSIS Derived Column Conditional Time Modification | I'm using SSIS to transfer data from a MySQL database to a SQL Server one. There's one point that I'm currently stuck on, however. MySQL TIME datatype supports values greater than or equal to 24:00:00, whereas SQL Server TIME caps at 23:59:59. One of the tables I'm transferring has a TIME column that, in MySQL, is 24:0... | So close. It'd be [CODE] The Ternary Operator looks like [CODE] With the notable exception of the ForEach Enumerator, nowhere else in SSIS expressions are you able to use an assignment like time = "00:00:00". It'll basically be implied by whatever column or variables it's being assigned to. If the data type of [CODE] c... | 1 | 4 | 606 | 2015-10-16T21:48:43.453 | database_errors | dba.stackexchange.com | |
892,198 | How to port forward only on a single host IP address | Short question: How do you enable port forwarding on only a single host ip address? Backstory: My Centos 7 server has 5 ip addresses. Previously I had apache listening on all of them and various domains assigned to those ip addresses which were resolved with virtual hosts. I changed the [CODE] directive in httpd.conf s... | A firewalld zone can be specified either by interface or by source address, but you want to filter by destination address. You'll need a rich rule to handle this particular situation. Such a rich rule may look like: [CODE] See the [CODE] man page for documentation on rich rules. Once your rich rule is working, remember... | 3 | 8 | 15,191 | 2018-01-15T04:09:59.623 | infrastructure | serverfault.com | |
122,650 | OS X Terminal lines don't go into scrollback | I have a problem that crops up when using Mac OS X's Terminal (TERM=xterm): sometimes it gets itself into a state where lines that scroll off the top are not added to the scrollback buffer. I'm not using [CODE] or similar; this is a plain bash shell inside a Terminal tab. It doesn't do this immediately after opening a ... | This means that the terminal is using the alternate screen buffer. There is a main screen, which scrolls into the scrollback log, and an alternate screen that does not. "Full screen" or "screen-oriented" programs like top, less, emacs, vim and screen switch the terminal to the alternate screen by default. Each screen h... | 14 | 24 | 9,321 | 2010-03-15T15:34:16.743 | infrastructure | serverfault.com | |
269,359 | Allow User 'git' to run 'git pull' as 'www-data' via sudo | I would like to allow git to run 'git pull' as user 'www-data'. As far as i understand [CODE] in /etc/sudoers should make it. Sadly i get an Syntax error for this line and visudo Syntax highlight breaks right after the "-" in 'www-data' Can't find information regarding forbidden '-' in /etc/sudoers usernames. Any tips? | You need to use full path name for 'git' command, following lines doesn't produce syntax error in visudo and works fine. [CODE] | 12 | 12 | 36,430 | 2011-05-13T11:37:49.530 | infrastructure | serverfault.com | |
213,998 | Slave Missing Data From Master, Manual Insertion Issues? | My transaction logs became corrupted and I had to skip 50 insert records from master. I've exported the data and am planning to update the slaves manually, with the slave stopped. The auto-increment value on the slave stayed in sync with master to my surprise so I think I can just re-populate the missing rows. Are ther... | My recommendations would be to invest some time in learning how to use the pt-table-checksum and pt-table-sync tools from the Percona toolkit. This takes much of the work out of your hands in a much more reliable way. https://www.percona.com/downloads/percona-toolkit/LATEST/ | 0 | 3 | 256 | 2018-08-03T12:36:12.623 | data_quality | dba.stackexchange.com | |
828,885 | Locationmatch not working | I have these 2 LocationMatch directives [CODE] I expect [CODE] to be matched by the first rule [CODE] by the second rule. However in my case both are matched by the 2nd rule. This is on Apache 2.4 | Location and LocationMatch should be defined, less specific first . So the second is being matched because it should have been defined first and it is overriding what you defined in the first one. | 1 | 1 | 3,238 | 2017-01-27T01:23:47.867 | infrastructure | serverfault.com | |
299,406 | Security implications of filesystem ownership | Does giving a non-root user ownership of a filesytem have any security implications? For example, the directory [CODE] and its contents needs to be owned by the postgres user. If I want to put its contents on its own filesystem, is it good practice to mount that filesystem directly on [CODE] or create a directory that ... | Depends on the file-system. As far as I know, ext3 for example will not recognise the uid of owner of the mountpoint but only the uid of the mounted partition root. In any case, imagine that you are using some lame file-system that will respect ownership and follow me... Depending on the file system hierarchy and conte... | 4 | 0 | 269 | 2011-08-09T21:25:50.553 | infrastructure | serverfault.com | |
34,371 | Any issue in referencing a unique index from a foreign key table? | Is there any concern in referencing a unique index from a foreign key table? Using SQL Server 2008 R2 | No, a [CODE] constraint can reference a column combination that is either the [CODE] or has a [CODE] constraint or has a [CODE] . Copied from MSDN page, [CODE] : [CODE] Is a constraint that provides referential integrity for the data in the column or columns. [CODE] constraints require that each value in the column exi... | 6 | 9 | 5,838 | 2013-02-08T06:05:07.813 | database_errors | dba.stackexchange.com | |
258,429 | problem with mysql | mysql or mysql_secure_installation [CODE] mysqld [CODE] I just installed mysql, what's the problem? | You had tried [CODE] which is the first mistake - the error (using password: NO) will be thrown for that. For the first time [CODE] and give root password to enter in. And then [CODE] And next time you shall login through [CODE] and have access to only db1 . (please note: if pc123 is your system user and you prefer thi... | -2 | 0 | 1,047 | 2020-01-29T14:33:20.500 | database_errors | dba.stackexchange.com | |
157,353 | Wrapping query in IF EXISTS makes it very slow | I have the below query : [CODE] The above query completes in three seconds. If the above query returns any value, we want the stored procedure to EXIT,so I rewrote it like below: [CODE] However this is taking 10 minutes. I can rewrite the above query like below, which also completes in less than 3 seconds: [CODE] The i... | As has been explained by Paul White in his blog post: Inside the Optimizer: Row Goals In Depth the [CODE] introduces a row goal, which prefers [CODE] or [CODE] over [CODE] As a final example, consider that a logical semi-join (such as a sub-query introduced with EXISTS) shares the overall theme: it should be optimised ... | 21 | 22 | 13,594 | 2016-12-06T14:58:23.677 | database_errors | dba.stackexchange.com | |
495,332 | How to view pptpd clients? | I have installed pptpd in my linode vps, and setup a few client accounts. The problem is how could I view current connected pptpd clients in commandline? | You can use the command [CODE] The above command uses [CODE] to display all logins of users. As all PPTP VPN are connected through ppp0 / ppp1 / pp2 / ... , you can get VPN user access history. Sample result: [CODE] | 2 | 7 | 23,970 | 2013-04-02T09:40:10.963 | infrastructure | serverfault.com | |
847,924 | chkconfig wont install tomcat8 | I have tomcat8 intalled on my Amazon Linux AMI, I modified the tomcat8 init script header, so chkconfig could install tomcat8 to run automatically on boot. The modified header is: [CODE] I as you can see I set it to run on runlevels 3, 4, and 5. Then I runned: [CODE] And to my dispair after running the [CODE] option, t... | The [CODE] switch only adds a new service for management by [CODE] . If the service is already present and has a symlink in every [CODE] directory that won't do anything... To modify the runlevels in which tomcat8 should be started you didn't need to edit the init script, but simply run: [CODE] or alternatively after y... | 0 | 1 | 321 | 2017-05-03T06:26:51.940 | infrastructure | serverfault.com | |
79,815 | Windows Storage Server 2003 R2 RDP Disconnection | I am unable to remote desktop to our Windows Storage Server 2003 R2 machine. There are a few people about with similar issues but no answers around. Symantec End Point is installed but no network protection. Using rdesktop in Linux I receive: [CODE] Where the "PDU XX" number changes on each connection. In windows using... | Drivers. Check for the latest drivers, DISABLE TCP OFFLOADING / CHIMNEY. Some drivers around are crappy like hell. | 3 | 1 | 1,159 | 2009-10-30T10:05:48.693 | infrastructure | serverfault.com | |
376,292 | Need Tomcat5 configured to listen on all interfaces | I have tomcat5 installed on CentOS. which is configured to listen only from 127.0.0.1. How do I configure Tomcat to listen from all interfaces. Connector port config is as under: [CODE] | You need to change the connector stanza in your [CODE] file. [CODE] You need to add/change the [CODE] attribute. Don't forget to restart your tomcat server after that. | 6 | 6 | 16,753 | 2012-04-03T13:55:46.090 | infrastructure | serverfault.com | |
1,117,413 | Two Subnet Routing | Consider the following scenario Network 1 Switch (Call it Switch1) with the following connected appliances Old Windows 2008 Server (Old Domain Controller) with interface IP 192.168.2.113 255.255.255.0 (No Gateway) ISP Router for Internet service with Ip Address 192.168.1.1 255.255.255.0 Network 2 Switch 48 port (call i... | Diagrams help a lot when asking questions like these. If I understand correctly, based on the information you've provided, your Windows Server 2019 machine (10.3.15.1/192.168.2.50) is supposed to be routing between the 2 networks/switches, a ping from 10.3.15.5 to 192.168.2.113 is supposed to look like this: [CODE] The... | -1 | 0 | 376 | 2022-12-06T17:34:01.577 | infrastructure | serverfault.com | |
438,666 | Active directory integration not working properly with winbind and samba | I'm trying to get my linux box to use active directory authentication. I believe I have almost everything setup correctly. I'm able to issue [CODE] and [CODE] and see all the groups and users respectively. Brief intro to my setup: The username I use on my linux box to do admin things is [CODE] . My active directory use... | It sounds like you have a UID overlap. If [CODE] and [CODE] share the same numeric UID the first nsswitch match will win for things like [CODE] , [CODE] , [CODE] , etc. (and the first match is usually out of the passwd file unless you've changed the order in [CODE] or equivalent). (logins will work with either name, be... | 4 | 3 | 3,849 | 2012-10-15T20:14:40.070 | api_errors | serverfault.com | |
483,038 | Squid TPROXY connection fails on specific sites? | When squid setup as TPROXY, returns ERR_CONNECT_FAIL on some sites . The server which squid runs on it is able to open those sites by lynx, wget, curl etc . Even if we manually set proxy in browser or use simple REDIRECT or DST-NAT, those sites could open. From this page http://wiki.squid-cache.org/SquidFaq/Interceptio... | From the [CODE] output you provided, following lines indicate a problem, i.e. your host sending a SYN to destination, and then sending an RST to the destination as well, but ofcourse TTLs are different, so seems like some [CODE] magic going on: [CODE] It doesn't seem like an MTU problem. To start with troubleshooting, ... | 2 | 2 | 15,214 | 2013-02-27T14:42:58.927 | api_errors | serverfault.com | |
28,075 | Writing a database analysis document | I've been tasked with writing an analysis of a database that is currently used on a small scale. The intent of the document is to show to the business (as well as technically) that the database can scale to support other business divisions. I've struggled to find any database documentation standards on the web. It seem... | I would actually verify how it scales up: set up a test environment, expose to to the workload you are expecting, and see what happens. That done, describing your tests would be easy. If you skip this essential step, your write-up might look good on paper and be completely useless. | 4 | 2 | 1,015 | 2012-11-02T14:23:17.523 | data_quality | dba.stackexchange.com | |
28,478 | Upgrade production database during software development lifecycle | Background Using Oracle, there are a number of tools that help with migrating and applying development changes into the production environment (such as Embarcadero Change Manager ). These tools can be configured to perform any database DDL upgrade with little to no human intervention. Problem I have development and pro... | Advice Never manually apply database changes; use scripts that are in a version control system (VCS). After initial deployment, store the "delta" scripts in the VCS. When upgrading, apply all scripts that are missing. Tracking the scripts that have been applied is a standard problem. Solutions There are tools to automa... | 1 | 5 | 1,125 | 2012-11-10T07:30:51.353 | pipeline_ops | dba.stackexchange.com | |
242,311 | ganeti fails to install debootstrap instances on squeeze | ganeti 2.4-rc3 setup on my squeeze server went fine and I can successfully create instances: [CODE] It tells me that the instance is running fine: [CODE] However debootstrap cannot install an operating system because it fails to mount a root device. This is a snap of the vm console: [CODE] What's installed: debian sque... | The default root_path set for xen-pvm is just wrong. I changed id via [CODE] and debootstrap installed squeeze just fine! | 1 | 1 | 1,211 | 2011-03-02T16:18:20.950 | infrastructure | serverfault.com | |
384,548 | How to profile before optimising for readability | When optimising for speed, profiling first can help focus the effort on the parts of the code that bring most benefit. Since speed can be measured objectively, the benefit can also be measured objectively by profiling before and after making a change. Is there any analogous approach when optimising for readability? I'm... | The idea is compelling, but I think it needs some more work to find valid measurements for readability. To understand a piece of software, you need to understand the complete code dependency tree from the entry point down to the lowest level of your supporting libraries. Of course, reading through the complete tree isn... | 1 | 4 | 124 | 2018-12-25T20:39:45.233 | api_errors | softwareengineering.stackexchange.com | |
438,879 | Should I "modularize" my configuration file into different files? | I have a simulation in Python which reads its configuration from a toml file. Since I have tons of parameters, the toml file can grow quite large. This is an example file, similar in structure to my actual configuration file: [CODE] [CODE] Once loaded in Python, this turns into a dictionary similar to this: [CODE] My i... | This doesn’t look like a configuration file to me, but a database. So use a database. | 0 | 3 | 185 | 2022-05-26T16:32:39.057 | api_errors | softwareengineering.stackexchange.com | |
1,021,846 | How to disable basic authentication when using kerberos on nginx? | My task is to configure Kerberos authentication on nginx. The backend is django. The idea is that when a request is made to api, nginx should perform kerberos authentication. But in case the user is not in the domain, then a redirect to the [CODE] authorization page must occur, so that the user can authenticate under a... | I may be wrong, but I think API calls you make via AJAX will not have the authentication credentials attached. The browser will attach them for URL navigation only I have a very similar setup and its working for me: The default / handler points to the login dialog but /auto-login is under auth_gss Note that nginx retur... | 1 | 0 | 2,076 | 2020-06-17T10:57:10.030 | api_errors | serverfault.com | |
208,978 | Is it bad to place "include directive" within main function? | It is always said that the [CODE] s should be placed at the beginning of a script. The main reason is to make the functions available throughout the script. Regardless of this fact, is it bad to place an [CODE] within the main function where it is needed? For example, [CODE] Instead of [CODE] I was unable to find any d... | It depends on what code is in the include file. Did you try putting the #include for inside main()? Depending on how the standard library is implemented on your system it may not even compile. Header files can contain not only function declarations, but function definitions. Standard C doesn't support nested functions.... | 5 | 14 | 6,572 | 2013-08-21T03:00:17.270 | api_errors | softwareengineering.stackexchange.com | |
321,005 | Unable to translate Unicode character \\uDCC9 at index 5 to specified code page | I'm using MariaDB (and Adminer) MySQL version: 5.5.5-10.10.2-MariaDB-1:10.10.2+maria~ubu2204 through PHP extension MySQLi And this is the [CODE] : [CODE] I'm using Bogus to insert some fake data using [CODE] . But when I call [CODE] , I get this error: Unable to translate Unicode character \uDCC9 at index 5 to specifie... | "Surrogates" are not handled in utf8mb3; you need utf8mb4. [CODE] | 0 | 1 | 419 | 2022-12-15T12:25:07.470 | database_errors | dba.stackexchange.com | |
962,920 | rDNS issue in Cloudflare and AWS ec2 instance | I have installed centos7, whm/cpanel and mailwizz on amazon ec2 instance, managing DNS through cloudflare.com. Everything is fine i have issue with rDNS even i have created PTR records in Route53 and WHM. WHM still shows following issue with PTR in Email Deliverability section. The system sends “app.mydomain.com”’s out... | If that [CODE] is AWS address you have no control over the PTR records. You have to ask AWS to create the PTR record in their DNS . I have done that in the past and I believe there is a form for it somewhere. Background: Obviously AWS has control over the reverse DNS of their IPs. Even if you created [CODE] zone in Ult... | 3 | 1 | 704 | 2019-04-13T16:15:04.927 | infrastructure | serverfault.com | |
174,588 | Xserve G5 Leopard Server - How to turn off the beeping when the RAID is degraded? | My XServe G5 is beeping constantly because of a RAID drive that has failed. We're going to get a new replacement drive tomorrow evening. The beeping is very annoying and I was wondering if there was a way to turn it off? I've found some articles about this on google but they all seem to be about megaraid, but I don't h... | If your Xserve G5 doesn't have a MegaRAID card, then it doesn't have the capability to emit an audible alarm. If you are convinced you don't have this card, then you're most probably hearing the failing hard disk itself. Have you tried removing the failed drive? | 0 | 0 | 629 | 2010-08-26T00:38:24.527 | infrastructure | serverfault.com | |
44,548 | How do I automate the setting of Cypress environment variables on a windows machine via a text file? | On Unix and Mac machines, environmental variables can be read from .env files which have ' export ' commands in them. For example: [CODE] In windows, there's no such thing as the ' export ' command. I therefore use the ' set ' command to set the environmental variables. [CODE] The problem is that I have to enter each a... | You can create a batch file where you set all your environment variables. A batch file in Windows is just a text file with [CODE] extension, it could look like this: [CODE] Then you execute it from the cmd: [CODE] and you've set up what you previously did command by command. You can also set a system environment variab... | 2 | 1 | 441 | 2020-05-12T08:06:53.547 | data_quality | sqa.stackexchange.com | |
980,016 | 365 - Mail-enabled public folder not visible in EAC, Outlook, or Get-PublicFolder. BUT visible to Get-MailPublicFolder | I'm encountering a strange Exchange issue I haven't been able to figure out. Exchange Online (Office 365). Originally was an Exchange 2010 environment, migrated via O365 Hybrid Config, hybrid has since been decommissioned and the organization is cloud-only at this point. Problem - It appears that I have several 'orphan... | Are those invisible public folders belonging to the same public folder mailbox? Firstly, you can try the following methods: In outlook, you can try to disable cached Exchange mode. There is a similar case for your reference. In EAC, you can use Get-PublicFolderClientPermission -Identity "\My Public Folder" -User xx | F... | 0 | 0 | 2,261 | 2019-08-20T15:43:29.127 | infrastructure | serverfault.com | |
207,332 | Does cohesion really reduce coupling? | ' Cohesive classes reduce coupling ' So, if cohesive classes or connected classes reduce coupling (union), which piece of the puzzle is missing me? BTW, I took this sentence from an article about identifying classes before any developmemt, which I'm trying to figure out the whole sense of why, when, how to use 'that' p... | It is not contradictory; it's actually a pretty basic idea in OOD. Most of OOD principles relate to one another. Cohesion relates to how well a given functionality is modeled in a system; if that functionality is only implemented in a single module, then that module is highly cohesive. On the other hand, if a certain f... | 4 | 8 | 3,585 | 2013-08-06T04:25:02.593 | api_errors | softwareengineering.stackexchange.com | |
1,060,228 | Nginx reverse proxy failing with Stunnel and Mirth FHIR client | I have an application behind a Nginx reverse proxy that I am trying to access from an external client. Both the client and the application only support http. Therefore I am using Stunnel on the client side to map http to https and nginix on the server side to map https back to http for the application (which is hosted ... | In case somebody else stumbles across this obscure issue. The Problem: The Mirth integration engine community version only supports http for FHIR, not https. Stunnel is an obvious choice to solve this problem. Install Stunnel on the source and destination servers and map http to https across the secure tunnel. However,... | 1 | 1 | 590 | 2021-04-13T08:59:29.263 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.