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 |
|---|---|---|---|---|---|---|---|---|---|---|
225,703 | Domain Controller on Multi Subnet Always on Availability Group | This is will be my first big project. We have 4 Replica Always on availability group with 3 Replica on site and another replica offsite (different subnet) the File share witness will be placed on site on the primary data center. On various online resources i saw that we need 2 Domain controllers one onsite and the othe... | Suppose if the Primary site goes down the server on the DR will still be able to used cached credentials. Assuming the DCs and the rest of your infrastructure will fail over to DR by some other means, your DR SQL Server may not be usable until that happens. So the AG will give you a very good Recovery Point Objective (... | 0 | 1 | 51 | 2018-12-24T00:26:48.677 | warehouse_errors | dba.stackexchange.com | |
179,438 | Adding new columns to Table with Clustured Columnstore Index | I have a daily facts table ' [CODE] ' with 240 columns on which I am exploring ' [CODE] '(CCI). I want to know, What happens when I add another ~50 columns to the table? Will they automatically added to CCI? Or I have to rebuild CCI once again? What should be the best way to handle such conditions? If I have to rebuild... | What happens when I add another 50 columns to the table? These columns will be added to the table with NULL values if you have not specified a default value. If you have added a default value, the compressed rowgroups will stay as they are and no updates will be done. Will they automatically be added to the CCI? Yes Wh... | 1 | 7 | 4,246 | 2017-07-10T08:37:09.690 | database_errors | dba.stackexchange.com | |
15,004 | How to initiate MySQL on Mac OS X 10.6.8? | I followed this tutorial to install MySQL on Mac OS X 10.6.8. Now I get he following errors: [CODE] And [CODE] And [CODE] Also, I can't login MySQL: [CODE] And [CODE] Re: @Matt Fenwick [CODE] [CODE] used [CODE] | I had this exact same problem (although I'm on Mac OS X 10.5.8) with all the same error messages. It turned out the problem was that when the computer was turned on, MySQL was not started automatically. I solved it by manually starting MySQL: [CODE] Note the [CODE] : MySQL wouldn't let me start up the server without ro... | 3 | 2 | 18,429 | 2012-03-14T15:56:34.127 | database_errors | dba.stackexchange.com | |
240,292 | C++ returning references | Looking at making a GUI library for a game engine. I generally avoid pointers if I don't need them and in my below example I find that I don't and it works, but just curious if this design is generally considered good practice or if anyone has comments on it. [CODE] As you can see the idea is that you create your contr... | Looks good so far, although I'm wondering about one thing: Why would a [CODE] not own the widgets? Seems perfectly reasonable to me, since it already has the capability to store and return them. Who else would own them? If widgets actually have multiple owners, I'd suggest using [CODE] - it makes the ownership explicit... | 3 | 3 | 302 | 2014-05-16T18:48:52.527 | api_errors | softwareengineering.stackexchange.com | |
843,271 | OpenVPN over UDP stopped working for some clients | I have a frustrating OpenVPN TLS error problem since a few days, where some clients can connect to my OpenVPN server and some cannot. It's running on Windows using UDP/1194 and all the clients have exact same settings. I am attaching a server log level 6 of a working client and one not working. I don't have access to t... | Just for the sake of completeness, this was neither a networking/firewall issue nor OpenVPN configuration. Just some of the clients (connected via prepaid 3G) did not have enough balance... The twist is that the outgoing packets from the client could reach the server, but the incoming packets from the server could not ... | 0 | 1 | 2,373 | 2017-04-07T14:16:53.793 | infrastructure | serverfault.com | |
398,137 | I want to install php 5.3.9 in ubuntu 12.04 via apt-get - what repository should I add? | I want to install php 5.3.9 in ubuntu 12.04 via apt-get. apt-cache show php5-fpm only lists 5.3.10-1ubuntu3.1 and 5.3.10-1ubuntu3 . There is a critical bug in 5.3.10 ( https://bugs.php.net/bug.php?id=61045&edit=1 ) that I am trying to avoid. Is there a repository that will let me install php 5.3.9 in ubuntu 12.04 LTS? | I think, you can use php 5.3.13 from dotdeb repository: [CODE] | 1 | 1 | 3,888 | 2012-06-13T03:50:05.107 | infrastructure | serverfault.com | |
117,219 | Why does symlinks are not enabled - apache | I have mapped my apache to the root /var/www/vhosts. If I put there files/folders, I see them and can surf to them. But, If I put symlinks in /var/www/vhosts I get 403 - no permissions. I have the following directives for this folder: [CODE] | Where are the symlinks to? What are the permissions/owner/group on these files? Do an ll on the directory above so we can see if that's the issue. When you are on the server, are you able to navigate these symlinks ok? | 1 | 1 | 399 | 2010-02-26T17:00:22.917 | api_errors | serverfault.com | |
93,041 | Help with Classification using scikit-learn models | I'm using the Titanic data set to classify the missing Cabins. There is a lot of missing Cabin values. My objective is just to assign the letter of the Cabin without the room number. So, I'm just wanting to use the models to assign the section letter. I've used 4 models: (2) RandomForestClassifier with two different pa... | Let us try to think from first principles for this problem. It is not clear what outcome you want to achieve by trying to predict cabin section here. I'm assuming it is purely learning to apply ML algorithms. We can hypothesize that the cabin sections assigned to a passengers would've been assigned by their class and f... | -2 | 1 | 34 | 2021-04-14T02:47:55.750 | data_quality | datascience.stackexchange.com | |
358,900 | log network connections before moving server? | We are upgrading an old database server but want to make sure we update code on all other servers connecting to it. I'm thinking of mirroring the network port and logging what IP addresses connect to the server. I thought of turning on logging on the server itself, but I don't want to affect its performance since it is... | What OS is the database server itself running? If it's Linux, you could add a logging rule to the local firewall configuration with minimal impact on the server. Something along the lines of: [CODE] You can add [CODE] to limit this rule to logging only 4 times/second (etc.), which if the connection rate is high will pr... | 1 | 4 | 80 | 2012-02-10T18:49:05.567 | infrastructure | serverfault.com | |
23,830 | Flash website management on a Windows Terminal Server | situation: 100users, over a dozen sites, all connected by thinclients to Windows Terminal servers on various 1.5/256 or 2m/2m links. I have currently blocked the loading of flash content on websites in IE7 by group policy, to preserve bandwidth - ThinClients are not too good at rendering streaming video. This has been ... | So first off, I do not like Firefox in any way for a TS environment. For us at least we have had nothing but heartache. The day that tabs came to IE, my life became easier because my users would then use IE. My thought is this, find a plugin for IE that allows you to do the same thing you are doing in Firefox. One I fo... | 1 | 1 | 717 | 2009-06-11T02:44:14.463 | pipeline_ops | serverfault.com | |
229,963 | A transport-level error has occurred when receiving results from the server. Error 10054 | I have been using SQL Server & Azure for almost two years with Zero problems. Now for some reason I am getting the following error when I try to connect to my Azure database from SSMS. I have tried everything I could find: extend connection time-outs, checked open firewall port 1433, used my phone Hotspot to make inter... | In case someone runs into a similar problem... After 1.5 hours on the phone with MSFT, and reinstalling both SSMS and VS with no resolution. I reformatted my machine, reinstalled, and now everything works the way it should. I don't know what got into my system but now it's gone. Not a great solution, but that's what wo... | 2 | 3 | 13,191 | 2019-02-17T04:06:59.107 | database_errors | dba.stackexchange.com | |
661,548 | Linux utilities commands not working for particular user | We are using a centos 5 server. We are facing a strange problem where for a particular user, the basic linux utilities commands such as (ls,cp..) are not working. The shell gets hanged as we fire these commands. While the bash commands such as (echo, pwd) are working fine. Please note: this behaviour is not present wit... | Thanks to kasperd (In Comments). The issue was related to a dead path which was present in the environment variable LD_LIBRARY_PATH. The issue got resolved once the environment variable was updated. Thanks, Praveen | 2 | 2 | 639 | 2015-01-22T13:35:22.420 | infrastructure | serverfault.com | |
127 | Do stored procedures prevent SQL injection? | Is it true that stored procedures prevent SQL injection attacks against PostgreSQL databases? I did a little research and found out that SQL Server, Oracle and MySQL are not safe against SQL injection even if we only use stored procedures. However, this problem does not exist in PostgreSQL. Does the stored procedure im... | No, stored procedures do not prevent SQL injection. Here's an actual example (from an in-house app someone created where I work) of a stored procedure that unfortunately permits SQL injection: This sql server code: [CODE] roughly equivalent to postgres: [CODE] The developer's idea was to create a versatile search proce... | 89 | 77 | 13,585 | 2011-01-04T07:24:30.653 | database_errors | dba.stackexchange.com | |
390,575 | Is it okay to have a class where some attributes won't always be used? | I'm designing an app which use a Knowledge Base filled with rules . Depending on the context some rules will be applicable and others will not. I need to get first the list of the applicable rules and optionally later the list of non applicable rules. The system doesn't need both at the same time and I want to avoid ke... | Any time we have instance fields that are unused in one scenario or another, this suggests that we are conflating separate objects into one. Ideally, all the instance fields of a single object have the same lifetime — namely that of the object itself. So when we have instance fields that have differentiated lifetimes, ... | 1 | 2 | 146 | 2019-04-18T11:51:34.087 | api_errors | softwareengineering.stackexchange.com | |
235,932 | Rails app complaining can't connect to memcached but I'm pretty sure it's running | All was well, then I rebooted the server. Right now: [CODE] meanwhile the rails app's log is getting tons of this: [CODE] Being that I'm more of a developer than a server guy, and being that we don't really have a "server guy," and this being in production... where do I start with this? | [CODE] This will tell you if your memcache instance is listening and on what port. I'd check in /etc/hosts that localhost is defined. It should be by default but if someone has gone DD happy in Vi you can get real problems. Your PS output shows memcache starting with -l 127.0.0.1 but your script is connecting to 'local... | 1 | 3 | 4,143 | 2011-02-15T21:43:38.690 | infrastructure | serverfault.com | |
164,894 | SQL Server 2016 ColumnStore Clustered Index - Query plan showing a scan, performance not great | I have a SQL 2016 table that looks as follows: I have a columnstore clustered index on the table and no other indexes. I'm executing the following query: [CODE] The query plan looks as follows: This table has 1.1B rows. The query plan shows a scan and the query takes about 1 minute to execute. ~21K rows are returned. I... | I have a columnstore clustered index on the table and no other indexes ... The query plan shows a scan Well, pretty much that is the only option available for a CCI. With CCIs the performance gain come from column elimination, compression and segment elimination, all contributing to reduce IO and thus allow scans to pe... | 2 | 6 | 2,176 | 2017-02-20T14:22:51.923 | database_errors | dba.stackexchange.com | |
1,053,161 | neutron-linuxbridge-agent is crashing in Openstack Ussuri | On our new Openstack Ussuri installation neutron-linuxbridge-agent crashes on both compute nodes. The installation followed the instructions for Ubuntu (20.04) at https://docs.openstack.org/install-guide neutron-linuxbridge-agent.log shows [CODE] A restart of the agent produces the same result. Looks like a problem wit... | There is a bug in the code, and this patch will fix the problem: [CODE] Ansible to deploy it: [CODE] | 0 | 0 | 708 | 2021-02-10T18:56:11.167 | infrastructure | serverfault.com | |
469,460 | How to recover XFS file system with "superblock read failed" | I have a disk from a Buffalo LinkStation that has an XFS partition on it that I cannot mount. Plugging the disk into an SATA->USB caddy on an Ubuntu box. I get the following: [CODE] The problem partition is /dev/sdb6. [CODE] So trying the xfs_repair -L option gets me to the situation I can't get beyond: [CODE] Using ph... | After the XFS replay error, try to MOUNT the partition again, as per the error message. If all gets too messy, I highly recommend downloading UFS Explorer to help with deep file recovery from another system. | 10 | 3 | 161,363 | 2013-01-15T22:48:51.167 | infrastructure | serverfault.com | |
229,708 | Cannot svn checkout on vboxsf mount (windows host - ubuntu guest) | I have my [CODE] directory registered for sharing in VirtualBox as "projects" (full access, permanent). In my Ubuntu 10.04 server VM, I am using the following mount command: [CODE] The shared directory is mounted. [CODE] If I create a file from Windows I can see and delete it on Ubuntu and vice-versa. So far, so good. ... | I was unable to find a solution. Extensive Google search revealed other people had the same problem and were not able to find solutions either. I ended up not using the Shared Folders feature of VirtualBox with vboxsf and instead just created a Windows share and mounted it under the Ubuntu VM. | 2 | 1 | 2,886 | 2011-02-01T15:47:15.533 | infrastructure | serverfault.com | |
852,817 | DOCKER-ISOLATION iptables rule is blocking network bridge to forward traffic | I have a server that runs KVM and Docker. The physical machine has the IP [CODE] , and the machine inside KVM has [CODE] , with its port bridged to the physical network interface on the physical machine. The problem is that the outside world cannot access the VM, and vice versa. But the host machine is able to access b... | I figured out that this is not the fault of [CODE] , but due to the option [CODE] turned on. Turning that on will lead iptables to process the traffic, and thus dropping the packet. | 2 | 1 | 6,003 | 2017-05-29T13:55:45.800 | pipeline_ops | serverfault.com | |
184,185 | Percona xtrabackup transaction log corrupted | I am attempting to prepare and restore a full backup taken through xtrabackup via a scheduling script called surrogate . I have tarred and gzipped the backup, transferred to a local machine running the same setup (aside from a slight version difference in xtrabackup - 2.2.12 on source, 2.3.9 local). Upon extracting I a... | DISCLAIMER : Not xtrabackup expert Your situation is quite similar to a [CODE] post on the Percona Forums . The poster, dbaffaleuf, was running percona server 5.6.24-72.2-log, innobackupex 2.3.3 Linux (x86_64). After encountering your same message, dbaffaleuf wrote Interestingly the xtrabackup_logfile file has been del... | 3 | 1 | 1,256 | 2017-08-23T15:22:54.210 | data_quality | dba.stackexchange.com | |
686,978 | Debugging random SQL login failure from Web Server | This is a very basic level question, but it could really benefit from some extra help in the diagnosis. We have a 2005 SQL Server Named: SERVERNAME-PROD We have a Web Apps Server that's running IIS 8.5 named: WEBAPPS-PROD For a while we've been getting login failure notifications that read: Login failed for user ' DOMA... | Login failed for user 'DOMAIN\WEBAPPS-PROD$'.[Client: IP_ADDRESS] This is the computer object attempting to authenticate. This tells me that there is something running as a non-domain account attempting to access SQL Server. Since it's a web server, most likely it's an webapp running in a pool using windows authenticat... | 0 | 1 | 624 | 2015-05-01T13:50:26.277 | api_errors | serverfault.com | |
664,800 | Execute custom monit script upon failure to restart the process | I have a case where empty PID files are being generated by certain processes which are monitored by monit. Monit is NOT so good in handling empty files and tries to re-start the process even when the process is already running and keep throwing errors in the monit log. I am thinking of implementing a custom script to h... | This is all a pretty bad approach to the problem you're trying to solve. You really want your HP monitoring agents/drivers to be stable and not crash ... Either way, if you aren't going to solve the root issue, you can just instruct Monit to use the process name instead of a PID . [CODE] | 1 | 1 | 3,014 | 2015-02-04T03:30:53.033 | infrastructure | serverfault.com | |
481,253 | Forwarding to firewalled web server over reverse SSH | I have a server running NGINX on local port 80 within my corporate NAT. From any remote box, I am able to setup a reverse SSH connection and connect to the firewalled box on port 22. Here's what I've done so far: [CODE] and from the remote box, [CODE] Now this is fine and dandy, and works perfectly fine. How can I map ... | Check, that port 80 is not in use by other process on your corporate box and if it is really accessible from outside NAT. Port 80 may be tricky, because some web interfaces on routers can be using port 80 for remote configuration so you wont be able to use it without additional configuration. | 0 | 0 | 104 | 2013-02-21T20:17:45.223 | infrastructure | serverfault.com | |
256,023 | Can I grant access to a MySQL user for a single partition of a table? | Is there a way, in MySQL, to grant access to a single partition of a table to a specific user? I see no way in the doc for that, but maybe I'm missing it... Here's a test case: [CODE] What would the proper [CODE] syntax be? | I'm not entirely sure you can do what you are after. I would have thought a better option would be to create a view that only shows the data you want: [CODE] Then give your user only permission to access that view: [CODE] (n.b. the user creating the view needs access to the underlying table) | 0 | 0 | 414 | 2019-12-20T09:25:27.920 | database_errors | dba.stackexchange.com | |
49,193 | Optimising a query of an SSRS dataset | Consider the query given below: [CODE] This query takes a little more than an hour. However, I require that this completes in as little time as possible. Below is the level to which I have been able to optimize it: [CODE] This took just around 5-6 minutes when ran initially. However, it took around 35 minutes when ran ... | from some research I have found the [CODE] or [CODE] takes longer to run than [CODE] operations in this answer to [CODE] the Poster goes into Detail about the [CODE] operator and why it takes longer than the [CODE] operator. the Poster suggests a [CODE] for the OP's Query that would make it so that they shouldn't have ... | 1 | 0 | 734 | 2013-09-03T18:47:25.890 | bi_errors | dba.stackexchange.com | |
353,023 | Optimizing Apache2 | I have a powerful dedicated server: Intel® Xeon® X3440 Quadcore 4x 2.1 GHz Ram: 16 GB. I run on this server just 1 social network website with max 700 users online. Usually server load is ~0.10-0.30 but sometimes it stays above 1 for 20-30-30... minutes. I think this is too high for this machine and it looks that such ... | Load above 1 for a machine with 4 Xeon cores is nothing. Load average basically indicates a process run queue; 4 cores with HT enabled means you "effectively" have 8 CPUs. I wouldn't even start optimizing anything unless your load hits 8 or above. We normally start looking into optimizing something for apache servers o... | 0 | 0 | 367 | 2012-01-24T09:36:02.210 | infrastructure | serverfault.com | |
331,353 | VSSSQLwriter error | I've a SQl server 2019 on a Windows Server 2019 standard core, I manage two typer of backup, one with mantainance plans and one with Veeam Backup. The mantainance plans it's ok, the backup with Veeam fails every day with error on SQL leaving SQLServerWriter in Failed state with last error Non-retryable error. I've open... | Performing a snapshot of a system will trigger various sub-systems on the target server as explained below. In your case Veeam will trigger the Volume Shadow Copy service (aka VSS Writer) at the operating system level. Because the SQL Server VSS Writer service is registered with the Operating System, the OS will tell t... | 1 | 0 | 401 | 2023-09-19T11:11:00.030 | database_errors | dba.stackexchange.com | |
30,763 | switching windows in Selenium | I am having problem understanding the syntax of how to switch between windows. The standard syntax is: [CODE] However, I think that it will only work, if the first element in the Set is a the primary window. If so,in for loop it will first switch to itself and only then to the secondary window. Am I right so far? Also,... | Yes You are right. You need to store the value of the primary window and then insert a condition that the handle of the window is not equal to the value of the original window. Code Snippet [CODE] | 0 | 1 | 587 | 2017-11-28T05:40:13.523 | data_quality | sqa.stackexchange.com | |
315,588 | NGINX and php_fpm streaming file takes triple in transfer? | My setup: - nginx 1.0.6 ( compiled from scratch ) - php 5.3.8 with php-fpm ( also from scratch ). I use this PHP script to stream files from the remote site to my users: [CODE] after i start to download with my connection ( 20 Mbps ) , i've got such result of ifstat [CODE] Is that normal? The result on the production s... | This happens because nginx tries to read from the backend (php-fpm in your case) as fast as possible, buffering the response first in memory (limited by the [CODE] and [CODE] settings), then on disk (up to the size specified in [CODE] , default is 1 GiB). Therefore your ”streaming” script actually downloads the file as... | 1 | 2 | 1,369 | 2011-09-26T15:49:30.153 | api_errors | serverfault.com | |
204,076 | Why pt-duplicate-key-checker suggests removing a composite index? | Here's a snippet from the output of the Percona Tool [CODE] which searches for redundant indexes: [CODE] Why does the tool suggest this? Can't the original composite index be useful? As far as I understand, an index on [CODE] would be worth of deletion given a PK [CODE] , but it is not the case here. | The primary key is a part of any secondary key in InnoDB. | 2 | 3 | 457 | 2018-04-16T13:58:10.637 | data_quality | dba.stackexchange.com | |
1,045,839 | Fail2ban does not perform regex on odoo log | I have installed fail2ban with odoo 13. Below are my configuration and sample output, but I cant seem to figure out why it does not filter. user@tempdev:/etc/fail2ban# fail2ban-regex -v /var/log/odoo/odoo.log /etc/fail2ban/filter.d/odoo-login.conf [CODE] user@tempdev:/etc/fail2ban# cat /var/log/odoo/odoo.log | grep 'Lo... | Fail2ban surely cuts the part of string matched datepattern out, but a space still remains, so you have to add [CODE] after the anchor before [CODE] : [CODE] | 0 | 1 | 243 | 2020-12-11T16:00:11.880 | infrastructure | serverfault.com | |
248,936 | I am trying to connect My R studio to SQL Database on the Remote Desktop | The SQL Server on the remote desktop is configured to have neither login nor password, it is configured to use Windows Authentication. Code I am using the following code to connect: [CODE] Error Generated Warning messages: 1: [CODE] 2: [CODE] | Basically, when you failed to connect to your SQL Server, the issue could be: Network issue. SQL Server configuration issue. Firewall issue. Client driver issue. Application configuration issue. Authentication and logon issue. Check this link for more details. In your error message it is just a login failure: Login fai... | 0 | 1 | 1,056 | 2019-09-17T10:15:16.617 | api_errors | dba.stackexchange.com | |
214,889 | Is an event loop just a for/while loop with optimized polling? | I'm trying to understand what an event loop is. Often the explanation is that in an event loop, you do something until you're notified that an event has occurred. You then handle the event and continue doing what you were doing before. To map the above definition with an example. I have a server which 'listens' in a ev... | Most event loops will suspend if there are no events ready, which means the operating system will not give the task any execution time until an event happens. Say the event is a key being pressed. You might ask if there's a loop somewhere in the operating system checking for keypresses. The answer is no. Keys being pre... | 65 | 63 | 23,080 | 2013-10-18T20:03:37.650 | api_errors | softwareengineering.stackexchange.com | |
15,372 | SQL Server: How can I read server-side traces with limited permission? | I am trying to set up a trace on a remote server. I am able to generate the trace, set filters, and even stop and delete the trace through sql server without an issue. However, the file created with sp_trace_create seems to be owned by the SQL Service and I do not have administrative permission to grant myself read-acc... | To view the trace file contents in SMSS, I am using the following function: FN_TRACE_GETTABLE. To run FN_TRACE_GETTABLE, the users don't need any permissions on the server's file system. Only the account that is running the service must have the permissions to access the trace file, but it already has them, because it ... | 6 | 8 | 1,415 | 2012-03-21T21:03:21.807 | database_errors | dba.stackexchange.com | |
177,918 | XCOPY for only new files not working for Network drive? | I have the following xcopy command to back up only the new files in Windows Server 2008 box: [CODE] it works fine first time to copy all the files to Test and copy nothing subsequently since no files have been changed in C:\TMP. However, I tried the same command to a network drive (exported drive for Windows from LINUX... | I suspect the difference lay in date resolution differences as reported by Samba and as stored in the file-system. It could be that Samba is reporting dates with the micro-seconds zeroed, where the file-system is storing microseconds, and xcopy/robocopy care about that. Without cracking open a sniffer I can't prove it,... | 0 | 1 | 2,896 | 2010-09-03T21:18:17.313 | infrastructure | serverfault.com | |
206,414 | choice of design for OO-linear algebra library | I'm writing a library for sparse linear algebra computations as a backend for my thesis work and I've come to a bit of a crossroads. I'm using modern Fortran (don't groan, it's had inheritance and polymorphism and all that jazz for 10 years now). From a software design standpoint, my main issue was making iterative sol... | My read is that the inheritance-based approach was correct. What you fundamentally want is a matrix-vector product operation, that your solvers can call. The solvers don't care how the matrix OR the vector are stored in memory. All they care about is being able to multiply them and get back the result. That is just abo... | 4 | 2 | 324 | 2013-07-29T18:08:22.417 | api_errors | softwareengineering.stackexchange.com | |
42,164 | Varnish configuration to only cache for non-logged in users | I have a Ruby on Rails application fronted by varnish+nginx. As most of the sites content is static unless you are a logged in user, I want to cache the site heavily with varnish when a user is logged out but only to cache static assets when they are logged in. When a user is logged in they will have the cookie 'user_c... | Ok, in the end I managed to solve this using the following vcl file. Note that I added a couple of extra bits to allow cache expiration grace when the backend has died. It seems my main failure was using [CODE] when I should have been using [CODE] in the [CODE] section. ( [CODE] in vcl_fetch and [CODE] in vcl_recv sect... | 5 | 6 | 10,418 | 2009-07-17T14:57:01.647 | infrastructure | serverfault.com | |
761,551 | Windows server 2012 r2 network - Cannot access another server | I have a strange situation on a brand new Windows Server 2012 R2 (std) server. I installed it, everything was fine, and I put it in the network. The whole network is with STATIC IPs; no DHCP. There's a firewall that act as router/firewall/DNS. I have another 2012R2 server, with SQL installed, and a bunch of 2008R2 serv... | Ok; the solution was simpler than I expected. I lost a few days, then I tried to completely re-install the HP support pack / service pack for proliant. That solved the problem. | 0 | 0 | 711 | 2016-03-04T11:02:37.417 | database_errors | serverfault.com | |
349,896 | A Git workflow where QA tests are integrated into JIRA issues | My current workflow is this (it's basically a feature branch workflow): 1) I have two main branches: [CODE] and [CODE] . 2) Development is done using TDD methodology using JIRA/Bitbucket. An issue is created, which consequently creates a Git feature branch. 3) Active development is carried out in a feature branch, and ... | I would just add the tests to the same branch that the code being tested is in, either the feature branch or develop. You should want to frequently run your entire test suite and treat any failure as an exceptional condition that requires an immediate fix, so make sure no tests are checked in that are expected to fail,... | 0 | 2 | 545 | 2017-05-31T06:51:09.960 | spark_errors | softwareengineering.stackexchange.com | |
1,067,229 | List of top-level domains (TLDs) that require HTTPS connections, like .dev | I know the [CODE] top-level domain requires all sites to support only encrypted HTTPS connections, disallowing any HTTP connections. Are there other such TLDs? | A direct answer to this would eventually become outdated if more top-level domains start enforcing HTTPS using HTTP Strict Transport Security (HSTS, RFC 6797 ). Technically this is an HSTS policy of a TLD submitted to the preloading list. It started with Google's new TLDs , The HSTS preload list can contain individual ... | 22 | 26 | 4,855 | 2021-06-20T06:51:02.797 | infrastructure | serverfault.com | |
56,591 | How can I enforce ensure uniqueness of an association with a time dimension? | I have a database table [CODE] which tracks the association of [CODE] and [CODE] over time: [CODE] I would like to declare a unique key such that the same A and B can only be associated together once during the same interval . What strategies might I use for expressing such a constraint? Clearly, just doing a PK on [CO... | I was thinking because this was a calculation it'd have to be a trigger but in doing some googling there are better options. Overlapping intervals look like they can be blocked by a particular pattern of constraints ( http://sqlblog.com/blogs/alexander_kuznetsov/archive/2009/03/08/storing-intervals-of-time-with-no-over... | 7 | 5 | 3,500 | 2014-01-11T12:01:17.963 | database_errors | dba.stackexchange.com | |
338,086 | Exchange 2010 distribution groups don't accept internal mails through smtp | In Exchange 2010 I have distribution group called all@domain.com. It's allowed to be used only for internal mail. It works fine when sending emails thru OWA or directly thru Outlook RPC. However it doesn't work thru authenticated SMTP (for some time users will have to use pop3/smtp instead of RPC due to management deci... | To allow SMTP users to be able to send emails to distribution groups with [CODE] flag enabled on the group one has to add the [CODE] to the Receive Connectors. Lets verify current settings on connector: [CODE] With this setup it doesn't work. So we add [CODE] to SMTP connector using this command: [CODE] And we verify i... | 1 | 1 | 9,738 | 2011-12-06T11:11:39.560 | api_errors | serverfault.com | |
504,224 | Extending Puppet (probably with augeas) for custom configuration format | I have a custom firewall system with our own simple configuration file. Its basically bash source defining a well known variables: [CODE] and I would like to manage these configuration files with puppet (probably via augeas if needed). Because I am new to the whole puppet ecosystem, I am looking for "best practice" of ... | Yes, the [CODE] lens should be able to parse your file as: [CODE] Note: you can test that using [CODE] : [CODE] Now, the problem is: "How do you get from that tree to your definition?", that is: [CODE] where you'd want to ensure the presence of one element in a list. You could do: [CODE] | 2 | 3 | 1,202 | 2013-05-01T19:17:07.663 | pipeline_ops | serverfault.com | |
121,909 | How to handle ID variables when splitting data for machine learning? | I'm new to machine learning, and I'm working with some international head-to-head sports competition data. I used relational data creation techniques in tidyverse to join several data sources to create an event based dataset where each row is the outcome of a unique match up between 2 teams and their measurable traits,... | Unique IDs (e.g. a match ID, when each record is a match) are unneccessary for either data splitting or model creation, so there's no harm removing them. There may be a benefit in removing them, to help prevent a learning algorithm "detecting" a spurious correlation. For non-unique IDs (e.g. ones you have added to faci... | 0 | 0 | 179 | 2023-06-01T19:16:57.140 | data_quality | datascience.stackexchange.com | |
753,959 | System fails to boot after successful LSI 9211-8i firmware update | So, here we go. I purchased a used LSI 9211-8i to use in my NAS. I installed the card, attached a few drives, booted the system, and everything looked OK. I'm using FreeNAS and there was a warning saying that my card's firmware and BIOS didn't like each other (I can't remember the exact wording). So, I reboot and go in... | I had a no boot issue that was frustrating me for months. Sometimes system would boot then eventually crash. Sometimes it would not even make it past POST. It also did not detect all my installed RAM. One stick was missing. The fix was to put some tape over the B5 and B6 pins (component side). After I did this the syst... | 1 | 0 | 3,309 | 2016-02-04T10:16:30.757 | infrastructure | serverfault.com | |
289,668 | How to manage ongoing data migrations? | I work in a SaaS project in which each user can have a representation of some common data at a given point in time. For the sake of example, let's consider that each user's data is metadata about them persisted separately on disk as a JSON file: [CODE] As new requirements come along, this underlying representation may ... | The best way is to store a version number in each of the persisted files. Then you can read any of them, from any time and if the version is not the current one - send it to a migration routine that updates it to the current format and then continue processing it as if it was always the current format. This allows you ... | 3 | 2 | 88 | 2015-07-14T02:13:50.307 | api_errors | softwareengineering.stackexchange.com | |
584,761 | Forcing Apache 2.4 to cache files with query string using mod_cache without expires | I need to get mod_cache_disk to cache a site containing query strings. The issue is that it's a vendor product on IIS that we're trying to cache through mod_proxy and it does not contain expires headers. I realize this issue violates several RFCs and that's why apache does not do it by default. Is there a way to force ... | According to this answer the only way to do this is to let Apache see the headers it wants (Expires, which you stated, and, apparently also Last-Modified). The poster of that answer suggested writing a filter on the application side, but since yours is a vendor product, that may not be possible. Is there a chance to ad... | 1 | 1 | 2,980 | 2014-03-26T20:27:11.933 | infrastructure | serverfault.com | |
289,771 | vmware Data Recovery questions | We are using vmware Data Recovery appliance for backing up our virtual machine. I read the whole vDR Administration guide, but some of my questions are still unanswered. 1) If vDR appliance crashes, and I will have to install the new one and set the original destinations, will the vDR recognize the old backups? 2) I de... | 1) Yes , I believe so, all data and indexes are kept on the 'destinations'. Im guessing the new VDR would do an integrity check and learn all restore points. 2) No , as long as the backups are not on the same storage as the virtual machines, if you'd like to be able to restore in case the storage housing the virtual se... | 2 | 1 | 375 | 2011-07-13T07:34:09.893 | database_errors | serverfault.com | |
239,478 | Which table gets the FK? Is there a clear Parent-Child relationship here? | I have the following tables: Each [CODE] will encompass many [CODE] s. For this reason, it initially seemed to me that the [CODE] table is a child of the [CODE] table. However, a part is not simply an extension of a product line, and when I asked myself if it is possible to a part to exist without a product line, the a... | If the business requirement is a business rule, every part must belong to exactly one product line. So if the rule is, each part belongs to one product line the other side of that relationship is each product line contains zero-to-many parts which should convince you this is a clear instance of a parent/child relations... | 2 | 1 | 1,013 | 2019-05-30T18:18:26.097 | warehouse_errors | dba.stackexchange.com | |
1,083,543 | What is the default configuration for logrotate.conf in Ubuntu? | In [CODE] is user permission different from one ubuntu version to another? .... and why ?? as i found it like that in ubuntu 18.04 [CODE] and like that in ubuntu 20.04 [CODE] | The defaults you posted are correct for the versions already stated. The change was introduced with Eoan based on bug report 1644996 , which stated the default group changed in [CODE] , but the bug only affected lighter versions of Ubuntu that do not come with [CODE] already installed. | 0 | 2 | 233 | 2021-11-14T20:44:29.150 | infrastructure | serverfault.com | |
104,377 | roc_auc_score from sk-learn gives error when test label vector with classes has only a subset of the whole set | I have an imbalanced dataset. Does it make sense to compute the roc-auc for the classifier I created in a holdout set? Here's very artificial MWE: [CODE] | [CODE] method will return a [CODE] array of shape [CODE] with the probability of [CODE] and [CODE] but you need to pass only the probability of [CODE] for [CODE] calculation so: [CODE] | 0 | 1 | 1,176 | 2021-11-22T17:25:40.507 | data_quality | datascience.stackexchange.com | |
483,481 | Prevent heavy server query to overload Apache/Mysql | I have some questions about understanding high server load and implement some type of load balancing in a common scenario with solutions like Apache and MySQL and PHP 5. I am benninger in the matter and would like your opinion since Ive been reading a lot and Im totally lost in possible products or techniques to implem... | Short answer: if you want to prevent overloading the server with dumb queries, just prevent dumb queries. Long answer: Load balancing, as you mention, is more efficient in environements with a lot of independent queries. A large, heavy query, will always overload a server. But you can limit the incidence of a user by s... | 1 | 2 | 3,119 | 2013-02-28T17:13:50.233 | database_errors | serverfault.com | |
15,457 | SVD for recommendation engine | I'm trying to build a toy recommendation engine to wrap my mind around Singular Value Decomposition (SVD). I've read enough content to understand the motivations and intuition behind the actual decomposition of the matrix A (a user x movie matrix). I need to know more about what goes on after that. [CODE] Three Questio... | You can use SVD to build a recommendation engine, but I don't think it's the best way to get intuition around what's going on under the hood. Regardless, here's a presentation with more details, I'd recommend reviewing slide 9 . And to answer your questions: [CODE] represents an embedding dimension (i.e. the low-rank a... | 5 | 3 | 4,162 | 2016-12-01T02:25:07.367 | data_quality | datascience.stackexchange.com | |
765,001 | Authentication Configuration with IIS 8.5 on Windows Server 2012 | I have a site hosted using IIS on a Windows Server 2012 R2 server. The application is configured to use an application pool that uses the NetworkService account as the application pool identity. The site is also configured to use the pass-through authentication and both basic and Windows authentication (as per the deve... | Disable anonymous authentication and enable Windows Authentication. The client computers and the server itself will both need to be joined to the same AD domain for this to work. You then grant each AD user read/execute permissions to the web root folder (NTFS folder permissions) - the authentication is then automatic ... | 0 | 0 | 2,761 | 2016-03-21T05:13:28.887 | api_errors | serverfault.com | |
13,434 | How do I update a table with the aggregated values (min, max) of a related table, fast? | I have a table [CODE] with the [CODE] and [CODE] values currently being [CODE] . I have another table [CODE] There is a [CODE] relation between these tables: [CODE] Now, I'd like to fill the [CODE] and [CODE] attributes in [CODE] with the respective values in [CODE] via the connection via [CODE] . The following would d... | MySQL syntax: [CODE] | 4 | 8 | 9,974 | 2012-02-19T20:04:37.857 | database_errors | dba.stackexchange.com | |
184,983 | Multi-Tenant shared Users Tables: Need an advice | Am writing multiple Multi-Tenant applications with separate database per each application (I've decided to go with shared database different schema approach). Each application have Staffs Table for tenants' staffs and Customers for, well customers. The problem am having is all my applications share the two tables and s... | So this is the approach I came up with. Store All user information and details to the Oauth2 Server/Login API and use it to login. Then in each of the service tables just store user ID, role picked up from login into Oauth2 server/Login API and save them into "users" table of your a specific service. That way you can p... | 1 | 0 | 1,067 | 2017-09-03T12:14:18.017 | api_errors | dba.stackexchange.com | |
199,625 | Database in emergency mode | The database is in emergency mode and I have tried fixing it. But when I used the statement [CODE] the log was not rebuilt. The log file is not present now. How can i bring the database online? | Do you have a backup and restore disaster recovery solution in place? If so, restore the database from the most recent backup. Assuming you don't have a backup, you may be able to use [CODE] , (see the Microsoft Docs page for details ) The general syntax for the command is: [CODE] Be aware that if the mdf file is corru... | 2 | 2 | 617 | 2018-03-07T17:14:10.730 | warehouse_errors | dba.stackexchange.com | |
82,487 | Case with multiple conditions | I need to change returned value, from select statement, based on several conditions. I tried something like that: [CODE] why it is not working and what is recommended way to do this ? There will be next several WHEN conditions. Thank you | [CODE] There are two types of [CODE] statement, SIMPLE and SEARCHED . You cannot evaluate multiple expressions in a Simple case expression, which is what you were attempting to do. [CODE] Example of Simple CASE: [CODE] Example of a Searched CASE: [CODE] Further Reading: http://msdn.microsoft.com/en-us/library/ms181765.... | 35 | 53 | 601,519 | 2014-11-12T14:59:46.797 | warehouse_errors | dba.stackexchange.com | |
1,061,296 | How to route openvpn traffic through a second network adapter, to access the internet | I am running an ubuntu server with two network adapters eth0 and usb0, both with separate internet connections. The openvpn server is listening on eth0, and client can connect to the vpn using the public IP of eth0 and access internet through the VPN. Since i am pushing the default gateway route in openvpn server confi... | Once you configured your OpenVPN and your clients are able to reach the server, forget that it is a VPN. Threat it as if it is just another NIC. So, you have a server with three NICs, one LAN (tun0), two WAN. You want to route some clients (itself, local processes) via one WAN (eth0) and other clients (those who behind... | 2 | 3 | 3,136 | 2021-04-23T08:33:12.390 | infrastructure | serverfault.com | |
109,055 | How to generate a unique barcode without using identity or sequence in SQL Server 2012 | We're currently building an application where customers need to have 1 unique barcode. Each time a new customer has been added to the system, a new unique barcode needs to be generated for that customer. We're using 12 digits for this barcode, but the first 6 digits are fixed, leaving me with only 6 digits left to gene... | Why do you feel uncomfortable storing the id yourself? This is a valid approach for this problem. You could also use -T272 as a startup parameter to prevent the gaps during id generation. I read that this could have impact on the performance of the id generation, but I never had no problems in my tests. See this link f... | 2 | 1 | 628 | 2015-08-05T07:58:17.733 | database_errors | dba.stackexchange.com | |
663,900 | how to meter an SSH network usage? | It may be a simple question, but how can I see how much bandwidth an SSH connection, in Unix and Linux, has consumed since the login time until the SSH session is terminated (logged out)? Thanks, Elias | Run [CODE] with at least one [CODE] option, and when you log out you will get something like: [CODE] | 1 | 5 | 367 | 2015-01-31T06:37:36.360 | infrastructure | serverfault.com | |
955,438 | How to configure strongswan peer-to-peer vpn tunnel using public IP as encryption domain? | I'm required to configure an ipsec tunnel to communicate with a remote vpn (Cisco ASA 5555). I have created an Amazon Lightsail instance with ubuntu 18.04 installed. Upon doing some studying i came across Strongswan which I've used to configure the tunnel. The remote side provided a list of parameters I should use to c... | I found out a few strongswan problems running on ubuntu 18.04. The service was crushing few seconds after being started, somehow ipsec was using my private IP instead of my public IP for tunnelling despite the fact I've public IP set in my configuration file. So i went ahead and installed CentOS with openswan, and with... | 1 | 0 | 1,536 | 2019-02-23T17:19:31.207 | api_errors | serverfault.com | |
25,300 | Trouble shooting wireless signal performance | I just performed a wireless network scan and my primary wireless route broadcasts a consist 70 DBm signal. I added a range extender that increases or decreases the signal 65 DB (Not sure how the DB m scale works) Is this considered a poor signal? What is considered an excellent signal strength? I experiences a lot of d... | If you are worried about delay, noise, and quality of the link, I would use a CAT5e (or CAT6) cable. Otherwise, next time you microwave a HotPocket, you could incur some delay/noise. | 2 | 2 | 733 | 2009-06-13T19:11:15.263 | infrastructure | serverfault.com | |
479,728 | Active Directory DNS issue? Event ID 13 Access Denied, | Okay this is kind of a rehash of a prior post. ( https://serverfault.com/questions/479617/clustered-storage-error-there-are-currently-no-logon-servers-available-to-servi ) due to my belief that it is unrelated to the cluster based on new information. So you don't have to read it, the issue I'm having is that after a pe... | Okay. Got it solved. It was definitely an AD/DNS issue. There were some bad DNS records that were fouling up AD replication and in turn causing authentication issues. | 0 | 0 | 2,891 | 2013-02-17T18:25:55.867 | infrastructure | serverfault.com | |
290,909 | volume group disappeared after xfs_check run | EDIT** I have a volume group consisting of 5 RAID1 devices grouped together into a lvm and formatted with xfs. The 5th RAID device lost its RAID config (cat /proc/mdstat does not show anything). The two drives are still present (sdj and sdk), but they have no partitions. The LVM appeared to be happily using sdj up unti... | Wow, your system is badly hosed. With enough care and attention, you could probably reconstruct the LVs in the volume group out of the LVM state archives in [CODE] , but it'll be a lot quicker just to break out the backups (you do have backups, right?) and rebuild the system (this time with a more robust RAID setup -- ... | 1 | 0 | 871 | 2011-07-16T02:44:57.183 | database_errors | serverfault.com | |
425,444 | Where to put files (interfaces) that link two independent assemblies: Authentication and Main Program | I'm having an issue with dependencies in a C# app that I'm creating. I have an assembly for my authentication process, and a separate assembly for starting up the main program once authentication is complete. My issue is where to put the interfaces between these two systems. The main program assembly doesn't need to kn... | You've touched on the main options for project (or assembly) dependency graphs. There is no one-size-fits-all answer here. It depends on many different environmental circumstances. Instead, I'm going to offer you an insight into where the strong points of each approach are, or common real-world use cases I've encounter... | 0 | 2 | 129 | 2021-04-14T18:29:12.913 | api_errors | softwareengineering.stackexchange.com | |
677,222 | Move home directory on Azure Linux VM | I continue to encounter an issue moving my home directory to a new disk on a CentOS VM on Azure. On creation the server is configured to use a SSH key for authentication and the "no password" option is set. After I add the new disk, create the partition, format the disk, mount it, move my home directory, and update fst... | This sounds like a [CODE] problem. Probably it is turned on and the security context of the new filesystem has not been set to the same value as the old one. | 3 | 0 | 690 | 2015-03-21T14:56:26.913 | api_errors | serverfault.com | |
84,087 | Recommender Model for Human Action in Income Protection | Problem Domain I'm working on a project that involves building a model to provide recommendations on the next best step for Human supervisors to take on income protection claims. Income protection is an area of insurance that involves providing the insured party with a proportion of their income if ever they fall ill o... | It looks like the inverse reinforcement learning problem defined by Stuart Russell as Given measurements of an agent’s behaviour over time, in a variety of circumstances. measurements of the sensory inputs to that agent; a model of the physical environment (including the agent’s body). Determine the reward function tha... | 3 | 3 | 88 | 2020-10-16T11:28:28.097 | data_quality | datascience.stackexchange.com | |
883,027 | Apache ReverseProxy to Nginx shows only default localhost domain of the Nginx | I am configuring Tuleap on Apache ReverseProxy from CentOS Nginx. Tuleap is running successfully on CentOS and is accessible. After configuring the reverse proxy which i am already using for glassfish and another apache server with same configuration is working fine. But nginx displays only the localhost page. See the ... | Try adding [CODE] What happens is that when proxying your requests it uses http://127.0.0.1:8080/ address without setting proper host header which is taken care in apache by [CODE] | 0 | 0 | 960 | 2017-11-12T04:42:28.443 | infrastructure | serverfault.com | |
1,123,437 | How to support TLS 1 and TLS 1.1 with haproxy 2.4 and OpenSSL 3? | I am trying to support TLSv1.0 and TLSv1.1 with haproxy 2.4.18 (and OpenSSL 3.0.2) on Ubuntu 22.04. I have followed Mozilla SSL Configuration Generator , "Old" configuration, slightly modified, adding [CODE] and [CODE] [CODE] This is the error that I get: [CODE] On the server, haproxy log reports a "SSL handshake failu... | With OpenSSL 3.0.1 they (rightfully) moved TLS 1.0 and 1.1 to security level 0 , because they're utterly useless and insecure. It's a horrible idea to support these protocols, it's actually worse than plain HTTP, since it gives you a false sense of security. In your cipher suite generator, you're using SECLEVEL 1, whic... | 1 | 4 | 3,563 | 2023-02-21T17:58:26.677 | infrastructure | serverfault.com | |
391,580 | How large-scale production web crawlers improve performance when it comes to running into already visited links | I have built a very basic webcrawler running off my laptop so it has limited memory and limited hard drive space. The way I have it now is I'm using MongoDB to store the links I find on pages. I make sure to sanitize them and remove any unnecessary URL parameters that might cause duplicate pages to be fetched. Every ti... | If you are hitting the DB multiple times per page, you are doing it wrong. Try sending the list of links to the DB in one query. This will be a [CODE] operation. At some point in scaling, it is more costly to check that you haven't visited a link elsewhere than it is to just duplicate the visit. You don't need a perfec... | 0 | 1 | 157 | 2019-05-08T08:48:51.673 | database_errors | softwareengineering.stackexchange.com | |
161,467 | Different kinds of safety | Programming languages and programs (as wells as individual functions, objects, etc.) are often described as being "safe" in one way or another. For example, they could be "type safe", "memory safe", "exception safe", "thread safe" - even "reentrant". Each of these concepts is about preventing erroneous or damaging code... | Safety in all cases is about avoiding ambiguous state. If it's memory it's a question of "For a given unit of memory, what is stored there? How can one be sure?" Same with types. "For a given arbitrary piece of code, what rules does this code follow?" The base idea is that you always want to be able to predict what out... | -3 | 3 | 468 | 2012-08-18T18:41:16.240 | api_errors | softwareengineering.stackexchange.com | |
1,083,245 | Routing all traffic from an external machine to a proxy to a proxy | May be there is a duplicated question but it seems no one do this scenario. I have several machines in my network which are not using proxy to outbound. I want to redirect all traffic, using route tables, to an appliance so that appliance ingests that clean traffic and send it to a proxy, or at least to a proxy socks. ... | Your title seems little confusing but what I understand that you simply need a Transparent Proxy. For this you can use Squid Proxy With setting up Squid transparent proxy server, we have a major advantage of not configuring proxy setting on every user's machine. Being transparent means that users will have no idea that... | 0 | 0 | 1,640 | 2021-11-11T12:31:43.347 | data_quality | serverfault.com | |
163,225 | cURL Libraries on Ubuntu 9.10 Server Running SugarCRM Causing Problems with Scheduler | Running Ubuntu 9.10, Apache 2.2, MySQL 5.1.37, PHP 5.2.10, SugarCRM Pro 5.5.4 I started out by trying to use a Sugar function call Scheduler and Sugar complained: [CODE] I confirmed curl, libcurl packages are installed on the system. But now I am having trouble finding out what file to point to in the [CODE] file. Some... | Try to reinstall php5-curl like so: [CODE] | 0 | 1 | 1,943 | 2010-07-22T23:00:04.397 | database_errors | serverfault.com | |
725,292 | Postfix virtual mailbox - mail rejected if 'myhostname' is not 'localhost' | I'm using this howto to setup virtual mailboxes for non-linux accounts using postfix. This part of my main.cnf: [CODE] This works, but only when myhostname is set to localhost. If I set myhostname to aviacao.pt, it won't receive emails: 550 5.1.1 : Recipient address rejected: User unknown in local recipient table Why i... | Set myhostname back to " [CODE] " Add the line: [CODE] | 0 | 0 | 119 | 2015-09-28T14:01:18.713 | infrastructure | serverfault.com | |
846,808 | Can I expand the Logical Drive on an HP P410 live? | I have an HP Smart Array P410 w/FBWC with 4 drives configured as RAID-5. Originally, I had 4 x 500meg drives, with 1 Logical Drive of 1.5T configured. I have just swapped the 4x500MB drives for 4x4T drives. I have swapped each one out in the RAID one at a time, giving the new drive time to rebuild before putting the ne... | For those interested in this topic, the tool is now called ssacli. Here's a neat installation guide: https://gist.github.com/mrpeardotnet/a9ce41da99936c0175600f484fa20d03 The smart array logical drive expansion command is still the same: [CODE] Please be prepared to answer this: [CODE] Happy resizing! | 1 | 0 | 1,366 | 2017-04-27T04:50:55.280 | api_errors | serverfault.com | |
269,993 | Understanding linking tables in a many-to-many relationship | I am still working on a photo storage app (designing the database for the data for the photos stored), using MySQL, and have been told that a photo may have one or more people in it, and a person may be in many photographs, which makes sense. My issue is in understanding the properties of the linking table between the ... | Actually you don't need a special value for people that aren't there When you select a photo andand you don't know if there aren't any people in it, you make [CODE] So even when there is no entry in the Relationship table, you get an photo. If you have one person and want to find all photos that they are in [CODE] You ... | 1 | 0 | 283 | 2020-06-27T14:02:50.860 | database_errors | dba.stackexchange.com | |
317,785 | PSQL avoid insert failing because a trigger failed | I want to put a trigger on a table, the code itself could work sometimes, while sometimes it might fail unexpectedly. So I need the data to get inserted on the table regardless if one of its triggers (ON INSERT) failed. Is this possible? Is there some error handling at the trigger to just don't do anything if an error ... | my goal is that if a trigger on INSERT fails, the original INSERT proceeds either way Presumably the trigger was put there for a Reason . Just trying to "get round" that Reason is going to get you Bad Data in your table(s) and that's just going to give you more headaches further down the line. Don't do it. Find out why... | -2 | 0 | 821 | 2022-10-04T00:27:56.987 | warehouse_errors | dba.stackexchange.com | |
475,334 | How to solve IP conflicts on local server? | I am configuring the network for a new server(Debian 6), it has a public IP and a local one, with 2 network connections, the server is a proliant G4, for some reason when I connected it on the eth1 didnt work... so, I connected it on eth3, the config file is like this [CODE] The problem is that I can reach myip only wh... | It looks like you might have two default routes. Remove the gateway statement from eth0 and restart networking. | 0 | 1 | 153 | 2013-02-04T20:24:58.413 | infrastructure | serverfault.com | |
1,088,519 | PFSense on Hyper-V - Can't Access VMs from hypervisor | I'm hoping someone can help clarify what i'm doing, perhaps i'm missing something obvious, but I'm trying to setup PFSense as a VM on my workstation. I've ceated two virtual switches, one external (linked to my NIC for WAN connection) the other as an internal switch (I've tried private too) I've made two VLANs (105,110... | I ended up figuring out my problem. I had a vpn client (Forcepoint to be exact) I noticed every time I'd try to ping that IP, the forcepoint client would prompt me to login. I suspect it's looking for traffic outside my network, and if it think's i need to VPN in, it's prompting me to login.. Anyways, I had already cre... | 0 | 1 | 368 | 2021-12-29T21:51:54.557 | infrastructure | serverfault.com | |
500,693 | Nessus Security Vulnability Fix: SSL Version 2 (v2) Protocol Detection | Below, in quotes, is a medium severity issue discovered after scanning an IIS web server, with a tool called Nessus. "Consult the application's documentation to disable SSL 2.0 and use SSL 3.0, TLS 1.0, or higher instead" I found this article, but I cannot find the "Server" folder. "Client" is the only folder listed on... | Under: [CODE] ...create a key for [CODE] , if it doesn't exist. Then inside that key, create a key for [CODE] if it doesn't exist. Then inside that key (you should be at [CODE] ), create a DWORD value with the name of [CODE] and a value of [CODE] . Once that's in place, reboot the server - a service restart alone isn't... | 1 | 0 | 9,765 | 2013-04-18T19:26:51.130 | infrastructure | serverfault.com | |
821,318 | Can HAProxy load a userlist from a file? | I can't seem to see anything in the documentation, but this seems like an obvious feature. I want to supply a file containing a list of users for Basic Authentication. I don't want to edit the HAProxy config file every time a new user is added. The documentation only gives examples of users specified directly in the fi... | You can use a [CODE] option multiple times when running haproxy. See https://stackoverflow.com/questions/25775682/can-i-split-a-large-haproxy-config-file-into-multiple-smaller-files | 2 | 2 | 1,579 | 2016-12-17T15:17:10.193 | api_errors | serverfault.com | |
681,210 | Redirecting RDP (port 3389) with iptables | I have a Debian server with an IP 10.10.10.5 and a Windows computer with an IP 10.10.10.7. My plan is to make the Debian server forward all RDP traffic to the Windows computer with these iptables rules: [CODE] But for some reason it does not work. I have set IPv4 forwarding to "1". When I connect directly to the Window... | As it seems that all machines are on the same subnet, the Windows computer will try to answer directly to the client without passing through the NAT box (layer 2). You should SNAT reply packets also, adding : [CODE] | 1 | 2 | 5,956 | 2015-04-08T11:27:58.090 | infrastructure | serverfault.com | |
876,648 | Clickhouse: Inconsistent backup/restore for latest partition when using ALTER TABLE FREEZE PARTITION | I'm trying to establish a process for backup and restore of Clickhouse data, but there seem to be a discrepancy on the latest partition when I restore the data and run queries against it. I'm currently working on a single instance of Clickhouse server version 1.1.54245, not a cluster. I'm not yet able to upgrade to lat... | This is a bug. Fixed in https://github.com/yandex/ClickHouse/commit/d468473d624f7d9f25d23c98bd3ceb9ca3a4cffd ..... | 0 | 1 | 743 | 2017-10-03T14:45:27.943 | database_errors | serverfault.com | |
285,714 | applications unable to use /tmp | The disk on a Ubuntu server filled up causing a website to fail and some database corruption. After freeing some space (rogue wordpress backup plugin) and reimporting the database we found some functions of the site where not working. I fixed some of the problems by changing the PHP upload_tmp_dir do be something other... | Is /tmp partitioned seperately on your system? If so perhaps it remounted as read-only during your recent problems. Ensure that the permissions are completely correct, you should have the sticky bit set on temp. 'chmod 1777 /tmp' | 0 | 0 | 194 | 2011-06-30T10:38:51.663 | database_errors | serverfault.com | |
846,726 | Risks of AWS Certificate Manager adding my customer's domain, mapping to my application | I have a web application/website that lives at [CODE] . Everything runs on AWS (my web app runs on Elastic Beanstalk). I use AWS Certificate Manager to issue a certificate for [CODE] and all works well. I have a client who would like to white-label the web app so it shows his domain, not mine, in the URL bar. So I've b... | That will work fine, it's a standard way to do things. Beware though your website has to generate relative URLs, otherwise the users will end up on example.com. For example links to the contact page should be [CODE] not [CODE] | 1 | 0 | 66 | 2017-04-26T17:51:19.173 | api_errors | serverfault.com | |
327,970 | Is it safe to configure Lock Escalation as 'AUTO' for partitioned tables | LOCK_ESCALATION= AUTO. In one of our Data warehousing product we use partitioned tables. They are partitioned based on an integer column. We have implemented partitioning here so we can easily switch data across tables. Environment Details: [CODE] Activity: Parallel ETL Processing Applications Involved in ETL: SSIS pac... | The answer is YES worth it but consider the trade off scenarios and also do [CODE] before and after as well as non prod thorough testing. Setting the [CODE] for your partitioned table could help reduce lock contention and improve concurrency for your parallel [CODE] processing. By keeping the locks at the [CODE] , it a... | 0 | 0 | 230 | 2023-06-06T19:46:39.123 | data_quality | dba.stackexchange.com | |
157,403 | Should I be wary of ON DUPLICATE KEY UPDATE? | I'm new to MySQL, but I have reasonable experience with SQL Server. I know in SQL Server I should be very cautious about using [CODE] statements because they can lead to some problems . Are there any special concerns I should have when using [CODE] ? Is it considered a best practice in the MySQL community to stick with... | First of all: Yes, it is fine and common practice. For simple upserts, I would say it is best practice. There are some rather rare cases to worry about and things that may bite you - especially considering that you come from the SQL Server world: When you use it against a table with two or more [CODE] constraints. In t... | 2 | 5 | 1,780 | 2016-12-06T20:18:24.333 | database_errors | dba.stackexchange.com | |
843,575 | postfix relay with opendkim | i'm using opendkim + postfix as a MTA for my website , everything is working: mail are signed by DKIM , gmail mark them as "pass" the issue is when i'm using this config as a relay from another vm ( via ssmtp ): As a relay , mails are sent succesfully but never signed by the couple postfix / opendkim for each test, the... | The source of the issue was the trusted host list If the smtp client isn't in that list, no error or any log is printed. The mail is sended but with no DKIM signature In my case, here is my configs [CODE] to resolve this, just add the IP / fqdn of the client on /etc/opendkim/trusted.hosts then restart opendkim deamon | 4 | 2 | 1,526 | 2017-04-09T20:12:59.543 | infrastructure | serverfault.com | |
57,148 | Most underestimated programming tool | We have many great tools which helps a lot when programming, such as good programmers text editors, IDEs, debuggers, version control systems etc. Some of the tools are more or less "must have" tools for getting the job done (e.g. compilers). There are still always tools which do help a lot, but still don't get so much ... | A rubber duck. Yes, really. http://en.wikipedia.org/wiki/Rubber_duck_debugging Rubber duck debugging , rubber ducking , and the rubber duckie test are informal terms used in software engineering to refer to a method of debugging code. The name is a reference to a likely apocryphal story in which an unnamed expert progr... | 35 | 69 | 5,430 | 2011-03-11T18:35:33.990 | api_errors | softwareengineering.stackexchange.com | |
588,795 | Why are changing Zabbix's triggers status to unknown? | In zabbix I have an item which i create some triggers for that on below conditions: {Server Template:mysql.slowqueries.last(0,1800)}>{Server Template:mysql.slowqueries.last(0)} {Server Template:mysql.slowqueries.last(0,1800)} {Server Template:mysql.slowqueries.avg(900)}=0 {Server Template:mysql.slowqueries.last(0,1800)... | If trigger evaluation fails for some reason, you should see an error message in "Configuration" -> "Triggers", on the right hand side: In this case, if you have just created "mysql.slowqueries" item and it does not yet have data older than half an hour, function "last(0,1800)" (which returns the last value half an hour... | 0 | 2 | 3,557 | 2014-04-14T05:41:47.117 | pipeline_ops | serverfault.com | |
272,695 | Why Java is a factor 2-3 slower than equivalent C++ program? | I know there is an opinion that programs written in Java and running under JVM as as fast as C++ programs, after introducing just-in-time (JIT). I see many cases when Java is terribly slow for simple programs compared to C++, i.e. about factor 2-3 slower than equivalent C++ programs. Just give you a small example: This... | Your measurement is probably flawed. If you're just running both applications and measure the time from start to end in the terminal, you are not measuring execution time, but also startup time. For Java application, this means that those 170 ms. also contain JIT compilation. Moreover, 50 ms. vs. 170 ms. is not represe... | 3 | 36 | 14,855 | 2015-02-10T01:04:31.653 | api_errors | softwareengineering.stackexchange.com | |
14,777 | How to handle java dynamic objects in QTP? | How can I handle Java dynamic objects in QTP 11.0? There is a smoke test scenario where simple search is performed and the first occurance in JavaTable is selected (by double click) then sub-window opens (JavaWindow). I can add this subwindow to the Object Repository and make any action with it. The test runs fine unti... | The solution is to remove parameters that are changed in [CODE] and add description properties that will describe your object well enough to distinguish from others. (This is done after object is added to Object Repository by means of Object Spy) In my case I removed [CODE] property (it was changing) and added: toolkit... | 2 | 0 | 670 | 2015-09-18T14:22:04.657 | data_quality | sqa.stackexchange.com | |
107,224 | Do I need a Backup Exec 12.5 Agent to backup a shared folder on a workstation? | Have a couple of workstations with shared folders that I'd like to backup. Backup Exec 12.5 sees them in the selection list, but failed saying that the Remote Agent couldn't be contacted: [CODE] Do I need to deploy agents for this? | I haven't tried this on a workstation, but you do NOT need the agent installed to backup files on a shared folder on a server OS. You will, however, continue to receive that error in the backup summary. (I'll be thrilled if somebody posts a way to suppress that message) Tools -> Options -> Network and Security -> "Enab... | 1 | 2 | 11,593 | 2010-01-28T15:20:21.063 | database_errors | serverfault.com | |
232,226 | WHM - Content served over https only, http throws 404 | I just set up a VPS using WHM. I setup the account, and installed an SSL certificate. Everything serves fine using an HTTPS connection, but any time I try to load anything via vanilla HTTP, I just get a 404 error. I've looked at the generated VirtualHost settings, and both port 80 and 443 share the same document root. ... | Are you sure these vhost configurations are being loaded? (That is, are they being included by apache2.conf)? If the secure.example.com configuration isn't being loaded, requests on port 80 for secure.example.com might get served by example.com and therefore get 404s because the file URIs would be wrong. (To check this... | 0 | 1 | 1,401 | 2011-02-07T16:11:46.323 | api_errors | serverfault.com | |
74,091 | IIS SMTP: 550 5.7.1 Unable to relay | I am trying to configure IIS 6 SMTP server for outbound mail. I did the following telnet test from Wikipedia and getting error highlighted in bold below. 220 smtp.example.com Microsoft ESMTP MAIL Service, Version: 6.0. . ready at Me: HELO smtp.example.com Telnet: 250 Hello smtp.example.com [127.0.0.1] Me: MAIL FROM: bo... | If you're going to be sending email directly from the IIS SMTP server, then you don't need to configure any relay settings. The server sending outbound email from itself is not a relay. The tests you're running are exactly what you should expect when trying to send email through the server from another host (because re... | 2 | 1 | 18,297 | 2009-10-13T16:43:48.300 | infrastructure | serverfault.com | |
780,078 | Install Language Pack On Windows Server Core (2012 R2) | I have language packs [CODE] and [CODE] staged and approved in Windows Server Update Services 2012 R2, but my Windows Server Core 2012 R2 clients refuse to install it. After googling the issue, it appears that these language pack updates are unable to be installed via WSUS, and have to be manually installed on the clie... | This is working as designed. It is a "feature" / "defect" of WSUS exposed by a select group of "updates" that are not in fact updates in the typical meaning of the term. Certain WSUS updates including language packs are detected as applicable to a machine in the sense that they may optionally be installed manually by s... | 0 | 1 | 8,579 | 2016-05-31T17:35:37.750 | infrastructure | serverfault.com | |
909,235 | How do I get Prayer Webmail running on HTTPS? | I can't seem to get Prayer Webmail to run an https port. I'm running Exim4+Dovecot on Ubuntu 16.04.2. It works fine on the unsecure http port-- except that it's unsecure (I'm using port 8888 for http, and port 8843 for https). The port is open in the firewall. If I set up a socket on on 8843 I can connect to it, testin... | Okay. So it appears that prayer was in fact listening on the designated https port... interestingly, while testing I was using nmap to scan for open status, and the scans show closed whether from inside or out, but my browser connects and I'm able to login to prayer ove https on the designated port, yet it still shows ... | 1 | 1 | 260 | 2018-04-24T16:57:09.157 | infrastructure | serverfault.com | |
763,772 | sed - adding a line when it doesn't exist | I have a file [CODE] which might look a little like this [CODE] This file is missing the key-value [CODE] which should be located in the [CODE] section of this file. On 100+ sites, some of the files might have clientDPI set, others might not. I want to add the value to files which do not currently have it. This is the ... | You can do this with a sed script, either as you have done or using branches to only execute sed once, but as you ask for a better way, I would use a dedicated more general script, easier to adapt. After all, tomorrow you will maybe want to change "lookandfeel" to "newgeneric", or "serverURL" to "/forms/lservlet/debugm... | 0 | 1 | 1,067 | 2016-03-15T05:14:03.450 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.