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 |
|---|---|---|---|---|---|---|---|---|---|---|
210,895 | Error While Calling A Procedure | What is wrong in this procedure? I have a [CODE] family: [CODE] I have created a procedure to insert values in this table. The procedure is compiled and created successfully: [CODE] But when I try to call this procedure through: [CODE] It gives me this error: BEGIN insert_family('AYUSH','SHUKLA','MALE',12,'UNMARRIED','... | When you create an object in Oracle with double quotes, Oracle creates that objects with the same case as you entered it. Try dropping the "insert_family" procedure and creating it without the double quotes. This should help. [CODE] | 1 | 2 | 642 | 2018-06-28T18:58:34.453 | warehouse_errors | dba.stackexchange.com | |
206,440 | Netgear Router/Modem installation PPPoA NAT issues | I am having difficulty getting something that should be simple going. I have a Netgear DM111P modem connection to a broadband connection using PPPoA. Connected to this I have a Netgear FCG318 wireless router/8 port switch. This serves about a dozen users in a small office mostly wireless clients and some wired ones. Th... | If things are connected correctly then the 2 DHCP servers don't/won't conflict as they are on different subnets and the router won't pass that traffic. The subnets must be different, this is normal. Please confirm: The modem LAN port cable is connected to the router WAN port, NOT a LAN port. The router WAN port is set ... | 0 | 1 | 1,010 | 2010-11-26T21:45:04.213 | infrastructure | serverfault.com | |
212,682 | iptables REDIRECT scope | We run a webapp via an unprivileged user, on unprivileged ports. A startup script is executed as root solely to set iptables REDIRECT rules, then drop privileges and start up the app. I'm trying to monitor this webapp with NAGIOS, but the default "check_http" plugin shipped in nagios-plugins is failing to connect to th... | Oh, wait. No kidding it works on lo, because of the [CODE] lines sending the traffic away to the destination ports. I guess that means the solution here is to add two additional OUTPUT lines for the [CODE] interface into [CODE] . Meaning, duplicate the lines containing 127.0.0.1, and replace that address with [CODE] . ... | 1 | 1 | 807 | 2010-12-15T00:44:02.863 | api_errors | serverfault.com | |
399,082 | solutions for a webserver dedicated to manage permissions/ACL and (reverse) proxying API servers? | I'm considering various layouts to expose various HTTP API services (running on their own differents servers) through a frontend server dedicated to manage permissions on behalf of the API services. I've considered various options, from the classical ones like Nginx, Apache, etc. to HAProxy, passing by the various Pyth... | You did not clearly describe your problem. What is the problem with haproxy? From your statement: The foundamental feature is high performance and scalability, and the ability to manage fine grained ACL rules. I can say just use haproxy and it should be OK. It is powerful, flexible, and open source solution. You just n... | -1 | 0 | 118 | 2012-06-15T09:27:12.520 | infrastructure | serverfault.com | |
1,031,648 | Automatically running ANALYZE on PostgreSQL? | What's the easiest way to automatically run [CODE] on a PostgreSQL 12 server, aside from a cronjob? I have an application where millions of rows are routinely inserted each week, and after a month or so, query times become very slow because statistics are out of date for the primary tables being modified. Running [CODE... | It sounds like you have autovacuum disabled, which if it were enabled would analyze all of your tables periodically to update their statistics for the query planner. The simplest solution is to re-enable autovacuum. Check your postgresql.conf file for the autovacuum setting. | 0 | 1 | 521 | 2020-08-26T21:22:28.047 | database_errors | serverfault.com | |
215,745 | Collaborative work (small team) - Best practices | I'm currently working in a very small team of programmers (2-3) and I'm looking for advices/best practices on how to organise our work. We're all working on the same application using PHP. Today we're kind of all working on our way. Today situation: List item that have to be worked on by each dev 1/week. What has to be... | For a small team you probably don't need to focus too closely on the type of rigid process that larger teams go through, however there are some low hanging fruit here that can really help. Daily Stand-Up A simple stand-up at the start of each day, where everyone just briefly explains what they did yesterday, what they ... | 6 | 9 | 5,402 | 2013-10-28T11:07:48.187 | data_quality | softwareengineering.stackexchange.com | |
304,236 | Processing pre-existing log files with Flume | I have a large set of log files that I need to extract data from. Is it possible to use Flume to read these files and dump them into an HDFS (Cassandra, or another data source) which I can then query? The documentation seems to suggest it's all live event based log processing. I'm wondering if I'm missing some obvious ... | Yes, this is the standard use case for flume. The server with the log files will run a flume-node and another (or potentially the same) server will run a flume-master. The flume-nodes will discover the flume-master and from the flume-master you can execute commands like: [CODE] This creates a configuration that tells f... | 1 | 1 | 701 | 2011-08-23T18:28:08.740 | database_errors | serverfault.com | |
53,451 | Prediction with tensorflow keras | I'm trying to predict age from a given picture. I built the model below but the problem is that I'm getting very large [CODE] value with low [CODE] while fitting the model. I think the problem is choosing the wrong loss function (here [CODE] ). What can be the problem here? [CODE] As another question, are my layers cor... | This is the problem: [CODE] For predicting real-valued data such as age, it is customary to set the activation as [CODE] or in this case, you can probably use [CODE] . To illustrate, [CODE] will create a distribution over the output, in this case the output of the model will be always [CODE] . Since the age is positive... | 2 | 2 | 275 | 2019-06-08T16:10:12.640 | data_quality | datascience.stackexchange.com | |
539,623 | With PHP installed, Apache is (comparatively) slow at serving static content? | First some background on how I installed PHP, Apache, and some Apache modules: [CODE] And my httpd.conf file looks like this (i.e. I've essentially disabled .htaccess, and have all the rules in the httpd.conf instead): [CODE] Considering that it'd give you a basic idea of how my webserver is set up, I'd like to go ahea... | It depends on how do you configure apache with php, how you optimize your configuration. If php is configured with CGI interface, then apache will pass only certain type of files to the php externally (same way as done with nginx for example), so there is 0 impact on other files, in case of module it might be faster wi... | 2 | 2 | 1,846 | 2013-09-17T17:09:11.957 | infrastructure | serverfault.com | |
320,291 | Enforce query plan for queries with expensive predicates/UDFs | I have a question on how to enforce the query optimizer to use a certain execution plan. Lets assume we have two tables, t1 (25k rows) and t2 (100k rows). Also note that all the rows in t1 will find exactly one join partner in t2. Suppose we have the following query: [CODE] where expensiveFunc is a computationally heav... | If the function is immutable, you could create a partial index. Obviously the index creation and maintenance will be slow, but if the query is run far more often than the table is changed it could be worthwhile. In this case it would be something like: [CODE] Setting the COST parameter for the UDF to a very high value ... | 0 | 1 | 67 | 2022-11-28T19:47:20.163 | database_errors | dba.stackexchange.com | |
485,012 | How can I restrict a AD account to only specific Computers? | We recently had SBS 2011 installed, an "upgrade" from our Server 2008. I'm stuck trying to figure out how I restrict a user account to have login access to only specific computers. The "old way" I would use Active Directory User and Computers and it was trivial and intuitive. However the new "SBS Console" way is defeat... | You're fine to use the functionality you've always used in "Active Directory Users and Computers" to make the changes you want. The "friendly" administration tool should always be used, wherever possible, but in this case you'd have no choice but to break out the "real" tools. The product isn't tremendously different f... | 4 | 5 | 3,202 | 2013-03-05T21:13:53.413 | infrastructure | serverfault.com | |
628,541 | ESXi 5.5 NIC teaming for Load balancing using Cisco Etherchannel | I am using Cisco 3750G stacked switch configured with etherchannel and connected to ESXi Server configured with NIC teaming; Load balancing as router based on IP Hash. Cisco Switch configuration: ( VID 199 is ESXi-Mgmt) [CODE] Configuration of ESXi Host: Created new vmkernel portgroup called ESXi-Mgmt and added NIC0 an... | I manage to fix the issue. I basically configured ESXi with etherchannel & VID settings as suggested by Vmware first. Once etherchannel is set, connection to esxi host was disconnect which means etherchannel is configured correctly. then, I configured Cisco switchports to be in etherchannel with correct VID. This worke... | 2 | 1 | 25,519 | 2014-09-15T10:31:14.683 | database_errors | serverfault.com | |
897,416 | How to create tomcat keystore from existing Godaddy .key and .crt file | I have existing SSL file for a domain which being used in Nginx and Apache. How I can create tomcat [CODE] from existing GoDaddy .key and .crt file. I tried below [CODE] I got below error [CODE] I got below how to create SSL from scratch, but I need reverse it, https://in.godaddy.com/help/tomcat-generate-csrs-and-insta... | There are two steps. First export it to pkcs12: [CODE] Next, use the keytool command to create the jks file: [CODE] | 0 | 2 | 5,826 | 2018-02-15T17:07:33.027 | infrastructure | serverfault.com | |
138,286 | Configuring OpenLDAP and SSL | I am having trouble trying to connect to a secure OpenLDAP server which I have set up. On running my LDAP client code [CODE] I get the following exception trace ( java version 1.6.0_17 ) [CODE] I am able to connect to the same secure LDAP server however if I use another version of java (1.6.0_14) I have created and ins... | Fixed the problem. The issue was arising because the CipherSuites which were being sent by the JRE (version 1.6.0_17) did not match with the CipherSuites accepted by the server. The server's slapd.conf contained the line [CODE] while this particular Java client was sending a set of suites which included TLS_RSA_AES_128... | 2 | 3 | 4,346 | 2010-05-04T06:56:24.883 | infrastructure | serverfault.com | |
211,548 | Ctrl + c is not working for certain applications on Linux | It is a really weird problem, but on new systems(Fedora, Ubuntu) ctrl+c has no effect for certain tools: if I execute yum list which runs for almost a minute I can't interrupt to run with ctrl+c [CODE] The command execution won't stop. However to interrupt find is possible. [CODE] I am curious what is causing this. I h... | This is a yum bug. It seems there are more and more linux developers think it is a good idea to ignore standard signal handling and make their app to not react to standard signals. man 7 signal [CODE] This is a bad habit. | 2 | 1 | 11,515 | 2010-12-11T13:16:34.430 | infrastructure | serverfault.com | |
645,778 | PCI-DSS: Virtualization segmentation in ESXi environment | I have already asked this question over on Information Security but so far it has not garnered any comments. I am thinking perhaps it is more of a server infrastructure and configuration question, rather than a security question per se. Therefore I will try to be brief: We are PCI-DSS 2.0 compliant. PCI-DSS has the con... | I've also seen the document you linked in your question. Unfortunately, it breaks down when VMware starts to push their vCloud design and security modules. Can you tell us about your vSphere environment? Specifically, I'd like to understand the license tier and high level design of your vSphere infrastructure ( e.g. 3-... | 7 | 2 | 2,085 | 2014-11-20T11:45:11.233 | infrastructure | serverfault.com | |
345,040 | When to use asserts vs unit tests or both? | Background: I'm creating my first C++ game project and I plan on calling a InitialThirdPartySystems() function to...well...intialize all third party systems to be used in my code lol. Within it I want to do some checks to make sure all systems are initializing properly. However, I'm not quite sure of the properly way t... | Neither asserts nor unit tests are appropriate in that case. Both are meant to check that your code actually does what you want it to do. This is not part of your application, and only run at development/debugging time. Unit tests check some small chunk of code does what is needed, provided other components are correct... | 1 | 4 | 3,717 | 2017-03-28T00:57:33.780 | api_errors | softwareengineering.stackexchange.com | |
137,396 | Can't reconnect to my RDP session | I use a VM through RDP. When I'm done for the day, I just disconnect the session and reconnect in the morning. That allows me to pick up what I was doing and not close all the applications. As I'm the only user, this generally works well. Today, I can't reconnect to my session from yesterday. When I RDP, I get a new se... | AFAIK just need to kill it, it's hung. | 1 | 0 | 603 | 2010-04-30T13:17:21.730 | infrastructure | serverfault.com | |
1,093,858 | Kernel Panic in Debian after converting disk from Hyper-V to VirtualBox | I have a problem after moving the VM from HyperV to VirtualBox running Debian 10. After booting, I have ShellUEFI and then I run grub64 and then the panic kernel appears. Interestingly, I don't have this problem with Ubuntu ... only Debian is problematic. | Virtualbox and Hyper-v normally use different disk controllers. Try this: Open Virtualbox Create new VM Use above VHD as hard drive. Once VM is created, go to VM settings, storage, Add new controller PIIX4. Move VHD from SATA controller to PIIX4 controller. Press OK, load VM. Beware though, if you keep hyper-v and virt... | 0 | 2 | 436 | 2022-02-16T12:22:16.813 | infrastructure | serverfault.com | |
332,097 | SBS 2011 - Is Store.exe High Memory Usage Normal? | We have a SBS 2011 server with 16GB memory that runs Exchange, WSUS and File Sharing for approx 20 users. The server also gives 2GB memory to a virtual machine running in Hyper-V so 14GB left for the rest. When the server first boots Store.exe consumes about 500MB memory, WSUS and IIS consume some as well, but we gener... | Check if the database cache is taking up the memory (and not releasing it for some reason) using the perfmon Exchange "Database cache size" counter. If so, try limiting the cache sizes by setting msExchESEParamCacheSizeMin/msExchESEParamCacheSizeMax values in the InformationStore Active Directory object's properties as... | 4 | 5 | 17,212 | 2011-11-17T19:31:37.830 | api_errors | serverfault.com | |
298,806 | Accessing SQL server on-Prem database views from remote server through Azure Data Factory | We need to copy the data from client's remote SQL server (on-prem) database to our Azure SQL server through Azure data factory. So we can automate the data pull on regular basis. Client tried to offer us that they can create a domain login for us to access their database views. I would like to know if that works to mak... | Yes, you can create a Linked Service in ADF that uses Windows Authentication. A Linked Service can be thought of as similar to a connection manager in SSIS. BOL You may then need to work out security and networking access, but as it stands, conceptually, you can use ADF to access on-prem SQL Servers using Windows Authe... | -1 | 0 | 555 | 2021-08-31T10:26:48.550 | pipeline_ops | dba.stackexchange.com | |
89,444 | How to determine column character set used on creation? | I have this SQL creation statement: [CODE] where [CODE] has the default charset [CODE] . Later, without knowing the create statement, I want to figure out if a column was defined to have [CODE] as character set or it just inherited it from the database. What I have tried Export from the database using MySQLWorkbench Th... | This shows the collation and character set for one table: [CODE] | 1 | 1 | 89 | 2015-01-16T08:36:59.737 | database_errors | dba.stackexchange.com | |
634,197 | ZFS - Is RAIDZ-1 really that bad? | I have an NAS server with 4x 2TB WD RE4-GP drives in a RAID10 configuration (4TB usable). I'm running out of space ( I like what I've read about the data-integrity features of ZFS, which - on their own - are enough for me to switch from my existing XFS (software) RAID10. Then I read about ZFS's superior implementation ... | Before we go into specifics, consider your use case. Are you storing photos, MP3's and DVD rips? If so, you might not care whether you permanently lose a single block from the array. On the other hand, if it's important data, this might be a disaster. The statement that RAIDZ-1 is "not good enough for real world failur... | 26 | 32 | 121,618 | 2014-10-07T15:42:16.617 | data_quality | serverfault.com | |
982,348 | Deny foreign domains requests with bind9 | I have 2 bind9 servers adjusted as Authoritative-Only DNS Servers. I've noticed that dnstop shows a lot of requests for foreign [CODE] domain (not mine). There are more than 50k requests per minute. I can't understand who and why send me requests and how I can block them? Bind [CODE] config: [CODE] [CODE] dig results: ... | I can't understand who and why send me requests and how I can block them? Your logfiles should be able to tell you who sends this request but note that most probably you will see only the IP address of some recursive DNS server, not the original client. As for why, either someone is just poking randomly your site or ha... | 0 | 3 | 977 | 2019-09-07T17:27:41.710 | infrastructure | serverfault.com | |
276,098 | Joining two tables based on two Aggregate columns | I have a following problem as in the example. I have to join two tables based on the aggregated columns. These are the only way to combine these two tables. Is it possible to do this? I have tried Having by - procedures, without any success. [CODE] | Something like this: [CODE] | 0 | 1 | 541 | 2020-09-25T18:04:02.043 | warehouse_errors | dba.stackexchange.com | |
998,105 | Jenkins in Docker container refuses to to install anything | I have a Jenkins instance running in a docker container running on an AWS EC2 instance with security group allowing traffic on ports 22, 80, and 8080. I use Ansible to install both: docker and Jenkins. The Jenkins role looks like this: [CODE] I can access the Setup Wizzard, I pass the password from the /var/jenkins_hom... | Looks like you will have use a newer version of Jenkins. Instead of specifying latest as your image tag, it would be better practice to specify a specific version. From the looks of your log, it looks like the highest number version it is requesting is v2.150. You are currently installing v2.60.3. I would recommend spe... | 0 | 1 | 89 | 2020-01-08T12:20:57.973 | bi_errors | serverfault.com | |
104,411 | How do I prevent my query from needlessly generating rows it'll throw away later? | I have the following query: [CODE] with the following query plan : [CODE] on these tables: [CODE] It seems that a lot of data is needlessly being generated as a result of this join filter: [CODE] and as a result the query is very slow. What can I do so that these rows are not needlessly generated? | John, I've got a recommendation which may help significantly (I hope!) It requires only a small change to your query, and may yield a significant performance increase. No promises though, but test it and let me know. Apply unnest() Generally speaking, I would avoid using the [CODE] syntax as Craig Ringer metioned, due ... | 2 | 1 | 160 | 2015-06-18T08:07:54.810 | database_errors | dba.stackexchange.com | |
584,052 | File downloads dry out? | A couple of our users reported problems downloading zip files from our server. Downloads start but they dry out soon. They basically stop after short period of time. I wasn't able to reproduce this from work where everything works as expected. I do experience the same issue from home though. Path MTU Discovery Here's o... | I contacted Amazon and apparently it's known issue with some m1 EC2 instances. I lowered MTU in Windows using [CODE] command for now. They recommended upgrade to m3. | 1 | 1 | 98 | 2014-03-24T03:10:36.173 | infrastructure | serverfault.com | |
269,458 | iis7 how to disable anon access, basic authentication, and enable windows authentication on ONE file in a website | I have a product I'm evaluating called bugtracker.net, it has the ability to authenticate through both windows auth. and a local db with user accounts. For this to work I need to let the code handle authenticating against the db, but I also have a form that authenticates against AD. For this one file to work "loginnt.a... | In IIS 7, you can target the properties of an individual file in IIS Manager by: Switching to Content view in the tab at the bottom Right-clicking the file you're wanting to edit Choosing "Features View" from the context menu At this point, you'll have a reduced list of capabilities presented to you, and you'll see the... | 1 | 0 | 646 | 2011-05-13T15:38:31.727 | api_errors | serverfault.com | |
156,760 | Testing IIS7 cluster nodes before bringing online | We are starting a migration to a IIS cluster for load balancing, failover support, as well as zero-downtime upgrades. We are currently testing this configuration with a pair of Windows 2008 R2 virtual machines. Our current approach has both VM's configured with the same IP address and bindings on IIS. In other words - ... | NLB uses port rules to determine routes to nodes. We set our NLB cluster up to route off-standard ports in addition to standard ports for web services (http/s) and set up NLB to always route one off-standard port to one node, then another off-standard port to another node. In IIS for each node, we added a host header f... | 0 | 2 | 790 | 2010-07-01T17:41:46.630 | database_errors | serverfault.com | |
957,422 | NGINX reverse-proxy exposing backend server IP address and protocol | Our documentation server at code.kx.com uses NGINX 1.12.2 under CentOS to serve static HTML. The firewall allows SSH, HTTP, HTTPS only. Our custom search engine runs as a HTTP server on port 5023 on the same machine. The NGINX config file redirects HTTP to HTTPS. [CODE] It also reverse-proxies search requests by HTTP t... | This turns out to be a duplicate of Unix/Linux question Nginx reverse proxy redirection . The key part of the answer is [CODE] This sets the [CODE] field sent to my search engine. Evidently the response sent to the browser depends on the headers in the search engine’s response in ways I need to understand better. | 0 | 0 | 2,746 | 2019-03-08T19:22:24.627 | infrastructure | serverfault.com | |
1,156,239 | What causes Google Cloud Run job to fail with error "Killed"? | I'm cloning multiple repositories (using [CODE] ) inside my Google Cloud Run job and one of them makes Google Cloud killing the container with exit 1. See the log: [CODE] The repository as cloned has 10.828 files and its size is 1.8 GB. The memory and CPU usage didn't exceed 50 %. It happens during [CODE] . I assume it... | As proposed by Roopa M in the comments: Increasing the RAM helped, even though there is no spike in usage. | 0 | 2 | 74 | 2024-03-14T05:35:34.810 | api_errors | serverfault.com | |
75,191 | What's faster: two UPDATEs with WHERE (in / not in) or one UPDATE with CASE? | What's best performance wise, two separate [CODE] s: [CODE] Or a single [CODE] with a CASE? [CODE] (and let's consider there are no NULL values in the relevant columns). What would perform best, supposed [CODE] and [CODE] columns have are indexed? I can't really tell because I don't have significant tables, and the onl... | You should perform an [CODE] and set [CODE] based on the right side being [CODE] [CODE] Why should this work ? If ISNULL(B.id) is 0, that means [CODE] is set to 1 (1 - 0) because it is in [CODE] If ISNULL(B.id) is 1, that means [CODE] is set to 0 (1 - 1) because it is not in [CODE] @ypercube suggested [CODE] GIVE IT A ... | 0 | 2 | 3,366 | 2014-08-28T10:31:40.083 | database_errors | dba.stackexchange.com | |
231,280 | How can I allow non-administrators to use port-specific USB devices that require a driver-reinstall for each new port? | Is there a way to give non-admin users the right to (re-)install drivers for a port-specific USB device so that they do not need an administrator login every time they plug the same device into a different port? I have a group of engineers who need to use USB tools that are port-specific: these USB devices are keyed to... | This is kinda tricky in XP. The best way I can think of is to use SuperCrypt . This will create a file with the encrypted admin password, then do a "Run as" as the admin on any command you desire. You'll have to do with with the New Hardware Wizard which is: c:\Windows\system32\control.exe hdwwiz.cpl So what will happe... | 0 | 1 | 2,639 | 2011-02-04T17:52:22.797 | infrastructure | serverfault.com | |
58,013 | Secure user setup in Sql Server 2000 | I'm looking to setup a user account in Sql Server 2000 in the most secure manner. The criteria is as follows: No access to the master database ( [CODE] & [CODE] on master) DB Read Permission ( [CODE] ) DB Write Permission ( [CODE] ) DB Execute Permission for sprocs ( [CODE] ) To me this seems like a pretty straight for... | There is no built-in database role for stored procedure execution rights in SQL Server 2000. However, the first article you quoted actually contains everything you need to completely solve your problem. However, I'll try to spell it out a little more clearly in a step-by-step process (that you will only need to follow ... | 2 | 1 | 701 | 2009-08-24T15:59:28.147 | database_errors | serverfault.com | |
91,720 | Definition of these metrics recorded in /proc/vmstat on RHEL 5.3 (paging/swapping?) | This question relates to the definition of specific metrics recorded in /proc/vmstat on RHEL 5.3. I'm using nmon to monitor a load test which consists of simulating 2500 users carrying out a days workload in one hour. Recently, I've seen bad performance and am in the process of diagnosing and excluding various consider... | [CODE] I am 87% sure, that each page that increased pswpin counter should also increase pgpgin. You say it isn't . Hmmm. This may be too simplistic thing to check (sorry!) but... Are you 200% sure, that the metric you observe is pswpin, not pgpgin? The later would translate to: process is reading some files. Other expl... | 2 | 1 | 7,651 | 2009-12-07T16:07:32.703 | database_errors | serverfault.com | |
837,258 | VPC - able to connect if 0.0.0.0/0 but not if I specify anything more specific | When at home, I have been able to access my personal EC2 instance with SSH on Port 22. When at work, I cannot. I'm using Putty with SSH and I get Network Error: Connection Timed Out. If I open up security on the port: [CODE] - it works. Putty connects and I can use my EC2 instance. So I'm assuming that means it isn't a... | All you need is 2 entries for SSH access. One from home and one from work. Edit the security group attached to the instance and allow your current IP to access it. Do it at work and at home. Now both home and work IPs can access your instance through SSH assuming your IP doesn't change over time. Also, what do you mean... | 0 | 1 | 269 | 2017-03-06T18:01:59.857 | infrastructure | serverfault.com | |
1,021,769 | Update HP Proliant Gen 10 Firmware Running VMWare esxi 6.5 | I've got a HP Proliant Gen 10 Microserver running VMWare ESXi 6.5. I haven't updated the firmware since I've had it but recently begun having problems with overheating. I found articles saying the firmware update should solve this. Originally I was trying to update the firmware in online mode, after struggling with the... | I believe I found a solution. I contacted technical support and was told that the Service Pack for Proliant didn't support the HP Proliant Gen10 Microserver, only the Gen10 Plus Microserver. As such I was directed to "System Firmware Upgrade for HPE MicroServer Gen10 Server with UEFI". Something userful to note is that... | 0 | 1 | 1,694 | 2020-06-16T20:15:21.460 | infrastructure | serverfault.com | |
56,565 | Are there any algorithms for solid polygon clustering? | I'm looking for something like K-Means for dividing solid polygons into regions. K-Means clusters discrete points. But I want to cluster (that is, partition) the points of solid polygons. I don't see any problems with implementing K-Means extension for this case but I want be sure before reinventing the wheel. So quest... | Finally I just implemented solution as I planned and described it in Medium post . This is "K-Means for solid polygons". I made a playground on my github.io . A bit more details of solid clustering approach. K-Means complexity is O(nkdi) or O(nk) per iteration without d , n is the number of d -dimensional vectors (to b... | 3 | 3 | 2,032 | 2019-07-29T13:35:35.273 | data_quality | datascience.stackexchange.com | |
612,494 | Outlook Exchange 2010- OWA/Outlook Client issue | Would there be a obvious reason why users can access OWA to receive email but they get a disconnect error on their Outlook client? Things I've done : Restarted/Checked all Microsoft Exchange Services. No errors Rolled back new update- Rollup 6 for Exchange 2010 SP3 Checked Event View logs Ran Microsoft Remote Connectiv... | According to the results from Microsoft's Remote Connectivity Analyzer, there is a problem with your autodiscover service, which is the service used by Outlook to automatically locate your Exchange server. Autodiscover is a web service running on your Exchange server, and it should be published to the Internet just lik... | -2 | 1 | 22,271 | 2014-07-14T20:01:18.143 | infrastructure | serverfault.com | |
511,912 | Problems with running a node.js application using mongoDB on a VPS running CentOS | I have registered a VPS with DirectAdmin, running CentOS and I'm using a domain which I registered from a different site. I've done the necessary configuration to make the domain display the default page of the VPS. I've also installed node.js and mongoDB using CentOS, but I'm stuck on getting to run the appliction. I'... | Seems like you're starting the mongod as unprivileged user, so it can't open the logfile. You should run the mongod service as a system service and then provide access to users (check db.addUser documentation). To run Node.js in production it's better suggested to use some facility like https://github.com/nodejitsu/for... | 0 | 1 | 1,989 | 2013-05-30T11:26:47.350 | database_errors | serverfault.com | |
582,758 | Can not truncate / clear error.log on apache, but can do it manually with nano | I tried to clear the content of error.log file on my apache server with commands [CODE] But in both cases I got [CODE] . I tried the same thing while stopping apache, but still got the same message. After that I tried to clear it with [CODE] and was able to remove everything. So why was not I able to clear the log prop... | You should try this : [CODE] | 6 | 13 | 11,875 | 2014-03-18T00:39:44.890 | infrastructure | serverfault.com | |
126,031 | Performance issue using view vs. direct statement | I have a table with structure similar to this: [CODE] I need to get the "current value" for a given combination (id1,id2) --- that is, the record with highest value_at among the records with a given combination id1,id2. The "normal" SQL query would be (example for id1,id2 = 100,200): [CODE] However, I want to have a vi... | You might want to try using a window function for that: [CODE] sqlfiddle EDIT: The above has an advantage of being standard SQL. However (thanks to @a_horse_with_no_name) Postgres also offers a proprietary alternative: [CODE] , which reportedly performs better: [CODE] sqlfiddle 2 Comparison of the execution plans of th... | 1 | 1 | 2,854 | 2016-01-12T19:35:12.890 | warehouse_errors | dba.stackexchange.com | |
157,032 | Getting duplicate record errors like "Duplicate Entry for key 'PRIMARY', error code 1062" when importing a full backup into slave | We're restoring our slave with a full backup from our master, and getting a bunch of duplicate key errors. Once the slave gets caught up, it does not throw any errors (only when it is behind the master). We replicate all of the database tables. We use a MariaDB Galera cluster as the master, and just a single MariaDB in... | From your steps, you are most likely backing up and starting replication from a different position: Get the GTID of the master by checking the variable "gtid_binlog_position". Save this value. Do not use that value, between that time and the time the backup was taken (even if seconds), more rows could have been changed... | 5 | 0 | 2,305 | 2016-12-02T19:03:11.040 | data_quality | dba.stackexchange.com | |
1,084,957 | strange NAT issues with pfSense to vagrant VM | This one has got me confused: I have a pfSense firewall (let's call it [CODE] ) and behind it several servers. I NAT several services from my public IP to different servers on the LAN without any issues. On one of the servers (let's call it [CODE] ) I'm running a [CODE] (with [CODE] ) VM (let's call it [CODE] ) with a ... | Solution: The cause is that [CODE] requires (and therefore configures) its local interface (private network) as primary, with no standard method to override that. (Some info is here , but the [CODE] people admit that they're themselves confused by the topic...) A (more robust) variation on the concept to tweak the defa... | 0 | 0 | 142 | 2021-11-30T12:09:04.537 | pipeline_ops | serverfault.com | |
229,707 | How can I improve quality on SQL reports? | I've recently ran into some issues where some reports were not generating the proper results. We already have a QA department that reviews the reports and then our business owners review them as well; this hasn't prevented the issue. I'm trying to figure out a decent way to have a test harness to ensure reports are giv... | It seems to me like you need an automated test. You need a test data-set which covers all possible data constellations which might or might not be problematic and the desired output which is supposed to be generated from that dataset. Then you just need a program which automatically runs the test, compares the results ... | 3 | 1 | 213 | 2014-02-20T14:01:21.903 | database_errors | softwareengineering.stackexchange.com | |
770,162 | Connection reset when trying to access / with a FallbackResource rule | I am having an issue where my site is working as intended for all urls except the base url of [CODE] . When I try to access that in particular I get a connection reset. I have reduced my site to extremely bare bones, and now consists of only a .htaccess file: [CODE] router.php: (simplified to a basic html page for debu... | Turns out all I needed to do is add a DirectoryIndex rule to the htaccess file and it started working as intended. Thanks. | -1 | 0 | 122 | 2016-04-13T21:45:38.093 | infrastructure | serverfault.com | |
87,370 | Is there a secure way to add a database troubleshooting page to an application? | My team makes a product (business management software) that our customers install on their own servers. The product uses a SQL database for data storage and app configuration. There have been quite a few cases where something strange happened in the customer's database (caused by bugs in our app and also sometimes admi... | I have provided support pages such as the one you have described in the past to a system that was already Role based. It is not a problem of Authentication as I assume you will be able to tell WHO is currently logged on, Eg. Joe User, Joe Support, etc... It is a problem of Authorization. This can be typically solved in... | 4 | 3 | 112 | 2011-06-27T16:08:04.197 | database_errors | softwareengineering.stackexchange.com | |
885,846 | Nginx map directive only matching default | I'm using Nginx's map directive to route users to either stable or beta servers depending on the value of a custom http header. However, Nginx will only match to the default value, even when I've confirmed that the header is 'TEST'. [CODE] Headers: Req: [CODE] Res: [CODE] Have I written something wrong? I've tried TEST... | When converting HTTP request headers to variable names, nginx will convert hyphens to underscores . Thus, a variable representing the [CODE] header will be [CODE] . This suggests that your [CODE] should be declared as follows: [CODE] | 0 | 4 | 9,376 | 2017-11-29T20:30:51.707 | infrastructure | serverfault.com | |
188,527 | create one private database link for two users oracle | I am trying to create one private database link to be accessed by only two users but it gives me syntax error. My code: [CODE] | When you select from a table with dblink first time in current session, then oracle needs to connect from one server to another. So your current oracle instance is SRV1, and other is MYDB. When you issue first time in current session [CODE] then oracle create session from SRV1 instance to MYDB instance. How oracle do i... | 3 | 1 | 3,212 | 2017-10-16T01:22:20.037 | database_errors | dba.stackexchange.com | |
311,018 | Effect of demoting copy-on-write page to read-write on other processes | The Windows OS tries to conserve physical memory usage by allowing DLLs loaded in their base (desired) address in different processes to use the same physical pages with copy-on-write semantics; this article , for example, describes the mechanism. Now, the Windows Virtual Memory API allows you to change the protection ... | Typically when something is "copy on write"; if a process writes to their instance of it, then that page is converted to "read/write" by creating a copy of the page and replacing the original with the copy for that process. Other processes keep using the original (until/unless they write to the page too and get their o... | 4 | 0 | 1,310 | 2016-02-24T20:27:09.243 | api_errors | softwareengineering.stackexchange.com | |
809,279 | selinux multiple types for directory | For a new department I created a new mount point /dept/dev and in here are currently 2 dirs: samba and svn, so we have: [CODE] (/dept and /dept/dev are also "samba_share_t" as that one was created first) samba works fine, svn does not: [CODE] (I think 'name' in the above is the directory it's trying to search?) It seem... | You'll need to tell SELinux to that [CODE] needs to be [CODE] . You can do that by adding a suitable regex ... This [CODE] should do what you want. | 4 | 2 | 670 | 2016-10-15T22:19:56.607 | infrastructure | serverfault.com | |
229,177 | "ssh root@server" hangs forever | Sometimes my ssh client will take forever to login. This happens when the server is not responding (overloaded, killed processed, ...). My automated scripts will then fail because the ssh process will never exit. Is there a ssh configuration value to set a timeout in order to fail if ssh can't login after a predefined ... | I've seen cases where even setting ConnectTimeout doesn't work. This can be particularly annoying when using automated ssh connections to large numbers of servers. My solution is to use a wrapper on the client side that kills the ssh process if it doesn't connect and return quickly enough. Something like this (in perl)... | 3 | 6 | 3,084 | 2011-01-31T15:18:37.110 | infrastructure | serverfault.com | |
306,428 | Reducing memory grant waits in development environment | I've got a query which waits a long time for memory grants, even though it's the only query running at the time. The query plan is at https://www.brentozar.com/pastetheplan/?id=rkNF4LF6K I cannot change the query content, but I can do anything with my server running locally (developer edition, so all features available... | Since your original question got closed out as a dupe, re-posting my answer here (with additional information) so it's preserved for other people experiencing similar issues: You appear to be having a cardinality estimate issue which is resulting in the unnecessary memory grant to occur (as Martin pointed out). You sho... | 0 | 1 | 340 | 2022-01-22T11:12:27.063 | database_errors | dba.stackexchange.com | |
1,029,473 | Logging all failed authentication attempts against Active Directory | I need to log all failed authentication attempts against my Active Directory domain. An external app binds to MS AD via LDAPS and uses AD for user authentication requests. When the wrong user or password is used, I do not see audit events on the DC Event Viewer (Windows Logs > Security). I tested basic scenarios to try... | To enable logging of failed attempts, you need to use "Advanced Audit Policy Configuration" in the Group Policy Management Editor to enable audit logging of successful and failed logon attempts. Go to "Start > Run" and type in gpmc.msc, then click OK. Right-click on "Default Domain Policy" and select Edit. Go to "Compu... | 0 | 0 | 2,881 | 2020-08-10T05:57:26.037 | api_errors | serverfault.com | |
181,245 | How can I profile database queries from PHP? | CodeIgniter has a very nice feature called a Profiler, which displays information at the foot of a page, information such as GET, Memory, POST data. It also shows database queries and how long they took to run which I find very useful. I have recently taken over a legacy PHP application and it would help a lot to see w... | CI's profiler is a nifty little class that assembles data from CI's database class and CI's controller class and gives you a pretty thorough view of what's going on. Unfortunately it's not going to work in isolation, it's tightly coupled with the rest of the framework, and afaik there isn't a simple alternative that yo... | 3 | 2 | 3,924 | 2013-01-02T14:28:42.893 | api_errors | softwareengineering.stackexchange.com | |
528,420 | mod_evasive apache module configuration issues | I have configured [CODE] to not block google bot's IPs. But it's still banning google bots. Here is my configuration in [CODE] : [CODE] Here google bot IP is 66.249.. The above configuration is not working and it's still banning [CODE] IPs. What am I doing wrong? | I think you have a syntax problem. Try just 66.249.* | 0 | 0 | 1,611 | 2013-08-03T10:29:30.273 | infrastructure | serverfault.com | |
280,665 | Trap exception in PostgreSQL script | I want to run a script inside a transaction in PostgreSQL. So I surround the SQL code with [CODE] and [CODE] statements. But I want to [CODE] on error. I don't see how to do that. [CODE] | I found the answer . The rollback will happen when an error occurs without me doing anything. | 1 | 1 | 1,171 | 2020-12-01T15:49:48.327 | database_errors | dba.stackexchange.com | |
47,384 | Artificially increasing frequency weight of word ending characters in word building | I have a database of letter pair bigrams. For example: [CODE] The way I am using this I chose a "first" word which will be a character pair. Then I will look at all the most likely letter to follow that. The relationship of the words is such that the second character of the first pair is always the first character of t... | One was to evaluate the code is to run thousands of simulations and look the histogram of word length frequency. Then parameterize your code so long word bias can be changed up and down. Rerun the simulations and look to see if the histograms have changed. | 4 | 1 | 40 | 2019-03-15T23:51:10.510 | database_errors | datascience.stackexchange.com | |
504,502 | How do you conduct your SCCM updates? | I've implemented SCCM 2012 in my environment and have been trying to get all endpoints caught up on their updates. The previous management for some odd reason thought patching computers was not high priority. I'm wondering how some of you SCCM experts would approach this situation: You have just set-up SCCM 2012 and yo... | I'm still in the process of implementing SCCM 2012, but I've done some research on this topic to come up with a good plan for implementing software updates. First, there is a finite limit for the number of patches you can include in a single deployment. I think with 2012 it was increased to 1000, so that's generally no... | 2 | 3 | 1,139 | 2013-05-02T14:54:40.400 | infrastructure | serverfault.com | |
674,735 | Resize error : ext2fs_open2: Bad magic number in super-block | I have a server server1 running 8GB root partition I have taken the ami of this server1 and created anothe server2 but changed the root partition to 60GB 3.I wanted to extend the linux partition in the server2 and followed the below link: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/storage_expand_partition.html ... | Before: [CODE] After: [CODE] No, that's not going to work. The (first) superblock is stored at a fixed offset from the start of the partition. You can't arbitrarily change where the start point is on the disk, because [CODE] is then going to look for the superblock in the wrong place... and fail to find it. From the li... | 1 | 0 | 3,565 | 2015-03-11T21:45:49.217 | infrastructure | serverfault.com | |
866,276 | How to give write permissions using setfacl while retaining existing permissions? | I want to give write permission to a specific user on a dir recursively without loosing any existing permissions that the user may have. I believe I can use something like this to give write permissions to the user: [CODE] but the issue with this is that it takes away any existing permissions that the user may already ... | What you want are called "relative permissions", a feature that some setfacl implementation provide , basically using the classic "+/-" syntax used by [CODE] However, on RHEL7 and Ubuntu 16.04 LTS at least, [CODE] does not provide such feature. For example, something as [CODE] return an error stating [CODE] If your [CO... | 8 | 6 | 13,291 | 2017-08-01T12:51:27.343 | infrastructure | serverfault.com | |
391,805 | How to upgrade php curl on Ubuntu 10.04 | I have a web service on 64bit AWS/ubuntu 10.04 machine. Current php ver PHP Version 5.3.2-1ubuntu4.15. Current curl ver: 7.19.7 This Curl version has a memory leak and I need to upgrade to V 7.25.0 apt-get says my version is the latest, On curl download page the last version for Ubuntu is the one I have. There doesnt s... | When Ubuntu 10.04 was released, curl 7.19.7 was a stable and current release. Ubuntu will not upgrade to later versions with new functionality, but they will backport security fixes. If the memory leak bug in 7.19.7 was of significance, it is likely that the bugfix has been backported by Ubuntu into the curl-version yo... | 0 | 0 | 1,345 | 2012-05-23T11:42:51.763 | infrastructure | serverfault.com | |
124,461 | Checking SQL AlwaysOn backup target with fn_hadr_backup_is_preferred_replica, different answers with different permissions | I've implemented AlwaysON backup with Ola's script, those are running fine on designated server configured for backup. I would like to automatically check backups using sql-scripts fired from a monitoring system using a dedicated account just for this. This account has no permissions except public und view server state... | You have to GRANT the user [CODE] and [CODE] on availability group. | 5 | 2 | 331 | 2015-12-23T15:57:04.500 | pipeline_ops | dba.stackexchange.com | |
506,898 | mysqld 5.6 service error 1067 | Upon running this service [CODE] I get this error [CODE] https://i.stack.imgur.com/mJDwB.png However running just mysqld.exe runs OK https://i.stack.imgur.com/935sb.png But it won't accept my saved passwords and databases.. Similar question mysql server does not start! suggests that it's a directory issue, I've checked... | [CODE] Check your mysql log file and find out which parameter in your config is causing problems. | -1 | 1 | 4,736 | 2013-05-11T05:51:50.443 | database_errors | serverfault.com | |
103,858 | How can I know when a Xen VM has started when starting using CLI | I'm using XenServer as a host for disposable QA machines for our application development. I'd like to write a script that automatically creates a new VM from a template, starts it, logs into it, fetches the latest application build and deploys it. What I'd like my script to do is install the VM using 'xe vm-install', s... | There is no way to tell if your machine has finished starting the OS from outside... But there are two ways to solve this: Assume that your system is up and running when it finished loading a service (for example the sshd. Probe the system until this service is up and running). Add an install script to the client that ... | 3 | 4 | 547 | 2010-01-18T17:13:10.973 | infrastructure | serverfault.com | |
63,917 | New query slower even if it has less logical reads than the old one | I have a query in a stored procedure that must list all dates in a range and JOIN on it date from a table, if it exists for that day. The procedure was created before I was employed as the DBA, so I thought I might optimize it a bit. However, it seems I've hit a brick wall, and I cannot understand why. The current impl... | The percentage costs on an execution plan are from the optimizer estimates, even when an actual execution plan produced. The actual execution plan does use the exact plan and include both the estimated rows and the actual row counts. Discrepancies between the row counts can be useful to determine how accurate the estim... | 6 | 2 | 1,654 | 2014-04-25T11:54:26.653 | warehouse_errors | dba.stackexchange.com | |
109,417 | SQL Server 2008 does not support code page 65001 for UTF8 encoding when importing text file | It seems like SQL Server 2008 does not support code page 65001 when using Bulk Insert. If I use other code pages, my data is corrupted when imported. Is there a way to insert my UTF8 data properly in SQL Server 2008 using scripts? | SQL Server supports unicode, but like Java, it only uses UTF-16 Little Endian (also called UCS-2) for unicode data in NCHAR, NVARCHAR, and NTEXT fields. I assume you're talking about the BCP utility, which supports only UCS-2 data on import (it will not convert UTF-8). Other SQL server tools may support on-the-fly conv... | 0 | 1 | 9,342 | 2010-02-04T02:37:35.250 | database_errors | serverfault.com | |
891,027 | Windows 7 Client flooding network with DHCP requests. Not setting IP | I have a small network, with 15 workstations, SAMBA AD, and a bunch of Virtualized linux servers. All the workstations, and servers are on the same subnet. All workstations are running Windows 7 Pro Both my Samba 4 DC, and ISC-DHCP-SERVER are running on the same virtualized host. Most, if not all workstations have DHCP... | Seem to me a bad NIC in the workstation. Try a firmware update and if it still don’t work change the NIC. | 7 | 3 | 2,793 | 2018-01-06T17:41:46.427 | data_quality | serverfault.com | |
238,190 | Monitoring PostgreSQL backup | I am new to PostgreSQL and have questions regarding the backup procedure. How do I check whether a PostgreSQL database was backed up successfully? And how do I monitor the backup? I have tried the following command to backup the database, but there's no output: [CODE] | The test is to restore the backup somewhere else. Monitoring can be done via the return code of [CODE] : if that isn't 0, something went wrong. | 0 | 1 | 409 | 2019-05-15T05:47:51.290 | pipeline_ops | dba.stackexchange.com | |
529,328 | Global and per user php.ini | On my server (lighttpd + php-cgi) I have several php-cgi processes, each running as the user of the site it's serving. I know I can set a php.ini for each process through the PHPRC enviroment variable. Unfortunately this causes PHP to only read that php.ini file. I would like to have one php.ini file for all processes ... | I ended up switching to PHP-FPM. Which spawns php processes which run under approppriate users. | 0 | 0 | 138 | 2013-08-07T13:44:14.700 | infrastructure | serverfault.com | |
557,298 | Server crashed, some MySQL databases are broken. Trying to recover with InnoDB recovery, but ibdata1 seems corrupt | I've a problem. Some days ago my root server crashes after a power outage. I realised that the MySQL server won't start. In the logs I find out that an error occured with InnoDB's ibdata1. I've tried the automatic InnoDB recovery program (innodb_force_recovery). I reinstalled the MySQL server. All these ways didn't hel... | Looks like innodb_force_recovery is set to 6 in your my.cnf, so it will not try to recover based on binary logs, try setting it to 0 instead. http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html check also that you had binary logs activated at the time of crash: http://dev.mysql.com/doc/refman/5.5/en/bin... | 3 | 1 | 16,971 | 2013-11-25T16:28:41.980 | data_quality | serverfault.com | |
190,803 | How to Restrict Schema Access to Specific IP Address & user? | I want to lock down access to specific schemas. Restrict the access to specific users when the connection is made from the specific IP addresses. Eg Only Access to USER1 and USER2 | An AFTER LOGON trigger can be used for this purpose. [CODE] Remember the following points. The trigger must use ON DATABASE, as making it schema specific would prevent the RAISE_APPLICATION_ERROR from preventing the logon. The trigger will fire for all connection attempts, so make sure you restrict which users it affec... | 1 | 2 | 5,947 | 2017-11-13T19:05:49.237 | warehouse_errors | dba.stackexchange.com | |
126,683 | Easier way to use Haystack Annotation Tool or alternative to generate SQuAD data | I want to annotate some passages in the SQuAD format. After some research, I found that the Haystack Annotation Tool by deepset.ai is the best option for this purpose. Most of the old tutorials suggest opening an account on their annotation website direcly. However, they no longer host it on their website; instead, the... | You can use Prodigy , an online annotation tool by the same people that created and maintains Spacy. Here you have a QA recipe and here a related support question. If you prefer open source solutions, you can try with Doccano or Brat , although I'm not sure if they already support QA annotation or not (see this ). | 1 | 1 | 41 | 2024-02-01T14:25:28.220 | api_errors | datascience.stackexchange.com | |
318,603 | Initializing squid stops | I am trying to initialize squid using the user nobody, [CODE] it indicates that it is creating the swap directories then it stops there, no swap directories are created. I have installed squid on a mac server running 10.6.8. Anything am missing? here is my squid.conf [CODE] | Uncomment and adjust the following to add a disk cache directory cache_dir ufs /usr/local/squid/var/cache 100 16 256 And check if squid user has rights on writing to /usr/local/squid/var/cache | 0 | 0 | 114 | 2011-10-05T07:13:16.117 | infrastructure | serverfault.com | |
324,367 | Aurora MySQL: Delete SQL Takes Forever to Finish | I have an Aurora MySQL 5.7 running on a non-production test instance (r5.2xlarge). I have a "simple" delete where I am trying to execute and it has been running for 72 hours already! I like to know if anybody can give insights as to why the delete is taking a long time and how can I make it run faster. The schema looks... | Big deletes are slow. An "undo" row is created for each row being deleted -- just in case the system crashes. If you are removing all the rows from a table, simply do [CODE] That will be virtually instantaneous, even for a large table. (It DROPs and reCREATEs the table.) If you are deleting only a large number of rows,... | 0 | 1 | 619 | 2023-03-04T15:02:11.977 | data_quality | dba.stackexchange.com | |
41,459 | Capture pattern in python | I would like to capture the following pattern using python [CODE] Example data [CODE] Expected Output: [CODE] How can i do it using python. | You can also solve this problem by the following ways; [CODE] | 5 | 4 | 208 | 2018-11-20T13:22:07.777 | data_quality | datascience.stackexchange.com | |
380,135 | Preferred method signature for API method involving DB interactions | I recently got into discussion about how the method signature should look like for an API method which doesn't expose internal objects used by application to caller. Here is how situation looks: Our API should expose one method say, [CODE] or, [CODE] This method can be called by clients to update summary of operations.... | Exceptions can happen even in good code (e.g.: Oh no, server X has gone down and is not responding to attempts to save to DB), so I agree exceptions should always be propagated back. That doesn't answer the return type question though. Is there a scenario whereby the database layer code might decide to NOT save (is val... | 0 | 1 | 84 | 2018-10-16T19:32:02.210 | pipeline_ops | softwareengineering.stackexchange.com | |
52,086 | In sys.dm_os_memory_cache_entries view, what does original cost mean? | Looking at a couple of DMVs, and trying to see if I can programmatically figure out the cost of the cached plans in my SQL Server. I'm hoping that column represents the same concept of cost that is used by the optimizer to determine if the query should be parallelized, but I'm not sure. Is that the case? Edit: below is... | From the documentation for sys.dm_os_memory_cache_entries , this represents the combined CPU + I/O cost that the optimizer uses both for the value of the plan (and those metrics) and also to determine how quickly to evict those plans from the cache. Though, for your use case, I suspect [CODE] may be more relevant. Be c... | 0 | 1 | 322 | 2013-10-23T21:18:45.287 | database_errors | dba.stackexchange.com | |
1,118,986 | Nginx returns bad gateway when forwarding even when service is up and running and port is correct | I set up Nginx 1.23.2 on Debian 10 to forward specific requests to port 3999 on which gitea is running at. Nginx configuration: [CODE] Part of output from nginx -T command proving that configuration is picked up: [CODE] (Obviously domain name is changed) However when I enter www.subdomain.domain.com i get 502 bad gatew... | Your [CODE] does not contain [CODE] The protocol defaults to plain [CODE] , and the purpose of the reverse proxy is to add the TLS encryption, as described in HTTPS setup to encrypt connections to Gitea . Therefore, you need [CODE] with [CODE] instead of [CODE] . Additionally, you might want to prevent direct non-TLS c... | 0 | 1 | 1,190 | 2022-12-28T12:52:32.677 | infrastructure | serverfault.com | |
330,484 | Optimizing PostgreSQL Query with DISTINCT ON, Filtering, and Ordering | I'm working on optimizing a query for a PostgreSQL database used in an educational platform. The query retrieves distinct [CODE] values along with their [CODE] status from the [CODE] table based on specific [CODE] , [CODE] , [CODE] , and [CODE] criteria. Here's the query: [CODE] Here is the selectivity order of the col... | The ideal index for this query would probably be: [CODE] But where the first 3 columns can be in any order. It doesn't matter what order they are in, as all are tested for equality. That means their selectivities multiply together, and it doesn't matter much which order. After that, [CODE] matches the ORDER BY, which m... | 0 | 0 | 83 | 2023-08-21T07:06:17.200 | database_errors | dba.stackexchange.com | |
855,852 | Powershell Get-ODBCDSN error - Timeout when waiting for another concurrent operation to complete | After some database issues the night before, multiple servers (separate from the database servers) are getting the following error when just running the 'Get-ODBCDSN' function from a powershell console: Get-OdbcDsn : Timeout when waiting for another concurrent operation to complete. At line:1 char:1 + Get-OdbcDsn + ~~~... | I know i am a year late by a year, however hopefully this will help somebody else out. I was just getting the same error "Get-OdbcDsn : Timeout when waiting for another concurrent operation to complete. At line:1" mine was because MSFT_OdbcDsnTask was in use by trying to add a dsn through PowerShell and got locked up, ... | 0 | 1 | 900 | 2017-06-14T21:43:09.873 | infrastructure | serverfault.com | |
243,659 | How do you select "array"-type columns via the DBLINK function? | Using PostgreSQL, I can easily do a select statement to return a column that is an array of the datatype [CODE] . i.e. [CODE] is the datatype [CODE] [CODE] Returns a column that contains an array of points: [CODE] I'm certain the column is of type [CODE] , because [CODE] returns as expected. I'm trying to do this query... | The solution I found was via casting: Specify the column in [CODE] SQL as [CODE] Cast to text in the [CODE] SQL statement Cast from [CODE] to [CODE] outside of [CODE] PostgreSQL: What is the best way to cast from from text to point[]? | 1 | 1 | 936 | 2019-07-24T12:40:32.450 | database_errors | dba.stackexchange.com | |
210,360 | Stopping developers committing to the wrong branch on DVCS | The problem I am on a software project which has about 10 developers, we share source code via Mercurial. We have a development and production branch per release. Repeatedly during the course of the project we have had source code from one branch i.e. v1 getting into patch and maintenance branches for earlier releases ... | The problem is you are changing what the meaning of a branch is part way through the process. Initially, the [CODE] branch is for development. All new features go there. At some point in the future, it becomes a maintenance branch for the [CODE] branch. This is the crux of the problem. Its not that the developers are s... | 12 | 22 | 1,508 | 2013-09-03T22:19:44.743 | api_errors | softwareengineering.stackexchange.com | |
582,544 | Using Jenkins to access mysql files on the same instance | I have a Jenkins installation and running mysql server on the same box. One of my jenkins jobs is supposed to tar up the /var/lib/mysql folder but I get the following error [CODE] I have added the jenkins user to the mysql group but this has not done anything for me. Does anyone have any ideas? Thank you for your help | From memory the mysql database directory is often set with user permissions only. Group permissions are 0. i.e. 0700 or similar. Doing this backup the way you are doing it could lead to corruption if data is written while you are running tar. So rather than use tar directly, use mysqldump to back up the whole database.... | 1 | 0 | 2,064 | 2014-03-17T08:05:52.207 | database_errors | serverfault.com | |
290,651 | Order of terms in a conditional expression | Consider the following loop (in Swift - but my question is language independent): [CODE] In the above code, the standardizedTimeSpans variable is an array of Doubles and the timeSpan variable is a Double. The above loop may decrement the value of index down to a maximum of -1. If my conditional expression for the while... | I'm not sure about Swift specifically, but in general using the && operator short circuits and ends early if the left side is false. The code after the && will not be run. Short circuiting is common practice in many languages. | 2 | 0 | 110 | 2015-07-23T21:13:34.483 | api_errors | softwareengineering.stackexchange.com | |
213,315 | Support 250+ concurrent users for an intranet web site | Context We want to deploy a web site on II6.0/7.0 for intranet use only. The web site has a typical three tier architecture. The middle tier is deployed as an application server on the same machine as IIS. The asp.net code running in worker process makes call to application server, which in turn connects to database fo... | If your app is stuggling with 20 concurrent users and its not doing something very intensive like industrial-strength number-crunching, I would be inclined to take a guess that its the code that may be to blame rather than IIS. My first suggestion is you check the codebase for bad design/logic, optimise database and da... | 0 | 4 | 3,843 | 2010-12-15T10:25:34.657 | api_errors | serverfault.com | |
325,175 | Alter command showing syntax error in MySQL 8.0 | Below is my Table schema [CODE] Now I want to use [CODE] command with [CODE] instead of [CODE] from here Below is my command :- [CODE] But I am getting a error stating syntax-error :- [CODE] Now if I use [CODE] it works then why ALTER COLUMN is not working.The command is correct as per the even the official document. I... | It seems that you are misunderstanding the manual. From the link you mentioned the syntax alter column is used for : [CODE] The following command would work properly. [CODE] As per the data type changes you have to use MODIFY COLUMN or CHANGE COLUMN [CODE] ALTER TABLE Statement Example | 0 | 6 | 780 | 2023-03-25T15:39:11.957 | database_errors | dba.stackexchange.com | |
47,948 | Why doesn't `1` fit into a decimal(4, 4) column? | I have a [CODE] column in MS SQL Server 2008 R2. If I understand correctly, that means: [CODE] of 4, ie up to four digits can be stored after the decimal place [CODE] of 4, ie a a total of four digits can be stored When I run an update command to set the column to [CODE] ( [CODE] ), I get this error: Arithmetic overflo... | The [CODE] specifies the total number of digits that can be stored, the [CODE] specifies, how many of those digits live behind the decimal point. A [CODE] therefore has four digits and all are behind the decimal point. That means you can store values form -0.9999 to 0.9999. You cannot store -1 or 1 as they have a digit... | 3 | 7 | 1,302 | 2013-08-12T01:42:24.613 | database_errors | dba.stackexchange.com | |
424,916 | How do I know if my nodejs application is stateless or not? | According to documentation from PM: https://pm2.io/docs/runtime/guide/load-balancing/ To make use of its load balancing feature which uses node's clustering to spawn multiple node processes, I need a stateless nodejs application. In the context of clustering, you first need to be sure that your application has no inter... | You may want to check first what defines a stateless application . In essence, a stateless web application, as opposed to a stateful web application, doesn't keep its information between multiple requests in memory on the servers, but relies instead on the database, an external cache system, etc. What's the problem wit... | -1 | 3 | 2,092 | 2021-03-29T15:23:35.050 | database_errors | softwareengineering.stackexchange.com | |
406,021 | Where Should You Add a Shared Maven Module as a Dependency in an N-tier Architecture | In a simple web architecture using Spring and Maven where it consists of following layers: Controller Service Repository Shared Where in shared module all the classes that are used among different layers are kept. When creating a flat Maven structure, should we add the Shared module as a dependency to Repository or to ... | See the first sentence of Introduction to the Dependency Mechanism, Transitive Dependencies : Maven avoids the need to discover and specify the libraries that your own dependencies require by including transitive dependencies automatically. That means the transitive dependency mechanism is intended for automatic behind... | 0 | 1 | 89 | 2020-03-03T03:02:13.007 | api_errors | softwareengineering.stackexchange.com | |
376,448 | Php5-fpm Crash if much visitors | I decided to change my OP to Nginx from Litespeed because i read much about the low resource that Nginx would cost. Im running a Wordpress site with 500 users online Okay thanks Guys for that much help :) I edited some things. I have some questions left too: Do i have to remove the ; before the pm. settings? I removed ... | It is not clear whether you are using any opcode cacher like [CODE] . First of all, make it enabled. Adjust its the memory to avoid fragmentation. Also, use socket, not http connection from [CODE] to [CODE] , and place that socket on [CODE] . In nginx, use [CODE] , and change php5-fpm's config accordingly. Try to lower... | 8 | 10 | 16,361 | 2012-04-03T21:29:33.520 | api_errors | serverfault.com | |
764,900 | How to remove this warning "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register." | I get the following error when i am listing the updates.Server is currently registered with ULN. Although its a warning, i do not want the below message displayed when i am issuing yum command.i found out subscription-manager plugin is loaded. How to disable subscription-manager plugin?? [CODE] | There are two possible solutions: in the plugin configuration file, disable plugin: [CODE] Register to the satellite | 28 | 50 | 271,701 | 2016-03-20T13:23:47.227 | infrastructure | serverfault.com | |
460,409 | I want ntlm auto authentication but login popup uppears | I built a php intranet web application that allow users to show their information stored in Active Directory. I want to auto authenticate the user over the Active directory using his windows credentials that he entered when he logged in to the windows, but a login pop up window appears when I access the application. I ... | The server you're using is asking for "Basic" or "Digest" authentication first . Which is why the browser is prompting them for credentials. If that mechanism succeeds then no other will be tried. If that mechanism fails (browser doesn't support it, or the user enters the wrong credentials ) then the server will try ot... | 0 | 2 | 4,157 | 2012-12-23T11:54:48.627 | api_errors | serverfault.com | |
914,808 | how to forbid connecting to localhost for ssh socks5 proxy | when I start ssh socks5 proxy like that [CODE] it allows to anyone to connect to localhost like [CODE] which can be a security issue for services that consider connections from localhost to be safe and ask no authentication (there are plenty of examples) Question is, how to forbid ssh to connect to localhost on behalf ... | The ssh SOCKS implementation doesn't have many features. I'd use a more robust SOCKS proxy. However, you can use iptables to accomplish this. Something like: [CODE] | 0 | 2 | 714 | 2018-06-01T16:37:49.210 | api_errors | serverfault.com | |
298,276 | Removing large amounts of rows from MySQL 5.7 table + ibdata increase question | I'm working with MySQL 5.7 on Windows. I've got several tables to clean data from. Largest table's ibd file is 300GB in size and it has almost 1.5 billion lines. I need to leave about 290 million rows in it. So a very large chunk needs to be removed. From reading the docs there are 2 ways DELETE statement and OPTIMIZE ... | The best way to have done that is to create a table with the 290M rows, then use RENAME TABLE and DROP the old 1500M-row table. This is like your choice 2, except that it renames before dropping. This rearrangement avoids the slight chance of losing the data. Your choice 1 is very bad because it will save the 1210M row... | 0 | 1 | 520 | 2021-08-19T17:39:04.233 | database_errors | dba.stackexchange.com | |
527,176 | Secure Apache when using mod_proxy_http and mod_rewrite | We have an Apache server that works as a proxy for apps running on different ports. For example: [CODE] Rules to determine application port are rather complex so I use a script to do that using mod_rewrite: [CODE] The problem I'm having is that looking at the logs, there are a lot of request from bots getting content f... | If I understand correctly what you are doing, you don't need a forward proxy, but a gateway, because all you are proxying are requests from the WAN to the intranet, i.e. a reverse proxy , why don't just disable [CODE] ? [CODE] ProxyRequests Directive This allows or prevents Apache httpd from functioning as a forward pr... | 3 | 0 | 213 | 2013-07-30T02:47:13.740 | infrastructure | serverfault.com | |
206,892 | PHP module installed but does not appear in phpinfo() | Im tying to install php5-ffmpeg module on my ubuntu server. I've typed: [CODE] Everything was installed and web server was reloaded. Now, the fallowing line is added to [CODE] in phpinfo(): [CODE] However, no more info about [CODE] module is not present in phpinfo() and ffmpeg functions do not work in scripts. Here's [... | You've installed a copy of the ffmpeg extension that was built against a different version of PHP. You'll need to either find one built against the correct version, or build it yourself. | 2 | 2 | 7,010 | 2010-11-29T08:34:29.607 | infrastructure | serverfault.com | |
68,770 | Explanation for Why Logistic Regression can be so Accurate in Sentiment Classification? | My question is about how a logistic regression model performs so accurately. In some exploratory experimentation, I compared a logistic regression model against a long short term memory recurrent neural network for binary classification of consumer reviews (Positive or Negative)(25,000 reviews). The Logistic Regression... | Some people have this preconceived notion that logistic regression shouldn't perform well because it is too simple. While that might be true for certain types of complex problems, the reality is that logistic regression performs relatively well in many different scenarios. It's difficult to give a definitive answer as ... | 2 | 2 | 262 | 2020-02-27T01:51:14.300 | data_quality | datascience.stackexchange.com | |
817,798 | best raid level for backup server | I'm building a Centos 7 server to hold Postgres backups (using Barman). The Dell PowerEdge server has a Perc-8 controller (H710P), and there are 12each 3TB 7200rpm SAS drives available for a raid set to store the data. I'd use the Perc to do the Raid, but wondering what Raid level to choose. I hate to waste disk space ... | If you're going to use a hardware card, RAID 50 or 60 seems fine for this case. 10 is overkill. For storing a backup of living data (rather than something like tapes), I generally prefer the use of ZFS or BTRFS to maintain the integrity of my dataset and to provide reasonably functional inline snapshots. That would pre... | 1 | 3 | 806 | 2016-11-30T01:58:48.520 | database_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.