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 |
|---|---|---|---|---|---|---|---|---|---|---|
279,433 | Mysql: Query which orders by default and rank (pin/hold up entries?) | I have a products table which contains all my products. Those products table gets filled permanently with new products. However, I want to have the possibility to "hold up"/"pin" certain products to a place in the returned query collection. Means, I want to set something like [CODE] which contains the number the produc... | You can add to the ORDER BY a IF ot CASE, depending on the complexity or the new order. In you case you ned to add the max(id) into the mix [CODE] [CODE] id | title | rank_index -: | :----------------- | :--------- 4 | Green carpet | 1 5 | Toy | null 2 | Another product | 3 3 | Baby car | null 1 | An awesome product | ... | 1 | 1 | 288 | 2020-11-09T22:47:55.797 | database_errors | dba.stackexchange.com | |
786,692 | Failed to parse inline template: undefined local variable or method | I have below manifests for disk iteration [CODE] below is the define class, used custom function to iterate [CODE] when I run the manifests getting below error, [CODE] The above manifests imported form puppet 3.8 and currently the manifests is testing in puppet 2015.3.1 My doubt is puppet 2015 doesn't support "inline_t... | its problem with inline_template function. I changed it to inline_epp and my test case passed. | 0 | 0 | 2,594 | 2016-06-28T13:01:37.240 | pipeline_ops | serverfault.com | |
420,917 | How to check if an AWS SageMaker endpoint already exists? | I am using the AWS SDK for Java V2 , and I want to delete a SageMaker endpoint and a SageMaker endpoint config. What is the best way to do this? For example, I am currently first using the [CODE] method to see if the endpoint already exists. I do this by calling [CODE] and if I get an exception that includes the phrase... | You can use [CODE] method to search for the resource. And [CODE] object contains [CODE] boolean method. And in [CODE] attribute, endpoint is one option that you could provide. The name of the Amazon SageMaker resource to search for. Type: String Valid Values: TrainingJob | Experiment | ExperimentTrial | ExperimentTrial... | 1 | 1 | 2,026 | 2021-01-11T18:27:21.690 | api_errors | softwareengineering.stackexchange.com | |
24,956 | How to design a database for financial bond prices? | I have following flat file table composed of bond deal names and asociated prices. Each deal name is identified by its unique CUSIP and ISIN codes and each deal name is classified with a certain deal type. One deal name can have many prices over the course of a day. Each price is classified with a different price type;... | Not strictly an answer... but... my 2cents (not interest bearing, might interest ing). So, Security X has identifier (ISIN or CUSIP). This identifier doesn't identify the trade, exchange, currency - just the security. This Security has value, established by trades - which fluctuates over time, place... This is tracked ... | 4 | 1 | 1,218 | 2012-09-26T13:18:02.993 | warehouse_errors | dba.stackexchange.com | |
188,189 | `svn checkout` on the SVN server causes the repo to break with a 301 error | We have an nginx server which proxies to a standard set-up of Apache+SVN. The nginx set-up is a very simple proxy: [CODE] Apache is set-up as follows: [CODE] ...which allows us to access repositories using something like [CODE] . We've been running this set-up now for about 2 years without issue. Recently we've found t... | svn doesn't handle HTTP redirects (that's what the 301 error is), look where the redirects points to (wget, wireshark), checkout from there. Also it is apache specific problem, the virtual host configuration can be breaking it. | 3 | 0 | 950 | 2010-10-06T14:59:36.777 | infrastructure | serverfault.com | |
58,950 | What (probabilistic models) can only output decisions when they are certain? | I'm basically looking for approaches, models, algorithms for the following situation (a fault diagnosis problem): I have an input set $\{x_i\}_{i \in \{1..m\}}$ with $n$ binary features of cases (think of "faults" or "alarms" that fired) and $k$ classes. Each case $x_i$ can belong to at least one class and at most $k$ ... | You can get probabilities for all labels. You can set a threshold for confidence if proba is greater than some value classify otherwise remain silent. | 1 | 2 | 33 | 2019-09-10T07:26:11.370 | data_quality | datascience.stackexchange.com | |
1,089,202 | What could be causing twitterbot to take 6s to download small image assets? | Many (most) times twitter makes http requests for certain images, the response time (as recorded by nginx in the logs) takes 6s. Yet other sites (e.g. facebook) and sometimes twitter, typically get the response in 0.2s or less. It's not that the response time is "just slow", it's that the response time is pretty much a... | Flags [CODE] and [CODE] in the [CODE] output are Explicit Congestion Notifications . When you see [CODE] it means that the receiver detected link congestion and asks the sender (your site) to slow down and the sender responds with [CODE] indicating that it acknowledged the request and reduced TCP window. You can disabl... | 0 | 1 | 94 | 2022-01-06T17:56:14.923 | api_errors | serverfault.com | |
534,609 | /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4) | I was playing around setting up LDAP but then any subsequent network tool that I use comes up with this error output, how do I fix it? [CODE] | This means that libcurl-gnutls was compiled against a different version of libldap_r than what you have in /usr/local/lib. See What does the "no version information available" error from linux dynamic linker mean? Either delete /usr/local/lib/libldap_r-2.4.so.2 or remove /usr/local/lib from your LD_LIBRARY_PATH. | 1 | 2 | 3,715 | 2013-08-28T20:01:33.640 | infrastructure | serverfault.com | |
677,634 | Is it possible to use Dell PERC H710 on a Dell R710/R610 server? | Dell ships R710 with older RAID card H700 which has LSI 2108 chip and ships R720 with H710 card which has LSI 2208 chip. LSI 2208 is much better with SSDs in terms of performance. I was wondering if it'd be possible to install PERC H710 RAID Card onto a older generation R710 or R610 Dell server and use without an issue... | This configuration doesn't appear to be validated/tested by Dell, so it would technically be "unsupported". I've not seen any postings around with test results indicating one way or the other, but LSI's compatibility document for the 9266-8i (based on the same 2208 ROC) Indicates that the R710 is in fact compatible wit... | 0 | 1 | 3,074 | 2015-03-23T16:17:45.470 | infrastructure | serverfault.com | |
409,821 | Debian iptables, netstate. DDOS? | My server has been timing out and crashing lately. I ran this command: netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n Check the picture for result. Does the two IPs in the end ddos me? And how do I block them with IPtables? Thanks. | Given the astoundingly large number of connections, it's possible that the host [CODE] and maybe [CODE] may be DoSing you with a SYN flood (or they may just be scraping your website with an extremely ineffective bot or something). A sample of the traffic could confirm this. To protect against this type of DDoS (and not... | 1 | 1 | 1,546 | 2012-07-21T02:56:08.807 | infrastructure | serverfault.com | |
541,725 | How do I enable SR-IOV for Mellanox ConnectX-3 Ubuntu 12.04.3? | I have a Supermicro 2027TR-HTFRF server that I'm using as a xen server. What I'm wanting to do is get SR-IOV operating for the Connectx-3 card so that I can expose Infiniband to virtual machines. Following this recipe I managed to get the I350 Ethernet to expose the VF's. Adding /etc/modprobe.d/mlx4_core.conf containin... | Check the obvious stuff first: In your BIOS settings, ensure that Intel VT-d and Intel I/OAT are both Enabled . Try the card in a different PCI slot. Contact the package maintainer to report a bug in the tool. | 4 | 1 | 3,794 | 2013-09-26T04:04:08.357 | infrastructure | serverfault.com | |
240,979 | getting syntax error while importing database backups in mysql | I'am going to restore a database backup which has separated files for each table with same table name prefix, and the problem is when I try to import I get this syntax error: EERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right... | Yes delete the first line and try it again. Reason: the comment sequence is "--" when you make many of them in one line you get an error. | 1 | 0 | 471 | 2011-02-28T00:45:45.997 | database_errors | serverfault.com | |
5,345 | IDE alternatives for R programming (RStudio, IntelliJ IDEA, Eclipse, Visual Studio) | I use RStudio for R programming. I remember about solid IDE-s from other technology stacks, like Visual Studio or Eclipse. I have two questions: What other IDE-s than RStudio are used (please consider providing some brief description on them). Does any of them have noticeable advantages over RStudio? I mostly mean debu... | RIDE - R-Brain IDE (RIDE) for R & Python, Other Data Science R IDEs, Other Data Science Python IDEs. Flexible layout. Multiple language support. Jupyter notebook - The Jupyter Notebook App is a server-client application that allows editing and running notebook documents via a web browser. The Jupyter Notebook App can b... | 61 | 25 | 110,096 | 2015-03-18T11:39:40.353 | data_quality | datascience.stackexchange.com | |
521,287 | Monitoring solution for external cheap-ass shared hosting | Some friends of mine started hosting their first startup's code on an extremely DB-constrained shared hosting with surprisingly good customer support; this means that on a given day, while their DB server will refuse connections 10-15 times it's always back up and working the minute they nag customer support. This situ... | If you just want to be alerted when the web service goes down, pingdom's free tier is sufficient. But please, as soon as the startup makes money do yourself a favour and spend some time on a better server (and maybe a paid pingdom account with more alerting features). | -4 | 1 | 99 | 2013-07-06T16:26:09.817 | pipeline_ops | serverfault.com | |
128,923 | Forwarding port 3306 on Mac OS X in order to connect to a remote MySQL Database | I'm on Mac OS X 10.6.2 trying to connect to ubuntu server 8.04.1 at linode. [CODE] I want to set up ssh tunneling so that I can access a remote mysql server. First of all, I'm told [CODE] . This is only after I've tried the command before. How do I manually close a port forwarding session? Second, when I change the com... | This should work: [CODE] The first port number is the local port to use (must not be in use already), the IP in between the colons is the IP to connect to, from the perspective of the host you are sshing into. The second port number is the port to connect to. If you are connecting to a server other than the one you are... | 11 | 18 | 40,789 | 2010-04-02T21:36:50.420 | database_errors | serverfault.com | |
363,360 | How to let non-administrator Windows user install programs specifically allowed by domain? | Possible Duplicate: Allow Domain Users to install software on their computers Is there a way to let non-administrator users to install programs specifically allowed by the domain? | I think your solution here is System center configuration manager which allows you to publish applications available for install on the domain. The user can then go to their control panel > advertised programs and just select for a software package to be installed. | 0 | 4 | 460 | 2012-02-24T11:03:01.167 | data_quality | serverfault.com | |
157,713 | Using linked server from Windows 10 PC | I have been using SQL Server linked servers for years, and they have been working fine. But now when I try to run a query (on a machine with Windows 10) using linked server I get this error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' If I then run the same query on my older machine without Windows 10, I have ... | The error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" means that SQL Server is not running under a service account on the new PC. Open the control panel, go to administrative and last open services. Look for SQL Server and see what it is logging in as. Create a Active directory account (sort of like an accou... | 1 | 0 | 443 | 2016-12-09T18:44:29.597 | database_errors | dba.stackexchange.com | |
75,620 | ubuntu: let a user run a script with root permissions | I have ubuntu 8.04 and I want to write a bash script that runs as [CODE] which every user can run. I myself can do sudo. How do I do that? CLARIFICATION : I don't want to do it with sudo, because then users will have to type their password. I just want them to run the script as root, perhaps something setuid, dunno. | If this was a normal binary, you could setuid by running [CODE] Unfortunately, scripts can't be setuid. (Well you can, but it's ignored). The reason for this is that the first line of the script tells the OS what interpreter to run the script under. For example if you had a script with: [CODE] You'd actually end up run... | 14 | 32 | 51,917 | 2009-10-18T08:57:13.717 | infrastructure | serverfault.com | |
50,191 | Button click was not performed even though element was found | I'm trying to click below button. [CODE] I used below code to click it. [CODE] Even though no exception given button was not clicked and script is not executed completely. Can someone give me a solution ? | Since you are writing your test scripts in Java with Selenium , why can't you simply use the [CODE] method of Selenium to click the button rather than using a JavaScript Executor ? [CODE] This will simply get your job done! Or even this single line would do it: [CODE] Edit: You can also try by clicking the button with ... | 0 | 1 | 539 | 2022-06-02T11:16:13.887 | data_quality | sqa.stackexchange.com | |
1,059,157 | gcsfuse failing to install on centos-7 | Since Thursday 1st of April we have an issue on a GCP comoute VM which is launched from a base centos-7 image daily. When launch the startup script will install gcsFuse using the commands listed here: https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md#centos-and-red-hat-latest-releases This i... | There's a quick workaround but that means skipping GPG repo key verification. I just changed [CODE] to [CODE] and left the rest as it is. Final script would look like: [CODE] This was the result: [CODE] I tested it just now on a fresh ne VM with CentOS 7 with default settings. I also used it as a startup script and it ... | 2 | 1 | 1,561 | 2021-04-02T09:10:17.597 | infrastructure | serverfault.com | |
1,080,773 | How do I view a docker image's console trace, in Kubernetes Dashboard? | I'm working through a tutorial that uses Kubernetes: .NET Microservices – Full Course The instruction is aimed at MS Windows 10, but I'm working through it in both Windows and Linux, just because. The actual code is written in .NET 5.0 using VS Code, both of which work fine in both Windows and Linux. The instruction us... | As is usually the case, when I'm working in something new, and I don't see what I expect, I was looking in the wrong place. The .yaml file I created while following the tutorial created a deployment and because the .yaml specified a single replica it created a single pod. If I set "replicas: 2" I see two pods. And if I... | 0 | 1 | 191 | 2021-10-17T02:38:53.027 | pipeline_ops | serverfault.com | |
164,665 | Conversion failed when converting date and/or time from character string while inserting datetime sql server | I'm working with a project in SSRS (SQL Server Reporting Services) and project is about employees of company,where i should find out age of 200 employees from their Social Security Number (CPR). In Database i have a column called SSN and in this column , i have Social Security Numbers for all employees and all numbers ... | Bad news: social security number isn't in the format of DDMMYYXXXX. (My own SSN starts with a number above 3, for example.) Take out the DATEDIFF and CONVERT functions, and just look at the source data. You'll likely see the offending rows just by eyeballing it: SELECT Users.Id, Users.FirstName + ' ' + Users.LastName A... | 2 | 3 | 1,754 | 2017-02-17T12:30:09.637 | bi_errors | dba.stackexchange.com | |
833,360 | What AWS service to avoid CORS issues with S3 static content and aws backends | Introduction I've got the following architecture deployed on Amazon AWS. The goal is to expose a web application (single page application) acting as an entrypoint at https://app.acmecorp.com . This is a single page application that : serves static resources (html / js / css) needs to access the REST backend via javascr... | You may accomplish your goal with Cloudfront and a reverse proxy approach: First create your distribution with app.acmecorp.com as allomed CNAME and upload a custom SSL certificate for this subdomain. Create two origins, one pointing to your bucket and another pointing to your API Load Balancer. These two origins will ... | 5 | 3 | 3,513 | 2017-02-18T11:03:33.343 | database_errors | serverfault.com | |
887,848 | Mysql master-master temporarily unreachable, lots of 'Sleep' queries | I have a working MySQL master-master setup. I noticed that sometimes, when one of the servers becomes unreachable, the other fills up with queries in [CODE] status. I don't know what the queries are about because the [CODE] column is empty. I enabled slowqueries log but couldn't find anything useful in it. As soon as t... | SLEEPing connections are connections for which complete data hasn't yet been received. They are often used for applications to improve the speed of queries so depending on the application may be being caused by that but in the context of replication it's likely to be because you have a lag in processing, which could be... | 0 | 0 | 208 | 2017-12-13T08:22:55.210 | database_errors | serverfault.com | |
419,900 | Cisco port down and notconnect after changing port speed | In my network, I have a main Cisco 2950 that connects to my outside bandwidth, then individual Cisco 2950s in each cabinet that connect back to the main one. I recently had someone in one cabinet start consuming 100% of the bandwidth in my network. As a quick fix, I set the speed on the main switch to be 10Mbps for the... | Per the comments, the solution was set the port to autonegotiate, rather than manually defining speed and duplex settings. And this kind of problem (as well as other potential issues) is why it's a bad idea to limit bandwidth by forcing a switch-to-switch port to a lower speed and/or duplex setting manually. | 0 | 4 | 9,060 | 2012-08-22T05:51:24.473 | api_errors | serverfault.com | |
438,245 | Best pattern/practice to execute a multi-step code generation process | I am working on a project that generates an API with the possibility of doing CRUD operations based on a high-level description of the resources that the user would like to have in an application. In the process of generating the code, multiple steps have to be taken (for some context, I am generating Python code from ... | There is nothing inherently wrong in having an orchestator doing these steps one after another. When all you need is this fixed step of sequences, don't start to throw some fancy patterns at the code base, this will only overcomplicate things for no benefit. The key point, however, is, to make the input and output of e... | 0 | 5 | 579 | 2022-04-25T15:36:15.577 | data_quality | softwareengineering.stackexchange.com | |
328,071 | Linux - Migration from a server to another | Currently, I have Debian installed on a desktop computer with an Intel P4. It is a web server. As my website starts to be more and more popular, I want to migrate to a real server. So I bought a new server (IBM eSeries 235) and I want to migrate the whole debian system into the new server. The new server has 2 CPUs (so... | In terms of hardware compatibility, if your server does not require proprietary drivers you should be fine. New CPU cores will be detected. One way to find out is to run Debian LiveCD on your server and see what is detected and what is not. With regards to migration you have few options : - Set up your new server from ... | 4 | 6 | 10,303 | 2011-11-05T11:33:42.043 | database_errors | serverfault.com | |
1,003,277 | S6 - slow startup service incorrectly starts second time | I'm using s6 ( http://skarnet.org/software/s6/ ) in order to supervise processes. I have this working well for hundreds of processes across dozens of docker instances and servers. I have a new problem on an otherwise stable system. I set up a service for ClamAV and in /etc/services.d/clamv/run I start the process with:... | The answer is unrelated to s6 - I had the clamd.conf file in the wrong place so it was picking up the incorrect settings. The clamd default is to run in the background - so s6 was unable to supervise the process. With clam starting in the foreground, everything worked as it should. | 0 | 0 | 158 | 2020-02-16T14:46:29.560 | pipeline_ops | serverfault.com | |
199,605 | Error has occurred: Wait on the DataBase Engine recovery handle failed. Check the SQL Server error log for potential causes | I spent several hours, however I can't find the solution for this issue. Overall summary: Final result: Failed: see details below Exit code (Decimal): -2061893606 Start time: 2018-03-07 08:53:49 End time: 2018-03-07 10:10:05 Requested action: CompleteFailoverCluster Setup completed with required actions for features. T... | The setup error log you've included in your question states the following as the next steps needed to resolve the problem: run RemoveNode on all the nodes of this instance, and then run PrepareFailoverCluster and then run CompleteFailoverCluster process again. Have you done that? Also, this error: Wait on the Database ... | 0 | 1 | 1,225 | 2018-03-07T15:22:53.950 | database_errors | dba.stackexchange.com | |
982,610 | Cisco AnyConnect weird interaction with ethernet (DNS?) | We use Cisco AnyConnect Secure Mobility Client (Version 4.7.01076) at our company. Often in the morning after starting the AnyConnect client, I get a weird state with DNS on my setup. The most user visible effect (symptom) is the ping command: The other less visible effects is that I cannot access the shared netword dr... | Make sure you've toggled "Enable automatic VPN reconnect: | 0 | 0 | 923 | 2019-09-09T06:31:31.683 | infrastructure | serverfault.com | |
832,185 | Google Cloud Platform Network Routing | I currently have a 3rd-party vendor connecting to us over a VPN to our collocation. I am trying to move that VPN to a Google Cloud Platform VPN. I can/have created a few VPNs to a project and that is all very simple. My problem lies in the requirements of our 3rd-party vendor. They require that they send you traffic us... | As per Alex suggestion posting an answer to add visibility. As discussed here this is not possible to achieve using Cloud VPN . Nevertheless, a new feature allowing multiple NIC cards can ease the workaround of setting your own VPN gateway . | 3 | 0 | 391 | 2017-02-13T04:49:14.283 | infrastructure | serverfault.com | |
252,163 | How SQL Server caches data in memory | I have couple of questions on how caching of data works Imagine we have below situation: Server restarted or we just ran [CODE] We have a [CODE] that is 50 GB and has columns [CODE] , [CODE] , [CODE] , [CODE] , [CODE] . Column [CODE] is clustered index key, columns [CODE] and [CODE] have nonclustered indexes on them. W... | Test Data [CODE] Q1 When we do "select top 100 * from Table1" - whole clustered index (table) is being read from disk to memory, even if we need just 100 rows ? or just 100 rows (their data pages) are read from disk to memory ? Only 100 rows from the clustered index are read. As a result only their data pages are cache... | 7 | 10 | 3,433 | 2019-10-29T19:18:10.857 | database_errors | dba.stackexchange.com | |
215,031 | git post-receive hook throws "command not found" error but seems to run properly and no errors when run manually | I have a post-receive hook that runs on a central git repository set up with gitolite to trigger a git pull on a staging server. It seems to work properly, but throws a "command not found" error when it is run. I am trying to track down the source of the error, but have not had any luck. Running the same commands manua... | The hook may be running without PATH set to something sane. Have you tried using the full path to [CODE] ? Otherwise, take a look at the environment variables when your script runs. You can use 'export' to dump a list of them, they probably won't be what you think. | 2 | 2 | 3,136 | 2010-12-21T21:03:57.930 | infrastructure | serverfault.com | |
332,692 | how can I view deleted records in an ibd file? | I'm in a situation with a wordpress site where a table [CODE] keeps increasing in filesystem size really fast even though it only has 10000 records and we have to constantly optimize it to reduce the usage. It's my understanding that when records are constantly deleted / inserted they are not actually deleted from the ... | Some plugins are quite abusive with [CODE] . There is no way to do what you are asking about, but I would try [CODE] It may be evident that many of the rows are being used by one plugin. If not obvious in the output, repeat the query a time or two to get some more random stuff and/or catch the plugin doing its naughtin... | 0 | 0 | 424 | 2023-11-01T07:24:17.137 | api_errors | dba.stackexchange.com | |
679,642 | Pacemaker error on failback with drbd | I have two nodes in my cluster with drbd+pacemaker+corosync When the first node fails, the second assumes the service and it's ok, but when we have to failback (node1 back online) it shows some errors and the cluster stops working. It's a CentOS 6 cluster with kernel 2.6.32-504.12.2.el6.x86_64 and these packages: kmod-... | [CODE] Shows that your res_exportfs2 resources failed to stop due to a timeout. It may simply be that it needs a longer timeout. Try configuring a stop timeout for this resource like so: [CODE] If the timeout does not help check the messages log and/or corosync.log at the time shown in the errors for clues (Mar 31 12:5... | 5 | 4 | 1,413 | 2015-03-31T18:20:28.377 | infrastructure | serverfault.com | |
129,616 | Can't promote PostgreSQL warm standby server to start serving data | Scenario: Two CentOS 7 machines, with ips 10.0.2.15 and 10.0.2.4 Both running PostgreSQL 9.4.6. First one (10.0.2.15) as master, and second one (10.0.2.4) as slave, not listening for clients (just mirroring data via WAL shipping). Problem: I can make log shipping work (so, slave receives WAL files), but I cannot promot... | Ok, made it work by using the -R flag in pg_basebackup . This flag automatically generates the recovery.conf file with the right parameters From the official doc : [CODE] | 1 | 1 | 3,628 | 2016-02-17T21:59:23.913 | database_errors | dba.stackexchange.com | |
888,152 | Opcache not working properly | I got problem with Opcache. It's not working as I wish/desire.. This is my opcache configuration [CODE] Since my setting [CODE] is set to false, as far as i know, modifying any php file shouldn't take any affect until i release it with php function [CODE] So I made a little test and I have changed my index.php file (vi... | I found out what the problem was. After going trough code i found out, that some one implemented [CODE] after each request. After removing that line of code, cache is working. | 1 | 1 | 2,079 | 2017-12-14T15:14:56.843 | infrastructure | serverfault.com | |
694,608 | Managed Switch Stability | Our office has been experiencing a series of rolling internet outages over the last couple of weeks which is driving everyone crazy. After isolating a few individual components, my current theory is that this might be due to a failing Dell PowerConnect 5448 managed switch - but my experience with these is limited; henc... | Is this switch buggered? Maybe. Should I replace it? Yup. :) It's a fairly inexpensive piece of equipment, and with the instability you've seen, it seems like a no-brainer to replace it. Perhaps before replacing though, it would be worth re-flashing the latest firmware. | 1 | 2 | 419 | 2015-05-26T22:36:35.350 | pipeline_ops | serverfault.com | |
214,404 | Is it bad practice to check object types with an identifying member variable? | Preamble: I am making a simple board game in C++, in which AI characters move around squares on the board. There are different types of squares, each inherited from an abstract class, each with different effects on the AI character. For example, some are shops where the character can buy stuff, others are workplaces wh... | As Amon pointed out, this is a good application for the visitor pattern . Using it, your AI classes will end up looking something like this: [CODE] And your squares have an [CODE] function that looks like: [CODE] That lets you use inheritance to create appropriate defaults, or force every AI to implement certain decisi... | 4 | 13 | 4,099 | 2013-10-14T19:47:38.073 | api_errors | softwareengineering.stackexchange.com | |
347,759 | Monitor multiple webs within a server in nagios | I would like to monitor/test multiple virtual hosts in an Apache Webserver and besides, I would like that these checks appears as a one service in Nagios -> HTTP. And if one of the web/URL fails, the service appears as failed/alarm. I dont know if it's possible. i've installed Nagios in another server and i want to che... | check_http can only check one site at a time. If you need to check multiple sites in a single service check, you would need to write your own check to implement the logic. This could easily be done in a simple shell script that calls check_http for each virtual host and returns the appropriate failure code to Nagios if... | 3 | 6 | 7,562 | 2012-01-08T01:46:21.537 | api_errors | serverfault.com | |
266,065 | Is it possible to set SQLite DB on server and connect to it in an Android app? | I'm creating an app as a study project. One of requirements is not to hardcode. For this reason, I want to get data from DB with every start of the app and change data stored in DB outside of the app code. I wanted to use Redis and store data in JSON at first, but there were too many problems, because Redis doesn't wor... | No, it's not possible. SQLite is an embedded database engine , which means it runs as part of your program and uses a file (usually) in the application sandbox on Android (so this is not part of your source code). SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separat... | 2 | 2 | 1,239 | 2020-04-29T08:25:49.373 | database_errors | dba.stackexchange.com | |
409,242 | How to go from Simulink to embedded fixed-point DSP processor? | A library of audio algorithms is modeled, tested and verified in Simulink (graphical block diagramming tool). It needs to go from this existing Simulink models down to a multiple embedded platforms (floating and fixed-point DSP processors: Qualcomm, Tensilica, ARM, etc). Several workflows are considered: [CODE] The Sim... | The preferred workflow would be a fully automated one where you have high confidence that the generated C code matches the Simulink models and has the required performance characteristics. A second-best would be a workflow where a single action in Simulink produces an intermediate file (or even C code) that can be fed ... | 0 | 1 | 197 | 2020-04-24T09:56:24.087 | api_errors | softwareengineering.stackexchange.com | |
231,648 | Removing LAMP server from ubuntu server edition with tasksel | I have a lamp server running on ubuntu server edition, and I want to uninstall lamp. [CODE] returns [CODE] . [CODE] , then unselecting lamp-server also returns [CODE] . [CODE] , then either of the previous commands does the same thing. | Try [CODE] If that looks like what you want, remove the [CODE] flag and actually do the uninstall. A variation of that, targeting relevant packages manually, would be along the lines of : [CODE] If there are other packages that depend on things like [CODE] that you want to keep, that might be a better way to go. Again,... | 1 | 1 | 2,676 | 2011-02-05T19:34:08.677 | infrastructure | serverfault.com | |
25,209 | TestRail - Test runs being locked out | My project have been experiencing the following issue: During execution of a test run we aretrying to update some test steps. The system produced a pop up box saying 'could no longer edit the test step'. On closing the popup box, we attempted to edit the test step again and the same message appeared. Hitting F5 to refr... | And answering my own question.... I managed to speak to the system administrator for our TestRail system and he confirmed that there is a setting in the system which locks an active test run after 24 hours. They are thinking of removing it! | 0 | 0 | 204 | 2017-01-31T11:31:48.710 | data_quality | sqa.stackexchange.com | |
421,301 | nginx: worker_proccesses directive doesn't work | I wanted to try to set the worker processes in nginx, but it throws me this error: nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/sites-enabled/default:1 nginx: configuration file /etc/nginx/nginx.conf test failed here is my code [CODE] What can I do to fix this issue? | You said that your error message was: [CODE] Place this directive at the top of [CODE] instead of in [CODE] . The [CODE] directive is valid only at the top level of the configuration. The same applies to all the other [CODE] directives you've used. | 13 | 25 | 44,061 | 2012-08-26T08:37:02.557 | infrastructure | serverfault.com | |
747,675 | Inotify/iwatch cannot see when more files created at the same time | I would need a script that can check files when they are getting uploaded/created on the server. I wrote the script that checks, but I would like to make it run when a create event happens. I tried it with iwatch then with inotify but I experienced the problem, that if more files are copied at the same time inotify/iwa... | There is a great tool called lsyncd. It is for synchronisation but I've used it for changing the permission for uploaded file too. Take a look at example . You can either use it or look through the code, it uses inotify. BR | 0 | 0 | 1,341 | 2016-01-08T16:01:24.687 | infrastructure | serverfault.com | |
646,355 | I can't configure php on serwer nginx for BigBlueButton | Hi I have problem with configuration a nginx for php, because I have installed BigBlueButton and I would install php in /var/www/bigbluebutton-default. When I add this to bigbluebutton in /etc/nginx/sites-available/ and i try in browser /index.php and I see "404 Not Found" My configuration file: [CODE] Sorry for format... | [CODE] You forgot a / in the path. | -3 | 1 | 967 | 2014-11-22T19:08:16.133 | infrastructure | serverfault.com | |
1,065,098 | Some questions about SFP+ fiber networking in general | Ok. So I'm completely new to the world of fiber. I've used Ethernet all my life. We're looking to upgrade some of our infrastructure, and I'm thinking of getting a few of these: 10G Dual SFP+ NIC https://www.fs.com/products/75600.html for our servers and a couple of these to connect them POE Switch with 4x10G SFP+ Upli... | Do these NICs and Switches just have holes in them that I'm supposed to put transceivers in? Simply said: yes. Tranceivers go into their respective slots. I'm used to regular switches with regular ethernet, I get a patch cable rated for the speed I want and plug it in at each point and call it a day. Then you are used ... | 1 | 5 | 643 | 2021-05-29T20:10:07.600 | infrastructure | serverfault.com | |
279,057 | Clean code principles to jquery | A jquery code could get very long in lines and become an spaghetti code. It could bring problems like chaining functions or many lines for getting data from HTML elements. Also it may create a clutter in your codebase and refactoring it could be a huge pain as well. In that scenario, I don't know how to keep basic prin... | I know what you are talking about and have faced the same problem where chaining functions, getting data from HTML elements etc creates a clutter in your codebase and refactoring it could be a huge pain as well. Even if you use MVC frameworks out there but you don't organize your code correctly you will still end up wi... | 1 | 1 | 1,736 | 2015-04-14T17:31:34.270 | api_errors | softwareengineering.stackexchange.com | |
259,741 | Logic rules representation and storage in DB column | I have two kind of "elements". One that generates time series (lets call them generator element ) and the other that based on some logic rules applied to the time series became "activated" ( activable elements ). This simplification represent the time series [CODE] The idea is that the activable elements are activated ... | I'll write this as an answer, even though it's just a few ideas. Breaking down the logical rules in a relational form is probably a waste of time, I would simply store the rules using XML or JSON. A parser friendly format like: [CODE] is maybe beneficial. Note that this is just an example This format can easily be tran... | 0 | 0 | 57 | 2020-02-14T22:38:19.450 | pipeline_ops | dba.stackexchange.com | |
300,947 | Why is this SQL Server table using so much space | We have a table in an Azure SQL Server DB that is using about 15x the expected used space for the number of rows x average row size. This is occuring with a customer that uses Azure SQL (not managed instance), compared to other customers using AWS RDS or an on-prem SQL Server DB where the used space is good. The cause ... | There's a lot to digest / address here based on your description and responses so far, but I'll try to address the main things: You should almost always have a clustered index on your tables. The clustered index itself doesn't add any meaningful overhead in space usage, because it is the data of your table itself, sort... | 0 | 0 | 1,287 | 2021-10-11T06:34:24.850 | database_errors | dba.stackexchange.com | |
225,011 | `Encrypt Connection` causes an invalid certificate error even though server-side encryption is forced | I have a SQL Server set up to force encrypted connections from all client. It has a standard SSL certificate, using Let's Encrypt as the CA. Browsing to the server via a web browser verifies that the SSL certificate is valid and current. However, if one checks [CODE] setting in SSMS, one gets an error about invalid cer... | This did not come up in my original search but I think this related question has the answer , in particular: One difference is that if you use self-signed certificate and the client is the one request encryption (with “Encrypt connection” option checked), then it will attempt to perform server validation on the certifi... | 0 | 1 | 1,645 | 2018-12-14T15:06:08.300 | database_errors | dba.stackexchange.com | |
914,471 | Manual PowerShell DSC module installation | I am working on servers without access to the Internet. I am uploading DSC modules to the server, E.g. AccessControlDSC. The modules are being installed in [CODE] I unzip AccessControlDSC into the modules folder which adds: [CODE] If I run [CODE] The AccessControlDSC module does not show. If I change the folder structu... | You are right, the version folder needs to be removed for PS v4. This means that you can only have one version of the resource module in PS v4. | 1 | 0 | 1,119 | 2018-05-30T15:34:27.393 | infrastructure | serverfault.com | |
196,719 | Cannot remove filegroup with no files associated | I am experiencing some odd error messages on SQL Server 2017 CU3. I am migrating databases and reorganising filegroups. By "reorganising" I mean that I use a stored procedure which creates a partition function and partition scheme on the new filegroup for an object, rebuilds the indexes while partitioning and then remo... | After four months Microsoft Support found a solution. There was indeed a table referring to this presumably empty filegroup. The table was identified by the following statement: [CODE] After moving the data over to a new table and dropping the problematic table the filegroup was successfully removed. The process of mov... | 9 | 4 | 8,298 | 2018-01-31T13:33:49.703 | database_errors | dba.stackexchange.com | |
582,284 | how to efficiently monitor system stat using vmstat? | Am getting the real-time memory stats from [CODE] command. I did this using following steps: [CODE] the command executes in background and writes the log to the file [CODE] . When i see use the command [CODE] I could see the vmstat running in the background and i could also access the log using tail command as: [CODE] ... | Using [CODE] to build this sort of thing is possible, but you will get a lot more results for our effort by configuring something like munin or cacti. All of the stats you are getting from [CODE] plus [CODE] plus more will get turned into pretty graphs. Munin and other similar tools use RRD to avoid having data fill up... | 2 | 0 | 818 | 2014-03-15T06:40:02.180 | infrastructure | serverfault.com | |
185,430 | Best way to flag a row for future deletion? | I have [CODE] table where a row can be marked for future deletion, so I'm looking for the best way to do this. I've thought of two options so far: Add a [CODE] to the [CODE] table. Every night a process will query the table and get all users that match [CODE] with current date and delete them. Create a [CODE] table wit... | Normal guiding principles are to, Not delete data. It's easy to put a boolean flag on the data [CODE] and then for it to seem like the data is deleted to users, without it really being deleted. Do you really want the data gone forever? Not create 1:1 relationships. If it's 1:1 just merge it together. "Match [CODE] with... | 2 | 1 | 1,624 | 2017-09-08T15:05:00.957 | warehouse_errors | dba.stackexchange.com | |
259,429 | sp_configure set at code execution - Pro/con's of turning on/off | The right answer of course is 'it depends', but on the surface it seems to make sense to turn on/off some options when needed as the code sample below for Ole Automation Procedures would do. Could also be xp_cmdshell or Ad Hoc Distributed Queries among a handful of others. EDIT: The question - is this a good or bad ide... | A) Those options can only be switch by logins with elevated permissions. Therefore to alter them at run-time the application must run with elevated permissions. This is a security risk. B) Actions performed in this way run in the DBMS's process. Any instability (bug, exception) they cause will affect the stability of S... | 0 | 1 | 193 | 2020-02-11T16:49:26.910 | warehouse_errors | dba.stackexchange.com | |
759,848 | Any way to query LDAP binds on domain controller? | I'm working on planning a DC rebuild, and I'm trying to be as thorough as possible before demoting the old one. Is there any way to view all LDAP connections to a DC either by source IP or hostname? | If you're trying to be as thorough as possible, keep in mind that LDAP is not the only service a domain controller offers. You could have a 100 Linux servers that are configured to use that domain controller as a DNS resolver, for example. (Or NTP time, etc.) But to more directly answer your question, there are several... | 3 | 7 | 4,222 | 2016-02-25T19:15:58.210 | infrastructure | serverfault.com | |
139,681 | CREATE SEQUENCE using expressions with psql variables for parameters | I've been playing with Postgres for a week or so and I'm seeing if it's possible to set the min/max values for a sequence using an expression. The specific goal is to automate create-scripts for disjoint ranges between servers to avoid key-conflicts in a multi-master setup. For example, using psql: [CODE] This gives me... | You need [CODE] (not [CODE] !) to set psql variables. Unlike assignment in a Unix shell the psql assignment is not capable of arithmetic operations. You could use the psql command [CODE] to execute shell commands, but I'll suggest two different approaches: Option 1: Let Postgres calculate and set new variables with [CO... | 4 | 5 | 3,490 | 2016-05-27T04:51:49.533 | warehouse_errors | dba.stackexchange.com | |
40,642 | SSIS Suddenly Requires DCOM Permissions | I have recently deployed some SSIS packages. I made a job to run them one after another. However, I am now allowed to use MSDTC. So I chained the jobs together like I have done before, but now I am faced with an error message about DCOM. All Internet research points to insufficient permissions on the MSDTC component, b... | The job has several steps. In the step that ran the package, I had to select "SQL Server" as the package source instead of "SQL Server Package Store". This stopped the use of MSDTC. | 1 | 1 | 464 | 2013-04-22T19:29:13.200 | warehouse_errors | dba.stackexchange.com | |
91,149 | How to generate an SQL file with DBMS_DATAPUMP | I am trying to generate an SQL file with the [CODE] api. This tasks is specifically adressed in Oracle support Note 1519981.1 ( How To Generate A SQL File Using The DBMS_DATAPUMP API ). When I copy/paste the code found in the mentioned document, it fails on line 5 with a rather obscure [CODE] The line in question, that... | Ok, I didn't realise that creating such an export file consists of two steps. First, an ordinary dump file must be created, then this dump file is used to create an sql file. Since I didn't have such a dump file, the script as posted would not work. Here are the two steps, so that an sql file can be created [CODE] and ... | 4 | 2 | 4,013 | 2015-02-05T07:02:42.627 | database_errors | dba.stackexchange.com | |
202,354 | Virtual hosts pointing to the same directory | I'm trying to set up a server with Kloxo and two virtual hosts. They are pointed to the same IP, but a different directory. Here's the config of virtual host files. They're in different files, and included in the main httpd.conf file. NameVirtualHost *:80 is uncommented. arturas.conf: [CODE] donkapone.conf: [CODE] both... | This looks a lot like a standard Apache config, but I have never used the :80 on the ServerName lines in mine. The ping thing is normal, because you are using virtual hosts. This means they share the same IP address, so if you use the standard unix ping command that looks up the reverse address, then it will resolve to... | 1 | 2 | 2,534 | 2010-11-16T09:28:43.353 | infrastructure | serverfault.com | |
167,038 | Error when starting .Net-Application from ThinApp-Application | one of our customers uses SAP through VMWare ThinApp. In SAP there is a button that launches an .Net application from a server. When starting the .Net-application directly, there is no error. If the user tries to start the application by clicking the button in the ThinApp-Application, it displays the following errors: ... | It depends on how the application was packaged ultimately. When you say you launch the .net application directly, is that installed in the base operating system as another entry point for that ThinApp? | 0 | 0 | 1,419 | 2010-08-04T15:01:41.530 | infrastructure | serverfault.com | |
443,006 | Unit testing 'opaque' classes / structs | I'm sorry, no good title. I'm working on a C project right now and am writing tests. I usually do a 'struct method' style of programming. So I have opaque structs (no implementation revealed outside of the [CODE] file) and methods that act on pointers to them. But this applies to OOP as well. Typically, when I am unit ... | I need to rely on the push function working correctly. This is my problem, since I can't (and don't want to) access the implementation details, my tests must assume that some of my methods work when testing others. That's fine . And normal. Which is to say, your problem isn't that your opaque data structures are diffic... | 0 | 4 | 229 | 2022-12-22T22:37:09.413 | api_errors | softwareengineering.stackexchange.com | |
617,991 | Increse Pure-FTPd timeout on a Debian server | I need to increse Pure-FTPd timeout on a Debian server. On internet I have found out that I have to edit [CODE] by changing the [CODE] . The problem is that I have no [CODE] but an entire pure-ftpd directory, which content is: [CODE] | PureFTP configurations are a little strange. You should be able to set the timeout by adding a file called "MaxIdleTime" inside the conf directory. The content of the file should be the number of minutes you like to set the timeout to be. Afterwards just restart your server. [CODE] | 3 | 6 | 6,671 | 2014-08-05T07:15:49.203 | infrastructure | serverfault.com | |
302,617 | I'm graduating as a CS major from a bad CS program. How can I catch up? How can I get over it? | I transferred to Computer Science my Freshman year so never really got a chance to look at schools for CS in particular. I breezed through with a 3.9 and never really felt challenged. I did three internships at startups, and all of my employers seemed to really like me so I think I'm ok at programming. However, I'm bec... | First things first, MIT/Columbia/Berkely/Stanford/etc. graduates will always have the upper hand upon graduation. That's just the way it is. Keep in mind that those schools also cost way more than normal schools. They have access to the top instructors and materials, as well as some of the smartest students around, and... | 1 | 1 | 546 | 2015-11-15T10:26:20.537 | pipeline_ops | softwareengineering.stackexchange.com | |
784,663 | How can I configure an HAProxy server running behind a firewall? | I am having trouble with the following: I am setting up an HAProxy load balancer on CentOS 7 behind a firewall. The firewall on the HAProxy server as well as the outside firewall are configured so that the necessary ports can be accessed. Everything is working fine on the internal network. By this I mean that typing in... | There is no difference in haproxy configuration. If you're having problems with being behind a firewall, then the issue is likely with your firewall. Specifically in your case, I bet it's a problem with either your NAT rules or your firewall doesn't allow internal users to access resources via the external IP. | 1 | 1 | 2,947 | 2016-06-17T17:45:38.193 | infrastructure | serverfault.com | |
647,298 | Clustered Apache 2.4 LoadBalancer displays no content on /balancer-manager | I have a Clustered Loadbalancer (pacemaker, corosync, apache 2.4) on CentOS 7. There are two configuration files, one for the actual balanced site and one for the balancer-manager. When I access the balancer-manager site, it practically displays an empty page ( Load Balancer Manager for 10.0.0.20 ..... Server Version, ... | You have add balancer-manager handler in same virtualhost where you have configured load balancer. Also need you need to exclude location with "ProxyPass /balancer-manager !" . Please see the below virtualhost [CODE] With above Virtuahost config you can access balancer manager via abc.xyz.com/balancer-manager | 0 | 4 | 3,829 | 2014-11-26T15:57:50.667 | infrastructure | serverfault.com | |
822,540 | Unable to make incoming connections when VPN is connected | I have a Ubuntu router that I've recently made connect to a VPN service to get around internet filtering. The idea is to use the VPN for everything, the machine also hosts some stuff so the normal IP still needs to work. When the VPN is connected I am not able to ping the external interface from outside the network, it... | Your default route is through the vpn. So the pings come in on the normal interface but go out via the vpn (and are subsequently lost). If your router itself does not need to connect to anything, I would simply not have a default route via the vpn, but use a source nat rule to map client traffic to have 10.34.10.6 as s... | 1 | 2 | 394 | 2016-12-23T22:34:37.607 | infrastructure | serverfault.com | |
60,224 | How can we improve overall Programmer Education & Training? | Last week, I was just viewing this amazing interview by Kevin Rose of Phillip Rosedale, of Second Life. And they had an amazing discussion about how to find, hire and identify good programmer's, and how hard it is to find good ones. Which has lead me to really think about the way we programmer's learn, are taught. For ... | Wow, great question to think about, hard to answer. Because we all have different experiences and desires it's hard to come up with a one size fits all solution. But I'll throw out some opinions I've had over the years on this same topic. 1) Stop seeing job hopping as bad and encourage it. Change companies every few ye... | 13 | 13 | 717 | 2011-03-20T16:54:46.030 | api_errors | softwareengineering.stackexchange.com | |
133,464 | How can I view the number of locks held by MySQL InnoDB, when the total is larger than 10? | We have a problem where our ORM is locking more tables than I'd expect. This is causing deadlock on our production system which I'm struggling to diagnose. I can see, using either [CODE] or by using the innotop tool the top 10 locks, but I'm unable to see the rest. Here's the head and tail of an example output from [CO... | I recommend using the SYS schema that ships with MySQL 5.7. This will show you lock waits (more useful than locks) in a pretty easy to diagnose way: [CODE] | 1 | 2 | 31,900 | 2016-03-26T23:26:30.620 | database_errors | dba.stackexchange.com | |
700,811 | Samba4 share permissions not resolving correctly on server | I'm a bit new to Samba4 and using it as an AD DC. I have a functioning server but seem to be having permissions issues. Currently, if I create a folder (from Windows) in a Samba share, the permissions on the server (from the command line) are in the range of 3000000. Winbind isn't in use on this server (Ubuntu 14.04, S... | I'm sorry, but this won't work with the version you are using. The CIFS plugin and the libwbclient plugin are features of sssd-1.12.0 and 1.12.1 respectively: https://fedorahosted.org/sssd/wiki/Releases/Notes-1.12.0 https://fedorahosted.org/sssd/wiki/Releases/Notes-1.12.1 (at any rate, if you decide to go with 1.12.x, ... | 1 | 0 | 678 | 2015-06-22T21:46:51.203 | api_errors | serverfault.com | |
516,074 | Why are applications in a memory-limited LXC container writing large files to disk being killed by the OOM? | EDIT2: This problem appears to exist as well under 3.8.0-25-generic #37-Ubuntu SMP EDIT: I modified the question from the original title of "Why would the Linux Out of Memory manager be triggered by writing to a file with dd?" to better reflect that I am worried about the general issue described below: I'm running into... | Edit: I'll keep my original answer below, but I'll try to explain what's happening here and provide a general solution for you. Edit 2: Provided another option. The problem that you're hitting here has to do with how the kernel manages I/O. When you make a write to your filesystem, that write isn't immediately committe... | 10 | 13 | 6,588 | 2013-06-15T15:35:40.127 | pipeline_ops | serverfault.com | |
933,684 | Spamassassin regex - is matching almost everything | I wrote a regex rule for spamassassin, which should match some words or phrases in both Subject and Body of emails. The rule is the following: [CODE] And it matches 1 words emails such as the following: [CODE] In the body of that email there is only [CODE] Can anyone spot what's wrong in that code? All the other rules ... | You have typo in first regex, you should use [CODE] instead of [CODE] . You may want to remove last [CODE] in second regex. A [CODE] regex matches empty string (as the 4th alternative inside parentheses is an empty string). So your long regex also matches just [CODE] - two subsequent spaces, carriage returns, etc. I th... | 1 | 2 | 1,241 | 2018-10-02T20:35:26.790 | infrastructure | serverfault.com | |
454,008 | How to massively create "home" folder for users in active directory? | I have 100 users in my forest. We never used 'home' folder capabilities of Active Directory, now i would like to use. The problem is that is less efficient to create manually 100 folders and assign permission. Is there a way to create a automatically folder for each user and assign it to the 'home' folder of active dir... | First of all, the "Home Folder" attribute is a legacy thing. You should probably use either GPO Folder Redirection or a GPO Mapped Drives policy that includes the [CODE] variable to match the folder name. If you use Folder Redirection, you can configure it to create the folders for each user if they don't exist. This i... | 1 | 4 | 28,498 | 2012-11-30T20:13:15.020 | infrastructure | serverfault.com | |
326,434 | Access denied for user 'root'@'localhost' despite full grants for user root | I've logged into the user root and tried running the following command: [CODE] Root has full privileges but can make all the changes. Here's the grants for the root user. [CODE] | I did a grant on 127.0.0.1 even though 'support'@'127.0.0.1' doesn't exist: [CODE] For some reason all these queries started working: [CODE] | -1 | 0 | 249 | 2023-04-26T02:44:33.833 | warehouse_errors | dba.stackexchange.com | |
358,623 | How to configure tomcat to rollover catalina.log log files | I'm trying to configure my tomcat to rollover log files once a size limit is reached. I'm running tomcat as a windows service and am redirecting all my stdout to catalina.log. This is how I configured by logging.properties to set a size limit. But it is not working. logging.properties [CODE] But 1catalina.org.apache.ju... | You are using the FileHandler, documented here: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/juli/FileHandler.html It does not have a "limit" property, it only rotates at day changes. You can configure tomcat to use log4j which is more flexible, see this page: http://tomcat.apache.org/tomcat-6.0-doc/logging.h... | 5 | 2 | 20,549 | 2012-02-10T02:07:19.123 | infrastructure | serverfault.com | |
859,140 | Outgoing internet access over NAT Gateway for EC2 instances + keep incoming access on separate public ips | I'm trying to configure outgoing internet access over "NAT Gateway" for several EC2 instances, so that f.e. [CODE] returns the same ip for all instances & the outside statistics server they connect to show the same ip. At the same time these instances must be still accessible over their public IPs (each ec2 instance ha... | I don't see a way to do this without changing your routing tables. You need two route tables (RT1 and RT2): RT1 associated with the 10.0.1.0/24 subnet: [CODE] RT2 associated with the 10.0.3.0/24 subnet: [CODE] Change your instance's routing table to give the default route via 10.0.3.1 a lower (more preferred) metric. | 1 | 0 | 1,310 | 2017-07-03T17:15:31.283 | database_errors | serverfault.com | |
425,356 | How to model classes that can be extendable? | I have recently inherited a codebase which has a weird problem and I am trying to search for an extensible solution that can solve my issue. Consider I have a model class that is used as a model to populate data in the UI which looks something like this. [CODE] All the information gets reterived via the Webservices and... | How to model classes that can be extendable ? In the field of software development, extensibility specifically refers to inheritance, and inheritance is not the correct approach here. The above class object is used to do the required job. But this model class serves another purpose and that is to pass information which... | 4 | 6 | 487 | 2021-04-12T09:28:34.160 | api_errors | softwareengineering.stackexchange.com | |
174,386 | Can't delete a login due to db ownership — but no dbs are owned by this login | I have a SQL Server 2014 instance that's installed on an OS that I've migrated from one domain to another. The new domain and user account are from separate forests, but they bear the same descriptive names (e.g. [CODE] ). Naturally, I can't log into the database with the old domain account, so I need to delete that. T... | You should check the ownwers of the databases with the following script: [CODE] You might then find out that a database is linked to on of your Windows/AD accounts. There is a slight difference between a SQL Login (native or Windows account) having the role db_owner and an account being the database owner . If you do f... | 3 | 3 | 2,673 | 2017-05-24T03:56:19.763 | database_errors | dba.stackexchange.com | |
277,616 | Domain Driven Design - designing Aggregate Roots | Imagine you're designing an application for organizing Workshops. Workshop itself is quite complicated - it acts as a state machine with multiple possible states and transitions between them. We're using DDD, CQRS and Event Sourcing. And now, the use cases: 1) one should be able to assign TodoItems to a Workshop and pe... | I think you're missing the transactional analysis. Which entities will be modified by each of your use cases ? Will some of them impact more than one entity ? What are your invariants ? Do some of them span multiple entities (e.g., two [CODE] s can't use the same [CODE] at the same date/time) ? Are they true invariants... | 5 | 2 | 1,394 | 2015-03-28T09:19:54.827 | hadoop_errors | softwareengineering.stackexchange.com | |
170,049 | System to keep folder synchronized with remote server | We have a Linux server with a couple of NFS shares on our local network, and we want to be able to access the data on those shares from some remote machines outside of the LAN. What we are planning on doing is an cron job on the remote machines triggering rsync to keep the folder up to date. Just wondering if there's s... | The best way I have found of doing this is with AFS : http://en.wikipedia.org/wiki/Andrew_File_System N.B. It takes a bit of work to setup, but once its done right its well worth it. | 3 | 2 | 230 | 2010-08-13T03:57:05.187 | infrastructure | serverfault.com | |
758,817 | What's the redirect port for in Tomcat? | It's hard to make sense of tomcat documentation and looking at server.xml you will find a salad of ports that may be hard to understand because it's not really explained properly, or extensively, in the documentation. For example, this line in the config file [CODE] [CODE] And here you can find yet another redirect por... | As it is defined in the documentation, the redirect port will come into picture when SSL request will come to the server and since http connector port cannot handle SSL requests it will redirect to the port defined. But their must be another section defined in server.xml file in which the defined redirect port will act... | 27 | 17 | 65,747 | 2016-02-21T23:12:42.803 | infrastructure | serverfault.com | |
972,895 | What causes a server to block internet access | I am running an API on a server. A customer is polling the server with API requests 8-10 times per second. I know this is bad practice and I am working on getting the customer to change. But in the meantime, after a while the server blocks internet access. I cannot see outside my internal lan and I cannot see it from t... | I suggest to test out with a small SOHO router if you can or remove DPI from your router. As it work in the LAN and not via the WAN please know that some enterprise class router do DPI, deep packet inspection, and can have difficulty when large number of traffic passtru them. I had similar issue with a old Cisco ASA an... | 0 | 1 | 818 | 2019-06-26T01:55:11.097 | infrastructure | serverfault.com | |
283,852 | sys.dm_tran_version_store_space_usage reports always zero space used | I was learning about RCSI when I discovered something strange on Azure SQL Database. The DMV [CODE] always reports 0 as the space used by the version store, even if I run a CRUD workload just before. To demonstrate this behavior, I created a little test. [CODE] I ran this script both on SQL Server 2019 Developer Editio... | Azure SQL Database uses Accelerated Database Recovery, and so RCSI doesn't use TempDb for the version store. Instead the version store is inside the database to enable "Instantaneous transaction rollback", which is especially important during a failover: The persisted version store is a database engine mechanism for pe... | 4 | 4 | 274 | 2021-01-24T00:04:16.453 | pipeline_ops | dba.stackexchange.com | |
1,034,055 | Redirecting subdomains - only first subdomain works | I have two domains running on Apache 2.2 for Windows. Domain 2 has both secure and non-secure access and works fine. Domain 1 has the domain and four subdomains. The subdomains redirect to ports on another server on the same network. Each subdomain has its own DNS A record. The domain and subdomains are: domain1.org me... | I finally got this work and I also got the Proxypass working with the same fix. Adding NameVirtualHost requires an IP address and cannot be done with a wildcard. Once an IP address is specified here the same address also needs to be in and in the Listen statements. It didn't work with my outside IP address but did work... | 0 | 0 | 111 | 2020-09-16T01:12:10.243 | infrastructure | serverfault.com | |
199,333 | FileZilla makes my hoster block me | It's like in The Beatles : "Yesterday, All my troubles seemed so far away, Now it looks as though they're here to stay..." Well I hope to solve my problem with your help. When I make an attempt to login via FTP to my files it sends me an error saying, that [CODE] . I spoke with support from my host and they say, that t... | The default connection timeout value in Filezilla is 20 seconds. So, if you don't transfer anything within that time frame, Filezilla logs you out, and then logs you back in when you do something on the client. Perhaps also the fact that Filezilla, if the login fails, retries right away is tripping your hosts defense s... | 0 | 2 | 307 | 2010-11-08T12:11:49.387 | infrastructure | serverfault.com | |
247,165 | How can I know what hashing algorithm SQL Server used to decrypt the encrypted data when using the function DECRYPTBYPASSPHRASE? | My question is related to the following experiment with two instances: SQL Server 2017 Express instance (Microsoft SQL Server 2017 (RTM-CU16)) SQL Server 2014 Express instance (Microsoft SQL Server 2014 (SP2-CU18)) I used the function ENCRYPTBYPASSPHRASE to encrypt a text and used the result as the @ciphertext for DECR... | But how does it know what was the algorithm used to encrypt data if there's no argument related to that on the function DECRYPTBYPASSPHRASE? Is it part of the encrypted data? Yes, right on point. I'm going to use the following for the output: [CODE] If I run this on my 2014 instance, I'll get the following for Encrypte... | 13 | 16 | 3,266 | 2019-09-06T12:27:59.937 | database_errors | dba.stackexchange.com | |
934,417 | Why can users delete files on Samba share when they apparently don't have permission to do so? | I'm trying to wrap my head around file permissions on a Samba share and the following puzzles me why both user1 and user2 can delete each others files even though they don't seem to have the permission to do so. This is what those files look like on the ubuntu machine running the samba server: [CODE] In case it somehow... | Ok, I'll try to sum it up here and give you a quick explanation about how Linux permissions work (without including ACLs) and why they work like that: First in short to give the answer: to delete a file from inside a directory you need write permissions on the directory and not on the file itself. Explanation: A direct... | 1 | 5 | 3,496 | 2018-10-07T23:28:43.533 | infrastructure | serverfault.com | |
11,341 | Which datatype to store XML data in: VARCHAR(MAX) or XML | I am defining a schema for a new set of resources using SQL Server 2008... In this case, each record ( e.g. row ) will need to store XML fragments. From time to time; although not frequently; I'll need to query the XML to find element and attribute values. If left to my own devices, I would tend to use the XML data typ... | If Queries against the XML will happen by sql server xml capabilities, then use XML type to store a xml to avoid casting And keep in mind, that XML type may be stored little bit slower due to xml validation, but underlying type of XML is ordinary varbinary(max) | 16 | 7 | 18,237 | 2012-01-22T16:09:02.643 | database_errors | dba.stackexchange.com | |
13,434 | Backup of Active Directory | What is/are the best way(s) of backuping up the Active Directory on a regular basis? Background: We have a small system with 2 Win2003 Domain controller. We have periodic backups of these machines, and daily backups of the important file share data. Recently we had 2 failures that lead to a loss of about 2 weeks worth ... | Yes, backing up session state is the correct method. You may want to bring up another DC if your hardware is that flaky. That way you have a DC running still. When ever you do a lot of work within AD do a quick session state backup. They aren't that big, and shouldn't take very long unless your AD is huge, in which cas... | 5 | 7 | 670 | 2009-05-28T01:48:29.107 | database_errors | serverfault.com | |
173,826 | Tuning a query to fetch all the records in a day with certain status | We are currently using Oracle Database: Consider a table [CODE] with the fields [CODE] , [CODE] , [CODE] , .... The below query gets executed multiple times in a day. [CODE] Possible values are [CODE] , [CODE] , [CODE] . Currently only TRAN_ID is Indexed, so the table goes through a full table scan. Have the following ... | B-tree Index on Status won't help - it has 3 distinct values, and full table scan will be much faster. Bitmap index should work better in such case, but [CODE] table name implies lots of DML , so it shouldn't be used. Some improvement may be gained by partitioning transaction table by status, and then create local inde... | 2 | 1 | 104 | 2017-05-17T14:44:33.200 | database_errors | dba.stackexchange.com | |
886,900 | Problems creating AutoScaling Group with a Network Load Balancer (NLB) on AWS using Terraform | I'm trying to create na NLB using Terraform v0.11.0 (my application doesn't use HTTP, so I cannot use an ALB). Looking in the Hashcorp documentation, I could create the following code: [CODE] I run [CODE] and [CODE] and everything goes well, but after run [CODE] , Terraform spend some time trying to create the AutoScal... | Try using the [CODE] option on the ASG. [CODE] | 3 | 5 | 5,525 | 2017-12-06T16:58:11.737 | pipeline_ops | serverfault.com | |
161,753 | Tomcat handles http with port 443 and don't https ! | have a misunderstanding what's going on with Tomcat! I have my app deployed as ROOT.war on Tomcat. Have one URL that I want to be reached only via SSL. Tomcat process this URL good: http://localhost:443/securedUrl and don't process this URL: https: //localhost/securedUrl Why? A piece of $CATALINA_HOME/conf/server.xml: ... | HTTP can happily run on port 443. HTTPS is not HTTP - it's HTTP over TLS or SSL - and it can happily run on port 80. They're simply not the same: http://localhost:443/securedUrl and https://localhost/securedUrl do not point to the same resource. | 0 | 3 | 2,142 | 2010-07-19T11:11:47.817 | infrastructure | serverfault.com | |
661,704 | Azure closing idle network connections | I'm running a proprietary client/server application on a single instance windows server 2k8R2 azure VM. The client is very dependent on a connection with the server. However if I spend a couple of minutes without any activity, something on the Azure end forcibly closes the connection (as far as I can tell from the logs... | You're hitting a design feature of the software load balancer in front of your VMs. By default it will close any idle connections after 4 minutes, but you can configure the timeout to be anything between those 4 and 30 minutes: Configurable Idle Timeout for Azure Load Balancer However, it is a good practice both on the... | 10 | 11 | 38,093 | 2015-01-22T23:10:14.550 | infrastructure | serverfault.com | |
76,110 | What permission do I need for viewing... all current user permissions? | I'm maintaining an application that runs with SQL Server 8.0.760 SP3. When I try to "see" the permissions of the current user I'm logged with, I do this: [CODE] However, the server returns this error message: [CODE] If I try the following query: [CODE] , I get the same error message. How can I list all the current user... | Thanks to this thread: 'how to check login user permission in sql server 2000' , I managed to see the current user permissions. I run the following query: select o.name as [table], --u.name as through_user, isnull(min(CASE p1.protecttype WHEN 204 THEN 1 WHEN 205 THEN 1 WHEN 206 THEN 0 ELSE fixedroles.reader END), 0) as... | 1 | 0 | 678 | 2014-09-09T15:17:40.020 | database_errors | dba.stackexchange.com | |
83,657 | Toad 9.7.2 for Oracle hangs on Windows 7 | I am using Toad 9.7.2 on Windows 7 64 bit. It is generally working fine but there is one problem. When I click on certain tables in "Schema Browser" and then click on "Data" tab to see records in them then Toad hangs. This is only happening for some tables and most of them are working fine. If I run SELECT query to ret... | I fixed the issue by going into [CODE] and there I unchecked [CODE] | 0 | 1 | 1,187 | 2014-11-26T05:45:51.263 | database_errors | dba.stackexchange.com | |
1,074,722 | python gspread not working on GAE | I had a program that ran for years on Google App Engine. It was written in python and uses gspread. It suddenly stopped working on GAE and returns a 404. I tested it locally and it works fine. | I’ve found this open public issue tracker where it seems it could be a similar issue than yours. I would suggest you add a comment in that public issue tracker explaining your issue. | 0 | 0 | 109 | 2021-08-16T16:44:45.190 | infrastructure | serverfault.com | |
723,541 | Fail2ban fail to start with several error messages | I've installed [CODE] for my CentOS 6, but when it starts, I get the error message [CODE] Does anyone how to fix it? | Perhaps the mail.log file doesn't exist. Perhaps CentOS by default uses a different name for the mail log file. Perhaps you should go and check /var/log. Perhaps you will be educated. | 0 | 2 | 277 | 2015-09-20T06:40:00.723 | infrastructure | serverfault.com | |
61,692 | Comparing INT and NVARCHAR | T-SQL newbie here. I am sure you guys can help me with a little problem I'm having. Here's my situation: I want to do a select from a certain table. And with that select I want to display the count of a referenced entry in another table. So here's my script: [CODE] So here's my problem, the column [CODE] shows 0, altho... | I solved it myself. In case someone runs into a similar problem: [dbo].[MemoCount] also has an ID Column. so i changed [CODE] to: [CODE] Apparently SQL took the column [dbo].[MemoUnion].[ID] to compare it with [Reference]. That problem was of course not solvable for you guys because I never posted the Columns of [dbo].... | 0 | 1 | 1,386 | 2014-03-25T14:20:57.363 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.