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 |
|---|---|---|---|---|---|---|---|---|---|---|
1,042,268 | Configure postfix to forward a single final destination address to an external relay host | I have a Postfix server that manages internal mail, being the final destination for the organization domain. Anyway the external SMTP for the domain is managed by the ISP server. The messages are then dispatched to internal users mailboxes by fetchmail. Since one of the users receives the email also on its phone, fetch... | By using the [CODE] table it is possible to define the smtp nexthop host to be used for delivery of messages for a specific address. [CODE] table shall be enabled in main.cf file with directive: [CODE] To route email for a single address to a specific relay host the following line shall be present in [CODE] table: [COD... | 0 | 0 | 474 | 2020-11-12T09:18:18.603 | infrastructure | serverfault.com | |
820,102 | journalctl vacuum not working | I recently started using Fedora 25 and I'm trying to clear the journal logs manually but it's not working. For example: [CODE] I try to clear with: [CODE] It's not freeing anything. Any ideas? The system is freshly installed and I haven't touched the [CODE] yet. Thanks. | From the man page of [CODE] . Note that running --vacuum-size= has only indirect effect on the output shown by --disk-usage as the latter includes active journal files, while the former only operates on archived journal files. So it seems as you only have active journal files which are not cleared by [CODE] . | 2 | 6 | 2,613 | 2016-12-11T17:41:11.407 | infrastructure | serverfault.com | |
431,303 | File system loop detected in /var/named/chroot/var/named/ | The problem start with a message [CODE] . After investigating a little (with google's help) I found : find: File system loop detected; [CODE] /var/named'. What I don't know is what to do next. I found this on centos.org : [CODE] the inode number are the same but I don't know exactly which folder to delete and what to d... | If this was part of an intentional bind-chroot install, (I believe) when you remove the directory and recreate it, the inode numbers will of course then be different. However, once you restart the named service it's init script will once again mount --bind /var/named to var/named/chroot/var/named and you will logically... | 2 | 2 | 8,012 | 2012-09-24T09:02:28.567 | infrastructure | serverfault.com | |
1,054,540 | RDS Postgres could not be upgraded because one or more databases do not allow connections | I'm using AWS RDS to run a Postgres server, and I'm trying to do a major upgrade from 9.6.11 to 10.15. I'm using aws-cli to request the upgrade, like this: [CODE] The database changes from "Available" into "Upgrading" state, then 2-3 minutes later it goes back to "Available" and the version is unchanged. A new file cal... | The Postgres docs describe how databases can be available or unavailable for connection. It turns out that I had a few other databases hidden away inside this RDS db instance. Here’s how I found them: [CODE] Then once I found them, simply re-enabling connections on each database was sufficient. [CODE] After doing this,... | 0 | 0 | 1,351 | 2021-02-21T23:17:03.003 | infrastructure | serverfault.com | |
491,127 | EXT4 performance has become really bad on system with lots of small files | I have a small embedded device that has only 128MB of RAM attached to this device is a 2TB USB2 hard disk I've been very happy with the performance of the device up until recently when either the number of files has cross a threshold of the capacity of the disk has cross a threshold (I'm not sure which) on the disk are... | Very good problem description. Based on what you said, I think what you are seeing is slab usage going high. A good experiment would be to run a [CODE] and [CODE] over a 3 second delay while you go deep into the fs hierarchy and discover the 3000 files. What essentially is happening is that the kernel will traverse the... | 10 | 9 | 3,953 | 2013-03-25T14:55:32.887 | infrastructure | serverfault.com | |
110,606 | Great Programmer Productivity - Accounting for 10,000 fold difference? | A great lathe operator commands several times the wage of an average lathe operator, but a great writer of software code is worth 10,000 times the price of an average software writer. - Bill Gates Say there's a "great" software engineer and an "average" software engineer on the same team. How can you account for one en... | The point of the quote isn't that one is 10K times more productive, it's that one is 10K times the worth of the other. Software has the unique condition where a defective design or implementation can lay dormant for years (a part that is machined wrong will usually just "not work" and not make it into the field), well ... | 19 | 57 | 6,401 | 2011-09-25T21:14:19.383 | api_errors | softwareengineering.stackexchange.com | |
1,081,542 | Nginx try_files doesn't work inside server block | [CODE] I want to know what is the cause of this evaluation, I couldn't find any reliable explanation neither on documentation nor on forums. By the way I've experimented the following scenario: Removed location / {} block and it worked as intended. I know that when the request is made to the server it first evaluated b... | See how nginx processes a request . But I will add a couple of caveats that specifically address your question and are easily observed but may not be well documented. You mention [CODE] and [CODE] directives, but these belong to the [CODE] which have there own evaluation rules and do not behave the same as the core dir... | 1 | 0 | 269 | 2021-10-24T15:14:36.027 | infrastructure | serverfault.com | |
44,875 | How reliable are model performance reportings? | I had a conceptual doubt about estimating and reporting a classification model's performance. Say my model works with range of depth values and gives out different readings of test errors. We choose the model with depth having lowest test error rate as M1 Now if we want to report our model's performance on a hidden tes... | The question of the measured test error of a classification model is reliable, hence if the test error on unknown set $T_1$ is the same as on $T_2$ is hard two answer. It depends on the following factors: How many digits of the error are reported? How many samples have $T_1$ and $T_2$ ? The more digits are reported, th... | 0 | 1 | 42 | 2019-01-31T19:13:36.530 | data_quality | datascience.stackexchange.com | |
168,822 | PostgreSQL/PostGIS 9.6 broke my compound index | In PostgreSQL 9.2 I had no problem creating the an index that had both a geography (postGIS) type and and integer as a compound index. But now (9.6) it complains on creation of the index and I don't understand the hint it is providing: The columns and data are all created properly, Postgres is complaining on the create... | You need to install a specific [CODE] in your database: [CODE] According to PostgreSQL documentation on btree_gist : btree_gist provides GiST index operator classes that implement B-tree equivalent behavior for the data types int2, int4, int8, float4, float8, numeric, timestamp with time zone, timestamp without time zo... | 12 | 11 | 1,572 | 2017-03-31T21:45:32.333 | database_errors | dba.stackexchange.com | |
857,271 | Better performance when HDD write cache is disabled? (HGST Ultrastar 7K6000 and Media Cache behavior) | Attention, please. Long read. During initial performance tests of Hitachi Ultrastar 7K6000 drives that I'm planning to use in my Ceph setup I've noticed a strange thing: write performance is better when disk write cache is disabled. I use [CODE] : [CODE] When write cache is disabled: [CODE] When write cache is enabled:... | It seems that recent HGST drives behave differently, with [CODE] controlling both the DRAM cache and MediaCache. Moreover, MediaCache seems active on [CODE] (cache enabled) rather than on [CODE] (cache disabled). Let see how this HGST HUS722T2TALA604 disk behaves on some [CODE] runs. disabled caches ( [CODE] ) and [COD... | 7 | 1 | 4,449 | 2017-06-22T12:38:59.170 | infrastructure | serverfault.com | |
1,039,393 | The Debezium Kafka based KAFKA_ADVERTISED_LISTENERS property setting is ignored | I have a Docker Compose based Swarm with a Zookeeper service that starts fine, but the Kafka service cannot start. It keeps using the default [CODE] property: [CODE] And of course it cannot find the listeners specified in the map: [CODE] My [CODE] file contains: [CODE] | I was doing something wrong, by specifying an hard coded hostname in the [CODE] property: [CODE] After replacing the [CODE] hostname by the [CODE] IP address, as in: [CODE] the issue was gone and the Kafka service could start. Note that the advertised listeners keep the container name for accessing the Kafka service fr... | 1 | 0 | 909 | 2020-10-20T08:04:58.117 | pipeline_ops | serverfault.com | |
213,282 | Updating a table with duplicate id's while avoiding " single-row subquery returns more than one row" | I'm currently making SQL that'll update data from 1 table, based on data from another table for my company [CODE] My goal is to make [CODE] 's [CODE] to consist of the colors from [CODE] , however the [CODE] is not unique, instead it's cvr of the companies, therefore they appear multiple times giving me the error [CODE... | The [CODE] clause requires a single value as the error message indicates. Sounds like you have a data model problem, but if you need a quick fix, your select query can be modified to return a single value; the following a unique [CODE] from [CODE] if more than one [CODE] matches your where clause: [CODE] If I had more ... | 2 | 1 | 3,078 | 2018-07-26T10:25:04.253 | data_quality | dba.stackexchange.com | |
470,888 | Azure hosted website gives 404 error when domain name is preceded by www | mydomain.com works fine. www.mydomain.com gives [CODE] I don't want people to use www.mydomain.com instead of mydomain.com , but I also don't want the 404 error in their face if the do. The A record at GoDaddy looks like: Host - Points to - TTL @ - ip address - 600 seconds How to fix the issue so that if user types in ... | The solution to the problem was to have both domain names (mysite.com and www.mysite.com) explicitly set up in Azure as custom domains. Then to use URL rewrite module in IIS (already installed in Azure) by adding rewrite section in the Web.config file: [CODE] | 2 | 2 | 4,209 | 2013-01-20T20:03:55.810 | infrastructure | serverfault.com | |
877,689 | VBS Script passing argument? | Hello everyone I have this script in VBS: [CODE] Everything seems to work fine expect the variables that i pass in the command line "sArg1, sArg2 and sArg3" get passed as exact text instead of variables, I have had this working on the past but I don't remember what I did to fix it. csript.exe c:\folder\script.vbs tests... | Where are you assigning your command line arguments to the variables you declared? [CODE] You have to retrieve and assign the variables. [CODE] You don't even have to declare them first if you don't want to. | 0 | 0 | 1,432 | 2017-10-09T23:03:59.490 | infrastructure | serverfault.com | |
196,949 | What is the best way to load balance javascript applications? | I write a lot of javascript applications and in many different circumstances the browser will become unresponsive or give a "slow script" error. Even when following best practices, initializing large data sets, complex animation, or when too many event handlers fire at once, I have to include extra setTimeouts or reque... | You have a very short span of time in your hands. Before talking about threads: The DOM is slow Really. If your website is DOM-heavy, then find ways to offshore these manipulations. Use CSS3 transitions, use canvas for animations, avoid unneccessary paints , etc. There are also techniques to make it faster, like Docume... | 5 | 13 | 3,778 | 2013-05-03T14:50:33.080 | api_errors | softwareengineering.stackexchange.com | |
850,256 | SNI for Multiple Hosts on Lighttpd | Inherited lighttpd server, I'm somewhat clueless on it. Trying to use SNI to install a 3rd SSL cert without another IP. Currently the SSL config in lighttpd.conf looks like so: [CODE] Trying to add the 3rd cert, like so: [CODE] Something not working about it, lighttpd won't start/restart when the config looks like this... | Is your domain3.com.pem file correct? Lighttpd uses a slightly less common construction where the [CODE] should not only contain the signed certificate that your CA returned to you, it should also contain the associated private key. It should look like: [CODE] | 1 | 2 | 1,188 | 2017-05-15T19:14:24.850 | api_errors | serverfault.com | |
776,682 | SPF, CloudFlare, Google Apps - Email sent through Contact Form marked as spam | One of the main reasons of putting your server behind CloudFlare is to hide your server's IP address so an attacker can't DDoS your IP and render CloudFlare obsolete. By putting your server behind CloudFlare their IPs are exposed to the outside world so your server's IP address is only known to you and nobody else. The... | A couple of possible solutions come to mind: If you are only ever sending email to yourself, you may be able to whitelist your own server on the recipient side (not through SPF). Having a contact form on your web site does not actually necessitate that it's your own web server that also delivers the email; there are pl... | -2 | 2 | 753 | 2016-05-13T20:55:57.957 | infrastructure | serverfault.com | |
144,713 | PSTN Trunk TDM400P Install on Asterisk / Trixbox | I'm trying to get a TDM400P card with FXO module to connect to our PSTN line. The card is correctly detected by Linux: [trixbox1.localdomain asterisk]# lspci 00:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface I've run setup-pstn which produces the following output [CODE] dahdi_scan r... | It's a while since I've used FXO modules with asterisk and BT, so I can't confirm that this is still necessary (or that trixbox doesn't do it on it's own), but have you followed the instructions in the " TDM 400 FXS & BT POTS lines " section on this page: http://www.voip-info.org/wiki/view/UK+Asterisk+Details Specifica... | 4 | 1 | 6,334 | 2010-05-24T12:36:06.010 | infrastructure | serverfault.com | |
316,260 | Apache2 phantom log entries | This is the one of numerous same lines in apache2 error.log [CODE] Problem is that this error was in old version of file. File was updated about three weeks ago. Now there isn't split() in file, but error continues. Nginx 1.06 + Apache2.2 + PHP5 | [CODE] functions are often used by hackers to add encoded code into old/vulnerable files getting it to do various things. This was likely injected code by a hacker. As suggested by quanta, run a grep in your directory to find all occurrences of this. If need be, review your files one at a time. Someone may have gained ... | 0 | 1 | 151 | 2011-09-28T06:23:39.130 | infrastructure | serverfault.com | |
126,054 | PostgreSQL lots of writes | I am using postgreSQL for a scientific application (unsupervised clustering). The python program is multi-threaded so that each thread manages its own postmaster process (one per core). Hence, their is a lot of concurrency. Each thread-process loop infinitely though two SQL queries. The first is for reading, the second... | I am the author of dstat and a system engineer. I noticed a 60% avg iowait time. Given your output I would say that your disks are quite busy. You could try the new --disk-util plugin option in recent dstat versions. This will show you the utilization rate of your disk(s), and I would expect it to be close to 100% for ... | 2 | 4 | 954 | 2010-03-25T02:02:26.443 | database_errors | serverfault.com | |
75,609 | How to solve (or even effectively think about) a complex real-life multivariate problem | In my work, we get estimates. An estimate may include up to 12 different categories of costs (Development, Legal Travel, etc.) to produce any number of assets/deliverables from dozens of different deliverable categories (TV Spot, Radio, Podcast, Talent Session, etc.). Each estimate will come with a quantity (simple int... | I would suggest using a genetic algorithm of some kind. The idea is to assign hypothetical costs to each item, then check how well the hypothesis matches the data you have. An individual represents an "hypothesis", i.e. assignment of costs: starting from random hypotheses, the genetic algorithm might be able to converg... | 2 | 2 | 41 | 2020-06-07T04:04:40.497 | data_quality | datascience.stackexchange.com | |
451,161 | Identifying the minimal set of columns that can be used to define a unique instance in a database table | Some context here: I am developing a comparison tool that coalesces, formats and concatenates all column values for the individual rows in a table. This single string is further reduced in size by converting it into an md5 hash. In addition to reducing the entire row's contents to an md5 hash, I will do the same with t... | Avoid over-engineering your application with the intent of generating primary keys for row-by-row table comparison. Here's why: Immutability Verification: Confirming the immutability of columns is feasible only if the table has been explicitly designed to support this. Without such provisions, there's no reliable metho... | -2 | 4 | 94 | 2024-02-21T16:40:10.893 | data_quality | softwareengineering.stackexchange.com | |
238,918 | Directory Verification with For Each Loop in SSIS | How can we check if a directory is valid or not inside for each loop . I am having multiple files at some location and i want to load that file but before this i want to check if the directory is correct or not . If the directory is not correct it will throw error for wrong directory. I am passing Directory path in con... | if you have the right amount of permissions you can use something like the function below to check if a file exists . I have not tried to check if a [CODE] exists though. [CODE] this is an example as how to call the above function: [CODE] | 1 | 1 | 633 | 2019-05-23T18:14:58.347 | warehouse_errors | dba.stackexchange.com | |
5,230 | Which archive/compression format? | Zip, Rar, 7z, Gzip, BZip2, Tar etc. I'm hearing 7z is the flavor of the month, why? Is it best for all situations or are there better choices for specific situations. Or maybe the actual file archiver ie WinZip, WinRar, 7Zip etc (as opposed the format) has a bigger effect? In your answer could you describe what sort of... | Compress, Gzip, Bzip, Bzip2 are not for archiving multiple files. They only compress single file. For archiving they are usually used with TAR. The problem with TAR is that it has no index table . It's only good if you're planning to restore the whole thing. If you're expecting that you ever need to restore only limite... | 8 | 14 | 7,141 | 2009-05-06T11:00:24.273 | database_errors | serverfault.com | |
335,201 | CPU Utilization LAMP stack | We've got an ec2 m2.4xlarge running Magento (centos 5.6, httpd 2.2, php 5.2.17 with eaccelerator 0.9.5.3, mysql 5.1.52). Right now we're getting a large traffic spike, and our top looks like this: [CODE] Questions: Would giving msyqld more memory help it cache queries and react faster? If so, how? Other than splitting ... | [CODE] You can give MySQL more table cache, which would help a bit, but I don't believe that's not too much of a problem on your end. As the CPU usage is very high for the MySQL process, I'd believe it is simply all of the connections slowing MySQL down. One nice website I like to use to tune MySQL is this MySQL memory... | 1 | 3 | 781 | 2011-11-27T14:47:06.930 | database_errors | serverfault.com | |
348,384 | Providing context in Class name, even though the namespace provides context | So I am reading Clean Code and I want to write my class names with the proper amount of context, but how does .NET namespaces play into the concept of Meaningful Names ? Do I forego context in the class name that has been provided in the namespace? For example, If I have the following namespaces [CODE] Should I name th... | Avoid classes with identical names, even if the name spaces differ. The problem is, you import and forget about the namespaces and it becomes unclear which class is meant to be used. Refactoring can be a nightmare of you move the class to a different project. I would also not recommend the 'clean coding' BigLongClassNa... | 1 | 1 | 340 | 2017-05-04T20:46:20.260 | api_errors | softwareengineering.stackexchange.com | |
66,903 | Create an RNN on text sources with different lengths | I want to create an RNN to generate a new text based on many examples of existing texts of a certain format in the training data. The type of texts in the training data consists of 3 segments, like so: Example text 1: [Segment 0, ~20 characters] [Segment 1, ~200 characters] [Segment 2, ~400 characters] It is worth ment... | I think that if you append a token [CODE] (end of sentence) at the end of each sentence when you merge, this would not be a problem, because the RNN would learn to cut sentences and to generate independently if you shuffle your data and train with several shuffles. However, as you say your data is heterogeneous, you mi... | 2 | 1 | 154 | 2020-01-22T21:52:06.047 | data_quality | datascience.stackexchange.com | |
345,154 | Elastix(Asterisk) Slow to repsond on incoming PSTN line | I setup a PBX with asterisk and Elastix as a web GUI. I have all incoming calls set to ring to a ring group of our office personnel in a ringall format. The only issue is the time for Asterisk to pickup and pass the phone call to the VOIP phones to ring from our PSTN lines. It takes about 5 rings to start ringing our V... | Could it be asterisk is expecting caller-id but not receiving it? Just a guess as most caller-id on PSTN lines should happen somewhere around the first ring. | 6 | 2 | 1,838 | 2011-12-29T21:34:19.020 | infrastructure | serverfault.com | |
272,994 | Mail Server problem sending mails to external domains | Recently I have setup a mail server with [CODE] , [CODE] and [CODE] on Ubuntu cloud server. The server has static ip address with proper MX record(mail.mydomain.net). When I send mail to Google its going to Spam and I should mark as not spam and yahoo is not at all receiving. Is there anything apart from Static ip and ... | You might also try looking up your IP via a service like ( http://mxtoolbox.com/blacklists.aspx ) to ensure it is not blacklisted or identified by your ISP as being assigned to a "dynamic" IP block. | 2 | 4 | 828 | 2011-05-24T02:20:05.863 | infrastructure | serverfault.com | |
243,993 | mysql 5.0.23 vs 5.5 performance benefits and upgrade issues? | I have been told that mysql 5.5 has a significant performance boost compared to 5.0 Our server handles a lot of data (around 30 million records processed per 5-10 seconds) and requires every drop of performance boost we can give. Will it be beneficial if we upgrade from 5.0.23 to mysql 5.5? Also, we have lots of databa... | The answer with MySQL is always, "it depends". That being said where 5.5 is going to give you a huge improvement on boxes with 16 cores and higher. If you use the InnoDB storage engine, then there is a good chance that you will get better performance too. The best way to find out is to get a test box and run it through... | 3 | 3 | 5,578 | 2011-03-06T22:39:20.120 | database_errors | serverfault.com | |
347,532 | Can not connect to Windows network share from non domain computer via VPN | I have two separate Windows Domains in different LANs. Between both I have established a site-to-site VPN. Red is a Windows 2003 Domain Controller of Domain Dom_a. Blue an Windows 2008 R2 Domain Member of Domain Dom_b. I want to mount a Red shared folder from Blue. [CODE] Blue can ping Red, execute an RDP connection or... | I just solved the problem. I will summarize some notable aspects: Used a different login. Using name@domain schema. The permissions were not okay. It's actually a set of DFS shares. Re-Enabled the NAT. Some folders were still inaccessible from a different subnet. Created a stub zone (with forwarder to an A DNS server) ... | 0 | 1 | 4,780 | 2012-01-06T22:39:41.723 | infrastructure | serverfault.com | |
17,183 | How do you check bugs on your client's PC's? | It seems like there are a plethora of methods for dialing in and checking out what's going on on a client's PC. But they seem to boil down to just 2. Dialing in and checking it out with VNC and Remote Desktop. VNC seems abysmal with more graphics laden OS's and it sometimes is too much to ask to get a access to a termi... | We have had good success teaching end users to respond to unhandled exceptions (which are thankfully rare, but which plagued one installation because of networking issues) with these steps (Windows only) press Shift+PrntScrn Open Word press Ctrl+V Return to the application and click the More Info button Click in all th... | 4 | 8 | 405 | 2010-11-05T18:34:25.833 | api_errors | softwareengineering.stackexchange.com | |
13,031 | Suggestions for a good run command review console | Is there a good web console or tool that would help enable us to review Shell Scripts? Usually when maintaining a system, we would run scripts that are managed, or we could run scripts that run only once. However, these scripts must go through a vetting process to make sure they are secure, compliant, and won't create ... | I am looking for a way for our members to submit scripts without fussing too much about format or folder structure. It sounds like you need some combination of testing and linting, perhaps with a few utility scripts to organise and gate content from landing in the repo. The "Vetting process" you mention sounds to me ex... | 2 | 3 | 83 | 2020-12-28T09:01:58.490 | pipeline_ops | devops.stackexchange.com | |
1,073,278 | cannot install both kubelet-1.18.4-0.x86_64 and kubelet-1.21.3-0.x86_64 | [CODE] | This is a common problem there is either a bug in yum/dnf, or a bug in how Kubernetes repository is set up. One workaround is to mask unneeded versions of kubelet. E.g. here's my [CODE] : [CODE] | 0 | 3 | 2,010 | 2021-08-02T08:37:49.417 | infrastructure | serverfault.com | |
761,748 | Proxmox VE (routing and port-fowarding issue) | I have installed PVE, I received three public Ip address two of them are in the same range, the third one is in different range. I wanted to give PVE host one pub IP to be reachable externally, and the other two to VMs I also wanted to created two VMs with private IP address and make port forwarding. below is my config... | The easiest way to achieve this is to give white (public) IPs to VMs via bridging (not proxy-arp). You will still be able to firewall traffic for all VMs on the host, because netfilter in Linux supports checking bridge traffic with iptables rules. In this case the config will probably look like this: [CODE] You have to... | 0 | 0 | 3,207 | 2016-03-05T07:05:25.877 | infrastructure | serverfault.com | |
25,288 | Best VPS Service in Europe? | I know we've had a lot of "Who's your favourite VPS provider?" type questions, but most of the top providers reside in the USA (Linode and Slicehost) come to mind. What about providers that aren't 1,500 miles away. What European VPS service would you recommend which has a similar price point to those seen at linode/sli... | Have a look at OVH, while not strictly "VPS" their RPS service is really good, and you get your own physical hardware. I've used one for a few months and i've never had a serious issue with them. Remember, with a RPS you'll be sharing that 100mbit connection with your disk I/O to the SAN. | 4 | 3 | 2,497 | 2009-06-13T18:10:51.547 | database_errors | serverfault.com | |
258,138 | Apache vhost with and without 'www'? | With Mac OS X 10.6, I'm having some fun moving from the old way of hosting multiple sites (having a block of code in a .conf file for each virtual host) to a slightly less old way (telling the server to look in /sites/ for a folder named example.com and serve whatever is in there.) Making this happen only requires a co... | You're going to have problems with cookies not crossing over between the sites if you have (effectively) 2 virtual hosts with the same document root. A better solution would be to redirect everything for a non www domain to the corresponding www domain. There are lots of different ways to do this, e.g. using a 404 hand... | 1 | 1 | 2,553 | 2011-04-11T06:11:19.860 | infrastructure | serverfault.com | |
520,531 | Sendmail chdir(/clientmqueue) permission denied | My centos server can send mail using the 'mail' command but not from php. Maillog says: [CODE] My permissions are as follows: [CODE] What would all these links be for? | Sendmail-8.12+ installation: file permissions Sendmail-8.12+ binary should be installed as set GROUP id. (/usr/sbin/sendmail.sendmail in your case) It is described in [CODE] file in sendmail(.org) distribution: [CODE] | 4 | 9 | 15,229 | 2013-07-03T13:21:42.817 | infrastructure | serverfault.com | |
147,572 | Netgear FVS336G: appropriate solution for today's small businesses? | I've been looking into a routers to facilitate a vpn solution for a small business. While the Netgear FVS336G looks good on paper, it appears to have some fairly crippling setbacks that drag down what appears to be some great hardware. First off, the unit has been around for a couple years now, perhaps before 64-bit op... | Quoting a NetOp, "nobody ever got fired for buying Cisco equipment"; because it works, it's widely supported, and an ASA5505 isn't that expensive (even for a small business). | 2 | 0 | 1,051 | 2010-06-02T19:16:45.897 | infrastructure | serverfault.com | |
269,961 | Facing MemoryError in Python | I wrote a program to find prime factors of a number. When I give a large number(600851475143) as input, [CODE] pops up. Below is the code: [CODE] From browsing I came to know that Python makes use of Computer memory - RAM. I am using Python in Unbuntu without changing its configuration. Should I change anythig to work ... | There are various ways to measure the memory used by your program, and you may be able increase per-user limits or something. However, you don't need to allocate that memory in the first place, since you can just generate the sequence without storing it all: [CODE] Note that you can also iterate directly over sequences... | -1 | 1 | 11,888 | 2015-01-13T18:47:14.307 | api_errors | softwareengineering.stackexchange.com | |
923,185 | Windows Server 2011 - System opening ominous TCP connections | Where I work we have a Windows Server 2011 Small Business edition, and recently our Symantec software started reporting "blocked intrusion attempts" from port 80. Our routers do not forward any port to the Server's 80 port, so I imagined the intrusion must be an outgoing connection from the server itself. So I analized... | As @joeqwerty pointed out, those were inbound connections. There was a broken port forward in our router. Was listed as "Disabled", but apparently the forward was completely operational. | 0 | 0 | 72 | 2018-07-23T17:37:27.727 | infrastructure | serverfault.com | |
317,572 | MariaDB: Missing FILE_CHECKPOINT | Running MariaDB v10.9.3 on Arch Linux. I've hosted a file storage cloud with it for years. Recently decided to create a database for another project, and am very new to MySQL interactions, so it's possible I messed something up while doing so. Every time I try to start the mariadb.service, I get the following log: [COD... | My solution (which was not an elegant one) ended up being: set [CODE] in the configuration files start MariaDB again force dump all databases with [CODE] stop MariaDB delete the entire contents of [CODE] EXCEPT for [CODE] removing [CODE] from the configuration files force importing all databases back to MariaDB with [C... | 1 | 3 | 5,777 | 2022-09-29T05:35:02.250 | database_errors | dba.stackexchange.com | |
338,083 | Recovering Exchange messages from a server clone | We recently had a problem with our Exchange 2010 backups (Backup Exec 2010), so we now only have access to a full VMware guest image of the Exchange Mailbox Server. I have restored the VM fine, isolated from the network in it's own test network, as the original source machine is still running and needs to keep running.... | If the restored server is working, you can export its mailboxes to PST files and then import then back into the original server. http://technet.microsoft.com/en-us/library/ee633455.aspx | 1 | 1 | 297 | 2011-12-06T10:59:03.610 | api_errors | serverfault.com | |
321,630 | Domain names not resolving @ Debian VPS | I have a quite common problem except all the solutions I've found didn't work for me. I had my VPS, running Debian 5/Debian 6/CentOS 5.5/ whatever-else-OS-I've-tried , rebuilt and reinstalled. Once started, the network works fine, and I can ping IPs, [CODE] for example. The problem here is that the VPS can't resolve ho... | Well, I got up in the morning and everything works. I did nothing else to VPS except what I mentioned in my updates and comments. So I guess that was external issue in the DC. And now, since everything works, that's pretty much "happy end". Thank you for your replies. | 1 | 0 | 4,650 | 2011-10-14T21:55:28.890 | database_errors | serverfault.com | |
105,431 | How do I limit Oracle's memory use? | I would like to use Oracle's automatic memory management, with a limit of around 4GB. (Past experience has shown this to be plenty for my dev PC and that it is easier to get an idea about any performance issues with less than that.) I believe these are the instructions to follow: Oracle 12 automatic memory management I... | The problem was that when the database was installed, conflicting other parameters were set. So I needed to export those from the "spfile" to a "pfile", back them up, edit them, test them and import from the pfile to the spfile: [CODE] Then I set the conflicting parameters to zero: [CODE] I then try starting up again: ... | 9 | 5 | 27,096 | 2015-06-29T13:13:49.463 | database_errors | dba.stackexchange.com | |
555,881 | Simulating latency to a URL using ipfw | How can I simulate latency to a single URL? I tried following to simulate latency to a single URL by adding a ipfw rule. [CODE] However, above rules introduce to all URLs, and not just myurl.com Am I missing something to introduce latency to just myurl.com | [CODE] # sudo ./latency.sh | 1 | 1 | 921 | 2013-11-19T01:33:23.957 | infrastructure | serverfault.com | |
151,162 | Sort results of a query by the order of OR clause | I have a string as input, that represents an hostname, and a table that contains suffixes (e.g. [CODE] , [CODE] , etc). I'd like the database to return the records based on the order of the where clause. For example, let's assume the [CODE] table contains the following entries: [CODE] Assuming the input is [CODE] , I w... | There are two ways to do this in Postgres: Join your table against a virtual table build from a [CODE] list: [CODE] Another shorter version would be to join against an array: [CODE] The second version has the advantage, that you don't need to supply the additional index because that's implicitly defined through the ord... | 1 | 3 | 134 | 2016-09-30T16:53:13.617 | database_errors | dba.stackexchange.com | |
277,715 | VirtualBox Differencing Disk Sizes | I've recently started trying to use VirtualBox for my new machine so I can prevent the base OS from any artifacts/etc. I've created a Base OS and removed the drive, marked it as immutable, and created another for development, attached that drive, made a snapshot, changed the drive to the snapshot and marked the snapsho... | I think you have misunderstood the original VirtualBox configuration option. When you create a virtual disk in VirtualBox and you set it to dynamically grow, it will only take up as much space on the actual disk as it needs to, and it will grow to the limit you defined as the maximum disk size. You have now reached tha... | 1 | 3 | 462 | 2011-06-07T06:30:38.400 | infrastructure | serverfault.com | |
536,112 | Website authentication with a certificate from a different domain | My question: Is there a better way to enable authentication between 2 domains than what I'm doing below, and is Name Mapping the right thing to use? There are 2 domains; One is the primary corporate domain, the second is a smaller subdomain. The corporate domain has accounts for every user in the company, and generates... | Certificate trust can (and usually does) work independently of AD. To be pedantic, if the subdomain was a subdomain of the other AD domain a trust relationship is already established, but I suspect you've configured the "sub"domain to be a new domain in a new forest. While awkward, this should work. Anyway, AD aside, t... | 1 | 1 | 605 | 2013-09-03T20:31:14.443 | api_errors | serverfault.com | |
308,104 | What backup tool should I use for easy incremental backups? | Possible Duplicate: How to provide proper backups for multiple Linux based servers? I want to do nightly backups of the whole system and be able to rollback to any of last 7 days. And, it must be incremental backups. What tool should I use? The tutorials I've read about rsync tell only how to store latest incremental b... | Have you considered rsnapshot ? It uses rsync for the incremental backup, but gives you as many snapshots as you want (and have space for). Similar to jcisio 's suggestion, but fully packaged. | 5 | 5 | 7,522 | 2011-09-04T19:15:16.840 | database_errors | serverfault.com | |
710,519 | Can't enable logging for Bind 9 on Red Hat | When I enable logging for Bind, I get a permissions denied error which is due to Bind running in chroot/selinux (avc denied write). I can't figure out how to reconfigure selinux to allow the log file to be writeable. Please could someone help? Thank you!! | Try restoring the context on the file (as root): [CODE] For more info, this should help: http://wiki.centos.org/HowTos/SELinux | 0 | 2 | 90 | 2015-08-03T15:35:54.047 | infrastructure | serverfault.com | |
245,979 | How to deal with `.partial` WAL segments generated by Postgres `pg_receivewal` command? | [CODE] creates a [CODE] file for incomplete WAL segment. My question is how to deal with this file during recovery. If I just leave it as it is, last transactions don't recover. If I rename the file removing [CODE] post-fix, the recovery procedure crashes with the error: [CODE] The only way I found is to remove this [C... | Hmm, good question. I suggest that you rename it and fill it with zeros at the end, for example using [CODE] This could be part of your [CODE] . | 1 | 2 | 1,834 | 2019-08-22T10:30:59.810 | warehouse_errors | dba.stackexchange.com | |
368,971 | Circular Interface references | I've heard circular references are generally an issue, however I was wondering if this was true for interfaces that reference other interfaces, for example: [CODE] Is there any case where this would be an issue? It doesn't seem to me to be resolveable if it were. My best guess is that this wouldn't be an issue as inter... | It's an issue as long as you have to check the integrity/validity of both references as soon as one of them change (and might want to look out for possible endless recursion doing so). As they seem to be pretty static, it's not (much of) an issue; you'd probably need to double-check that during the construction of the ... | 3 | 5 | 536 | 2018-04-06T15:10:05.827 | api_errors | softwareengineering.stackexchange.com | |
466,612 | Apache root URL redirects to double slash | I have a vhost that needs to redirect [CODE] to [CODE] and I use following to accomplish that in vhost.conf: [CODE] but it's giving me hard time since users get http://server.com//app address. How to fix that? | [CODE] | 1 | 1 | 1,391 | 2013-01-13T12:14:23.490 | infrastructure | serverfault.com | |
370,858 | How to tunnel via SSH correctly? | I have a problem tunneling a ssh connection to a remote server to use Mysql. I try: [CODE] and works perfectly! (I tested the connection using Mysql WorkBench) BUt if i do: [CODE] I CAN connect but Mysql WorkBench can't connect to the remote server using the tunnel. These are the zones in my ssh_config [CODE] So now I ... | You want [CODE] Because, as with the [CODE] option, the 'remote' address in the [CODE] option is relative to the SSH server, not the client. | 2 | 7 | 398 | 2012-03-18T11:29:24.230 | database_errors | serverfault.com | |
1,044,315 | Syntax of Apache SetHandler directive when configuring PHP FPM | I've followed a couple of tutorials and configured Apache to use PHP FPM. However, I do not understand what part of the [CODE] line is doing and based on some of my experiments appears to be redundant. I have the line: [CODE] This works whether the [CODE] is present or not. In various place, such as Plesk configuration... | The documentation clearly states why you should include it even though it is not mandatory: For performance reasons, you will want to define a worker representing the same [CODE] backend. The benefit of this form is that it allows the normal mapping of URI to filename to occur in the server, and the local filesystem re... | 7 | 6 | 6,675 | 2020-11-29T13:07:07.207 | infrastructure | serverfault.com | |
137,834 | Mounting both /dev/sda and /dev/sda1 - how can this be? | I work on an Amazon EC2 instance that somebody else set up. We have an EBS volume mounted on [CODE] , even though the root device is already on [CODE] , and we're also using [CODE] [CODE] This doesn't seem to fit with what I know about the way [CODE] works. How is this possible, and more importantly: will this cause tr... | It looks like the EBS volume was added later as sda. So, sda{1,2} points to the virtual disk that the instance was booted from and sda points to the EBS volume. This might cause problems with programs that assume sda{1,2} to be partitions of sda. | 2 | 1 | 21,072 | 2010-05-02T08:39:42.163 | infrastructure | serverfault.com | |
657,967 | How can I prevent accidentally jacking with a production database? | Just recently, I had a developer accidentally try to restore a database to production, when he should have been restoring to a staging copy. It's easy to do, given that the db names are similar, i.e., CustomerName_Staging versus CustomerName_Production. Ideally, I'd have these on entirely separate boxes, but that is co... | If this is something you see yourself doing often, automate it. And since you're both developers, writing some code should be in your wheelhouse. :) Seriously though... by automating it, you can do things like: Verify that you're restoring on the correct server (i.e. no dev -> prod restores) Verify that it's the right ... | 31 | 33 | 5,026 | 2015-01-07T20:43:14.627 | database_errors | serverfault.com | |
1,127,618 | Validate all public keys in authorized_file | In my authorized_file i have multiple public keys against one private key. Now i want to add a task in ansible which will validate that all public keys are valid keys and good for connection. My aim is to remove bad/faulty key from authorized_file. | You could do an Ansible playbook for that, it will validate all public keys in the authorized_file and remove the invalid ones, like for example: [CODE] To make this work save it as a [CODE] file then you can execute it with [CODE] replace [CODE] with your inventory file ansible- [CODE] | 1 | 1 | 516 | 2023-03-31T18:24:27.310 | pipeline_ops | serverfault.com | |
563,017 | NAT vs Proxy server | I have installed squid proxy server to hide our network ips after some time it becomes slow then I read through NAT rules to achieve what I want by proxy server. As per this link the difference between NAT and proxy server is the way they handle nos of user. We are totally 8 people and our leased line internet speed is... | the difference between NAT and proxy server is the way they handle nos of user Actually, the difference is they are almost totally different solutions. NAT is a Layer 3/4 solution that was invented as a hack solution to the exhaustion of IPv4 addresses. It was never meant to be a security or "proxy" solution. All it do... | 1 | 5 | 3,242 | 2013-12-22T15:42:00.737 | infrastructure | serverfault.com | |
267,478 | how to solve this warning in select | I have a problem with this query: [CODE] Warnings Type conversion in expression (CONVERT(nvarchar(23),[soh].[SalesOrderID],0)) may affect "CardinalityEstimate" in query plan choice | There's nothing to fix, really. The message refers to this computed column in the [CODE] table: [CODE] The warning is informational in this case, to be sure you're aware in case it was a problem, as discussed in this Q&A: Type conversion in expression may affect “CardinalityEstimate” - on a computed column? | 5 | 9 | 755 | 2020-05-19T18:48:48.450 | database_errors | dba.stackexchange.com | |
913,015 | Where are Windows Event Forwarding (WEF) subscriptions filters applied? | I configured Windows Event Forwarding (WEF) in my LAB domain and I'm setting up subscriptions. My subscription is configured on my DC and is source-initiated, the collector is DC01.acme.com and sources are WIN7.acme.com and WIN10.acme.com. Suppose I have the following query filter configured for my subscription: This m... | To answer your question, the filtering is applied on the source (like servers, workstations, ...) and not on the collector. This means that if you specify a single event ID, your collector server will just collect the specified event ID (option 2 based on your question). | 0 | 1 | 1,498 | 2018-05-20T18:46:46.830 | infrastructure | serverfault.com | |
908,639 | NGINX is forcing SSL on development server / Windows | I'm running an NGINX server on my local development machine, as I want to use a development domain using a proxy pass to reach my NodeJS applications. [CODE] My problem is that when I try to go to [CODE] the browser redirects to [CODE] . I added the [CODE] directive in both the [CODE] and [CODE] contexts and it's still... | The problem is that Chrome and FF both reserve [CODE] and [CODE] domains to automatically redirect to HTTPS. Change your TLD to something other than those two. | 0 | 0 | 194 | 2018-04-20T06:26:27.583 | infrastructure | serverfault.com | |
508,320 | Permission Denied Issue : setfacl | I have tried to set Extended ACL for the folder ssam and ended with a "Permission Denied" message at the end. I have made sure that the ACL is enabled and is added in /etc/fstab for /home. Below are the details. [CODE] Below is my /etc/fstab where I have enabled acl for the /home directory. [CODE] and this is what I ha... | You have set default ACLs only! That are those for new objects created in this directory. You need this command: [CODE] | 0 | 5 | 4,948 | 2013-05-16T15:07:08.400 | infrastructure | serverfault.com | |
334,925 | Vastly different query performance on GIN indexed table using different search words | Problem Text searches in a Postgres table with a simple GIN index ordered by creation timestamp have wildly different latencies based on the keyword that is being searched. While searches for frequent words run in milliseconds, searches for rare words can take up to 10 minutes to execute. I found a similar issue discus... | A few things jump out when reading this that strike me as general tips for gaining recall speed (at the cost of disk space, mind you) Your index [CODE] is being used with the DESC sort, and thus when the query planner is using that index backwards, and thus you see: [CODE] in the query plans. Try building the index on ... | 0 | 0 | 37 | 2024-01-16T18:20:43.423 | database_errors | dba.stackexchange.com | |
23,306 | In R's randomForest, is predict() non-deterministic? | Training a random forest model is inherently non-deterministic (absent control over the random number generator), but is predict() also non-deterministic? That is, if I construct randomForest (with an odd number for [CODE] per the caveat in the doc) and save an [CODE] , will loading that [CODE] give me identical result... | The model will not change unless you re-train it. The same input sample should always have the same output value for a given model. changing the seed, saving and reloading, etc should have no impact on the results. The training itself is indeed non-deterministic, predict is not. [CODE] | 2 | 4 | 1,469 | 2017-09-25T21:08:47.300 | data_quality | datascience.stackexchange.com | |
955,335 | Error joining DC as a child to Forest DC | The specified argument 'ChildName' was not recognized | I have the following scripts running. ( This question was posted on Superuser and I have been asked to put it here ). Basically both scripts create files at runtime, and then the server restarts and run the newly created files, however there is error when the child DC joins the forest, even though it joins successfully... | This issue is normal as found out via technet forums. | 0 | 0 | 262 | 2019-02-22T19:45:10.393 | infrastructure | serverfault.com | |
994,651 | Django import error while installing Tacker via Devstack: No module named django.core.management | I am trying to install Tacker via Devstack. I am following this installation guide. I use same local.conf as in the guide . However, after running ./stack.sh, I see this error: Requirement already satisfied: pyperclip===1.7.0 in /usr/local/lib/python3.6/dist-packages (from -c /opt/stack/requirements/upper-constraints.t... | This is how I resolved the issue. According to an answer in this question , I ran "from django.core.management import execute_from_command_line" in python command line and I saw same error. But when I run same thing in python3 command line, no error is given. Thus, it is apparent that python3 does have Django in its si... | 0 | 0 | 877 | 2019-12-06T21:39:38.543 | data_quality | serverfault.com | |
550,396 | Dell Poweredge 2650 RAC Issue | I just got a second hand Dell Poweredge 2650 and its working fine. I can access the embedded remote access controller via the Racadm.exe tool (Under wine) but the web based version of it (Which I would prefer to use) has an SSL certificate error. I select continue I know there are risks ect and java starts up. It then ... | Since it's secondhand, have you configured it from scratch? If not, I would configure it from scratch and see whether you get the same issue. racadm -r -u -p racresetcfg | 0 | 0 | 693 | 2013-11-03T12:29:45.707 | api_errors | serverfault.com | |
159,632 | AJAX Push Engine: Can't contact APE Server | I'm trying to set up the AJAX Push Engine (APE) on my Mac, running Mac OS X 10.6.4 and Apache 2.2.14 When I run the APE server, this is the output: [CODE] The [CODE] looks like: [CODE] ... and the virtual host stuff in the [CODE] file looks like: [CODE] When I run the test file in [CODE] , I pass the tests until I get ... | I figured it out. Part of the problem was that the network I was on didn't allow me to do this kind of thing. Once I moved to a normal network, I made changes and it works. The following is the configuration file for APE. The only changes I made here were in the first two sections: [CODE] Next, I changed some things in... | 2 | 1 | 2,540 | 2010-07-12T15:15:48.420 | infrastructure | serverfault.com | |
289,849 | Transmit Data over wlan in Linux | Its a repost from here : StackOverflow , I am struggling to find a some tool through which I can transmit the Data through a Wireless Driver which gives me the flexibility to set for instance the DataRate, the PacketSize of the PSDU. Here is a brief overview of my setup: A laptop running Ubuntu is used as a Transmitter... | The negotiated data rate can be controlled by the linux command line utility iw e.g. iw wlan0 set bitrates legacy-2.4 12 18 24 You can get the link status as well. This gives you the negotiated data rates. e.g. [CODE] More info here on using iw can be found here: http://linuxwireless.org/en/users/Documentation/iw To te... | 0 | 2 | 834 | 2011-07-13T11:37:43.913 | infrastructure | serverfault.com | |
165,629 | Normalized Table Design 3NF | I am building a table that will store 'task records' i.e. who approved a task for a group and period. I have normalized the table but I am not sure if I have gone beyond 3NF, and if this is overkill? I have created 6 related tables each represented by a FK in the TaskRecord table. The Model.Period table just contains a... | I think you have gone too far for a transactional system, however if you are designing a data warehouse, your approach is correct. If you are designing and OLTP system, I would recommend that you replace "PeriodID" in your "TaskRecord" table with "CreateDate" or something similar, so it implies what you are actually st... | 3 | 1 | 434 | 2017-02-27T13:38:51.573 | warehouse_errors | dba.stackexchange.com | |
780,177 | Is there a way to "replay" a packet capture of a smtp session for the purpose of debugging? | I'm troubleshooting a smtp issue involving character-set encoding and it's extremely difficult to involve the end user. I have a packet capture of an incoming smtp session that results in problematic behavior but if I try to copy/paste the mime source from wireshark, the issue doesn't occur. I'm reasonably certain that... | I hate to turn this into a discussion about tools, rather than about the technology involved, but you may want to look into the use of [CODE] which takes [CODE] files and replays them even at the same speed that they originally came in. | 4 | 4 | 424 | 2016-06-01T05:51:26.993 | infrastructure | serverfault.com | |
782,251 | RAID geometry parameters for XFS on top of LVM | I need to set up an XFS filesystem on top of LVM on top of a hardware RAID-6 (10x 6TB + 2 parity) and I found the guideline on http://xfs.org/index.php/XFS_FAQ ("How to calculate the correct sunit,swidth values for optimal performance") which recommends: When creating XFS filesystem on top of LVM on top of hardware rai... | You must use swidth=10, for all partitions Modern linux systems can calculate and use sunit/swith sizes automatically. There is no need to calculate it manualy, in most cases. | 2 | 0 | 796 | 2016-06-06T14:58:06.487 | infrastructure | serverfault.com | |
168,449 | High CPU every 2 minutes when saving large TEXT columns | We've got a MySQL database (on Amazon RDS) which occasionally gets a lot of INSERT traffic with large (~1MB) TEXT columns. We find that when this happens, this causes the database CPU to get quite high, with a "see-saw" pattern. This causes other queries that would ordinarily be very fast to slow down unacceptably. I s... | Do you have Replication turned on? The first couple might be a cause for extra I/O (and CPU): [CODE] -- Freq of binlog cache spilling to disk -- Increase binlog_cache_size. [CODE] -- Spill to disk -- Increase binlog_cache_size [CODE] -- InnoDB I/O -- Increase innodb_buffer_pool_size? [CODE] -- Frequency of needing to w... | 0 | 1 | 184 | 2017-03-28T22:51:51.187 | api_errors | dba.stackexchange.com | |
1,000,034 | How to reun a docker container without removing it first? | I want to run a redis server locally with docker. I pull the image by [CODE] Then I used this command to bring up a docker version of redis server [CODE] For my test, I brought this instance down. I used [CODE] to confirm the instance was down. Now I want to start it up again, and I get this docker: Error response from... | run [CODE] and identify the container id, or name ("test" in your example) then run [CODE] or [CODE] in your case | 0 | 1 | 624 | 2020-01-23T02:42:05.430 | pipeline_ops | serverfault.com | |
120,374 | Nginx as a proxy to Jetty | Pardon me, this is my first attempt at Nginx-Jetty instead of Apache-JK-Tomcat. I deployed myapp.war file to $JETTY_HOME/webapps/, and the app is accessible at the url: http://myIP:8080/myapp I did a default installation of Nginx, and the default Nginx page is accessible at myIP Then, I modified the default domain unde... | It is now not nginx configuration problem but your application or Jetty configuration problem. Your application, running under Jetty still 'thinks' its URL is /myapp/ not /, you should change your application configuration to use right base URL. Theoretically the server could rewrite the links when passing the applicat... | 1 | 2 | 3,031 | 2010-03-08T16:29:56.187 | infrastructure | serverfault.com | |
631,674 | failed to copy a shell script from host to a vagrant box | Host is Windows 8 I prepared a shell script which execute secure_mysql_installation This is the folders structure c:\myproject\ Vagranfile puppet\ files\ secure_mysql.sh mainfests\ init.pp This is my puppet code to copy the local host shell script to vagrant box class secure_mysql_installation { file { '/tmp/secure_mys... | On the guest, that folder is going to be at [CODE] , but you don't want to use that at all since it doesn't translate from vagrant to everywhere else. The answer by @deagh starts to lead you in the right direction. You need to move any files into a modules folder. So [CODE] And then you can reach it with [CODE] For mor... | 0 | 2 | 696 | 2014-09-26T21:54:35.173 | pipeline_ops | serverfault.com | |
226,194 | Can I use a timeseries DBMS to store video? | From a research study involving participants with a camera, I have chunks of video recording. I have to split them as part of the preprocessing into short sequences of around 5 min long. Each file will be named after its time-stamp in the sequence. I can store them as binary blobs in a database. In this study, I also h... | From a research study involving participants with a camera, I have chunks of video recording. I have to split them as part of the preprocessing into short sequences of around 5 min long. Each file will be named after its time-stamp in the sequence. I can store them as binary blobs in a database. It doesn't make much se... | 3 | 0 | 309 | 2019-01-02T19:56:49.583 | airflow_errors | dba.stackexchange.com | |
269,461 | Upserting 50K records into big table (app. 350 columns) in postgresql | Using [CODE] I'm trying to upsert from csv file (~ 55000 records) to a [CODE] table with 350 columns. I'm just building the upsert statements from header and record which are comma separated. Like this: [CODE] I know about the [CODE] which gave me for the inserts a very good peformance, but as mentioned, I need to run ... | Some suggestions: Use prepared statements. That will speed up execution, because the statement doesn't have to be planned every time. Use savepoints. That way, you can have a single big transaction and still recover from errors: Set a savepoint every 100 rows or so. If a row fails, rollback to the savepoint and redo ev... | 1 | 1 | 583 | 2020-06-19T07:44:53.013 | database_errors | dba.stackexchange.com | |
1,095,928 | using hostname instead of IP address in vpn | I server noob here and I've a problem at my hand, I've a VPN and there are several VMs connected to it, each host a specific service. These services are running on a specific port (3000,8080). So when I want to access a service in my browser I go to 192.168.10.2:3000 or 192.168.10.3:8080. What i want to do is, instead ... | Are you already aware of [CODE] file? If the hostnames only need to work on your own machine you could just use [CODE] (in Windows it would be [CODE] ). Just create an entry per IP. You can specify different comma-separated names for the same IP. For example: [CODE] And in your browser either: http://jenkins:8080 or ht... | 0 | 0 | 2,142 | 2022-03-11T12:28:31.420 | pipeline_ops | serverfault.com | |
275,150 | Loggers - Functional, non-functional or layered? | We use different loggers to break up and apply specific rules to different kinds of log data. We typically specify which logger to be used with something like this: [CODE] What is a recommended strategy on loggers? Functional: For example, "Sales", "Administration", "Orders", etc. Non-functional: For example, "Performa... | It depends on what that string you're passing in actually does. For this answer, I'm going to assume that string is a "scope prefix", i.e. a string that simply gets printed out at the beginning of every log message output via this logger to make it clear where it comes from, because that's how every logger I've ever wo... | 2 | 1 | 238 | 2015-03-04T07:35:08.010 | api_errors | softwareengineering.stackexchange.com | |
54,681 | Implementation of the paper 'Perceptual Generative Adversarial Nets for small object detection' | I studied the research paper on Perceptual Generative Adversarial Nets for small object detection . There they have detailed the structure of Generator network as given in the picture below: I am new in the field of GAN. I am having problem in designing the generator function. Can anyone help me out? | The generator function is just a CNN that maps an image to a feature map here (well, ROI pooled anyway). There is nothing specific to it being a GAN; what makes something a GAN is its use as a density estimator and how it is trained (i.e., adversarially), not its architecture. So don't worry about the lack of familiari... | 3 | 1 | 452 | 2019-06-28T10:34:41.540 | data_quality | datascience.stackexchange.com | |
176,912 | Hierarchical View/ViewModel/Presenters in MVPVM | I've been working with MVVM for a while, but I've recently started using MVPVM and I want to know how to create hierarchial View/ViewModel/Presenter app using this pattern. In MVVM I would typically build my application using a hierarchy of Views and corresponding ViewModels e.g. I might define 3 views as follows: The ... | So I think you have some minor violation of MVVM | MVPVM patterns due to linkage you're creating between the views. Neither pattern is all that verbose with respect to child windows though, so it's a bit of a murky area. I think it's worth pointing out that the big advantage of MVPVM vs. MVVM is because of separating o... | 4 | 2 | 6,221 | 2012-11-23T09:20:11.203 | api_errors | softwareengineering.stackexchange.com | |
311,059 | Block certain images from incoming emails | My company just added 5 of the social networking images to its email signature. Now we have tons of copies of these identical images stored in the software that takes emails and turns them into tickets of some kind (Jira does this, but this isn't the only one we have with this problem). Is there a way to block these on... | First you have to define what "block" means. Second you need to know the difference between SMTP and email. Blocking things at SMTP level means that the whole message is rejected and never reaches the destination. Normally you don't even see the content. This also points out the difference between SMTP and email. SMTP ... | 1 | 5 | 2,212 | 2011-09-13T20:21:48.997 | infrastructure | serverfault.com | |
195,228 | Move local SQL Server DB to hosted SQL Server | I have a SQL Server database here that contains the info for the Gemini Issue Tracking software. It is running on a Windows XP system and I have SQL Server Management Studio (SSMS) on that system. I can successfully back it up to a xxx.bak file. Now I want to bring that database up on an instance of SQL Server at a pai... | First, you need to find out from the hosted provider the username/password of a user with either the sysadmin fixed role, or at minimum CREATE DATABASE rights (intermediate: dbcreator fixed role). This will let you run the restore, if SQL can access the .bak files. Second, you need to change ALL the passwords for ALL t... | 0 | 4 | 124 | 2018-01-12T03:22:14.740 | database_errors | dba.stackexchange.com | |
973,382 | subdomain redirects not working for https | I am trying to make all [CODE] requests be redirected to [CODE] . Using nginx file in [CODE] : [CODE] It works perfectly for HTTP requests. So it redirects [CODE] to [CODE] but not working for https: [CODE] returns 200 ok without redirects. So how to redirect [CODE] to [CODE] ? | The following nginx file does what I want: [CODE] It redirects [CODE] to [CODE] and [CODE] to [CODE] | 0 | 0 | 43 | 2019-06-29T14:00:28.433 | infrastructure | serverfault.com | |
190,328 | Hostname appearing in email header | I use Postfix as SMTP Server and I don't want my server hostname to appear in the email header, what changes should I do? As you can see in the code bellow, here is the hostname: server1.example.com Here is the full header: [CODE] | You could change the helo_name setting but, as noted by DandyPandy, receiving SMTP servers will still reverse look-up your MTA's IP address and make note of it. http://www.manpagez.com/man/5/postconf/ | -1 | 1 | 609 | 2010-10-13T02:05:09.980 | infrastructure | serverfault.com | |
282,021 | How do I model this relationship so that it is valid by construction? | Imagine a [CODE] class that represents a physical real world mobile device, with fields like [CODE] , [CODE] , [CODE] [CODE] , etc. Then, an [CODE] class, which is something that needs to be done to a certain device, like [CODE] or [CODE] . This is a 'one device to many operations' relationship, and an operation cannot... | If you worry about ORM persistence, then here's a possible solution: Each operation declares its supported platform, similar to interface approach but use flags property instead (please note I change your enum to flags and add an option for unknown type) [CODE] The abstract devices class will contain list of operations... | 4 | 2 | 168 | 2015-05-05T18:59:30.730 | api_errors | softwareengineering.stackexchange.com | |
376,972 | Putting some business logic in repositories versus keeping it out of repositories entirely? | I know most (if not all) business logic should reside in its own layer, but what is the general consensus of putting some basic business logic inside of the repository layer itself? My scenario: We have a table that has a few optional columns, but should one of the columns contain a value, the other two will be influen... | Databases and methods often use the term upsert for actions that either insert OR update based on existence. It's fine to have an upsert method in a repository. It's not clear from you description if you are asking about repeating the insert/update logic elsewhere, or you are asking where to put this logic (i.e. exampl... | 4 | 2 | 4,685 | 2018-08-16T20:20:05.917 | data_quality | softwareengineering.stackexchange.com | |
433,426 | Performing many SQL inserts quickly without using BulkCopy | I have a C# system that reads thousands of messages per minute from a Kafka topic. The messages are filtered and I need to insert the filtered messages into a MSSQL table. A normal insert statement is a too slow and seems to hammer the database with thousands of inserts running at the same time. (Currently using Dapper... | Note this article states too large of a batch size may be detrimental, so you need to tune that carefully. That article also has other recommendations of things to check about your indexes and IO performance. When talking about buffering, you also need to think about back pressure and delays through the entire pipeline... | 1 | 1 | 536 | 2021-11-10T10:30:28.950 | api_errors | softwareengineering.stackexchange.com | |
903,204 | Dovecot can't open log after upgrade | On an OpenSUSE Tumbleweed host, updated this morning. After the update and a reboot, every attempt to start dovecot fails with [CODE] [CODE] includes [CODE] [CODE] yields [CODE] Dovecot packages currently installed start with [CODE] and [CODE] . I'm not sure what version was installed before the update, but it could no... | It looks like OpenSUSE updated the default apparmor profile for dovecot to one that prevents it from functioning in several ways. Preventing it from logging outside of syslog appears to be intentional, but that's not clearly the case with the others. To restore functionality, I had to add permissions in several files i... | 1 | 0 | 1,584 | 2018-03-17T18:33:07.600 | infrastructure | serverfault.com | |
398,378 | C# How to combine types I don't have access to? | I have been developing a library with the help of another library. So what I have set up here is two classes sub-classing the library's classes for additional functionality. The problem comes in when I want to be able to use the classes interchangeably in another class. So I want to be able to pass these graphics into ... | Instead of inheriting, try wrapping. Use a generic wrapper so you can specify constraints. [CODE] Now when you want to pass a shape to the constructor of, say, [CODE] , you could do this: [CODE] ...and you're type-safe. | 4 | 5 | 430 | 2019-09-14T00:06:25.233 | api_errors | softwareengineering.stackexchange.com | |
206,257 | Deploy materialized view with database link using another user | Our database deployment process logs in as sys to deploy database objects. We ran into a problem when we wanted to deploy a private database link for another user (AU). Our solution was to: Create a procedure owned by AU that uses an execute immediate to create the link Run the procedure Drop the procedure. This worked... | Here is the solution I am using for now. I don't like it, but until I find something better, it's the best I can do. At the start of the deployment a public database link with named credentials is created that uses the same name as the private database link will use. The materialized view is created and works because i... | 2 | 1 | 1,075 | 2018-05-09T14:47:52.330 | warehouse_errors | dba.stackexchange.com | |
326,321 | Passenger on Apache2 - how to make a site appear on root | I'm new to apache2 and passenger to set-up rails apps and followed a tutorial on how to get redmine (rails app) set up ( http://xdissent.com/2010/05/04/github-clone-with-redmine/ ). It all works great but to access the app you need to go to the /redmine directory. I have set it up as redmine.local/redmine. It would be ... | UPDATE Edit the [CODE] file to the belows content: [CODE] Remove the [CODE] option from [CODE] . Restart Apache and try again. | 2 | 2 | 1,012 | 2011-10-31T12:37:32.877 | infrastructure | serverfault.com | |
13,385 | Remote deployment on WAS using websphere deployer plugin of jenkins | I want to deploy an application on websphere application server(8.5.5) from Jenkins using websphere deployer plugin. I have attached the two required jars. I can telnet the WAS server from jenkins server. I am receiving a connection successful message for Test connection button present in webspere deployer plugin. I am... | I got the solution. From past days I have been checking the console output of jenkins but not "jenkins.err.log" file. There I have found UnknownHostException which is solved by adding the remote ip address into my hosts file. | 4 | 1 | 1,951 | 2015-06-09T11:22:46.133 | pipeline_ops | sqa.stackexchange.com | |
741,051 | 502 Bad gateway - nginx, uwsgi+django in seperate docker containers | Im having a little difficulty determining why nginx and uwsgi arent working to serve my django app. Here is the problem from the nginx log. [CODE] So uwsgi and django reside in one container with the following file settings. [CODE] My docker file starts up uwsgi and i expose port 8001 to the host [CODE] My second conta... | Here is your problem: [CODE] This only "works" if the processes are in the same host, VM or container, because it tries to make a connection to the same machine. When they are in different containers, it does not work. You need to alter your nginx configuration so that it uses the internal IP address of the uwsgi conta... | 0 | 1 | 4,457 | 2015-12-06T07:59:07.417 | pipeline_ops | serverfault.com | |
1,014,721 | How plesk uses AWS for their storage? | Currently exploring the relation between [CODE] and [CODE] As of now my AWS account showing the Memory Disk [CODE] of [CODE] of my account Where it says 40%+ of memory are being used out of [CODE] and Relational Database System of AWS showing no current data and my AWS Account doesn't run a single instance of [CODE] My... | Looks like you’ve got a 12GB EBS volume created for your EC2, you’re charged for that even if your EC2 is stopped. Go to EC2 -> Volumes and check it out. It may be in a different region than you’re looking at. | 2 | 3 | 244 | 2020-04-29T02:40:48.087 | infrastructure | serverfault.com | |
793,254 | Nginx stops working suddenly and I can't find the reason | I have a complex problem, that I don't know how to debug. In my prod server i have a nginx compiled from source with page speed. And everything works fine, however sometimes, i can't identify a pattern, nginx stops working, without any error in error log. [CODE] If I do HTOP i can't find any pid related with nginx, so ... | Need more information It's hard to say exactly what the problem is without more information. Just gonna throw some thoughts your way. Edit your post with more information and maybe we can figure it out. Questions How is nginx being run? Is it being run using a service or using an ad-hoc method? If it's being run by ini... | 2 | 2 | 6,851 | 2016-08-02T00:42:13.123 | infrastructure | serverfault.com | |
479,787 | smartctl -A Missing Attributes | I'm reviewing SMART attribute data for different disks and notice that some disks report the following attributes while other disks don't: 241 0xF1 Total LBAs Written 242 0xF2 Total LBAs Read What determines whether this attribute is available for a given drive, and is there a way to tell this by looking at smartctl or... | The hard drive manufacturer decides what SMART attributes they will expose to you. If they decide not to track or give you that information, you can't really get it. As for how you determine what attributes are available, you look at the [CODE] output, just as you already did. | 3 | 3 | 1,056 | 2013-02-17T22:20:48.670 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.