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 |
|---|---|---|---|---|---|---|---|---|---|---|
50,311 | appium-doctor --android returns error AppiumDoctor ✖ android could NOT be found in /Library/Android/sdk! on macOS | Team, Facing error while executing [CODE] AppiumDoctor ✖ android could NOT be found in /Library/Android/sdk! Interestingly, Location exist with appropriate permission Android SDK exist on same location. Verified location in Android studio ANDROID_HOME is set correctly under environment variable Detected correctly by ap... | Finally fixed : Spend little more time in googling the cause and solution if any. But few trick resolved this error. Add below lines in your [CODE] [CODE] Android studio > SDK manager > SDK Tools > Uncheck "Hide Obsolete Packages" option & install all of them Reopen terminal or [CODE] | 2 | 0 | 6,434 | 2022-06-28T19:30:46.910 | data_quality | sqa.stackexchange.com | |
114,297 | How to calculate accuracy of an imbalanced dataset | I like to understand what is the accuracy of an imbalanced dataset. Let's suppose we have a medical dataset and we want to predict the disease among the patients. Say, in an existing dataset 95% of patients do not have a disease, and 5% patients have disease. So clearly, it is an imbalanced dataset. Now, assume our mod... | Accuracy is the number of correct predictions out of the number of possible predictions. In many regards, it is like an exam score: you had an opportunity to get $100\%$ of the points and got $97\%$ or $79\%$ or whatever. The class ratio is not a factor. In your example, you had $95$ negative patients and $5$ positive.... | 2 | 7 | 1,143 | 2022-09-10T18:05:12.993 | data_quality | datascience.stackexchange.com | |
965,119 | Azure VM load balancing | My client has a small Azure farm consisting of a domain controller, file server and, critically a Citrix XenApp server. It's run flawlessly for a couple of years. They reported the XenApp server was offline this morning and when I checked Azure, there were indeed notifications that the host they were using had failed a... | Back when I managed a private cloud, I'd have logged onto the host to see how it was doing resource wise. Can one do this in Azure? No, you cannot log into the host of IaaS clouds like Azure. Rely on your application response time and VM level performance metrics. Clouds like this also only do this host migration for h... | 0 | 1 | 38 | 2019-04-29T15:02:53.957 | pipeline_ops | serverfault.com | |
762,683 | dynamic VLANs on cheap Access Point after switch | I set up 802.1x on the wifi and now I want to configure dynamic vlan. Only problem: the AP (TP-Link Archer C7 v2 w/stock firmware) doesn't support vlans. Let me be a bit more visual: a network diagram . The important part here is: client -> wireless router -> layer 3 switch -> RADIUS. In the web-config of the wireless ... | If the AP won't do vlans, you'll need a different AP. End of story. You must have an AP that supports vlan assignment via radius, and since your current AP does not support them, you're out of luck until you replace it. Engenius and Ubiquiti both have some nice, low-cost (just over $100) APs that can do what you're ask... | 1 | 4 | 1,404 | 2016-03-09T17:27:01.013 | infrastructure | serverfault.com | |
196,319 | MVC shared model different required fields on different type | I have a model called Car and depending on what type of Car the user select the view is presented differently. For example the user selects from a grid of different cars and depending if it is a Volvo or a Kia or a Ford the view must allow different fields to be editable. For example with a Volvo the color is editable ... | The state of the fields are the domain of your model. The view should have absolutely no "smarts" within it in determining the enabled or disabled state of its widgets. All "logic" must be provided by the model itself. Binding should be done polymorphically within the model, not the view. The view must be able to reque... | 5 | 1 | 2,291 | 2013-04-27T03:19:22.273 | data_quality | softwareengineering.stackexchange.com | |
8,851 | SQL 2005 Permission Precedence | Very simple question - I have two database roles (Basic, Admin). Say I explicitly deny the Basic role from deleting from table A and grant that to the Admin role. If I am a user who is in both roles, can I delete from table A? | Never a simple answer... For a direct DELETE, a user in both roles won't be able to DELETE DENY always has precedence when permissions are checked For indirect via a stored procedure, the permissions may not be checked if both table and proc have the same owner. So both GRANT and DENY will be ignored. This is called "o... | 3 | 4 | 300 | 2011-12-06T20:04:14.870 | warehouse_errors | dba.stackexchange.com | |
578,366 | Global Catalog position in a multi site Active Directory single domain on Windows 2003 | I've inherited a Windows 2003 active directory single domain spread across multiple site locations. I'm checking configuration because previous admin left without leaving any information about his design choices. Actually we have: HEADQUARTER: (circa 300 users) SRVHEAD1 - holding all FSMO roles (virtual host on vmware ... | Legacy guidance was to have a GC only where you need them. This is outdated now and the modern recommendation is that all DCs be GCs unless you have an extremely compelling reason to reduce replication traffic. | 2 | 2 | 437 | 2014-02-26T09:56:52.650 | infrastructure | serverfault.com | |
165,982 | Why do we get TCP disconnects when using AWS Elastic Load Balancer? | We are running our servers on AWS EC2 instances. The servers have to provide HTTP on port 80 and RTMP (TCP) on port 1935. Running a single instance works fine. But as soon as I use Elastic Load Balancing to balance the load between two EC2 instances the RTMP (TCP) connection gets lost after a minute. Even though our ap... | Thanks to l1x I found the answer myself on the AWS Developer Community forum. It sounds like what is happening is that the connection is timing out. If there is no data written or read on the connection to the loadbalancer in 60 seconds the connection is closed. You could send some sort of heartbeat data to the socket ... | 2 | 1 | 4,216 | 2010-08-01T06:22:06.997 | database_errors | serverfault.com | |
791,365 | How to get Specs for all systems on a network? | I have started working in a network of 50+ Computers, most of them vary in terms of specs, some have 64gb of Ram other have 24gb, some have nvidia gpus others have Raedons, Parts are swapped and changed between machine regularly enough, every month or so three - four parts could have moved. The method I'm currently usi... | You could use OSC Ng software - this is a great tool for maintaing a database of equipment. It's opensource, and is operating through software agents installed on end-user machines and servers. Basically, the agent approach is general when considering such software. | -1 | 1 | 1,718 | 2016-07-22T09:10:12.037 | infrastructure | serverfault.com | |
247,162 | Building a custom Router | I need to create the network below: Facts: The router is a Linux box (don't care about the flavor), it has 2 NIC's. The switch is unable to support VLAN's. The servers need a WAN-IP. NAT is not an option. This is all I get to work with (yeey budget-cuts). How do I go about building this router (that isn't always a rout... | NAT Forwarding - Put all the external IPs on the router, then forward the appropraite IP:Port combinations to the correct internal server. All internal computer use a 10.x.x.x IP. Almost any router platform can do this except the cheapest SOHO routers. pfSense, M0n0wall, or a generic Linux or BSD distro would work fine... | 2 | 4 | 317 | 2011-03-14T13:58:17.107 | infrastructure | serverfault.com | |
179,443 | Execute Stored Procedure with SET LOCK_TIMEOUT | Is there anyway to execute stored procedure with [CODE] explicitly? E.g. I have sproc called [CODE] . It just takes data from table [CODE] and insert them in table [CODE] . Now I want to execute the sproc [CODE] , but if the table [CODE] is [CODE] for e.g. more than 10 seconds, stop the execution of the stored procedur... | [CODE] is not only a session-level setting, it also needs to be set in a separate batch. But, it cannot be set via a variable. So, this can be accomplished by using Dynamic SQL in the "master" Stored Procedure. This will allow for setting [CODE] and then executing whatever other Stored Procedure that should run within ... | 3 | 3 | 17,743 | 2017-07-10T09:35:16.623 | database_errors | dba.stackexchange.com | |
315,007 | Problem with corrupted MariaDB database file | When the MariaDB database on my Docker container keeps restarting itself, I figured out that the problem is in my database (I think it's corrupted). [CODE] MariaDB docker container error logs file: [CODE] Here is the docker-compose.yml file: [CODE] I already have a full physical backup of my MariaDB database and I have... | Looks like MDEV-28870 fixed in 10.7.5. Physical backups can preserve some forms of corruption. So if your backup is generating this then: use [CODE] as a container take a logical dump of the database in the container restore into a 10.7.5+ container. | 1 | 0 | 3,376 | 2022-07-29T05:35:46.677 | database_errors | dba.stackexchange.com | |
420,860 | How does a database implementor migrate their database engine to a new data structure? | I am working on implementing a database of sorts and am stuck wanting to make it perfect from the get go because I realize I don't know how to migrate the database engine from one data structure to another (as the data structure implementations evolve). I am afraid that if I pick a database data structure, then I won't... | What you are dealing with is a change in the structure of the files that are used to persist information. There are two main ways to deal with this: Perform a conversion from the old format to the new format during installation of the software version that relies on the new format. The conversion tool would be able to ... | 2 | 3 | 108 | 2021-01-10T02:03:38.917 | api_errors | softwareengineering.stackexchange.com | |
924,105 | nginx rewrite phpphumb & cache-control | I want to use phpthumb generator & add some custom expires header to all images When I use only phpthumb rewrites it working but when add cache-control rewrites can't generate new thumbs my code is: [CODE] and for cache-control: [CODE] I try also this with no luck .. [CODE] Any ideas how to solve this? Thanks, T. | After a night on it, I found a right way :) [CODE] My big problem that produces incorrect rewrites was on nginx.conf: [CODE] After I comment those lines rewrites work correctly. | 0 | 0 | 180 | 2018-07-30T13:37:19.743 | infrastructure | serverfault.com | |
253,064 | Backing up a SQL Server 2008 R2 Database without stored procedures | Is it possible to back up a SQL Server database, but only back up the Table structures and content (i.e. not include the stored procedures, views etc?) The scenario: We have a data centre hosted product with one unique database per customer. For many of the customers, we are required to provide them with a copy of thei... | Backup production database. Restore as staging_extract. Remove the SPs etc (we have a script for this). Do a full backup, send this to the customer. Backup production database. Restore as staging_master Use Redgate SQL Data Compare to do a data compare and copy changed data into staging_extract Do a differential backup... | 2 | 1 | 3,987 | 2011-03-29T08:48:42.433 | database_errors | serverfault.com | |
112,937 | How to use MySQLTuner on Amazon RDS | I've installed MySQLTuner locally and it works on my local database. When I try to run it on my Amazon RDS db it does not, it says my login credentials are invalid. [CODE] I'm able to [CODE] normally into the RDS db locally with. [CODE] What could I be missing here? UPDATE The DB is on an AWS RDS db.m3.large instance w... | Observations Version: 5.6.23-log 7.5 GB of RAM Uptime = 02:09:14; Please rerun SHOW GLOBAL STATUS after several hours. You are not running on Windows. Running 64-bit version You appear to be running entirely (or mostly) InnoDB. Important items tmp_table_size = 64M Review indexes and query formulation -- many are lookin... | 3 | 3 | 6,679 | 2015-09-02T11:55:31.687 | database_errors | dba.stackexchange.com | |
773,812 | start systemd service on start of requirement | I have a service which depends on mysql.service via [CODE] . This is necessary, because the service crashes, if mysql is not available. Executing [CODE] works fine. It stops my service first, restarts mysql and starts my service again. How can I configure my unit, that it is also started again, if I run [CODE] ? This i... | new and better answer Clearly i have not been reading well yesterday. It seems your problem can easily be solved by adding [CODE] to your services [CODE] under the [CODE] section. then after you reenable your service, it should be started whenever [CODE] is started, as long as your service is enabled the result looks l... | 6 | 4 | 1,497 | 2016-04-29T10:57:13.857 | database_errors | serverfault.com | |
321,614 | SQL Server 2008 R2 Backup | I see this error message in log BACKUP failed to complete the command BACKUP DATABASE model. Check the backup application log for detailed messages. SQL Agent is disabled. I never issued backup command. There is a single user database on this server. I don't know what's going on? | "Model" is one of the 4 system databases that comes with SQL Server. Most likely the SQL Server takes automatic backups of its core from time to time to cleanup transactions or something? I wouldn't imagine you should be worried about that backup command. | 1 | 0 | 334 | 2011-10-14T20:38:58.480 | database_errors | serverfault.com | |
411,761 | Best way to push out a hotfix | Possible Duplicate: How do I deploy MS hotfix KB959628 exe/msp via a gpo easily? We have a hotfix that we need to put onto our windows xp machines to get Single Sign on for web apps working. I cant add the hotfix to WSUS as it wont appear in the update catalogue. What is the best way of pushing this out, we have no oth... | Ok so firstly you will have to extract the contents of this hotfix, open CMD, locate your hotfix, and type the following: [CODE] This will have extracted several files, including an MSP file. You could then build a script based around this MSP file, create a script called "KB953760.bat", then host the file on your doma... | 2 | 2 | 2,728 | 2012-07-27T07:47:56.233 | data_quality | serverfault.com | |
67,820 | Sendmail checking dnsbl for spam | I've been trying to get sendmail to use zen.spamhaus.org as a dnsbl. I try the Crynwr test and it emails me telling me that it failed. I get one email saying, [CODE] and the second email, [CODE] This is my sendmail mc file: [CODE] Any pointers or hints is greatly appreciated | I'm not a sendmail expert, but I can provide a sample of working config (tested it on crynwr via telnet). Taken from one of my old RH servers, so it can be in quite bad shape. Also you should consider that order of options in sendmail configuration file could be the culprit of your problems. [CODE] HTH | 1 | 1 | 1,790 | 2009-09-22T20:00:41.803 | infrastructure | serverfault.com | |
447,424 | moving files and directories between two machine, via a third, preserving permissions and usernames | The situation is as follows: Machine A has a file repository accessible via rsync Machine B needs the above mentioned files with all permissions and ownerships intact (including groups etc) Machine C has access to both A and B, but has a completely different set of users. Normally, i would just rsync everything over, d... | So, to answer the tar question: [CODE] And [CODE] | 1 | 1 | 258 | 2012-11-10T19:29:21.437 | infrastructure | serverfault.com | |
912,217 | APC UPS replace battery illuminates | I have an APC SmartUPS 1000 for my servers. It was good for over 2 years, its capacity is always 5/5. One day I saw a red light illuminated. I searched for the reference it is either "Replace" Battery" or "Battery Disconnected". If that was battery disconnected, there should be a beep sound with it and it didn't beep, ... | A battery can hold between 1 and 10 years. This depends on many factors like: battery lot, storage conditions, usage conditions. If the capacity suddenly dropped to a very low value, it means the batteries need replacement. Just order replacements and you should be fine. | -2 | 5 | 416 | 2018-05-15T03:23:05.693 | infrastructure | serverfault.com | |
290,600 | WMWARE and windows 7 network problem | Sorry I have not idea about windows, not really interested (I always use Linux) but at my work gotta use it now, so it's the rule. My problem is with Wmware and a network issue, let me explain you: Scenario: A) I gotta a laptop with windows 7 here are my network configuration (the IP is fixed): ip: 192.168.1.236 netmas... | You assigned an IP conflict to that vmware adapter, its going to think that 1.1 is local to your own machine. change that information or take it out entirely, you DEFINITELY want to be using bridged mode here. | 0 | 0 | 463 | 2011-07-15T03:32:39.790 | infrastructure | serverfault.com | |
432,914 | Setting HTTPS Proxy in Winbox for MikroTik | I am using MikroTik router model RB750 , I need to use HTTPS proxy method for some of my clients. The Proxy Server (VPS) is in another country and i have the IP address and the Port Number and a username and password for connection, in the Proxy Server i have a CCPROXY program. i have a VPN in router but i need th set ... | Unfortunately Mikrotik RouterOS does not support acting as HTTPS proxy. Also if you check further it does not have any options for SSL certificates regarding to its proxy. You can use Linux/squid or Microsoft ISA / TMG for HTTPS scenario. If you want, Mikrotik has HTTP proxy with authentication in IP > Web Proxy. | 5 | 2 | 24,409 | 2012-09-28T11:24:47.480 | infrastructure | serverfault.com | |
370,956 | Web Farm Framework - Missing IIS features | I'm trying to install a web farm using Microsoft's Web Farm Framework 2.2. The server is Windows 2008 R2 with IIS 7.5. I followed a tutorial. Installed WFF from Web Platform Installer. However, I'm missing some key features in the "Server Farm" panel in IIS. This is how my setup looks like However, just like in the tut... | That's Application Request Routing . Install it as well. As a note, you might need to nuke your farm configuration if there are problems layering it atop the existing installation (which I assume is on a controller). App Request Routing is the proxying module that integrates with Web Farm Framework, which is the Server... | 6 | 2 | 4,118 | 2012-03-18T23:24:00.380 | hadoop_errors | serverfault.com | |
893,784 | OpenVPN Client-Side Scripting of mapped drives | I've done quite a bit of searching but need help running scripts on clients when they connect. The end goal is for windows clients to map some drives when they connect, and disconnect the drives when disconnecting. The OpenVPN server is an Amazon Marketplace instance, and I do have access to the console via putty/sftp.... | The default script interpreter for OpenVPN on Windows is cmd.exe. Modify your client-side script to only include [CODE] or other cmd appropriate commands and you should be good to go. @JasonC also found that the password needed to be quoted. Edit: If you want the end user to type in a password, use something like this ... | 0 | 1 | 3,708 | 2018-01-24T00:20:03.230 | infrastructure | serverfault.com | |
331,294 | Does it makes sense to have the operational DB and analytics DB on the same SQLServer? | Let's say I have a single table that stores tracing information from mobile devices (each record has deviceID, transaction info, a json column with full details about the operation, time of operation, user, etc...), this is the operational DB. Some users may need to get get tracing information of a time range, about a ... | Saying in a different way, I have two options, using one SQLServer instance: insert data on one table with all the indexes I need, and query that table for tracing AND for analytics insert data on one table with few indexes, and copy it to another table with more indexes and a reduced overall size, and query the first ... | 0 | 1 | 80 | 2023-09-17T22:01:00.573 | data_quality | dba.stackexchange.com | |
8,257 | Load Test Methodology for a cache | I'm currently writing a load test for a cache which should test how a cache will react to persistent requests. A colleague and I had differing opinions on how this load testing should be performed. I believe that a load test should be as random as possible. It should model real-world load as much as possible, and the w... | Do you have a way to reset the data once the test is run (if this is even necessary)? If so, what about running the non-random test first - to look for failures when run that way (and possible anomalies caused by the data itself)? Then, after resetting (if necessary), run the random tests to reflect the real world load... | 6 | 3 | 1,363 | 2010-09-29T15:40:33.660 | api_errors | softwareengineering.stackexchange.com | |
968,701 | How can I find (or compute) a client MAC address when using the strongSwan DHCP plugin? | Server [CODE] [CODE] Client [CODE] [CODE] The client is getting a dynamic IP from [CODE] but I would like to assign a static one using the following in [CODE] . [CODE] According to https://wiki.strongswan.org/projects/strongswan/wiki/DHCPPlugin , the client MAC address can optionally be based on the IKEv2 identity of t... | Not sure how to compute the MAC, but it can be found by running [CODE] . | 0 | 0 | 378 | 2019-05-24T11:45:39.657 | infrastructure | serverfault.com | |
409,480 | Design Algorithms and Data Structures Around a Lack of Fast Integer Division | I had begun scouring my code for optimization opportunities (execution speed, data parallelism, workload parallelism) yesterday when I noticed that there are very few opportunities for speeding up integer divisions. Integer division is heavily used in a hot spot area. Not only is it slow relative to the bit shifts, it’... | Division always has been and always will be one of the slower operations for CPUs, no matter if integer or floating point. This has to do with the very nature of that operation. You can also see that by the fact that all clever compilers will optimize [CODE] to [CODE] and [CODE] to [CODE] (f = floating point value; i =... | 0 | 5 | 99 | 2020-04-29T18:53:46.273 | api_errors | softwareengineering.stackexchange.com | |
299,984 | VirtualHost not working? | The problem: On my local machine only, I want to enter the URL homepage.local and I want it to open my local webpage [CODE] found in my local directory [CODE] . I thought I could achieve this by using the below vhost configuration but it doesn't seem to work. Added the following to my httpd.conf file [CODE] and when I ... | Did you set up your host file? Server name directive does nothing unless the network resolves to the server properly. You can edit your hosts file by following these directions here . Except you want to keep the ip address the same and just change the name to [CODE] . | 0 | 1 | 159 | 2011-08-11T07:41:04.973 | infrastructure | serverfault.com | |
167,720 | Language Design: Are languages like Python and CoffeeScript really more comprehensible? | The " Verbally Readable !== Quicker Comprehension " argument on http://ryanflorence.com/2011/case-against-coffeescript/ is really potent and interesting. I and I'm sure others would be very interested in evidence arguing against this. There's clear evidence for this and I believe it. People naturally think in images, n... | I think the Article has a point as far as JavaScript vs. CoffeScript is concerned. I personally find JavaScript quite readable and I just do not see the point of sticking another layer of syntax on top. I have similar experiences with Java/Groovy, Groovy is just great: highly expressive, cuts out a lot of useless tedio... | 6 | 4 | 2,274 | 2012-10-06T07:34:12.103 | api_errors | softwareengineering.stackexchange.com | |
773,094 | Openstack Neutron - Connection Refused when Creating Instance - I'm Out of Ideas | I've setup OpenStack - my first time. I've followed the installation guide (on Ubuntu 14.04) and I believe I've got everything correct. However, when trying to create an instance I get the error: Build of instance e948205a-2287-4b0e-9829-f2c6fe3a93eb aborted: Unable to establish connection to http://127.0.0.1:9696/v2.0... | you can debug this by checking if the neutron service is up and running and registered correctly in your service catalog. look at your [CODE] it will ouput the API endpoints [CODE] then what is the output of the [CODE] command [CODE] in your neutron.conf are you binding to 127.0.0.1 ? - you should bind to all IP's [COD... | 1 | 1 | 3,787 | 2016-04-26T19:15:59.023 | api_errors | serverfault.com | |
306,163 | MariaDB/MySQL backup replication | I have currently two DB instanced with two-way replication. Each replicates other database. So both are master and slave. So every change in any of these databases is automatically replicated to the other. This works fine. But now I need one read-only backup solution, which will have also a whole database. When I repli... | I recommend you enable [CODE] on both of your masters. Then they will add the replicated changed to their own binary log, so both instances' binary logs will have all changes. Then you don't need multi-master replication. See https://mariadb.com/kb/en/replication-and-binary-log-system-variables/#log_slave_updates | 1 | 2 | 327 | 2022-01-17T12:50:24.043 | database_errors | dba.stackexchange.com | |
96,711 | Any tips to watch out for when setting one of my databases to Read Only? | Our front end application uses\ pointed to a different database now in SQL Server 2008R2 in the same instance, so to prevent users from accidentally updating data in the old production database, is it simply just changing the Database Read Only State to "True"? As [CODE] users may still need to access it in case, to ve... | is it simply just changing the Database Read Only State to "True"? yes, you can use below t-sql [CODE] Also, is it a good idea to change the recovery model for this old production database to "Simple" vs "Full"? Yes, a read-only database wont be having any DML operations. So best practice is to change the recovery mode... | 0 | 0 | 77 | 2015-03-31T18:42:11.037 | database_errors | dba.stackexchange.com | |
316,397 | Caching and website performance on iOS vs PC | I have a website that pulls from a database to display images/names/misc info. The pages are used on both iOS Devices (iPhones, iPads, iPods so far) and on PCs using internet explorer and Safari/Chrome on the iOS devices. The websites use jQuery/jQueryMobile...A lot of ListView content. I have noticed a huge difference... | My guess is that iOS Safari/WebView/WebKit image updates are synchronized with the actual iOS device's GPU and/or display frame rate, so image changes are thus less likely to tear. Whereas PC browsers may have to be GPU agnostic in their drawing, and are thus unlikely to run a video frame rate synchronized game loop re... | 1 | 1 | 102 | 2016-04-21T14:15:20.500 | api_errors | softwareengineering.stackexchange.com | |
608,721 | Strange GET requests on Apache and a lot of 404 errors every day | It's been about a month since I have been receiving strange requests to my website. It's self hosted on a VPS and some of those requests are noted by Google Analytics too. I really tried to figure out what they are and I'm really worried of being attacked or something since I just host my personal blog. Sample: my-blog... | There's always a lot of "background noise" being generated by bots scanning random ip-ranges and trying for known vulnerabilities and exploits. It's a fact of modern digital life and you see evidence of that in your log files. Keep your systems patched and up-to-date and learn to live with that. When a lot of traffic i... | 0 | 2 | 1,790 | 2014-06-29T04:18:28.577 | infrastructure | serverfault.com | |
883,281 | ElasticSearch doesn't start after upgrade from 2.3.1 to 5.6.4 | I was running on elasticsearch 2.3.1, but I had to upgrade to 5.6.4 (because I wanted to install Kibana/Sense), but ElasticSearch won't start anymore. This is log from ElasticSearch: [CODE] And lot of the same errors. Yes I understand that I need to reindex, but how? And does I lose all data? THIS IS NOT A DUPLICATE OF... | You need to re-index to be able to do that. Follow the following guide for help on how to do it https://www.elastic.co/guide/en/elasticsearch/reference/master/reindex-upgrade.html | -2 | 1 | 824 | 2017-11-13T22:29:00.090 | database_errors | serverfault.com | |
299,815 | Select SDO_GEOMETRY line vertices as rows | I have an Oracle 18c table that has an SDO_GEOMETRY column (lines): [CODE] [CODE] For each line, I want to select each vertex as a separate row in a query/resultset. How can I do this? | It looks like I can use the [CODE] function and the [CODE] function : [CODE] | 0 | 0 | 138 | 2021-09-18T23:14:54.080 | database_errors | dba.stackexchange.com | |
304,132 | How to design error monitoring for batch jobs with multiple and diverse steps? | I'm working on a software to integrate an e-commerce store and the company ERP. All the integration steps are run as a unique batch job, every 5 minutes. Things are working under production, but I'm struggling with how to better design the subsystem that alert us (developers and IT folks) that an integration error is o... | The problem is the design of alerting that the integration of that specific unit failed. Take a step back from the technical solution and think about it from a business perspective first. What types of errors are expected to happen? Go through each integration step and list the things that can go wrong. Group these int... | 3 | 3 | 753 | 2015-12-02T21:55:08.877 | data_quality | softwareengineering.stackexchange.com | |
1,049,004 | Mailcow Postfix & MIMEDefang integration | I am running an Ubuntu 20.04 server. I have installed mailcow: dockerized as shown in their documentation which includes Postfix among other tools. The mail server itself works without a problem, but I wanted to change large attachtments with links, so I started looking for solutions and found MIMEDefang which as I rea... | I found out how to do it. In [CODE] instead of localhost you must put your ip (the VPS ip in my case): Before: [CODE] After: [CODE] (148.54.11.25 is just an example) | 0 | 0 | 569 | 2021-01-07T21:48:19.543 | api_errors | serverfault.com | |
99,392 | Dimension design and MDX query issue | I'm new to MDX and SSAS but trying to learn. I'm on SQL Server 2012. I have the following table setup. My dimension relationships look like this: [CODE] When I query it like [CODE] I get [CODE] It seems to sum up fine using the parent child hierarchy. But is it possible to get some of the attributes from DimA into my q... | I've come to the conclusion that what i wan't is not possible in MDX. But it don't need to be. I also realized MDX is not SQL. SQL returns a dataset. MDX returns a dataset and metadata. Combine the two and I get what I wanted. Pulling up my original query into an Excel PivotTable it was exactly what I was after. So it ... | 0 | 0 | 82 | 2015-05-01T22:09:36.747 | database_errors | dba.stackexchange.com | |
112,706 | Locked out of my own database through invariant() failure | I am trying to set up mongodb on my own server and connect to it remotely through my laptop. I had successfully installed the database and created my own user with admin privileges. However, when I shutdown the server and restarted it, I try to run it through [CODE] and get [CODE] This error seems to be because I'm not... | Deleting .ns file in data/db worked for me. Invariant failure usually occurs if mongo is not been shut down properly, and improper shutdown will corrupt .ns (namespace that mongo creates for each database) file. So deleting .ns file will solve the issue. | 3 | 3 | 4,294 | 2015-08-31T05:12:49.667 | database_errors | dba.stackexchange.com | |
295,895 | Why 0/false returns true when using JSON_EXTRACT in MySQL | I have a condition to select a JSON document value that is falsy. My rows: [CODE] My query: [CODE] And 5th row is getting selected even though there's [CODE] value. How can I prevent that? Version is MySQL 8.0.25. | Hope you're doing great. I would like to see your schema to make sure all is good. I tried to recreate what I believe you did. Here is what I did: [CODE] Then I inserted the values you showed: [CODE] Then I ran your query and I saw all the results: [CODE] I decided to see what JSON_EXTRACT was returning: [CODE] So at l... | 4 | 8 | 1,800 | 2021-07-19T23:57:21.477 | database_errors | dba.stackexchange.com | |
315,810 | Is there a good reason to run 32-bit software instead of 64-bit on 64-bit machines? | Is there any good reason to supply a 32-bit version along with a 64-bit version of any software targeted at modern desktop machines, running modern 64-bit operating systems on 64-bit hardware? It seems that 64-bit software would be more efficient, allow for higher memory usage if needed, etc. Apple even uses 64-bit pro... | Benefits of 32-bit software in 64-bit environments Lower memory footprint, especially in pointer-heavy applications, 64-bit vs 32-bit can easily double the memory requirements. Object files are smaller as well. Compatibility with 32-bit environments. Memory leaks are hard capped to 2 GB, 3 GB, or 4 GB and won't swamp t... | 61 | 83 | 21,435 | 2016-04-15T09:51:15.600 | api_errors | softwareengineering.stackexchange.com | |
430,091 | Anyone have data on impact on UX of shipping profiling build in production to users? | I understand that using the React Profiler in production should have a small or negligible impact on user experience at least for profiling 20-50 (guess) components on a page. I would like to know if anyone can share any known data/estimates on the performance impact on the user experience when shipping the production ... | First and foremost, before you deliver anything with telemetry (and performance monitoring uses telemetry) to send the results to your servers, check with your legal team. Many countries have very strict data collection laws Your privacy policy needs to be clear that you are taking data, and for what purposes that data... | 0 | 3 | 56 | 2021-07-09T10:21:35.050 | pipeline_ops | softwareengineering.stackexchange.com | |
60,487 | Why does only Adam optimiser perform well in my case? | I am trying to classify texts into categories (one text can have multiple categories), to do this I used one-hot encoded labels (with [CODE] ). My texts are also one-hot encoded but with [CODE] . This is my code : [CODE] Everything works fine except when I try another optimizer the learning seems incorrect, only Adam s... | There could be a couple of possible reasons: One reason could be the Adam optimizer is a combination of several other optimization techniques (e.g., momentum and running average of gradient squares). The combination of those techniques works well on multi-label text classification. Another reason could be that multi-la... | 2 | 0 | 136 | 2019-09-20T09:35:15.677 | data_quality | datascience.stackexchange.com | |
188,868 | Exim Problem: Sender address rejected: need fully-qualified address | My mail log returns the following error when sending email to a gmail account: Sender address rejected: need fully-qualified address Here is the full error message: [CODE] Exim is set to the folowing relay: [CODE] The server is running CentOS and Exim 4, the email is sent using PHPs mail() function. Thank you for your ... | It looks like this is the address the server is trying to use to send mail: alleart@V100723TU7C41-1 and it's being rejected. You may need to specify a valid email address in your php.ini file, or request a change through your hosting provider. | 2 | 3 | 8,231 | 2010-10-08T03:11:14.687 | infrastructure | serverfault.com | |
969,874 | Strongswan cannot authenticate with FreeRADIUS server: DNS error | I'm trying to set up RADIUS auth with my Strongswan server. I get the following error: [CODE] It says it cannot resolve the hostname "radius.server.com", however when I ping or DIG the hostname on my server it works fine. resolv.conf is also set correctly. How does Strongswan resolve the RADIUS hostname and how can I f... | It uses [CODE] to resolve the hostname (" [CODE] " is actually an error message returned by [CODE] ). So if this doesn't work, either the configured hostname isn't correct or the resolver isn't set up correctly somehow. | 0 | 0 | 300 | 2019-06-03T00:58:46.780 | infrastructure | serverfault.com | |
47,719 | When postgresql sequences get out of sync? | For the third time it has happened to me that a sequence has been set to an initial value (zero or one, not sure) while in the table, there are around 1500 records. When it happens, new rows cannot be inserted from my application. So I would like to know possible causes for the sequence to be out of sync like that. Bec... | There are a few possible cases where things can get out of sync. Very old versions (unsupported) used to sometimes fail to set sequences on backup restore. If you have manual backup and restore routines, this is somewhere to look. setval('sequence_name', 1) will set to to 1. Those are your only two possibilities unless... | 3 | 3 | 6,098 | 2013-08-07T14:23:28.557 | api_errors | dba.stackexchange.com | |
293,756 | Equivalent of a SQL Server schema in MySQL? | I have a modular system that is being migrated to MySQL. In SQL Server, there is this concept of the schema for grouping tables and database objects together. For example, all user-related tables can be put in the auth schema and all blog tables in the blog schema. This means we can see these table names in object expl... | In MySQL, SCHEMA and DATABASE are synonyms. They refer to the same thing. You can use statements like CREATE SCHEMA or CREATE DATABASE. You can SHOW SCHEMAS or SHOW DATABASES. This is a structural namespace for tables, so you can have two tables with the same name as long as they are in different schemas. [CODE] Intern... | 4 | 5 | 1,310 | 2021-06-04T05:42:10.963 | database_errors | dba.stackexchange.com | |
839,668 | In Apache, is it possible to serve data from one URL while displaying a separate URL in the browser? | I have a multilingual web application that depends on a language code being in the URL. Example: [CODE] The client now wants a new structure: [CODE] The problem is the application was built around using [CODE] . As that part of the URL is an argument that is necessary for the application to work properly, changing it w... | [CODE] If the "client now wants a new structure: [CODE] " then it looks like your rewrite directive should be the other way round? For example: [CODE] You still need to change the visible URL structure in your application to show [CODE] (after all, the client "wants a new structure") which then gets internally rewritte... | 0 | 0 | 52 | 2017-03-21T15:11:08.137 | infrastructure | serverfault.com | |
388,461 | Does splitting a potentially monolithic application into several smaller ones help prevent bugs? | Another way of asking this is; why do programs tend to be monolithic? I am thinking of something like an animation package like Maya, which people use for various different workflows. If the animation and modelling capabilities were split into their own separate application and developed separately, with files being pa... | Yes. Generally two smaller less complex applications are much easier to maintain than a single large one. However, you get a new type of bug when the applications all work together to achieve a goal. In order to get them to work together they have to exchange messages and this orchestration can go wrong in various ways... | 49 | 96 | 13,023 | 2019-03-12T11:38:58.660 | api_errors | softwareengineering.stackexchange.com | |
703,505 | google appengine newer versions always error | I've deployed newer versions of a google appengine app but they always return HTTP status code 500, 'The server encountered an error and could not complete your request. Please try again in 30 seconds.' Needless to say I've waited much more than that and it still does the same thing. There is nothing in the logs to ind... | I just had the same problem yesterday. I contacted Google support and this is what they told me: These types of errors can come from many places. Such as a local firewall or proxy on your system. The issue could also be caused by a Google Server. In my case it came from Google because we experience the same error from ... | 4 | 2 | 2,577 | 2015-07-04T10:07:33.160 | api_errors | serverfault.com | |
868,755 | Fixing DKIM_SIGNED score from -0.1 to positive | i've checked my domain email account with mail tester and i've got -0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid This negative score will become positive if the signature is validated. See immediately below. How can I make it positive, because I've got emails going to spam even my domain na... | I think, this is ok, as is decribed in test details This negative score will become positive if the signature is validated. See immediately below. and below are two lines with positive score, so summary from DKIM check is +0.1 | 5 | 7 | 15,538 | 2017-08-15T15:57:37.477 | infrastructure | serverfault.com | |
178,902 | CentOS 5.5 , Apache2.2, PHP 5.2.14, Fastcgi 2.2-4 and 5xx Errors | I am running the version of softwares mentioned in subject. Apache was installed from standard centos repo, fastcgi was install from http://centos.karan.org/kbsingh-CentOS-Extras.repo and PHp was manually compiled and install to /usr/local/php5-fastcgi. I keep getting 5xx Server errors when i try to visit a url such as... | Found it! In my case i was using wrong php binary in /var/www/php-fcgi-scripts/php-fcgi-starter, it should have been php-cgi. Works like a charm with: [CODE] | 0 | 0 | 2,833 | 2010-09-07T19:00:07.207 | infrastructure | serverfault.com | |
306,157 | Do special-cases with fallbacks violate the Liskov Substitution Principle? | Let's say I have an interface [CODE] that has the following signature: [CODE] And a concrete class [CODE] that implements that interface: [CODE] I'd like to [CODE] to do something unique if it's passed a special type of [CODE] object (let's say it's called [CODE] ). It's definitely a LSP violation if I strengthen the p... | It might be a violation of LSP depending on what else is in the contract for the [CODE] method. But it's almost certainly a code smell even if it doesn't violate LSP. For example, if part of the contract of [CODE] is that it will call [CODE] at least once before returning, and for the special case it calls [CODE] inste... | 20 | 19 | 1,809 | 2015-12-30T10:11:46.003 | api_errors | softwareengineering.stackexchange.com | |
287,290 | Removing a process from launchd without restarting | I have a machine on which I do not want finder to run, so initially I made it unexecutable: [CODE] But then realised that launchd was still trying to launch finder multiple times every second, resulting in colossal log files consisiting of millions of lines of: [CODE] So I edited [CODE] so that it would not launch anym... | Finder is a LaunchAgent, not a LaunchDaemon, which means it's loaded as part of your login session. Either use [CODE] without [CODE] , or just log out & back in. | 3 | 2 | 8,563 | 2011-07-05T22:30:10.617 | infrastructure | serverfault.com | |
203,973 | How to find index details on Temporary tables in SYBASE | I am a layman in SYBASE world. In order to improve performance, I am creating indexes after data load of temporary tables in many stored procedures. Say, one proc A has an insert into temporary table X. so I have created index IDX after insert statement. Proc B is invoking Proc A in a loop. In this case, index IDX on t... | Assuming this is Sybase ASE ... The error (index already exists on table) is likely due to the conditional ... [CODE] ... being run against [CODE] in the wrong database. If I'm sitting in database [CODE] and I create a table [CODE] , the above query is going to check for the existence of an index on [CODE] in the curre... | 0 | 1 | 1,751 | 2018-04-14T18:43:05.713 | database_errors | dba.stackexchange.com | |
239,231 | How robust are Git commits when the power goes out? | One day I was using Git (I'm still using it) and the electricity went down while I was committing. When I (actually, the electricity) came back, the git repo was corrupt. I don't remember the exact name, but it was something like "invalid refs" or something like that. It's easy to guess that the commit was broken in th... | I don't know if there is a way to make Git commits survive perfectly timed power failures, but you might be able to fix your repository. Git objects are supposed to be immutable, so all your older commits should still be valid. According to this answer , you can change the hash in [CODE] to change the head of the branc... | 24 | 10 | 2,771 | 2014-05-15T22:12:12.317 | data_quality | softwareengineering.stackexchange.com | |
9,680 | How to pass variables between build/deploy tasks in a TaskGroup in VSTS 16.131.28601.4 | I have a multi-configuration web application I'm using parallel deployments, leveraging Task Groups for reusing my deployment code. I've been using Powershell tasks and the [CODE] but those only are readable by other tasks (particularly non-PowerShell tasks) if they correspond to top-level variables at the Build/Releas... | I'm not sure my approach is any "better". However, what I have done in the past was to use Table Storage or Cosmos DB to store the key-value pairs that needed to be persisted between each stage. The general schema was: Key : buildNum-variableName Value : variableValue I then created various wrappers for the SDK to acce... | 1 | 1 | 348 | 2019-11-04T15:33:51.287 | pipeline_ops | devops.stackexchange.com | |
819,148 | Easy way to convert from from IMSM to linux md RAID? | I generally use linux software md raid, but made the mistake of keeping IMSM "fakeraid" on a machine that came with it pre-configured. The fakeraid seeemed appealing because it worked seamlessly with both the bios and linux, which made it easier to configure (e.g., only install the bootloader once). Unfortunately, it s... | Commands which I have used to convert my RAID10 from IMSM to software RAID: [CODE] | 0 | 1 | 2,494 | 2016-12-06T22:30:07.610 | infrastructure | serverfault.com | |
72,206 | graph data structure in Java (or Python) | does Java have graphs as an intergrated data structure ? How about Python? I was assigned to write a program, that solves the TSP (travelling salesman problem) via the GRASP (greedy randomized adaptive search procedure). I'm just familiarizing myself with GRASP, and I would like to have a good working data structure fo... | For python. http://networkx.lanl.gov/ http://cneurocvs.rmki.kfki.hu/igraph/ also check out graphviz.org. you generate a text file, feed it to graphviz, and it makes a graph as png, pdf, etc. | 2 | 2 | 1,636 | 2011-04-28T19:39:28.953 | api_errors | softwareengineering.stackexchange.com | |
641,484 | Nginx does not redirect with rewrite | I have a nginx + php on windows server configured. I work on an MVC framework with url rewriting, the problem is that my server does not resolve the addresses. Quite simply, this is my code: [CODE] And in apache I have the equivalent code: [CODE] | Assuming your requests look like [CODE] , you misconfigured the [CODE] . It must not contain URI, just domain names. So your configuration should look like this instead : [CODE] | 0 | 0 | 1,004 | 2014-11-02T19:23:51.973 | infrastructure | serverfault.com | |
114,673 | Selection of first and last in non grouped item in SQL Server | Here's my table structure [CODE] I have grouped the above statement by toolname and toolkey.Here's my query [CODE] I need to have columns [CODE] with value [CODE] and [CODE] with value [CODE] . If not completed means it should have null. But in SQL if I add toolstatus in [CODE] , grouping will not be done. In simple wh... | Here are a couple of options: [CODE] It is eliminating nulls with the aggregate MAX() function in this code, if that's a concern, you may want this: [CODE] | 0 | 1 | 51 | 2015-09-10T11:32:38.517 | database_errors | dba.stackexchange.com | |
166,034 | How to update price where value of rows exist in value of column in sql? | i want to update column p1 but p1 same product. update column p1 where example g6-1se in C1 exist in column name and update value null in column p1 in rows g6-1se by value p1 in row g6-1sr. in rows 1 , read g6-1 and search in column name and update column p1 if exist. after read g6-1sr and search Until you reach the fi... | Check it: dbfiddle here Basically, get all rows where P1 is null, and join its with all rows that have a P1 value and where name like c1. Using LIKE [CODE] Using dbo.SplitCompare() function [CODE] Update Check it: dbfiddle here First, I've added a new function: [dbo].[SplitCompare] [CODE] Second, according to OP requir... | 1 | 3 | 175 | 2017-03-02T22:49:35.543 | database_errors | dba.stackexchange.com | |
487,081 | SQL Server ODBC Connection via Command Line | I need to create a number of ODBC connections to a MS SQL Server, the clients are mainly XP machines. The connection has to use SQL server authentication - is there a way to do this remotely via command line? I think that this type of authentication may be a stumbling block? Any advice on automating or part automating ... | The SQLCMD utility will probably be your best option. From what you've indicated it meets all of the requirements above: command-line, ODBC driver, SQL Authentication. The basic syntax would be something like: [CODE] see: sqlcmd Utility This should work fine in Windows XP but unless you've got SQL already installed on ... | 1 | 1 | 4,649 | 2013-03-12T16:45:34.630 | api_errors | serverfault.com | |
421,194 | Restarting MSSQLSERVER service on the principal or on the mirror the database is set in "In Recovery" mode | I'm running MSSQL Server 11.0.2100 (SQL Server 2012) and every time I restart the [CODE] on the principal or on the mirror, the database mirror breaks and the database is set into [CODE] mode on the SQL instance that was restarted. I have no problem setting up a mirrored database and I can fail-over with no problem bet... | After installing 10.50.4000 (SQL Server 2008 R2 + Service Pack 2) on the principal and on the mirror and configuring it exactly as on 11.0.2100, I can now confirm that there are some serious issues with database mirroring in 11.0.2100. Database mirroring just doesn't work in 11.0.2100. Running 10.50.4000 everything wor... | 0 | 0 | 2,489 | 2012-08-25T20:02:45.637 | database_errors | serverfault.com | |
13,012 | System integration testing | I had some questions around system/integration test. We have a development team and a full QA team, which does customer focused testing for our product. We want to introduce a middle test team which is more of an extension of the engineering orr, a system integration test team if you will. Thinking about the rules for ... | It sounds as if you want to avoid giving QA a build that falls apart right away. One way to address this is to add a smoke test to the development cycle. There are other SQA questions that cover smoke testing, e.g. Smoke testing by Dev team . I won't try to repeat that information here. One goal of smoke-testing is to ... | 5 | 4 | 410 | 2015-05-12T12:03:04.057 | data_quality | sqa.stackexchange.com | |
848,213 | Connecting to SQL Server outside the domain with SQL Authentication | I have a C# application that connects to a SQL server with SQL authentication, but the machines that are to be using it aren't on the domain. I've been trying to solve this for several days now. On my development machine the connection string works perfectly fine and isn't using Windows authentication. As soon as it is... | It turns out that even if you use the Visual Studio Wizard to use a certain connection string, VS doesn't change other references to it. Code and settings files were still using the old connection string. I was not familiar with the project in its entirety as I was just tasked with modifying it for a tiny bit more func... | 0 | 0 | 2,195 | 2017-05-04T11:06:43.857 | database_errors | serverfault.com | |
141,222 | SQL Server 2014 Reporting Services issues | I have set up SSRS on MS SQL 2014 Dev Edition using the ReportServer built in account as the Service Account . My machine name is: POUYASAGER My local login is pyous I have given the ReportServer account full permissions to: [CODE] I have checked that SecureConnectionLevel is set to 0 in the rsreportserver.config file.... | Adding the account you are logging in on your OS will allow for you to connect to SSRS. You are provided with a 403 error message directly related to an access denied. The type of access being denied here is at the database level, mainly for the Reportserver$ database. Your OS login is unable to personify NT SERVICE si... | 3 | 2 | 2,114 | 2016-06-14T19:20:24.143 | api_errors | dba.stackexchange.com | |
178,919 | Questions to ask a 3rd party API provider | I'm due to meet with a developer/sales person from a new 3rd party resource we're about to start using. The main topic I'll be interested in, is their API as I will be the developer making use of it and explaining it to the rest of the team. What questions would you recommend asking? Things I'm already thinking about a... | Besides the things you suggested by yourself (among which "who will I deal with first when I have API issues" is IMHO the most important question) I would ask What kind of documentation do you provide? Do you provide samples how to use the API? How often do you provide new releases? Do you provide a detailed and comple... | 1 | 3 | 2,082 | 2012-12-10T15:28:21.977 | api_errors | softwareengineering.stackexchange.com | |
1,108,456 | BIND resolves external addresses correctly, but doesn't resolve addresses in LAN | I have recently set up a DNS server with bind (my first time) and I got it to resolve external addresses but internal addresses return an NXDOMAIN error in dig. It for sure has to do something with my config but I cant find the solution. named.conf: [CODE] msgsolutions.eu.db: [CODE] 213.190.31.db: [CODE] dig output: [C... | The problem appears to be in your test, rather than the ISC bind configuration. To perform a reverse lookup use either: the [CODE] switch and [CODE] or [CODE] | 0 | 1 | 390 | 2022-08-18T06:27:34.430 | infrastructure | serverfault.com | |
1,021,258 | SSL certificate does not update | My previous SSL certificate just expired. I tried to buy another free SSL certificate from AliCloud and also sslforfree.com. I'm pretty sure I have already installed a right certificate in the server. But when I test it in my Mac ( www.10studio.tech ), it always shows the old certificate. Clearing browsing history does... | The obvious thing is you have to reload/restart your web server after updating the TLS certificate. It looks like you're using docker-compose, but your containers don't seem to have been updated, as your nginx version reports 1.9.4 while you seem to have asked for 1.16.x. Consider force updating with something like: [C... | 0 | 0 | 5,037 | 2020-06-12T21:54:09.283 | api_errors | serverfault.com | |
223,932 | Efficient way to paginate in sql server with 50M plus data (sql server 17) | I was looking for efficient way of pagination in sql server 2017 so I came across following code: [CODE] This works fine for small offset. But, as the offset value increase. It gradually starts to take a lot of time. So, I decided to fetch data with something like id > xx concepe. Something like [CODE] This code works ... | There is simply no cheap way to get the 12753rd page out of a 50M row result set. [offset .. fetch] works fine for small offset. But, as the offset value increase. It gradually starts to take a lot of time. Which is normally fine, as you rarely page deep into a large result set. [The "Key Seek Method"] failed when you ... | 0 | 3 | 696 | 2018-12-02T09:37:36.810 | database_errors | dba.stackexchange.com | |
534,549 | How to make exception in password locking via pam_tally2 for specific user? | I need to make an exception for a specific user, so that his failed logins are not counted by [CODE] , and well, this is not a root account (I'd use [CODE] then). Is it doable? | You can use the [CODE] module in your stack to provide exceptions for some users. Check the [CODE] manpage for in-depth explanation of the syntax. An example would be: [CODE] That means, if the [CODE] test returns successfully, i.e., for all users in the group whose GID is 2000, skip the following test ( [CODE] ); if t... | 5 | 5 | 4,245 | 2013-08-28T16:05:22.540 | infrastructure | serverfault.com | |
256,686 | How to better backup MySQL 5.6 database? | Today I had an issue where I accidentally deleted a whole table (which cascaded to a few other tables) due to a funky piece of MySQL syntax, see here . Luckily I had a backup from midnight, however all data was lost between midnight and to when I deleted all the rows in my table. How can I better back up my database to... | Better choice is to depend upon a backup utility with which you shall configure backup frequency, etc. be it two slaves or... Alternatively... If you have enabled mysql log, you shall pretty well re-create those entries since mid night backup till the current time by running all the pertaining queries. 2a. Either you s... | 0 | 0 | 101 | 2020-01-03T19:56:54.323 | database_errors | dba.stackexchange.com | |
233,070 | SQL Server Threshold of Write per X when considering Indexes? | I am not entirely sure if this is even a question worth asking. However, I was curious as if there was some sort of standard, or specifically a metric, that some more seasoned DBA's use to gauge whether or not an index would be worth adding based on the general activity with the table. I mean anecdotally, yes we all un... | To add to it, I just assumed that there was some sort of "sweet spot" that could be evaluated by looking some numbers. How likely/difficult is it to generate that information? I do not think that there is a golden ticket measure to get the index writes <> index reads. One of the reasons for this is that the [CODE] dmv ... | 0 | 2 | 65 | 2019-03-25T20:25:41.360 | database_errors | dba.stackexchange.com | |
1,044,806 | How to configure failover cluster to register its records automatically after it deleted from DNS server? | Windows Server 2016 failover cluster with two nodes. Unfortunately the DNS record for the cluster name has been deleted and not created automatically. How to configure failover cluster to register its records automatically? I tried to grant permission on DNS, but it didn't register the record in DNS automatically. I ca... | This question has a lot to do with debugging/analysis. Is your [CODE] service running? Did you check if in the registry the [CODE] is set to [CODE] ? Check here . In the network interface is the checkbox enabled to register the connection in DNS? PowerShell for this: [CODE] You can check here for more hits: AD Dynamic ... | 0 | 0 | 4,095 | 2020-12-03T09:30:15.117 | database_errors | serverfault.com | |
301,626 | How do I represent a schema diagram of my MongoDB database? | I have a MongoDB database that I want to properly document its schema design. I know that MongoDB is a NoSQL database and is schemaless by nature, but I do enforce a schema through my application and I want to represent it in a better way than a print of a [CODE] result. I see many people using ER or UML, but I don't f... | I would model the schema as a UML class diagram. Class diagrams are not specifically aimed at relational databases, but rather at object oriented environments. In my opinion, MongoDB conceptually matches UML better than a relational database. The question you refer to provides more information about how to use UML for ... | 14 | 7 | 16,112 | 2015-11-03T18:45:50.517 | database_errors | softwareengineering.stackexchange.com | |
606,705 | IIS 7 Access Network drive with credentials | I have an IIS 7 server with a PHP application running on it. This application needs to be able to connect to a network drive that has username and password required. This drive is connected at log in for users with [CODE] . The user is not the logged in user. How can I connect this drive for use in the application? I h... | I had a similar problem where I need access to a network share and solved it using the following steps: 1) Create an account with the same username and password on front end server and file server. Make sure that the password does not expire or must be changed. 2) Create a Network Share and give the new account read/wr... | 4 | 1 | 3,661 | 2014-06-20T09:09:49.987 | infrastructure | serverfault.com | |
1,087,775 | GCP disk snapshots: Would losing the full snapshot render the incremental snapshots useless? | On GCP, when you do periodic snapshots of disks, the first snapshot is a full snapshot of the disk and the following snapshots consists of only the deltas of the previous snapshots. If a snapshot is deleted and it has other snapshots dependent on it, the changes required for snapshot to be usable for restoring are move... | Unless Google were to release the actual software source code and algorithms for their snapshot software ... Snapshots are basically copy-on-write systems with each snapshot being a list of pointers to copies of the changed data (disk blocks). If the snapshot software failed, the type of bug would determine if recovery... | 1 | 1 | 481 | 2021-12-20T07:54:40.117 | data_quality | serverfault.com | |
39,841 | Recursive query in mysql | I am using GetAncestry function found at this post , The problem is when I try to use it with select query Mysql hang, I am not sure why it is happens my Mysql version is "5.5.16" any help appriciable [CODE] | Here is my working theory: Because you have the table data in InnoDB it may subjected to MVCC and Transaction Isolation in the midst of the InnoDB Infrastructure . Please notice in my original post that I used MyISAM tables, which are not subject to ACID compliance. Make a copy of the table, convert it to MyISAM, and r... | 1 | 1 | 6,456 | 2013-04-12T15:50:03.720 | database_errors | dba.stackexchange.com | |
370,326 | Are parsers a special case in unit testing? | Context While trying to get my parser classes under test, I noticed a common challenge for (unit-)testing them: They have only one public method, with a string as input and the parsed class as output. They are further divided into methods for readability, but those are all private. These classes are not huge - I would ... | Parsers are not a special case, what you desribe is somewhat common. If the class in question is of a reasonable size, adheres to seperation of concerns, single-responsibility principle and so on, then you should test it through its single public method. This just means the class has a tight public surface which is a g... | 0 | 7 | 2,183 | 2018-05-02T12:43:32.910 | api_errors | softwareengineering.stackexchange.com | |
244,389 | List database CONNECT privileges on PostgreSQL | How can I view database-level privileges like CONNECT of users? I found 2 ways already, but neither of them is perfect: Use function [CODE] . This works, but I have to run it manually for every user one by one: [CODE] This one seems to return an incomplete result. It returns [CODE] at first, but [CODE] and other users ... | You can use the function as part of a select that retrieves all users: [CODE] You can extend that, to show this information for every user in every database: [CODE] | 2 | 5 | 6,114 | 2019-08-02T03:01:00.020 | database_errors | dba.stackexchange.com | |
283,257 | What aspects of Haskell led to its rise in popularity among experts? | 20 years ago, the Functional Programming world was all about Lisp and Scheme. When I went to college in 2001, my Fall Semester Freshman CS 101 course was taught in OCaml. However, these days the people that talk about FP always seem to be talking about Haskell. What is it about Haskell that has led to it's rise in popu... | What is it about Haskell that has led to it's rise in popularity among experts in the FP world? There's a few of different things I've seen: It's novel. As much as FP enthusiasts poo-poo all of the fads in imperative and OO programming, they're still human. Lisp has been around since the 60's. ML since the 70's. A lot ... | 3 | 9 | 1,163 | 2015-05-07T21:30:43.730 | data_quality | softwareengineering.stackexchange.com | |
752,926 | Migrate to new Exchange 2010 server in different AD site | We currently have a domain with two AD sites. Site A has one Exchange 2010 server which currently holds all the mailboxes. I set up the new site, Site B, and it is connected via site-to-site VPN. Site B has one new Exchange 2010 server and zero mailbox databases as of now. I did set up a mailbox database on Site B serv... | What I ended up doing was: Configure AD sites for Site A and Site B. Installed Exchange 2010 SP1 on Windows 2008 R2 machine in Site B. Applied SP2 and SP3. Site A server is configured with mail.domain.com so I configured site B server with mail2.domain.com. Added MX record with lower priority for mail2.domain.com. Ensu... | 1 | 0 | 2,255 | 2016-01-30T23:08:27.530 | infrastructure | serverfault.com | |
212,605 | Optimization of Soft Page Faults | I am currently doing performance analysis on a server and I see an application is generating a large number of page faults/sec. After checking the page reads/sec it seems these are all soft page faults not hard page faults (no disk activity). I then read online that most modern cpus can handle a large number of soft pa... | Based on your provided facts, I think the mentioned application was doing rapid memory allocation (e.g malloc() ). It seems that it allocated a block, possibly releasing it and then allocate again. Usually memory allocator will keep freed memory block(s) in cache, but it could be that in your case, it was forced to be ... | 1 | 1 | 623 | 2010-12-14T20:05:55.870 | infrastructure | serverfault.com | |
16,263 | How to fetch azure secret if exist in KV using terraform | I am using below terraform code for fetch azure secret and this is working fine when secret is exist in the azure KV. Getting error when secret is not available in KV. [CODE] In my case, this secret may available or may not available. How can we ignore error for this particular task when secret not available, or how ca... | This looks like a case for a conditional resource. First, look up the secrets with a [CODE] block: [CODE] and then a condition on the lookup: [CODE] If the secret doesn't exist, the data will look up zero resources. | 1 | 1 | 801 | 2022-07-12T17:17:47.530 | pipeline_ops | devops.stackexchange.com | |
228,149 | How does Windows handle Time? Updating RTC, etc. (Active Directory and Novell E-Directory) | I'm troubleshooting some time issues in my domain and before making any big changes I want to have a thorough understanding of what's going on. I've got a few lingering questions at the moment: What sources (rtc, ntp, etc.) are queried by Windows to keep time? How does this differ in a mixed Active Directory / Novell e... | After doing a good amount of research, I've found the following. Please correct me if you see any incorrect information: What sources (rtc, ntp, etc.) are queried by Windows to keep time? How does this differ in a mixed Active Directory / Novell environment? RTC A time server that is located by NT5DS The NTP server spe... | 1 | 0 | 3,829 | 2011-01-28T14:57:57.990 | infrastructure | serverfault.com | |
432,183 | Perl File::Copy module installation fails | I have Perl version version 5.10.1 installed in my CentOS6.0 machine. I need to install TWiki and it needs some perl modules (see this URL) http://twiki.org/cgi-bin/view/TWiki/TWikiInstallationGuide I tried to install File::Copy module by going to Cpan with the command, perl -NCPAN -e shell and then install File::Copy ... | I got the list of perl modules installed by default using this command, cpan -l and I found that my File::Copy installed version (2.14) is above the required level of TWiki So, I updated other missing modules like Config and CGI::Session using yum install perl-Config* and cpan> install CGI::Session I got all the requir... | 1 | 3 | 5,326 | 2012-09-26T13:45:44.933 | infrastructure | serverfault.com | |
119,576 | Emails sent through SMTP on VPS are considered to be spam | During our business we have to make regular mailing to our clients: invoices, information emails, etc. Previously we received and sent emails using mail server of our hosting provider. But as the number of clients increased, we have to order VPS and install our own SMTP server their for performing our mailings. So, now... | You need to make sure that your email server is setup properly so that these mails are not marked as spam. As mentioned, one of the most common reasons is Reverse DNS. Most of the big providers require that you have a correct RDNS pointer record setup for your mail server before they will receive mail for you. You also... | 0 | 3 | 9,685 | 2010-03-05T16:06:35.887 | infrastructure | serverfault.com | |
393,143 | Is circular reference with Typescript array properties bad design? | I understand that having circular dependency can be bad design. However, I have a question regarding a certain class structure. As an example: ocean.ts [CODE] boat.ts [CODE] In Typescript this can't be done without a circular reference problem from the imports. I've also read people conclude that its a sign of bad desi... | Your situation is actually language agnostic and I would consider it to be a bad design in any programming language. The problems with circular references generally include the chicken&egg problem, because when you want to instantiate an object you do not know which you should instantiate first. Should you instantiate ... | 3 | 3 | 2,994 | 2019-06-10T14:54:25.993 | api_errors | softwareengineering.stackexchange.com | |
362,046 | Strange linux neighbor cache entries (whole-world-is-link-local syndrome) (linux 3.0.0-16) | On absolutely standard ubuntu-server linux distro running only BIND cache, sometimes i see non-link-local ip addresses in the arp/nei table and there is no way to communicate with those entries After googling for most of the morning, i did not find similar problem, so i think it might be something wrong with my setup. ... | I guess your gateway has a single physical interface for both the 9.9.9.0/24 network and the network where 9.17.100.131 is connected. This is why it sends redirects. In my opinion, there two bugs (or "strange features") in your Ubuntu server : It should ignore redirects since net.ipv4.conf.all.accept_redirects=0 It sho... | 2 | 2 | 7,761 | 2012-02-20T13:20:33.987 | infrastructure | serverfault.com | |
299,121 | FATAL: SSPI authentication failed for user "postgres" while connecting to PosgreSQL | I have installed PogtgreSQL Version 13 in my windows 10 OS Laptop and installed pgAdmin4. I have made the below chnages in pg_hba.conf and pg_ident.conf to achieve SSPI authentication. But getting "FATAL: SSPI authentication failed for user "postgres" while connecting to PosgreSQL" message while connecting to the DB pg... | You are allowed to log in as 'admin', but trying to log in as 'postgres'. Those are not the same thing. They might mean the same thing, but the spelling is what counts. | 1 | 2 | 3,029 | 2021-09-05T16:57:30.437 | api_errors | dba.stackexchange.com | |
940,854 | unbound.service service unit slow start/restart on 1 VM and fast on another | I am debugging an issue with Unbound (DNS Resolver software) on CentOS Linux release 7.5.1804 (Core). I have 2 VMs in different environments that are supposedly running the same Unbound software. [CODE] And: [CODE] Both VMs are CentOS 7.5.1804 (I checked [CODE] ) and are running the latest kernel available for CentOS: ... | For anyone else that runs into this. I had a very similar issue and it turned out to be firewall related. Specifically, when unbound starts up it tries to update the root anchor in [CODE] . When I tried to do this manually running [CODE] the DNS requests to the root servers were being blocked on one of my unbound serve... | 0 | 1 | 3,044 | 2018-11-20T09:38:10.803 | infrastructure | serverfault.com | |
10,165 | Sonar Quality Gate behavior in Jenkins pipeline is unstable | I have some pipelines in Jenkins, with the SonarQube stage (Version: 6.7.1, build 35068) In some builds it is aborted due to time out: [CODE] and in some other builds it pass: [CODE] Trigger command in bitbucket file: [CODE] what might be the reason for it? how can I keep it stable? can it be network isssue? | It was related at the end to Sonar DB performance (after getting AWR reports): https://stackoverflow.com/questions/59982345/how-to-maintain-cleanup-of-the-sonar-table-project-measures | 1 | 0 | 1,461 | 2019-12-19T19:36:44.640 | pipeline_ops | devops.stackexchange.com | |
198,807 | SQL Query :Is it possible to count / group based on date with a sum over the group | I have the following question: To determine the progress of a production process the following records are stored: [CODE] The result of the query should be: [CODE] 10 items are initially booked on state 0 On 2018-02-11 4 items are progressed to state 1, resulting in 6 remaining items on state 0 and 4 items on state 1. ... | In my opinion window functions will be the cleanest way to accomplish this (you didn't specify your version, so I'm assuming you're using 2012 or later). [CODE] The CTE isn't really necessary, you can subtract the [CODE] and [CODE] directly. I just wanted to make the logic clear: count the number of items that have rea... | 1 | 2 | 141 | 2018-02-26T07:45:12.687 | warehouse_errors | dba.stackexchange.com | |
209,244 | How to optimize and find minimum from the two sql query, by writing it as single query? | I have two queries. How can I write them into a single query for efficient performance? I need the minimum value of the result of [CODE] and [CODE] . Is it possible? [CODE] | Use a CTE with a group-by to generate two sums and then take the min. [CODE] | 0 | 0 | 80 | 2018-06-10T19:22:22.717 | warehouse_errors | dba.stackexchange.com | |
1,012,366 | Unable to connect to Ansible via SSH | I create a host file with the below content [CODE] I have a user [CODE] and [CODE] on the web server and the public key has also been added to [CODE] file. When I run the command [CODE] I get the below error [CODE] I have tried other variations of the hosts file, below is another one I have tried that also doesn't work... | Try to connect using the same command used by ansible: ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/Users/g.james/.ssh/id_rsa.pub"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' ... | 1 | 1 | 13,700 | 2020-04-15T04:15:01.757 | pipeline_ops | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.