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 |
|---|---|---|---|---|---|---|---|---|---|---|
400,516 | Varnish redirects to apache backend port 8000 | I set up an apache and a varnish on a dedicated server, which runs on debian squeeze. Sometimes the varnish redirects to the apache backend port 8000. In this case the browser show i.e. mydomain.com:8000/shop/ and has no connection to the server and no content will be displayed. I guess the problem is caused by my apac... | This is a problem from Apache. Apache tries to canonicalize Urls. The Url " http://example.com/foo " is different from " http://example.com/foo/ " (with trailing slash). Still most of the time the same resource is desired. Apache tries to rewrite the urls without trailing slash so they point to the urls with trailing s... | 0 | 3 | 1,178 | 2012-06-20T12:46:09.040 | infrastructure | serverfault.com | |
336,292 | What are the different approaches to filtering on aggregated data? | I have a feature I'm building that aggregates data across about a dozen or so tables. This data is aggregated from a heavily joined query. This page then has a lot of filtering, sorting, counting, and display options that need to work on top of this aggregated data set. There is one "global" condition/filter on the pag... | Some techniques to consider: Caching Does the business need the aggregate data to be 100% up to the second accurate? If not, perhaps you can cache the results of the aggregates to save re-doing some of the calculations. Data-warehouses take this further, often calculating aggregates on a fixed schedule so that, whilst ... | 3 | 1 | 855 | 2016-11-18T05:28:38.023 | warehouse_errors | softwareengineering.stackexchange.com | |
137,447 | virtualisation with kvm: export services from guest to the host | I would like to export some services from the guest os to the host os, via kvm, and by the same way learn some things about networking. I have tried the following commands: In the host (kubuntu 10.4): [CODE] The ifconfig command returns: [CODE] Then I run the virtual machine (ubuntu server 10.4): [CODE] (I'm using sudo... | The problem when the virtual machine was launched: [CODE] I replaced [CODE] by [CODE] and it worked | 0 | 0 | 2,459 | 2010-04-30T15:28:07.087 | infrastructure | serverfault.com | |
744 | What makes the below question off-topic and ideally which site should this be migrated to..? | Consider: What should I use as a base for my wall mounted PC case? Looking at the 'Note, the following are considered off-topic:' section, it is a Hobby project. But as per this section: 'We welcome these topics:' it does seem to fit in on this site: Questions you would typically ask a home contractor. [No, well maybe]... | Currently, there isn't a site to migrate it to, so an area51 proposal is the best option. There was an attempt in the past to have a personal manufacturing site, but that failed. You may want to consider how much of the maker community you can include with your proposal since they would be helpful in getting your site ... | discussion | 0 | 6 | 110 | 2012-12-21T14:05:55.770 | other | diy.meta.stackexchange.com |
432,209 | Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user | What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications. The server should support a shared hosting environment where various (possibly untrusted) users have chroot'ed FTP access to the server... | I recommend using php-fpm instead (managing all users with one server, but usually not secure if you are using an opcode cache), or spawning the backends with runit and spawn-fcgi . Then remove the spawn options from the lighttpd config (bin-path, max-procs, bin*-environment) | 1 | 0 | 1,420 | 2012-09-26T14:49:18.377 | infrastructure | serverfault.com | |
160,641 | How to track only the tables used by app | I have a very messed up database with lot of tables that are really not used by the app so I'm tracking all the used tables with the [CODE] . I'm making the request to the app and with [CODE] following the connection id in the general log and getting all the tables requested, but this is going to be a very frustrating ... | There are two major things you can try METHOD #1 : General Log as a Table Convert the General Log into a Table. I already have 13 posts on how to create and rotate it. You have the general log table open as a MyISAM table, you can query it like any other table. In you case, you can do select against it by the [CODE] (i... | 1 | 2 | 425 | 2017-01-10T22:53:31.277 | warehouse_errors | dba.stackexchange.com | |
333,824 | heartbeat: Bad nodename in /etc/ha.d//haresources [node1] | I'm trying to start heartbeat on Ubuntu 10.04 with [CODE] , but getting the following errors: [CODE] On on server [CODE] produces [CODE] , on the second server [CODE] produces [CODE] . The two servers can ping each other okay with those names. This is [CODE] on both servers: [CODE] And this is [CODE] on both servers: [... | Put [CODE] into the haresources - not [CODE] . | 3 | 2 | 3,304 | 2011-11-22T19:34:23.117 | infrastructure | serverfault.com | |
186,493 | Is it possible to disable `execute` in lieu of `exec`? | We've got an issue at the moment where we've got multiple query plans because some JDBC code uses [CODE] resulting in an [CODE] statement, and other code uses [CODE] . Is it possible to disable [CODE] to nudge developers into only using [CODE] / [CODE] (particularly since [CODE] is faster )? | Community wiki answer : No, this is not possible. I'd add this as a code quality item to their code reviews. That said, the root cause of the multiple plans is not the different call syntax. That could also happen with different [CODE] options, etc. Instead look at query plans and the parameterization behavior, and the... | 0 | 1 | 67 | 2017-09-21T02:08:01.300 | database_errors | dba.stackexchange.com | |
1,057,701 | Create database creates a db with a #mysql50# before the name | Just in the last day, whenever I create a new database, it is prepending the database name with: [CODE] And I am unable to connect to this database. Im having real issues on our PROD server as we create a new database often. Please see the image below. We're running the following command: [CODE] Im unsure what to do? I... | So our fix for this was to make sure databases werent created with any hyphens in them. My suspicion here is the DB was upgraded and this rule of no hyphens enforced on our Azure Mysql servers. Now we use underscores instead. | 1 | 0 | 331 | 2021-03-20T10:57:23.527 | database_errors | serverfault.com | |
279,266 | SQLITE - Update multiple columns, in multiple rows on a table with a composite PK | First of all, a question: [CODE] Imagine this goes on. Would any performance improvement come from merging these in a single query? If so, how can it be done? Remember I am asking specifically for SQLlite3 | Finding each row to update requires an index lookup. Writing a combined query would not change this. Minimize the transaction overhead by running all UPDATEs inside a single transaction. Further performance improvements are not possible. | 0 | 2 | 1,606 | 2020-11-05T17:25:04.947 | warehouse_errors | dba.stackexchange.com | |
297,459 | SPFILE invalid after being edited in Windows | I was attempting to fix another issue and set sec_case_sensitive_logon to false. I then removed this using Notepad++ instead of the CLI. But I then started getting various errors: When I attempt to run [CODE] , I get the following error: I have no idea why it was trying to use the init ora file because I've started thi... | I was able to find an existing PFILE in [CODE] . I then recreated my SPFILE using [CODE] and started my server using [CODE] . | 1 | 0 | 207 | 2021-08-02T00:40:11.087 | warehouse_errors | dba.stackexchange.com | |
588,078 | Processing Conflict: mysql55w-libs-5.5.36-3.w6.x86_64 conflicts mysql-libs < 5.5 | I'm trying to install the latest webtatic MySQL 5.5 edition via yum ( http://webtatic.com/packages/mysql55/ ) on CentOS 6.5 but every time I try I get the following output ending in error: [CODE] Considered running [CODE] but that removes a lot of other dependencies that I'm pretty sure will cause me some problems: [CO... | You can resolve it by switching the mysql-libs package to mysql55w-libs. This needs to be done in one transaction to avoid it uninstalling the other dependencies: [CODE] | 7 | 9 | 9,775 | 2014-04-10T13:12:06.853 | database_errors | serverfault.com | |
271,944 | Service Broker SEND performance | Previously I asked about latch contention / locks which can happen during Service Broker work: Service Broker locks . I got a great answer on general question but I still have narrowly focused question. MSDN ( SEND ): Messages that are sent to services in other instances of the SQL Server Database Engine are stored in ... | Perhaps the routing configuration change didn't take effect immediately. To be sure test with a new broker. Try this from a database other than the database containing the target service: [CODE] | 0 | 0 | 443 | 2020-07-30T10:01:12.720 | database_errors | dba.stackexchange.com | |
348,487 | find the path of jdk and set JAVAHOME | I've got java installed on my Ubuntu VirtualBox, and I am trying to run sunspot, but sunspot can't find java. typing 'java' from the command line return The program 'java' can be found in the following packages: * gcj-4.4-jre-headless * gcj-4.6-jre-headless * openjdk-6-jre-headless * gcj-4.5-jre-headless * openjdk-7-jr... | I'm not sure what you mean exactly by your questions, but... Find the install for openjdk-7-jre-headless You can do this by using [CODE] at the command line: [CODE] Follow the prompts and it'll install this package and everything it needs. sudo export home, as I've had problems in the past setting the export home, with... | 0 | 2 | 4,894 | 2012-01-10T14:25:26.223 | infrastructure | serverfault.com | |
66,041 | MySQL TIMESTAMP isn't behaving as advertised | I'm using MySQL 5.5.34. The 5.5 Documentation says I can create a table like this: [CODE] From the documentation: For t1, ts1 is NOT NULL and assigning it a value of NULL sets it to the current timestamp. The documentation also says I can only assign [CODE] as the default to a single [CODE] field only. No multiple fiel... | Your mysql server's global configuration don't allow you to insert ZEROS into table column. The global configuration parameter SQL_mode is responsible for this behavior. You can find it in your my.ini file if configured or you can also query mysql server to display its value, [CODE] It should return you 'STRICT_ALL_TAB... | 0 | 0 | 159 | 2014-05-28T02:37:52.217 | database_errors | dba.stackexchange.com | |
681,637 | synology ds212j slow transfer speed | I have [CODE] and I'm getting REALLY slow transfer speed, about ~10MB/s. I used following knowledge base in order to troubleshoot it: What should I do if file transfers are slow? - FAQ - Synology - Network Attached Storage (NAS) Network Status - [CODE] Storage Manager - no problem My computer's CPU - no problem. Please... | "slow transfer speed" - was due to enabled encryption, as soon as I disabled encryption speed went up substantially. | 2 | 1 | 6,547 | 2015-04-09T18:47:41.110 | infrastructure | serverfault.com | |
74,987 | The materialized view is already optimal and cannot be tuned any further | I have tried [CODE] to verify some materialized views created locally. One of the result returns an error: [CODE] Does this mean the materialized view script is in the best shape, or [CODE] is not capable to find a better solution? | If a materialized view is already fast refreshable, the [CODE] procedure will return a message saying "the materialized view is already optimal and cannot be further tuned" So there is nothing to do. | 0 | 1 | 249 | 2014-08-26T16:30:38.047 | warehouse_errors | dba.stackexchange.com | |
690,460 | Does a mod_security error block a visitor? | Does a mod_security execution/rule error or errors in general block users from visiting my website? Ive got many rule and execution errors, Ive just whitelisted these rules but maybe I could just ignore them. The website is in production with visitors so I don't want to try and see if I do get blocked, if I enable mods... | Depends how the rules are written but in general, yes rules are written to block. Other than that can't really answer unless you give more specifics on what rules you're running. Most common are the OWASP Core Rule Set, most of which are designed to block depending which detection mode you are running that in. Best pra... | 0 | 0 | 1,067 | 2015-05-07T20:32:11.170 | infrastructure | serverfault.com | |
185,238 | How does C++ handle multiple inheritance with a shared common ancestor? | I'm not a C++ guy, but I'm forced to think about this. Why is multiple inheritance possible in C++, but not in C#? (I know of the diamond problem , but that's not what I'm asking here). How does C++ resolve the ambiguity of identical method signatures inherited from multiple base classes? And why is the same design not... | Why is multiple inheritance possible in C++, but not in C#? I think (without having hard reference), that in Java they wanted to limit the expressiveness of the language to make the language easier to learn and because code using multiple inheritance is more often too complex for its own good than not. And because full... | 13 | 24 | 7,858 | 2013-01-30T05:17:13.037 | api_errors | softwareengineering.stackexchange.com | |
1,106,841 | Windows Server: First request very slow, subsequent requests normal | I’m developing a Laravel website which is to be deployed to Windows Server 2019 (IIS) running SQL Server, hosted on a VPS with Plesk. I recently deployed the site to a password-protected testing subdomain on the server to make sure everything works and see how speeds are when mimicking a production environment on the a... | This is classic application pool starting behavior. Did you make sure you changed the “Idle Timeout” setting of the application pool? If not, it will shut down after 20 minutes of inactivity and the next request is going to take longer. Or, have you checked the recycling setting of the app pool? A recycle will also cau... | 0 | 1 | 1,251 | 2022-07-28T11:24:03.833 | database_errors | serverfault.com | |
499,488 | munin aggregate graph problems | Munin is driving me crazy. I'm trying to get an aggregate graph working. Here is my conf file: [CODE] the example plugin is below, which is running on 2 VMs - machine-1 and machine-2. (the third VM is munin master). Written in bash: [CODE] The problems are: I only get a single spike on the resulting graph, up to 10 the... | This seems like expected behavior from a DERIVE data source. Since your plugin output is constant, munin sees one instance of 10 x/5 minutes the first time it runs and after that there's no change in the amount of x, so its derived value is 0. You should set [CODE] to GAUGE; that will just graph the absolute value. I'l... | 0 | 0 | 382 | 2013-04-15T13:45:29.437 | infrastructure | serverfault.com | |
642,885 | Why am I not getting an ARP reply with this request? | Using [CODE] in C, I'm manually sending the following packet on [CODE] (I've left out some fields, but I think they are correct): [CODE] Using Wireshark to listen on [CODE] , I expect to see an ARP reply giving me the MAC address of a Google server. However, I am not seeing any ARP replies containing Google's IP whatso... | You're _NOT_ getting an ARP-reply, 'cause within your broadcast domain [1] (aka: your local [W]LAN segment) there is _NOT_ an host whose IP address is the one you're ARPing for (173.194.46.72). To be more detailed, let me add that: ARP is a Layer-2 protocol [2] and as such, as already mentioned by Zoredache : " ...ARP ... | 0 | 2 | 12,899 | 2014-11-07T23:44:37.113 | infrastructure | serverfault.com | |
179,064 | Load-Balancing and HA between virtualized guests on same host reasonable? | some time ago a friend showed me his concept of a virtualized web application: 2 Apaches - load-balanced via IPVS/LVS 2 MySQL - HA via DRBD and Heartbeat The virtualized machines all run under the same hypervisor on the same host. So I was wondering if this setup is reasonable because I see no advantage. Host is SPOF L... | Agreed on every point. If you had a hypervisor cluster, then it might have made sense, especially with a policy to always keep the guests on different hosts | 1 | 1 | 129 | 2010-09-08T07:27:23.347 | database_errors | serverfault.com | |
1,147,198 | Dovecot saves incoming mail from LMTP in wrong home directory despite being correctly overwritten | I have setup Postfix 3.8.1, Dovecot 2.3.20 and OpenLDAP on Ubuntu 23.10. Postfix transfers mails for local delivery via LMTP to Dovecot. In some cases, the mail address as seen from the outside world (e.g. [CODE] ) and the the user name as used for SASL authentication and for home directories do not match. Nonetheless,... | It was a trivial oversight and a missing comma. Instead of [CODE] it should have been [CODE] Due to the missing comma, only the [CODE] variable was set. Hence, Dovecot did not complain that it could find the user. But the [CODE] variable remained unset. Sometimes, I hate Linux daemons ;-) Instead of complaining that th... | 0 | 0 | 54 | 2023-11-04T16:25:20.407 | api_errors | serverfault.com | |
1,106,329 | North America POS connecting to server in Asia | I have a client who (for some reason) have POS in North-East America, but the POS company and servers are in Asia. This results in occasional slow, duplicate, or incomplete transactions. The POS company in Asia refuses to spin up an instance in North America. Dumb question, but is there a way to speed this up, for exam... | Network latency between east United States and say Japan is on the order of 170 milliseconds, per monitoring company WonderNetwork and also Azure . That's one packet doing nothing. Actual applications may do many connections and have other delays. Even in good conditions there may be human noticeable latency problems. ... | 0 | 1 | 32 | 2022-07-22T15:02:35.857 | data_quality | serverfault.com | |
100,268 | Rackspace Cloud API | I am creating bash script to store backup files on Rackspace (mosso). For now i am done with uploading and deleting files from containers. Next step is to remove files older than two weeks (remove from container). The questions is how to get metadata from object? e.g on uploading i am creating metadata for objects (Cre... | I think what you're looking for is to use a HEAD on the object to get the X-Object-Meta-CreatedDate (sic) custom info that you added in 2.3. See page 23 of the API manual: http://www.rackspacecloud.com/files/cf-devguide-20090812.pdf === Request The only required header to be sent in the request is the authorization tok... | 0 | 1 | 737 | 2010-01-06T23:35:18.587 | pipeline_ops | serverfault.com | |
797,850 | unknown directive "geoip_country" on nginx/1.10.1 | I have a nginx/1.10.1 on my CentOS 7 installed via nginx repo. I just install geoip module [CODE] Added [CODE] to http section on [CODE] , but when I am doung configtest [CODE] Can anybody help me? Thanks beforehand. | Dynamic modules must be explicitly loaded from the [CODE] section of the nginx configuration. [CODE] | 6 | 10 | 17,731 | 2016-08-19T07:56:59.750 | infrastructure | serverfault.com | |
170,768 | MySQL new db and troubleshooting some connections to old DB still running | I just setup a new DB server replacing one that has been live for 5+ years. I normally set the db connections in the host file but now that the new server is up I still see some connections to the old server how can I track down where those connections are coming from? | If you log into the old MySQL server and run the following: [CODE] You should see a list of all active connections, with the source host in the 3rd column. It should be of the form: [CODE] Where [CODE] is the hostname you're looking for and [CODE] is the source port. If you want to track down the process that's connect... | 0 | 1 | 56 | 2010-08-15T20:32:58.073 | database_errors | serverfault.com | |
1,047,750 | Trouble installing packages from the Debian buster repository | Solved! See comments below for the solution. I'm trying to install i3 on Debian buster and it can't find the package. I'm not sure what I'm missing so I can install this package. These are the errors that I'm getting: [CODE] [CODE] This is my [CODE] file [CODE] I've tried running [CODE] and [CODE] , before trying to in... | Your [CODE] is missing these lines: [CODE] Then [CODE] , [CODE] and [CODE] . | 1 | 2 | 3,220 | 2020-12-28T05:07:26.923 | infrastructure | serverfault.com | |
329,916 | Experiencing IP conflicts restoring Cassandra DB from snapshots in GKE environment | While restoring 750TB Cassandra database using disk snapshots in GKE (google cloud K8s) environment from one namespace to another namespace we are experiencing issues with IP conflicts, to avoid the conflict we had a different cluster name but still seeing below errors sometime when bringing up the target node. Out of ... | The error you posted doesn't seem to be related to restoring snapshots. It indicates that you're trying to bootstrap a new node into the cluster but one of the replicas it needs as the data source for streaming is unavailable. Note that you can only bootstrap one node at a time, not multiple nodes in parallel. Once one... | 0 | 0 | 20 | 2023-08-02T20:16:16.577 | pipeline_ops | dba.stackexchange.com | |
341,347 | Dependency Injection WIth Parameterless Constructor | Let's assume that I have the following interfaces and classes: [CODE] In NinjectWebCommon.cs: [CODE] And after this I want to use my ITest interface: [CODE] I know that in Vehicle class I can to do the parameterless constructor with the following way: [CODE] But it seems to be a bad practice and doesn't follow to depen... | "It's turtles all the way down". Just as you're injecting [CODE] into [CODE] , you should inject [CODE] into [CODE] - it doesn't matter that it's a concrete class rather than an interface, just let your DI framework do the work for you. In fact, as you're using NInject, a self-binding will already have been created for... | 2 | 2 | 2,775 | 2017-02-01T06:48:14.060 | api_errors | softwareengineering.stackexchange.com | |
1,079,616 | File shares inacessible after server update | So I applied the 2021-9 updates on one of our Windows 2016 Server yesterday. The server was configured with a File Sharing role and the share had been working smoothly for more than a year, no glitch whatsoever. Since the update has been applied, the windows share is not accessible from outside computers (belonging to ... | Alright, I guess I found the answer here since I found out, that connection was working from the problematic server using localhost, FQDN but not the IPV4 address https://superuser.com/questions/1240213/cannot-connect-to-windows-share-via-local-network-ip-address-but-can-by-localho | 1 | 0 | 1,014 | 2021-10-05T14:46:29.150 | infrastructure | serverfault.com | |
105,234 | How to create a Hyper-V Internal network | I have a Windows 2008 server running multiple Hyper-V guests. I want to create a Hyper-V "Internal" network. So far, I cannot get anything to communicate. I created the Internal network adapter in the Hyper-V manager I assigned each VM's network adapter to the internal network adapter I assigned an IP address to the ho... | If the VMs can't ping even between themselves, then something is definitely broken here, and it's not related to the RRAS service running on the host; regardless of their default gateway's behaviour, machines placed on the same network and with proper IP configuration should be able to talk at least between themselves.... | 6 | 3 | 7,262 | 2010-01-21T23:55:34.630 | infrastructure | serverfault.com | |
190,345 | Is there performance difference between "SET ROWCOUNT" and "TOP"? | I need to select batches of N rows from a large table. I know of two ways of doing this: [CODE] [CODE] [CODE] [CODE] Is there any performance difference (or any other reason to pick one over another) between the two solutions? Notes: If it matters, Sybase ASE is version 15. The query is a single [CODE] statement. The l... | Generally speaking ... performance should be the same. Technically speaking ... it depends on the query; for example, if the [CODE] is used within the confines of a derived table then you may see different performance depending on how/if the optimizer flattens the query. To answer the question for a given query(s), run... | 2 | 1 | 1,981 | 2017-11-07T20:28:41.297 | database_errors | dba.stackexchange.com | |
158,184 | .NET application runs on IIS 7 but not on IIS 7.5 | A few years ago, I built a "front page" for my site, using CSS to implement a flexible column system (instead of fixed width). Works fine under IIS 7, but when I upgraded my web server to 2008 R2, the page content displays but no CSS activity is evident. I brought in a couple pages from a simpler site that works in a d... | Since css is rendered by the browser my guess is that you have some sort of permissions issue. Are you able to download the css file directly using a link for the source of the page? So for instance, if in your page you have the following in the html source: [CODE] Are you able to go to [CODE] directly from the browser... | 1 | 2 | 430 | 2010-07-07T13:08:42.663 | infrastructure | serverfault.com | |
4,358 | Improving slow queries. Slow query log attached | Below is the Slow Query Log when my .NET application was running. Please let me know how to improve the performance of the queries: [CODE] | One area that stands out is the way you are accessing the BillDetails table. All queries appear to be using MONTH and YEAR operators on BillDate. For example: [CODE] This approach requires accessing every record in BillDetails. A better approach would be to index BillDate and query as follows: [CODE] Looks like you don... | 4 | 5 | 1,007 | 2011-08-05T08:32:59.103 | warehouse_errors | dba.stackexchange.com | |
235,070 | Why is my AWS RDS (postgres) at a high percentage of cpu with no active sessions? | I have two postgres db, prod and dev. Lately, dev has been really slow, so I checked into it, and it appears to be using CPU credits faster than I'm getting them. I could not figure out why, so I checked the cpu usage history, and it appears that after a strange spike, the baseline has settled to twice the usage it was... | I can't guarantee this will always work, but what managed to be effective for me was switching to a different instance, then switching back. To do so, go up to [CODE] button in the [CODE] view, and then change your instance to any other instance type, wait for the update, then switch back. I suppose I just had a bad ec... | 0 | 1 | 1,272 | 2019-04-17T16:40:47.833 | warehouse_errors | dba.stackexchange.com | |
236,853 | Is there a performance difference between ++x over x++? | Is there a performance difference between using [CODE] over [CODE] increment operators? I've see developers use [CODE] in loops where I would normally write [CODE] out of habit. For example; [CODE] There would be no difference in the results between [CODE] or [CODE] . So I'm wondering if there is a reason some people d... | For simple integers; NO , any decent peephole optimizer will see the value isn't used and use the best option available. For more complex (overloaded) types in C++ (like iterators); possibly, the pre and post increment expand to different methods which may be completely different. Typically the post increment need to m... | 1 | 9 | 5,130 | 2014-04-24T10:47:30.773 | api_errors | softwareengineering.stackexchange.com | |
1,050,997 | Error on deployment web api mvc4 on azure server | The requested VM tier is currently not available in Southeast Asia for this subscription. Please try another tier or deploy to a different location here is my api code: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web; using System.Web.Http; us... | This has nothing to do with your code, you are trying to create a VM size that is not available in the region you have selected. You need to change the VM Size or region to one that is available. | -1 | 0 | 34 | 2021-01-24T15:56:09.363 | pipeline_ops | serverfault.com | |
19,438 | Timeout During SharePoint Gradual Upgrade | I am trying to upgrade a system from SharePoint 2003 to 2007 using gradual upgrade. I've moved all of the smaller site collections successfully, but I'm running into trouble with the larger ones (2-30GB). The upgrade process is running for a couple of hours and then timing out during DropFullTextSearch. The timeout per... | A little time with reflector revealed that the upgrade code was calling sp_fulltext_database - searching for that gave me a number of posts about querys running for days and suggestions to reinstall windows. After restarting the search service, the operation completed in 3 seconds. Of course this just got me as far as ... | 0 | 1 | 199 | 2009-06-04T05:33:12.113 | infrastructure | serverfault.com | |
423,519 | add authentication danted socks proxy | So I've been using danted socks proxy the past three weeks and it works great however instead of going in and changing which IPs to allow I want to add authentication to it so only those with the right credentials can use my proxy. I tried it using the "username" method but I have no idea how to authenticate on the cli... | I tried it using the "username" method but I have no idea how to authenticate on the client side. so basically my problem is that I don't know how to authenticate on the client and i don't get any popup boxes etc where I can put in my credentials According to the [CODE] : [CODE] The [CODE] authentication methods work i... | 4 | 2 | 5,775 | 2012-09-01T13:26:49.617 | api_errors | serverfault.com | |
294,959 | Most efficient way to install Windows Hotfixes on a isolated computer | I have a standalone W2K3 machine which I need to update with microsoft hotfixes. I also have a clone of this machine which I can connect to the internet. What I'd like to do is: a) Run some tool on the clone which will download all the required hotfixes from the internet, then I can burn them to a BluRay disk b) Take t... | The WSUS offline update Project ( http://www.wsusoffline.net/ ) allows you to build a repository of MS Updates / Hotfixes for one or more MS OS' and also supplies scripts to deploy them offline from a CD, disk or internal distribution share. | 2 | 4 | 366 | 2011-07-28T09:58:45.233 | infrastructure | serverfault.com | |
293,978 | Permission denied: could not create /var/run/httpd.pid in Apache | I'm working on setting up a web server running RedHat Enterprise 6 with Apache and PHP inside of a chroot jail environment. The chroot directory for apache is /chroot/httpd. I followed this example yet when I go to start apache, I see the following in /var/log/httpd/error_log . [CODE] Also, SELinux is enabled and accor... | I just figure out what issue. This is our environment: RedHat 5 with latest apache RPM When you look at the error logs it complains about not been able to create the httpd.pid, under the "run" dir. It didn't make sense because that directory had the correct context for read/write "httpd_sys_rw_content_t" (which I had t... | 4 | 5 | 28,771 | 2011-07-25T20:33:16.287 | infrastructure | serverfault.com | |
289,525 | Where should business logic go in a layered architecture? | First of all, i'm not talking about validation in the sense of the nullability or length of a field like in this and this questions where we can use isValid() methods in business classes or an external Validator. However, my question is related to validate or not in business classes. I'm using a layered architecture st... | In a DDD (Domain Driven Design) application using a conventional layered architecture, business logic goes into the domain layer. Now, please note this layer does not only contain the domain entities ( [CODE] , [CODE] ), but also domain services (like a [CODE] class) and repositories. So, [CODE] is a business class as ... | 6 | 5 | 2,611 | 2015-07-12T19:48:07.793 | data_quality | softwareengineering.stackexchange.com | |
915,478 | How to remove active_desktop_launcher.exe by KuGou | Hi I am running Windows Server 2012 R2. And I am facing a strange problem. There active_desktop_launcher.exe service is randomly get executed and takes up 100% of CPU utilization slowing the whole server down. It automatically get executed even ending task from task manager [CODE] I have installed MSE on server, but sc... | Run PowerShell as administrator, then: [CODE] [CODE] [CODE] Ultimately you need to wipe/reload the OS though, yes. | 1 | 0 | 2,565 | 2018-06-06T15:44:40.913 | infrastructure | serverfault.com | |
654,406 | Cause of error: Invalid (old?) table or database name 'lost+found' | My MySQL log shows duplicated errors: [CODE] I have a database named [CODE] but I cannot seem to delete it. [CODE] I am operating Server version: 5.5.40 Distributed by The IUS Community Project on Centos 6. Per MySQL is running VERY slow on CentOS 6x (not 5x) , my datadir is on ext3 with the barrier=0 option. What is c... | It looks to me like your [CODE] is in a file system of its own. Ext file systems, like most FSes under Unix, have at their root a directory called [CODE] . It exists in order to allow files that become detached (that is, they have content, but no associated directory entry) to be reattached somewhere when an inconsiste... | 12 | 16 | 32,049 | 2014-12-23T14:08:48.150 | database_errors | serverfault.com | |
84,914 | Is there a good way to team develop using different MySQL Instances? | This may be a noob question but a colleague and I are working on a project. Some background about our situation is: We control versions using a centralized git server inside our office. We code in PHP, so we try our code offline in a local apache instance. We use local MySQL instances at work. Our client is a bit of a ... | First thing you should always do on any project is automate the build, deployment and release processes. This means in your case: Automate setting up the database from a clean slate with fresh DDL. Automate loading any default data into this fresh state DDL. Automate dumping any data out so that it can be reimported in... | 4 | 5 | 1,511 | 2011-06-17T17:04:23.930 | database_errors | softwareengineering.stackexchange.com | |
628,595 | How does Dynamic Dns works? | In order to access computer from anywhere we need ipaddress but as we know dynamic ip address changes frequently . To come up this issue Dynamic Dns is used .Can anyone please tell me how does it works ? | Dynamic DNS works in such a way that you have a client running on the router or an internal machine that continuously monitors the public IP, and when it changes, it sends an update to a remote server informing them of the change. Once the remote server receives the updated IP, all relevant DNS records are updated with... | -4 | 3 | 1,541 | 2014-09-15T14:13:36.187 | infrastructure | serverfault.com | |
99,590 | ffmpeg on Ubuntu Intrepid (8.10) Server | I'm trying to get ffmpeg running on my server so I can use the PHP Video Toolkit successfully. I'm currently setting up my testing platform, which is a 32-bit Ubuntu 8.10 Intrepid Ibex Server. Obviously, my first attempt was [CODE] But this pre-compiled version doesn't have libmp3lame or any AMR encoders/decoders and o... | I think this post from the Ubuntu Forums might be what you're looking for. I have used this guide for quite some time and I haven't had any trouble getting ffmpeg up and running. http://ubuntuforums.org/showpost.php?p=8345112&postcount=636 | 2 | 1 | 505 | 2010-01-05T14:03:41.767 | infrastructure | serverfault.com | |
64,477 | Multi-class classification configuration | 1) What are the appropriate activation and loss functions for multi-class classification problem? Is it so that: Up to 2 classes $\rightarrow$ Binary classification $\rightarrow$ Activation: Sigmoid $\rightarrow$ Loss: binary_crossentropy From 3 classes $\rightarrow$ Multi-class classification $\rightarrow$ Activation:... | In my experience the activations are irrelevant to whether the classes are binary or multi-class. Their effectiveness depends on the kind of data you have. Furthermore, there is one node in the layer because you are doing a binary classification. In other words, when the value of the last node is low or below a thresho... | 1 | 0 | 285 | 2019-12-09T12:18:36.367 | data_quality | datascience.stackexchange.com | |
55,260 | Can I create a MySQL CSV table directly from an existing CSV file? | MySQL has a CSV storage engine . I'm wondering if I could create such a table directly from an existing CSV file. Made up command as example: [CODE] What I'm trying to achieve is an efficient way to load data that doesn't depend on [CODE] as that command opens up the possibility of arbitrary command execution. | Here is something a MySQL Daredevil is more than willing to try. I just did the following in MySQL 5.6.14 right on my Laptop [CODE] Now, going into the OS: [CODE] As show in the above commands in mysql and in the Windows command line, the CSV file that mysql can handle has the following two characteristics: fields deli... | 1 | 1 | 1,432 | 2013-12-18T17:58:39.090 | database_errors | dba.stackexchange.com | |
841,886 | "Can't contact LDAP server (-1)" error for LDAPS to Server 2012 | When attempting to connect to Active Directory on Window Server 2012 (possibly R2) over LDAPS , ldapsearch produces one of the following errors (at the end of a longer output): [CODE] or [CODE] or [CODE] The SSL certificate has been installed and verified using s_client e.g.: [CODE] ... which generates valid output end... | This problem can occur because the TLS 1.2 implementation in Windows 2012 is incompatible with some versions of Linux libraries like [CODE] . If this is your problem, disabling TLS 1.2 will restore functionality. The following options may be available to you: In Linux CLI (may need to escape the exclamation point, foun... | 1 | 1 | 18,752 | 2017-03-31T20:51:53.453 | api_errors | serverfault.com | |
160,469 | Postgres: Insert distinct values from one table into another table with constrains in place | I'm trying to insert data from one PostgreSQL 9.3 table to another while removing duplicate entries. I have two tables containing email addresses. The main table contains emails and a tag for each email address. The combination [CODE] must be unique, and for this there is a constraint [CODE] on it. The second table get... | There are 3 possible kinds of duplicates: Duplicates within the rows of the bulk insert. Duplicates between inserted rows and existing rows. Duplicates between inserted rows and concurrently inserted / updated rows from other transactions. Just like I explained in this closely related answer: Using EXCEPTION to ignore ... | 6 | 5 | 11,321 | 2017-01-09T21:42:52.157 | database_errors | dba.stackexchange.com | |
1,126,204 | Troubleshooting AWS S2S VPN connection with on-prem network | I am trying to set up a VPN connection between our AWS servers and a 3rd party network. The VPN tunnel in itself is active, but network calls are timing out. The setup: EC2 instances in private subnets have their traffic go through a NAT gateway with an Elastic IP (setup already works to reach the internet) Default VPC... | The issue was caused by the on-premise network's VPN not using the AWS VPN tunnel's inside IPv4 CIDR range in its interface, once the connection was set up with the tunnel's outside IP address and inside IPv4 CIDR range it worked like a charm For anyone who runs through a similar issue where packets are dropped while t... | 0 | 0 | 597 | 2023-03-14T22:01:54.520 | database_errors | serverfault.com | |
388,176 | Implementing TMG over AD | I am a programmer and ask for some help to sysadmins. I've have a Wordpress system (a website) that validates users through an Active Directory, this is done by a plugin. My customer wants to protect that AD with a TMG gateway. I'm reading about TMG and for me it's like reading chinese (I don't understand chinese) but ... | It sounds like your AD LDAP service is exposed to the internet which is general a BAD thing to do as it is a fairly big security risk. TMG Forefront is a firewall that can protect your AD server by "publishing" only the services you want and only to a list of restricted IP addresses e.g. your wordpress server. The only... | 1 | 2 | 623 | 2012-05-11T09:24:50.080 | infrastructure | serverfault.com | |
45,768 | Strategy to deal with multi billion row simulation results and partitioning | I am trying to come up with a good way to deal withthe results of statistical simulations from a dba point of view. We generate about 500 million rows per day, most of which are "garbage" (i.e. the results are seen and discarded as not something we look for) and some need to be preserved. Dealing with them outside of p... | We were doing something not unlike this with clickstream data. We unplugged SQLServer and plugged in Vertica (a columnar analytics ANSI-SQL compliant RDBMS)...we've never looked back. Multi-minute queries dropped to millsecond queries, and data loads dropped from hours to seconds. If/when you start outgrowing it, add m... | 4 | 1 | 428 | 2013-07-05T09:35:17.063 | api_errors | dba.stackexchange.com | |
505,098 | What does this nginx error "rewrite or internal redirection cycle" mean? | [CODE] I am getting these from nginx error log, I don't have a "kowol" sub domain, I don't have any links to qq.com or joesfitness.net on my site. Whats going on? Edit: Nginx default config: [CODE] | It's a strange one all right, though I'm going to bet the problem is with: [CODE] The problem here is that the second parameter here, [CODE] , causes each of the files in your [CODE] directive to be tried in turn. If none are found, it then moves on to [CODE] , which causes the same [CODE] block to be re-entered, and s... | 113 | 126 | 226,927 | 2013-05-05T05:06:39.307 | infrastructure | serverfault.com | |
633,448 | iostat - dm-0 device shows much higher latencies than sdX | We are running linux (Centos 5.x) VM's on top of vmware vsphere 5.5. I am monitoring disk latency using iostat, specifically the await column, but I am noticing strange results with the device mapper/LVM vs the "physical" disks backing LVM. Below is one set of output from iostat -x 5 on one of our fairly active VM's. T... | There's no easy answer since virtualisation is involved. You have a virtual disk sitting on top of a file system on top of a block device presented to a virtual guest which has its own driver presenting a block device to LVM. I don't know for sure if that would necessarily cause such a huge difference, but it may be po... | 3 | 3 | 5,371 | 2014-10-03T22:17:23.497 | pipeline_ops | serverfault.com | |
31,259 | same xpath on the page with dynamic ID selenium java | I have a problem with the two same XPath with dynamic ID on the same page. I have tested for selenium in java, when I need to confirm button on delete upload file. Instead of this, test first submits the first button in order on delete whole record. Both buttons are connected with a modal window so I need to locate the... | XPath is worst (least preferred) way to locate elements. See What makes a good Selenium locator When I do not have a good unique name/CSS locator, I often get a list, and loop over it (using programming language, not XPath expression) to select the desired element by some other attributes. XPath is flaky, can change af... | 7 | 3 | 4,255 | 2017-12-29T15:13:24.100 | data_quality | sqa.stackexchange.com | |
329,522 | apt-get error: "locale: Cannot set LC_CTYPE to default locale: No such file or directory" | When running apt-get I receive error [CODE] . What can I do to fix this error? I am connecting from a box running Mac OS X. | There is definitely something wrong with OS X (May be Lion only) What is the problem? OS X does not correctly set the locale environment. Also, OS X calls the UTF-8 charset in the combined syntax of locales differently than Linux. How to fix it? You can find numerous "fixes" on Google, most of them do not actually work... | 4 | 4 | 4,350 | 2011-11-09T22:56:39.827 | infrastructure | serverfault.com | |
747,622 | can't access my dedicated server via ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic) | I can't access my dedicated server via ssh this's the result of "ssh -v user@server-ip" command line: [CODE] this happened when I configured the ssh connection with public_key i created the authorized_keys file and copy my ssh key inside it. can i fix this or i need to contact the server profider ? | The two I always check on the server [CODE] | 0 | 1 | 4,951 | 2016-01-08T12:33:16.433 | infrastructure | serverfault.com | |
320,168 | What is a best way to add new column to existing table with milions of rows in SQL? | As idicated in the question, I have a table which has around ~3 Mio rows and 12 columns, I would like to alter it by adding one column with some fixed value. What would be the best way to do it? I was thinking to use ALTER table, however I do not know whether it is still efficient in this case, as I do not have much ex... | The best way to do it depends on the capabilities of your SQL Server version and your priorities. If you're running SQL Server 2012 or later, and the Enterprise Edition (or an equivalent like Developer), adding a column with a fixed default value can be a very fast metadata-only operation. It does this by 'pretending' ... | -2 | 6 | 1,261 | 2022-11-24T15:14:06.057 | warehouse_errors | dba.stackexchange.com | |
457,455 | What are the possible problems, when wget returns code 500 but same request works in normal browsers? | What should I be looking for, when wget returns 500 but the same URL works fine in my web browser? I don't see any [CODE] entries that seem to be related to the error. DEBUG output created by Wget 1.14 on linux-gnu. [CODE] | There are probably a gazillion possible reasons for this but whenever I've struck the same issue, whether it be using wget or some other downloader, it's usually because there is code on the site which is designed to respond in certain ways to "normal" web browsers. Along comes wget, or similar, and the code breaks bec... | 0 | 1 | 11,707 | 2012-12-12T14:48:28.550 | api_errors | serverfault.com | |
86,011 | Rollback in Oracle | I am having a problem in Oracle rollback. In my stored procedure I have multiple insert and update statements. If every thing is fine I am sending success message and also I am tracing success status into one Z_AUDIT_HISTORY table. Now same thing I need in fail status also first need to rollback all statements then tra... | There are three things going on here. When handling the exception, you do an insert followed by a rollback. That means that insert is rolled back as well. At the very least, switch the order of the statements: [CODE] Better yet, handle logging in an autonomous transaction. That means that it's a separate transaction th... | 1 | 2 | 440 | 2014-12-12T12:38:14.403 | database_errors | dba.stackexchange.com | |
430,676 | In Icinga (Nagios), how do I configure hosts with multiple IPs? | I'm setting up Icinga (Nagios fork) and I have some machines with multiple interfaces. Some services are only listening on one of them and to check them correctly, I like to know if it's possible to have multiple IP addresses configured for a single host in Icinga. Here's a minimal example: Remote Server: eth0: [CODE] ... | You can define a custom object variable , something like this: [CODE] then call it as [CODE] macro: [CODE] | 5 | 4 | 5,430 | 2012-09-21T15:10:54.633 | infrastructure | serverfault.com | |
518,223 | OpenVPN needs to change its port every time I use | I have a Linode VPS that I setup OpenVPN server on it. Since I'm in China we have to deal with the GFW (Great Firewall), so I use the VPN a lot. The weird part is, that every time I use it, I need to change OpenVPN server's connection or I can't connect successfully. I don't know if it's my installation problem or just... | The GFW does block certain ports, including the default OpenVPN ports. Additionally, starting from the end of 2012, deep packet inspection is being performed to block both TCP and UDP connections using OpenVPN. I'm not sure if this also applies to connections using a CA instead of pre-shared keys; I read that these mig... | 4 | 2 | 570 | 2013-06-25T00:46:44.830 | infrastructure | serverfault.com | |
64,298 | DBCC sqlperf(waitstats) contains signal wait time longer than last time waitstats was cleared | I'm trying to troubleshoot some performance problems on our SQL2000 production server. I ran DBCC SQLPERF(waitstats) and noticed the stats hasn't been cleared in a long time. So I cleared them and did some refreshing and noticed after only a few minutes, OLEDB reported a signal wait time in the order of hundreds of mil... | The signal wait time is aggregated across all cores. Any system with more than one core can have total signal waits longer than the last time you clear the wait stats. | 1 | 1 | 163 | 2014-05-01T15:17:09.457 | warehouse_errors | dba.stackexchange.com | |
242,700 | What are the performance differences of inserting a bunch of data with one INSERT versus a bunch of INSERTs in a transaction? | I'm trying to understand the performance differences between something like [CODE] and [CODE] I'm aware that during a transaction indexes are temporarily built, but I'm not quite sure otherwise. I also don't know the other performance differences between the two. | Using a transaction eliminates the most expensive operation, the transaction log flush, but other per-statement operations can still make the multi-row insert more efficient than single-row inserts. In SQL Server a multi-row insert may modify indexes more efficiently, and insert rows more efficiently, as the locking an... | 1 | 1 | 1,312 | 2019-07-11T23:19:49.250 | warehouse_errors | dba.stackexchange.com | |
189,858 | Can I start with a passing unit test? | Uncle Bob's rules for TDD are specified here. You are not allowed to write any production code unless it is to make a failing unit test pass. You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures. You are not allowed to write any more production code than... | No, because it is possible to write a test that inadvertently passes when it should actually fail. That's why you must make it fail first, so that you can demonstrate transitioning from a failed state to a passed state where you're testing the actual functionality that you want, rather than having a bogus test that pas... | 8 | 17 | 1,903 | 2013-03-09T00:15:25.847 | api_errors | softwareengineering.stackexchange.com | |
903,337 | RAID1 mdadm, automatically fail a drive and avoid a read-only file-system? | I am managing a server with two solid state drives configured in mdadm RAID1. The server is running RHEL6 with an ext4 filesystem. This evening the server went offline shortly after nightly backups began and the console reported disk errors: Upon logging into the console, I found that one of the disks had been marked f... | It does that by default, but granted, I've had similar issues with this. MD is not really eager at failing disks (or in fact repairing sectors by re-writing them, which hardware RAID controllers do). That's why I set up my log monitoring to scan for 'ata exception' and e-mail me when that happens. At least with traditi... | 0 | 1 | 894 | 2018-03-19T07:17:46.843 | database_errors | serverfault.com | |
974,812 | Attempt to create group in Active Directory under OU using ldapadd tool responds with "NAMING_VIOLATION" error | File content: [CODE] ldapadd command error: [CODE] Any advices how to debug/solve it are welcome :) | Haven't tested it but I'd recommend to add the following line to your LDIF snippet: [CODE] | 0 | 0 | 619 | 2019-07-11T11:08:13.083 | infrastructure | serverfault.com | |
4,161 | Join a Linux Docker swarm with a local Windows Docker for test purposes | I'm currenlty trying to connect/join a Linux Docker Swarm cluster with my Windows machine in order to test a stack without sending the stack over and over to my test cluster under Linux. My problem is that I can't join the cluster with my Windows Docker. My cluster had initially 1 manager and 4 workers. I recently crea... | Why do you want to create a new Manager node, risking damaging your raft consensus and cie? I find it way easier to simply expose the docker socket locally, as if you were working inside the node, but with your Windows environment. To do so, simply open a ssh tunnel that exposes [CODE] : [CODE] Refer to [CODE] to see w... | 2 | 2 | 1,512 | 2018-05-24T13:27:26.553 | pipeline_ops | devops.stackexchange.com | |
235,083 | once VPNed into pfSense, unable to hit the public URLs of my websites - they are routed to the pfSense box | I have a pfSense box setup as the firewall/router/VPN appliance at my colo. Once I VPN into the colo (either pptp or openvpn, pptp preferred due to multiple clients and ease of configuration), I am able to hit all my servers by their private 10.10.10.x ip and am able to browse the public internet without issue. When I ... | This is due to the fact that PF functions can't reflect in and out the same interface, it has to pass "through" the router so it redirects you to webconfi. You can setup a .local domain or you can setup Split DNS in PFsense. Instructions for split DNS are in this PFsense KB article. I suggest split DNS to fix this. | 1 | 1 | 1,035 | 2011-02-13T22:39:28.083 | infrastructure | serverfault.com | |
276,075 | How to capture execution plan from sql profiler for filtered queries only | Using sql profiler, we trace all slow queries (filter on duration/reads) to see where we can optimise. Events used: RPC:Completed SQL:BatchCompleted Filter on Duration. If I add the event ShowPlan XML, then I cannot filter on the duration of the underlying query, creating a huge load as hundreds/thousands of queries ar... | The easiest way would be to stop using Profiler and go to Extended Events. The query_post_execution_showplan event has duration built right in and you can use that to filter capture quite neatly. Here's a simple example: [CODE] Just know that capturing plans can be very expensive. | 0 | 3 | 768 | 2020-09-25T11:12:18.290 | database_errors | dba.stackexchange.com | |
159,710 | Why is array_agg() slower than the non-aggregate ARRAY() constructor? | I was just reviewing some old code written for pre-8.4 PostgreSQL , and I saw something really nifty. I remember having a custom function do some of this back in the day, but I forgot what pre- [CODE] looked like. For review, modern aggregation is written like this. [CODE] However, once upon a time, it was written like... | There is nothing "old school" or "outdated" about an ARRAY constructor (That's what [CODE] is). It's modern as ever. Use it for simple array aggregation. The manual: It is also possible to construct an array from the results of a subquery. In this form, the array constructor is written with the key word [CODE] followed... | 19 | 29 | 19,539 | 2017-01-01T23:03:21.547 | database_errors | dba.stackexchange.com | |
487,156 | Can't send mail through ssl with my virtual domains from an external webmail | I having issues with postfix to send mail through SSL from an external webmail. I have several domain setup on my server configured in postfix with mysql. When I send mail with my main domain domain1.com everything works fine but if send mail from domain2.com I get this into my log: Note that if I disable SSL on the we... | Postfix is not listening in [CODE] on port 465, but rather as a standard smtp server. Your [CODE] should contain a (multipart) line simliar to smtps inet n - n - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject ... | 0 | 1 | 460 | 2013-03-12T20:14:45.163 | database_errors | serverfault.com | |
268,075 | Need advice regarding Hard Disk Cloning | The primary hard drive sda of my cent os server has got many 'offline uncorrectable sectors' and hence I am planning to clone the drive. But cloning the entire drive is not a feasible solution, as it is a live server with 450G of data. Also the drive is responding slowly. I need to find a solution which will help to mi... | In detail assuming: -/dev/sda is the live disk and /dev/sdb is the replacement (you can further minimize downtime by installing sdb in a USB enclosure/chassis and doing all formatting/syncing through that) -sdb is at LEAST the same size as sda BE SURE to review it and adjust. I'm doing this with no prior knowledge of h... | 1 | 3 | 279 | 2011-05-10T09:25:34.713 | infrastructure | serverfault.com | |
48,165 | Setting up multiple secure servers for company wide file sharing | The company I work for has multiple offices spread throughout the US. We're trying to come up with a solution that would allow secure file sharing across all the offices. What we are thinking at the moment is: Setting up a Linux server at each site and mounting the shared directories from the other servers via sshfs. T... | If you're not absolutely committed to Linux I'd recommend going down a Windows Server route with DFS, Previous Versions and Active Directory. It's clean, well established, and more than adequately secure, and is probably the best "one stop shop" for file sharing right now. | 1 | 1 | 434 | 2009-07-30T17:05:11.973 | data_quality | serverfault.com | |
195,061 | Query for execution time scheduled task per database | My database backup task that runs every day is taking a long time to complete. It whent from 45 minutes to 3 hours in 2 weeks time. Is there a way i can see which database is problematic? The history doesnt give me much information to go on. | You should be able to take advantage of the script provided in How to find out how long a SQL Server backup took [CODE] If you want to get a list of all backups and not just the most recent you can issue the following: [CODE] | -1 | 4 | 81 | 2018-01-10T12:34:34.817 | database_errors | dba.stackexchange.com | |
108,124 | Why it is called "hash table", or "hash function"? Hash doesn't make any sense to me here | It's now about 4 years of development that I'm using, hearing, talking about, and implementing hash tables and hash functions. But I really never understand why it's called hash? I remember the first days I started programming, this term was kind'of cumbersome terminology to me. I never figured out what is it, based on... | According to wikipedia, it refers to the hash function . If you want to go a step further, the wiki page for hash function says that the use of the word "hash" in hash function originated like so: The term "hash" comes by way of analogy with its non-technical meaning, to "chop and mix". Indeed, typical hash functions, ... | 29 | 52 | 11,900 | 2011-09-14T07:10:50.607 | api_errors | softwareengineering.stackexchange.com | |
656,674 | PHP website grinds to halt for an hour, then runs fine....how to debug? | I have a PHP website which uses $_SESSION variables. It runs on Apache, Mysql and Ubuntu 14.04 on a very resourceful server (Amazon EC2 - M3.X-large) For some unknown reason, the website virtually grinds to a halt every so often, and I don't know why. When this occurs, very few people are visiting the website, and serv... | Another useful tool is iotop, although its possible that (since this is a VM) that its nothing on your system causing the slowdown but resource consumption on the virtualization host / storage. In addition to the tools already mentioned you might want to have a look at hprof and compare the profiles outside and during ... | -2 | 0 | 76 | 2015-01-06T16:23:38.703 | database_errors | serverfault.com | |
295,901 | Possible malware on my server, how to search the source? | Some users of one of our blogs have detected that when loading the page under Windows with antivirus such as Avast or NOD32 a message appears. The message is something like "The remote address has been blocked. URL: "unloadpupil.org/u4offvzxwifsh2q/" IP Address: 64.191.81.117:80 I've tried to find this URL or the IP on... | First change all ftp passwords and do not tell anyone until you fix this. It is obvius that someone who had a password, has a virus. Check .htaccess file (also, check the number of lines inside .htaccess). They usually add >100 blank lines inside .htaccess (so you think that file is empty) and then redirection or simil... | 4 | 1 | 846 | 2011-07-30T21:59:15.430 | infrastructure | serverfault.com | |
322,379 | how do I sort a data by keyword using FIELD in sql | I have this table And I want to sort the MonthAndYear column. I tried using this query [CODE] but the result is this the expected result should be like this Branch MontAndYear Payments Expenses Profits Jacinto MRT December, 2022 2000 0 2000 Maligno December, 2022 10000 1020 8980 Maligno November, 2022 1333 0 1333 Malig... | [CODE] fiddle | 0 | 0 | 15 | 2023-01-21T09:57:43.553 | warehouse_errors | dba.stackexchange.com | |
330,299 | Cassandra client can't connect immediately after Cassandra startup | We have unclustered, single-node Cassandra 3.11.2 instances supporting many separate customer environments. Recently, we have seen many cases where a Cassandra instance is started successfully by a client script, but unable to connect with that client immediately because of a 'connection refused' error. Here is an exce... | Based on your description, it sounds like you're running into a race condition where your app is trying to connect to the Cassandra instance before it has fully started. In the stack trace you posted, it clearly shows that the Java driver is not able to establish a control connection to the cluster because the Cassandr... | 1 | 0 | 347 | 2023-08-14T21:53:03.333 | database_errors | dba.stackexchange.com | |
191,997 | How can I unit-test my REST web service? | I am new to unit testing, I've one REST web method that just calls DB and populates a DTO. Pseudo code is [CODE] My doubt is how to write tests for these methods and type of tests (Integration/Unit) to be included. And for unit tests, does it need to hit the DB. If it were and I pass a customer id and do few assertions... | While unit testing you are not expected to test with a database, or at least, not with a database you haven't prepared for unit testing. Testing with a database, and as such, testing different layers of your application at the same time is generally seen as integration tests . With unit tests you are supposed to test o... | 16 | 18 | 40,040 | 2013-03-26T14:26:45.503 | api_errors | softwareengineering.stackexchange.com | |
105,739 | Oracle 11g Sync Standby Database | Currently, I synchronize the standby database from primary database by copying archive logs from primary server to the secondary server. I do this activity daily. I have heard that there are automated process for this are available. But the problem is that, the primary data gets corrupted, then the same will be replica... | No. This is not possible. There are various options that might help you recover from this situation or even prevent it from happening in the first place though. Think about it like this: how do you determine when the "data gets corrupted"? Imagine that you could decode and scan through the archived redo logs, before th... | 1 | 2 | 925 | 2015-07-02T04:13:20.613 | data_quality | dba.stackexchange.com | |
393,989 | How to deny access to disabled AD accounts via kerberos in pam_krb5? | I have a working AD/Linux/LDAP/KRB5 directory and authentication setup, with one small problem. When an account is disabled, SSH publickey authentication still allows user login. It's clear that kerberos clients can identify a disabled account, as kinit and kpasswd return "Clients credentials have been revoked" with no... | Did some more homework, and am answering my own question. In RedHat's pam_krb5 ( [CODE] ), unless the module participated in the authentication stage, the pam_sm_acct_mgmt() function returns either PAM_IGNORE or PAM_USER_UNKNOWN depending on the module config. It would therefore require changes to the pam_krb5 code to ... | 10 | 4 | 5,254 | 2012-05-30T14:39:40.350 | api_errors | serverfault.com | |
257,215 | The database myDb is not accessible. (ObjectExplorer) | I'm developing an ASP.NET MVC3 web app, which connects to a SQL Server 2008 R2 database. Everything was working fine, until I started getting this error: [CODE] This issue appears also when I try and browse the database in SQL Server Management Studio. It seems I have somehow lost permission to access my database? I ca... | Update Well, after restarting my computer, it all started working again :/ I didn't change anything, hadn't read the replies here yet. Very odd! | 3 | 1 | 36,421 | 2011-04-08T06:51:59.120 | database_errors | serverfault.com | |
270,975 | MySQL: After inserting data into a table, the table remains empty | i'm trying to run this simple query: [CODE] but after it is finished, there is no data in the destination table [CODE] . Unfortunately, there's so much data in the source table [CODE] , that the query runs a little more than an hour. Too long for MySQL Workbench to keep the connection to the MySQL server. It says "Erro... | This may run faster: [CODE] Either would run faster if [CODE] had [CODE] . However, adding the index would take a long time. Increase the timeout. | 0 | 1 | 2,209 | 2020-07-15T10:06:12.200 | database_errors | dba.stackexchange.com | |
1,002,831 | Memory Usage Estimation or Calculation | I have a web application I would like to host on a server that currently hosts other applications and processes. I plan to use Session Authentication for this app so memory use will need addressed. The applications currently on the server and my new application make use of MySQL. For the new application the total numbe... | If you want to have all that information it's better to install "MySQL Enterprise Monitor" using this tool you will have a lot of information about performance, memory usage, disk usage, query,etc,etc all this information in real time. This will help you to take the appropiate desitions and adjust configuration variabl... | 0 | 1 | 77 | 2020-02-12T20:36:06.637 | api_errors | serverfault.com | |
98,802 | new domain not pointing to the right server | i recently bought a new domain and pointed it to another host. i decided to move to more powerful server so then the following day, I added an A record for my dedicated server 23.23.23.23 on my registrar. I have anotherdomain.com already running on this server. [CODE] heres my apache2 conf inside sites-available [CODE]... | From the description above, it sounds like this is probably down to dns server caching time. The dns servers in use by (a) checkdns.net and (b) the servers you're wget'ing from, reflect the updated information. However, depending on TTL, this updated information may not be reflected elsewhere (where the DNS servers in ... | 0 | 1 | 134 | 2010-01-02T11:43:53.287 | infrastructure | serverfault.com | |
613,763 | How to run multiple PHP apps on a single LAMP instance | I am running a single PHP app on a single EC2 instance with LAMP setup. I have pointed my domain to the elastic IP. So currently if I web browse to the elastic IP or the domain, it directly opens my clients website which is in the usual var/www/folder1. Now he requires me to setup a CRM on the same instance. I have cre... | Simply Add another virtualhost entry if in case you want to assign diifferent domain name later : [CODE] OR if you just want access it just like example.com/folder than just add folder inside the directory /var/www/folder1/ named folder2. | -1 | 2 | 961 | 2014-07-18T20:52:52.913 | database_errors | serverfault.com | |
11,546 | Are there laws to protect us from hackers who disclose vulnerabilities prior to alerting the vendor? | Take the example of the recent ASP.NET (and Java Server Faces) vulnerability disclosure at a Hacker conference in Brazil. It's my understanding that the poet tool was demonstrated before Microsoft was even aware of the issue. Are there laws to protect legitimate customers from people who encite the hacker community to ... | None that I know of, and there probably shouldn't be, either. Who knows how many legitimate businesses were compromised between when the tool was demoed and the patch was applied to the server. Who knows how many legitimate business were compromised before the tool was demoed? You seem to be making the assumption that ... | 3 | 9 | 397 | 2010-10-13T02:42:30.063 | pipeline_ops | softwareengineering.stackexchange.com | |
682,706 | Two domains, same NS and Elastic IP redirect | I have two domains; example.com and example-x.com - the former is the main domain all traffic should go to. Both domains are pointing to the same name servers and each have individual hosted zones in Route53. I currently have example.com pointing to my Elastic IP as an A record, when then gets redirected via nginx to w... | Each Route 53 hosted zone is going to have it's own name servers. So for each of example.com and example-x.com, you need to set the name server settings at your registrar to be the name servers displayed on each hosted zone. set the name servers for example-x.com to be that of example.com Most likely, the name servers ... | 1 | 0 | 252 | 2015-04-14T21:35:20.833 | database_errors | serverfault.com | |
437,105 | Why my server's load suddenly becomes awfully high and flaps sharply? | The machine(linux) runs three servers wating for TCP connections, writing in JAVA. After they runs steadily for about two weeks, the system load suddenly raises utterly high to 30.05, 12.93, 9.70(during the two-week normal running, it is often 0.0 , 0.0, 0.0), and it flaps sharply. I log on to it, check by vmstat , fou... | Java, high-memory usage after 2 weeks ... smacks of memory leak, and resulting swapping (I/O bound, which might explain the load quite easily). If, as you say, vmstat looks normal (you checked si / so?) it could be that some other form of comms between java process and either clients or each other aren't being handled ... | 0 | 1 | 180 | 2012-10-11T01:49:55.573 | infrastructure | serverfault.com | |
409,055 | Native ZFS Configuration on Ubuntu | I'm experimenting with Native-ZFS on Ubuntu right now. Here are the drives installed on the system: 2 x 2TB 3 x 1TB a 200GB operating system disk I've got the OS installed and the stable ZFS RC for 12.04 installed via the PPA. In terms of ZFS configuration, I'd like to get the maximum theoretical capacity with 1 drive ... | the only difference between using the whole disk to create a pool and part of a disk is that you have to partition the disk first. so on your 2 TB drives, create 2 partitions, each 1 TB, using whatever partition tool you choose. (that would not be a zfs utility, but instead something like fdisk.) then when you issue yo... | 0 | 1 | 1,344 | 2012-07-19T01:05:30.843 | infrastructure | serverfault.com | |
822,666 | Windows Error Reporting dumps VS procdump.exe | Can somebody clarify if memory dumps produced by WER are the same as those produced by procdump.exe? Can two these tools conflict when used simultaneously? What would be the right approach if my goal is to troubleshoot "service terminated unexpectedly" type of event for a service (on a Server 2012 R2 platform)? | Both procdump and WER are good for capturing user-mode crash dumps when an application crashes. The rule of thumb is that the more comprehensive the dump, the more useful it can be, because mini-dumps and hybrid-dumps and custom-dumps all omit bits of data that might have been useful in a root cause investigation for t... | 4 | 4 | 1,526 | 2016-12-25T17:45:47.263 | infrastructure | serverfault.com | |
158,180 | Compiler Linking: How to handle circular references? | I'm currently writing a compiler for a new language and I'm struggling with the linking aspect of new Types when there exists a circular reference. I've created a dependency tree so that I can compile the Types in the order of their dependencies which seemed to have fixed my problem... that is until I hit circular refe... | In general, you create A and add it to the scope. When you get to resolve B, you go and build B. When that gets to resolving A, it finds a (partially) constructed type and grabs that reference. Then you return back to building A. There are other situations that are more problematic (like cyclical inheritence, dll refer... | 7 | 8 | 1,378 | 2012-07-25T13:45:25.040 | api_errors | softwareengineering.stackexchange.com | |
647,966 | Apache Redirect: to prepend 'www' and Clean URLs | I am administrating an Apache/2.2.15 webserver with several virtual hosts. For one of these hosts I want to always prepend a missing [CODE] . Besides that, I want to add several short-cut URLs. Here is what I have done so far: [CODE] With these rules, accessing an URL of the form [CODE] is rewritten and redirected to [... | Rewrite changing domain A drop in rewrite rule to rewrite example.com → www.example.com is: [CODE] As mentioned by BillThor, [CODE] can be replaced with [CODE] to be scheme independent. What's wrong with the rules in the question? I hope someone knows a solution and can explain to me, what I am doing wrong. This rewrit... | 0 | 0 | 455 | 2014-11-29T16:17:51.240 | infrastructure | serverfault.com | |
1,132,325 | How to get a secure HTTP monitor in NetScaler to send SNI in its request? | We have a content switch in front of a virtual server in NetScaler ADC, and it acts as a load balancer. It is tied to a service group that has an HTTP monitor. We cannot get this monitor to work. The monitor calls an HTTPS endpoint. The endpoint expects a SNI extension (Server Name Indication) in the Client Hello TLS h... | Try filling in the common name in your ssl profile with the hostname it expects in SNI. | 0 | 1 | 444 | 2023-05-31T15:13:22.733 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.