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 |
|---|---|---|---|---|---|---|---|---|---|---|
698,251 | How does the DNS protocol switch from UDP to TCP? | Before anyone asks: I've seen When do DNS queries use TCP instead of UDP? and it doesn't answer my question. All I keep hearing is " if the answer is too long, DNS will use TCP ". This does not explain how it happens though. So here's the situation: DNS client asks for resolution of a record using UDP. The record is to... | The client does not know in advance that the response will be too large, so it will query the server via UDP. The server will respond via UDP and will include as much as possible and set the truncated header bit ("TC" http://www.networksorcery.com/enp/protocol/dns.htm ). The client can then resend the request via TCP a... | 43 | 56 | 15,713 | 2015-06-11T10:51:46.523 | infrastructure | serverfault.com | |
288,015 | MySQL - log every connections | I'd like to monitor a MySQL 5.0.77 server and log every incoming connection for a day. I need to know who is connecting to the database. I tried with the general logging but it's logging way too much and I can't keep it on long enough, log file is growing too fast. Is there a way to do that ? Thanks | You should use general log, not as a text file, but as a MySQL table. Why create the general_log as a table? You can run SQL against it. You can rotate out very easily. How do you configure it? Starting in MySQL 5.1, the following option was introduced: log-output . Setting [CODE] to [CODE] (default) writes log entries... | 4 | 5 | 29,940 | 2011-07-07T18:36:41.517 | database_errors | serverfault.com | |
187,044 | Disk space unreleased after cleaning up rows from PG table | I understand space isn't abruptly released (unless one does [CODE] ). But this one looks abnormal to me. What could be the reason for a postgresql (9.3.10) table not releasing space after having 70% of its records removed? I have a table called [CODE] . As the name implies, it stores sessions data for each user of a we... | From the docs, In PostgreSQL, an UPDATE or DELETE of a row does not immediately remove the old version of the row. This approach is necessary to gain the benefits of multiversion concurrency control (MVCC, see Chapter 13): the row version must not be deleted while it is still potentially visible to other transactions. ... | 18 | 22 | 24,928 | 2017-09-27T12:36:08.897 | database_errors | dba.stackexchange.com | |
240,152 | How to insert values to a table from 2 foreign keys | Hey guys was wanting some help. I want to add the same value for Student_ID that is in the Studentinfo table in the GradeInfo and also wanted to add the same value for CourseNo that is in the CourseInfo table and add it to GradeInfo. Keep in mind that CourseNo in GradeInfo table is a foreign key from CourseInfo and Stu... | You have two issues: A typo in your [CODE] table definition that should be a syntax error, but unfortunately sqlite is all too often too lenient about what it accepts: [CODE] Notice the lack of comma. (EDIT: This actually works even though it shouldn't! Bug in Sqlite?) The primary key on [CODE] is [CODE] , but your for... | 2 | 2 | 5,829 | 2019-06-09T11:19:48.013 | warehouse_errors | dba.stackexchange.com | |
418,365 | I can't vagrant up because of SSH error while mounting shared folder | This is the error code I'm receiving: [CODE] and this is what my Vagrantfile looks like: [CODE] Extra info: I'm using OS X Lion as my host machine. | I was having the same problem and it turned out my chef.cookbooks_path didn't exist. In your case does a directory called '/cookbooks' exist on your host machine? Do you mean to set the path to a root level directory? If you have a sub-directory called 'cookbooks' within the directory you're executing vagrant from, you... | 0 | 3 | 1,691 | 2012-08-16T19:38:26.067 | infrastructure | serverfault.com | |
301,325 | How can I turn on session trace in SQLPLus? | I've managed to start SQLPlus and have logged in successfully. I can run queries but I can't trace any of them since when I input [CODE] and it gives me the error [CODE] so it means I have to navigate to the directory where this settrcon is so I can trace but I have no idea where it is. The settrcon is meant to alter t... | [CODE] is just some custom script that is not part of a standard installation. Wherever you found the reference for it, you may find more information about it there. We can not help with that. There are multiple ways for enabling taacing: https://oracle-base.com/articles/misc/sql-trace-10046-trcsess-and-tkprof Below ex... | 0 | 1 | 256 | 2021-10-19T08:41:18.907 | warehouse_errors | dba.stackexchange.com | |
1,088,512 | lvmcache/dm-cache writeback cache full performance | I have a SSD writeback cache in front of a HDD, set up through lvmcache (so a dm-cache). When the cache LV is not full ( [CODE] column in [CODE] My understanding is that dm-cache uses the mq eviction algorithm , but that only applies to read caching and thus is irrelevant to the write caching issue I am observing. Is t... | [CODE] is a "slow moving" cache: many read/write misses are required to promote a block, especially when promoting a new block means to demote an already-cached one. The fixed block-based nature of [CODE] , coupled with no reserved write-only area, means that many writes to the same non-cached blocks are required to tr... | 2 | 4 | 4,919 | 2021-12-29T20:13:29.850 | infrastructure | serverfault.com | |
45,313 | Find element in multi layer pages for single website | I want to scrape this marketplace data https://www.tokopedia.com/search?st=shop&q=dapur but to get the data, that I want, I must go through pass some layers in the page. In this case this web have [CODE] , 1st layer is the shop catalogue or the Starting [CODE] page: (in this page users must click the [CODE] button to g... | I think you have to switch the window first then only you will be navigate to the second-page (layer): please use below piece of code to switch your window : [CODE] now please use the below piece of code to switch the alert and get the UIData : [CODE] | 0 | 2 | 647 | 2020-07-22T10:24:50.310 | data_quality | sqa.stackexchange.com | |
1,061,026 | Is it possible to SSH to a virtual machine without public IP, inside an ESXI 6.7 with public IP? | I newly got an Gen8 HP server. I have 3 virtual machines (Debian 10) on ESXi 6.7 which are locally connected with some internal/private IPs like 192.168.0.101 and 102 and 103. Suppose I have one public IP to connect to my ESXi from browser having no problem and I have another public IP which is assigned to VM-1 and can... | I insist on correct terminology. [CODE] or [CODE] is how you configure IP address to the machine (in the config file, via DHCP or whatever). [CODE] or [CODE] is which class this address belongs to, these classes are defined by IANA, in particular private addresses are defined in the RFC1918. You still call public addre... | 2 | 1 | 901 | 2021-04-21T04:52:23.130 | database_errors | serverfault.com | |
813,103 | How do I get the OpenSSH SFTP subsystem for the client to honor LogLevel settings? | When connecting to a server via SFTP, I can use [CODE] to specify a [CODE] , like so: [CODE] This spits out a ton of debug information about the login process. However, it gets to this point and all debugs cease: [CODE] What about that [CODE] command? Where can I get debugs for that? [CODE] ? [CODE] ? Also, I don't hav... | Use the [CODE] switch to the [CODE] . The options [CODE] are passed directly to the [CODE] process but not effective to the [CODE] itself. It is well described in the manual page for [CODE] : [CODE] Also the [CODE] explains that it is passed to the [CODE] and not effective in [CODE] process: [CODE] Can be used to pass ... | 0 | 3 | 671 | 2016-11-03T23:36:33.897 | infrastructure | serverfault.com | |
45,779 | Best approach & tool to do performance testing in order to compare old system and New system | I got a requirement to do performance testing comparing the old system with the new system. Basically migrated from the cloud to AWS so the requirement is to check the performance for all the critical functionality. Can anyone please suggest me the best tool to do this and what sort of approach I can follow? Also pleas... | Basically you need to implement a load test Implement the scenario(s) of your application usage by real users (or other systems) using a load testing tool Execute the test against the "old" system and collect relevant metrics , the key ones are: average response time (as well as percentiles ) throughput (number or requ... | 0 | 1 | 346 | 2020-09-17T15:55:30.937 | data_quality | sqa.stackexchange.com | |
335,032 | MySQL transaction issue with Django and Amazon RDS | I'm having a problem with a MySQL 5.5 database instance running on Amazon RDS. Periodically (once every couple of days) a transaction will fail to complete and appears to leave the tables locked. Normally the transaction times out and everything returns to normal but several times the transaction stays open and the dat... | I've had similar issues with RDS. The techs were never able to nail it down.. we just moved it off RDS and back on to ec2 and the issues went away. | 5 | 1 | 806 | 2011-11-26T18:44:49.393 | database_errors | serverfault.com | |
371,082 | Why is IIS7 not compressing my static files? | I am trying to get IIS to compress jquery.js (and all other static files, but using jquery as the example here) on my localhost, but something goes wrong. The funny part is that when I look in my %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files\MySiteName, I see the jquery.js file there, and its size is 24 KB.... | I noticed that in my Failed Request Log (which I had to set up a rule in that made sure it logged successful requests) the jquery file compression was not a success with the error code NOT_FREQUENTLY_HIT. So I tried making a bunch of requests manually by refreshing the browser and all of a sudden the jquery file had be... | 5 | 2 | 3,878 | 2012-03-19T11:04:52.493 | infrastructure | serverfault.com | |
77,080 | Is tlog backup on replica clearing VLFs on the primary? | Is it true that a transaction log backup made on the secondary database is clearing the inactive VLFs on the tlog file on the primary database (in case of Availability Groups)? I was not able to find an official documentation/statement/article that confirms this. This is the most detailed article I have found, but the ... | Thomas Stringer has answered a very similar question at: Transaction Log Maintanance While Using AlwaysOn Availability Group The answer is that the Availability Group replicas are aware of each other and when either the primary or secondary does a backup, both logs are able to free log space. The article you referenced... | 3 | 4 | 105 | 2014-09-19T12:36:35.157 | database_errors | dba.stackexchange.com | |
442,755 | Replace DNS on Openvpn client without redirect-gateway | I am trying to push DNS to the client with OpenVPN server with config: [CODE] It is working well, but what I really need is that during the VPN connection I do not want to use my primary resolvers, clients should use only the DNS provided by the server. It can be done with push redirect-gateway , but I do not want to t... | Use [CODE] , but also add [CODE] per every network you want to route through VPN. Btw note that DNS setting on other interfaces will stop work, when that interface will not have route to its DNS servers. This is what happens when [CODE] drops default gateway from your (W)LAN interface and adds host route to VPN server ... | 5 | 3 | 4,029 | 2012-10-26T17:12:19.783 | infrastructure | serverfault.com | |
20,240 | What is the best PHP ORM library? | I want to build a PHP web application, but always faces the problem that I need to connect to database and deal with related objects. So I tried codeigniter and it uses a special way to connect to database named Active Record and I've known that its an ORM technique and there are lot of ORM libraries out there. What is... | RedBean is what I use for such purpose: http://redbeanphp.com/ RedBean eases the development phase with automatic schema modifications, on the fly. it works very well with MySQL and SQLite but other databases supported by PDO should work too. | 8 | 4 | 8,654 | 2010-11-20T13:47:15.780 | api_errors | softwareengineering.stackexchange.com | |
995,716 | Is it possible to run resmon.exe (Resource Monitor) on Hyper-V Server 2016, and how if yes? | I wanted to monitor a Hyper-V Server 2016 machine. While Task Manager is giving me some basic information, I wanted to dig deeper, in which Resource Monitor (resmon.exe) is doing just fine on graphical editions of Windows. Unfortunately, Hyper-V Server 2016 doesn't seem to have resmon installed and even copying the exe... | While I was searching further for a solution, I found something that can work pretty well as a workaround. It's NirSoft's FileActivityWatch utility. While it doesn't show file transfer speeds and network operations, it shows what files are read, written and how many bytes, which fits my needs quite well. | 0 | 0 | 624 | 2019-12-16T12:27:50.183 | infrastructure | serverfault.com | |
124,408 | If else with 5 possible cases PostgreSQL | I have bunch of records in Database and i have been searching for query on NULL json object and i got that right,but now its difficult for me to continue it on 5 possible cases For example: am showing data on basis of 5 cases and 3 attributes [CODE] cases are 1: [CODE] can be null 2: [CODE] can be null 3: [CODE] can be... | Despite the long comments, it's still not clear if you need one query for each case or a single query that includes all five of them. So, we'll take them separately: [CODE] is null [CODE] [CODE] is null (omitting the select): [CODE] [CODE] is null [CODE] all three are null (you got that right!): [CODE] two out of three... | 0 | 1 | 53 | 2015-12-23T06:28:40.850 | database_errors | dba.stackexchange.com | |
726,964 | Does this means SSLv3 is enabled? | With New, , Cipher is does it means that SSLV3 is enabled or disabled? [CODE] | [CODE] This means that no SSL handshake was done (no bytes transferred for SSL handshake). The attempt to initiate the handshake caused errno=104 which is at least on Linux "Connection reset by peer". This is caused by the server closing the connection to the client immediately after the TCP connection setup. | 0 | 1 | 1,476 | 2015-10-06T06:28:21.020 | infrastructure | serverfault.com | |
1,042,678 | Where is the System maintenance switch on HP ProLiant dl360 Gen 7 | I can not understand which is a possible switch, I could not even see pins. Please let me know if I am missing anything. | According to Document "HP ProLiant DL360 G7 Server Maintenance and Service Guide" (Fourth Edition) location of System Switch marked as 2 Item Number 2: | 0 | 1 | 2,460 | 2020-11-16T01:30:44.837 | infrastructure | serverfault.com | |
198,416 | Configuring an apache virtualhost to link to another's virtualhost's subdomain | I have a domain on my server (on its own virtualhost), e.g. domain.com, which has a lot of subdomains with content on it. sub1.domain.com sub2.domain.com This virtualhost looks like this: [CODE] I want to put other domains on the server and have each of them link to a specific subdomain on domain.com. I don't want it t... | If the following doesn't do what you want, please explain why. [CODE] | 1 | 0 | 227 | 2010-11-05T02:08:49.177 | infrastructure | serverfault.com | |
1,001,747 | Is there a claim type in ADFS that states if the authentication was performed on the private or public interfaces? | Although I don't recall the correct terminology, my understanding is that a particular relay application may be provisioned separately for intranet only, or both intranet and internet. I would be interested to pass the information about which of the two endpoints was used for each new session, into the assertions to th... | If you go to ADFS directly (as opposed as to via the WAP) you get the claim: http://schemas.microsoft.com/ws/2012/01/insidecorporatenetwork | 0 | 1 | 25 | 2020-02-04T16:07:05.650 | api_errors | serverfault.com | |
803,322 | "The hardware ID does not match the one designated on the software license" error connecting to Server 2008 via RDP | I have two Windows 10 Pro computers that connect to a Server 2008 Remote Desktop server. They have been connecting sucessfully for a few weeks. Just recently, one PC started displaying a "The hardware ID does not match the one designated on the software license" error when I try to connect via RDP. Then, few days later... | I do think this is related to the Windows 10 Anniversary update, but I don't know any details. It looks like you already resolved the problem, but for anyone else, here's what fixed it for me: In regedit, delete this key and its sub keys: [CODE] . Then run Remote Desktop Connection Manager as Administrator , and it wil... | 2 | 3 | 3,808 | 2016-09-15T15:37:18.213 | infrastructure | serverfault.com | |
532,079 | Can postgres go faster? | My question is simply: have i missed any configuration settings that might make postgres achieve better read throughput? Background I'm modeling a very simple twitter program. My schema has only 3 tables: subscriptions , posts , and timelines . I have indexes on each of the tables, most importantly the timeline.time fi... | Yes, this is possible. Here's a quick recipe: Find out what's the slowest part Make it go faster If you think this answer is too generic and useless, well so was the question :) So unless you have more specific issues/problems/questions, I think this is the best we can do. | -3 | 3 | 439 | 2013-08-19T16:56:30.657 | infrastructure | serverfault.com | |
107,134 | I am designing a database for a game and the only option I can see a multiple table solution. Is there an option that I'm not seeing? | I searched but could find a similar situation, if I missed it please let me know. In this game there are approx 14,000 items which have their own table. The players will want to build multiple collections of these items. The collections would generally range from 20 to 100 different items in varying quantities, but cou... | You want to store an undefinied number of items in a list, for this you need a new table or cleaner two tables. you already have the first table called items, each has an item_id. Then one table holds all the references to the collections, so best case only a new collection_id for every of the collection. And the impor... | 0 | 1 | 82 | 2015-07-16T01:38:42.750 | warehouse_errors | dba.stackexchange.com | |
276,035 | Which database to use when you have a 6 billion of rows inside and need to query rows with from list of IDs? | We are currently researching our case of storing the road distances between cities. Right now we have 6 billion of those distances. Our structure right now in SQL Server is that we have a [CODE] which represents the relationship between cities. For example if we have a city with [CODE] 1 inside the [CODE] table and a c... | My assumption here is using [CODE] in place of the actual composite key is slowing the query engine's ability to create the proper estimates. So instead of using the "clever" column, just use a composite primary key: [CODE] Easy enough to find the single distance: [CODE] But as you said the secondary requirement is to ... | -1 | 4 | 357 | 2020-09-24T16:47:50.900 | database_errors | dba.stackexchange.com | |
951,640 | WiredTiger storage engine reports a large number of rollbacks in MongoDB | We have a MongoDB replication set consisting of three members: [CODE] The cluster is under moderate load, not more than few tens of requests per second. [CODE] on a primary reports that almost all transactions are rolled back: [CODE] Basically, my questions are: What is going on here? Is it normal to have so many trans... | Many of the metrics in [CODE] can be confusing since they are reflecting the underlying WiredTiger storage engine metrics and terminology rather than the MongoDB API. Terms like transactions , sessions , and rollbacks have a different context for storage internals than the end user MongoDB features. Some of the exposed... | 1 | 3 | 1,055 | 2019-01-31T07:40:28.297 | database_errors | serverfault.com | |
46,998 | How to handle "or" possibilities in MongoDB | I'm new to MongoDB and by no means an expert in DB design in general. This feels like a really basic question that's probably been answered a million times, but I'm having a surprisingly hard time finding an answer for it: is there a good way to easily handle either/or choices in the DB, or structure it in a way that m... | In cases where there is a legitimate option to use a substitute ingredient you can do one of several things, all involving storing the option in the ingredients array. One way could be to add a field to an array element as "allowedSubstitutions": "different liquor" another way would be to turn "ingredient" into an arra... | 2 | 2 | 99 | 2013-07-25T15:33:32.767 | database_errors | dba.stackexchange.com | |
584,421 | How can I resolve "(Service check did not exit properly)" and "(null)" results with my services? | I'm using some Perl-based scripts for service checks in Nagios and I get [CODE] and [CODE] as the result in Nagios, but the script works great on the command line. I've seen solutions online suggesting to disable the internal Perl interpreter by setting [CODE] in the Nagios configuration or by specifying the path to an... | Some Perl scripts from the Nagios Exchange will try to include the [CODE] Perl module. You'll find a line like this somewhere in it: [CODE] When installing Nagios on Debian, the default location of the [CODE] file is [CODE] . So the [CODE] directive should be: [CODE] Executing the command from the command line most lik... | 10 | 3 | 11,719 | 2014-03-25T16:48:03.703 | infrastructure | serverfault.com | |
312,606 | Load Balancers w/ Name-based Virtual Hosts | Are there any issues using Amazon's Elastic Load Balancer to forward requests to multiple EC2 instances that use name-based virtual hosting? In other words, is the HTTP header forwarded properly so Apache can determine which files to serve? | Yes, you can do name-based virtual hosting with ELB. | 3 | 2 | 594 | 2011-09-17T23:44:08.387 | database_errors | serverfault.com | |
314,181 | How to Upgrade from OpenSSL 0.9.8e to openssl-1.0.0e | EDIT When I check the version in Putty "openssl version" it says Im using the new version but php is still showing the old? I did the following with Putty and it looked like it worked but I am still seeing the old version when I view my phpinfo() file. I am failing the PCI test and really need to get this fixed. Do I n... | In addition to Ignacio's post: http://blog.800hosting.com/tag/centos-redhat-rpm-pci-compliance/ https://stackoverflow.com/questions/1837145/pci-compliance-magento-php-version | 1 | 0 | 7,838 | 2011-09-22T01:35:04.820 | infrastructure | serverfault.com | |
611,504 | TCP packet which is absent in strace log | Can somebody give me ideas about following situation (Linux 2.6.18-348.4.1.el5 ): At some point tcpdump shows [FIN, ACK] packet sent from server port to local client strace log shows no socket activity performed on that socket handle for that port near that moment (strace log properly shows the rest of communication fo... | kasperd was right about strace not showing all threads of the process (somehow I was sure that attaching to process will monitor all threads). So auditd confirmed it is my application closing the socket (because some misterious "signal 33" happens and recv() doesn't handle EINTR properly. I will ask another question ab... | 1 | 0 | 685 | 2014-07-10T09:23:31.917 | api_errors | serverfault.com | |
442,130 | How to solve duplicate request with Distributed Lock Management in Golang | I’m trying to test concurrently request (brute force test), with 1000 request/sec (same request id). I’m using Rest API. The service running on distributed system, I’m using 3 pods. The problem is I got duplication when inserting data, because we use distributed 3 pods consume concurrently (the request). Then I tried s... | I know i'm late to the party, but to anyone interested, there is a distributed redis lock https://github.com/go-redsync/redsync . It doesn't follow Lock interface strictly, but it should be easy to implement. | 1 | 0 | 210 | 2022-11-07T06:24:27.870 | data_quality | softwareengineering.stackexchange.com | |
541,606 | Dovecot emails not deletable | I have a Dovecot mail server running an everything is working fine - all emails arrive and new messages can go out. To give the users the possibility to read their emails and to write them, i have installed an RoundCube webmailer. It is working all The emails are stored in mbox format, so in a single file. Now to the p... | When you "delete" somthing in IMAP it does not usually get deleted immediately, instead the [CODE] flag gets set on the message. That message will sit on the server until either an IMAP [CODE] command is received for the mailbox, or doomsday arrives. There should be a button in RoundCube to perform an expunge operation... | 1 | 2 | 3,441 | 2013-09-25T16:37:48.013 | infrastructure | serverfault.com | |
159,146 | Sporadic unittests or TDD? | I've read some basics about unit tests and TDD, but I find it hard to convince myself why TDD can have an advantage over only selected unittests. I've read common arguments for TDD, but don't see the improvment compared to simple unittests. Maybe you can help to clarify: TDD allows a loosely coupled, testable design ->... | TDD allows a loosely coupled, testable design -> I believe I can well imagine if a class is theoretically testable, without having to write tests; Loose coupling is a fundamental requirement that one can judge without refering to TDD?! You are right TDD helps you learn how to design this way, by forcing you to. But rid... | 5 | 4 | 618 | 2012-08-02T08:56:19.620 | api_errors | softwareengineering.stackexchange.com | |
10,461 | Selenium WebDriver Stops when Window goes Out of Focus? | I am running a Selenium WebDriver Script in java to read excel file and write data in a Web application. I am instantiating a Firefox Webdriver. The problem is that Script runs fine, but when test case is running and i click somewhere on the Web application Screen, web driver Stops running or even when i change focus t... | I have experienced the same thing. I believe that for some reason it stops executing Java scripts on the page once the focus to the browser is lost. My quick workaround was to create a Linux VM on my Mac, and do all the testing (and development) in it, because then the browser is always in focus, even when you do other... | 0 | 1 | 1,979 | 2014-12-05T07:04:06.670 | data_quality | sqa.stackexchange.com | |
271,324 | Is having source code for a Go project outside GOPATH a bad idea | I am working on a new project using Go, and we are all new to Go. We are following the standard go directory structure, and having all code under $GOPATH/src/github.com/companyname/projectname which is also the root of a git repository The standard recommended path layout does seem a bit strange, especially if we are w... | 2019 Update You no longer need to store your project under [CODE] . Put it in a directory outside of [CODE] . Then type: [CODE] You'll be good to go. | 36 | 7 | 14,110 | 2015-01-27T19:57:40.090 | pipeline_ops | softwareengineering.stackexchange.com | |
212,458 | MOSS 2007 - Getting Error When Trying to Add Colleague to My Site - "User Cannot Be Found in the User Profile Store" | An end user is trying to add some colleagues to his "My Site" within SharePoint. Many of the users he is able to add without an issue. However, some others he gets the error "Firstname Surname cannot be found in the User Profile Store." I've found others with the same issue elsewhere via Google but haven't found any so... | I seem to recall that Sharepoint synncs user information in from Active Directory. The error would indicate Sharepoint doesn't yet know about the user. Have you treid adding them by email address? \\Greg | 0 | 1 | 401 | 2010-12-14T14:43:23.450 | infrastructure | serverfault.com | |
528,333 | After updating sudoers user still does not have access to sudo | I'm having problems adding a user to the sudoers list via the /etc/sudoers file. [CODE] And they said I was crazy! [CODE] The file opens in vi: [CODE] I save the file. It shows "unchanged" here because I'd already done it. [CODE] Log in as yvonne… [CODE] Try to run anything via [CODE] : [CODE] I'm perplexed, can anyone... | [CODE] is the group assignment operator in sudoers. I think you want the line to read: [CODE] | 0 | 6 | 2,114 | 2013-08-02T18:43:40.897 | infrastructure | serverfault.com | |
233,335 | Plone ERROR ZServer uncaptured python exception | Afternoon, I'm running Plone 2.5.3 on SLES 10. With a separate Apache server (192.168.6.80) using mod rewrite to access Plone. Recently been experiencing slow performance loading pages. When I checked the ZOPE events.log there are lots of: [CODE] I found a post which suggested this error is just caused by users navigai... | This is indeed normal behaviour, the errors are indeed caused by prematurely closing the socket (before the request has been fully read or the response has been fully sent). | 2 | 0 | 494 | 2011-02-09T15:36:02.580 | infrastructure | serverfault.com | |
30,812 | How to use the same minmaxscaler used on the training data with new data? | Im using the keras LSTM model to make prediction, and the code above is to scale the data: inputs are shaped like (n, 11, 1) and the label is 1D DailyDemand.py [CODE] and Now im trying to predict a new values of a new data with this trained model. so i loaded the model from the files: predict.py [CODE] [CODE] [CODE] Th... | You are refitting [CODE] on your test set, which you don't want. Change this line: [CODE] to [CODE] You are getting [CODE] because with one sample, each feature is equal to the minimum. | 4 | 5 | 13,543 | 2018-04-25T11:42:10.643 | data_quality | datascience.stackexchange.com | |
98,293 | How to move a 80GB MySQL Database with least effort and least time offline? | Im a software developer with 4 years experience but brand new in my company, my first job is to move a 80GB mySQL database from a very very small and old database server to a brand new. The problem: It is the alltime working database for nearly everything in my company... I can't reduce the data to less gb because it i... | The main problem with MyISAM is that you cannot create a copy of the database without locking the tables (otherwise the copy may be inconsistent). I would recommend you to research a potential migration to InnoDB. You will have to execute [CODE] in order to lock all tables in read only mode, then copy all the [CODE] , ... | 3 | 1 | 326 | 2015-04-20T10:36:49.603 | database_errors | dba.stackexchange.com | |
284,711 | Safe and secure implementation of logon trigger in SQL Server 2014 Express edition? | I've to implement the following requirement: Access to SQL Server instance shall be allowed only from a C# application. Users shall not be able to access any database (even those in which they have access) via SQLCMD, SSMS. Access using SSMS shall be allowed only for logins that are sysadmin, serveradmin. Connection fr... | You can try to do this... [CODE] ...but, since application name and other connection properties are easily spoofed , it is very easy for your users to bypass them - they can just tell SSMS, for example, that it should present itself as the same [CODE] . So, it all depends on your definition of "in a reliable manner." W... | 0 | 3 | 462 | 2021-02-04T17:06:09.077 | database_errors | dba.stackexchange.com | |
158,805 | Auto Update Stats not updating Statistics | Am using [CODE] I have my [CODE] ON in my database. From the below link I learned that, the Auto Update stats will fire for every [CODE] change in table rows. https://blogs.msdn.microsoft.com/srgolla/2012/09/04/sql-server-statistics-explained/ I created a table with 1000 records [CODE] Creating statistics [CODE] Checki... | The new calculation is only used if trace flag 2371 is enabled, except on SQL Server 2016 when the context database compatibility level is set to 130, where it is the default behaviour. See Microsoft KB 2754171: Controlling Autostat (AUTO_UPDATE_STATISTICS) behavior in SQL Server Statistics are not updated when data is... | 8 | 11 | 4,891 | 2016-12-21T12:53:33.500 | database_errors | dba.stackexchange.com | |
58,659 | Are there advantages to using temporary tables over derived tables in SQL Server? | I read the derived tables have better performance than temporary tables, but anyway many SQL Server developers prefer the second ones. Why? I must do queries with large data (millions records) and I want to be sure I am using the best choice. [CODE] Derived tables [CODE] Temporary tables [CODE] | @user16484 already directed you to Which one have better performance : Derived Tables or Temporary Tables in the comment. Also see Temp Table 'vs' Table Variable 'vs' CTE. which also covers derived tables. A quick summary: #temp tables can be indexed, can have UNIQUE indexes/constraints, can be references more than one... | 8 | 6 | 22,644 | 2014-02-11T14:53:59.020 | database_errors | dba.stackexchange.com | |
243,562 | LVM: resize2fs not resizing | I'm having a weird issue with resize2fs. I've performed all the commands and they all have been successful, however, my filesystem is the same size as it was before: [oracle@server~]$ df -h /backup Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg2-lv_backup 985G 973G 2.4G 100% /backup [root@server~]# pvcreate ... | The lvextend command you executed would only extend the filesystem by 800MB (assuming default extent size), a rounding error when you're looking at TB filesystems. The [CODE] flag means "extents" which, by default, are 4MB in size. If you wish to grow the filesystem by, say, 200GB, the command would be: [CODE] . (Note ... | 6 | 5 | 4,429 | 2011-03-05T07:56:54.543 | database_errors | serverfault.com | |
227,287 | Availability Group cluster memory issue after network issues. How to dump HADR Log Block Msg Pool? | We have a four node Availability Group, two nodes in one site, two nodes off site in another data center. I have noticed after every WAN issue where the WAN connection is flapping, and the off site nodes constantly disconnect and reconnect (using AOAG health from the AOAG dashboard), the memory of the primary server ge... | I have noticed after every WAN issue where the WAN connection is flapping, and the off site nodes constantly disconnect and reconnect, the memory of the primary server gets consumed by the "HADR Log Block Msg Pool" Yes, this is currently by design. It is expected that the network between the two sites can handle the tr... | 2 | 7 | 628 | 2019-01-16T14:04:54.430 | database_errors | dba.stackexchange.com | |
395,559 | Stopping an specify Apache instance | I have two Apache instances setup in my server (Solaris 10): Instance 1 : /etc/apache2 Instance 2 : /etc/apache2-instance2 To start the instance 1 , I execute the following command: /usr/apache2/bin/apachectl -f /etc/apache2/httpd.conf And instance 2 : [CODE] Both instances run perfectly, however the problem comes when... | You should be able to tell Apache to use the config file while shutting down. [CODE] that will make it look in the correct place for the PID. | 0 | 1 | 2,236 | 2012-06-04T20:58:36.117 | infrastructure | serverfault.com | |
1,152,310 | Fail2Ban: RegEx to filter all 404 errors out of the Apache-log | In my logs I regularly see loads of 404-errors where bots obviously do scan the server systematically for specific software installations. As this also causes loads of traffic, I want to ban them. So based on some HowTos I tried to find a RegEx for fail2ban which filters these 404-requests out of the Apache-logs and ba... | [CODE] by default has a different [CODE] which is prefixed by a [CODE] when compared with the standard [CODE] [CODE] . You need to modify the regex accordingly. | 0 | 1 | 152 | 2024-01-26T06:44:55.690 | infrastructure | serverfault.com | |
4,979 | Matlab simulation through FIS and Markov Process | I need to simulate for an academical project how the traffic fluxes (input/output with respect to a monitored area, measured in number of cars) of a city area evolves in correspondence of an event (i.e. the opening of a restricted traffic area to decongest the traffic). I have some simulated sensors that provide the da... | I don't really get why would you mix Fuzziness and Probabilities. HMMs already can give you probabilities without the need of adding Fuzzy systems into the mix. I would just do a random walk with probabilities of transitions defined by the state of the lights. | 0 | 1 | 76 | 2015-01-29T11:35:07.657 | airflow_errors | datascience.stackexchange.com | |
273,582 | SQL Server Connection Timeouts | Our SQL Server 2008 has been working for quite a while, but then we suddenly got connection timeouts. We couldn't find an answer to the problem and ended up enabling Named Pipes just to get our applications working, but this is not a great solution (some apps we have to open twice, first time fails second time it fires... | It would seem that I found an answer: The server was using dynamic ports which we changed to use port 1433 only. We confirmed that inbound connections were enabled in the firewall settings. Disabled SQL Browser Tested the connection using Telnet and SQL Server Management Studio Then we switched the SQL Browser back on ... | 0 | 0 | 85 | 2011-05-25T12:30:23.527 | database_errors | serverfault.com | |
240,661 | move postgresql 9.4 cluster to new server | I have a redmine postgresql folder backup (no dump) from postgresql 9.4 and want to move it to a new server with debian 10 (buster) with postgres 11. On my debian buster server I tried to get this old database running, so I installed the old postgresql-9.4 there with this tutorial: https://wiki.postgresql.org/wiki/Apt#... | I solved it like this: I had to restore the old config too in [CODE] Then I could start the old main cluster with [CODE] Then I had to update redmine: [CODE] and start [CODE] check if redmine is working correctly in your browser, Now you can upgrade postgresql to 11. first dump the database with [CODE] remove postgres ... | 1 | 1 | 370 | 2019-06-16T06:15:54.193 | database_errors | dba.stackexchange.com | |
22,014 | Does MySQL have a limitation of one index per query? | MySQL supports spatial index. However, all the spatial index can do is find points in a box. It can't do fancy stuff like find the nearest 1000 points, etc. I think, and I don't know where I went wrong, that simply finding points in a box is easy – just do constraints: [CODE] Yes those are 4 constraints that use at lea... | There are multiple questions here. To answer the title: MySQL can utilize more than one index per query. This is called index-merge . However, it does not always happen that index-merge optimization is used. "Normal" indexes are B/B+ Trees. Such trees provide with linear sorting. You can index [CODE] , and the index so... | 2 | 6 | 2,260 | 2012-08-05T06:59:36.073 | data_quality | dba.stackexchange.com | |
327,884 | Why do I see a large performance hit with DRBD? | I see a much larger performance hit with DRBD than their user manual says I should get. I'm using DRBD 8.3.7 (Fedora 13 RPMs). I've setup a DRBD test and measured throughput of disk and network without DRBD: [CODE] / is a logical volume on the disk I'm testing with, mounted without DRBD iperf: [CODE] According to Throu... | You are limiting the bandwith with "rate=33M" why? You are using the synchronous protocol "C" why? I usally use protocol "A" and 8 MB buffer. For a Gigabit line and heavy traffic I limit to "rate=90M". | 7 | 2 | 5,585 | 2011-11-04T17:02:30.220 | pipeline_ops | serverfault.com | |
478,669 | How to get /proc/[pid]/cmdline to contain command arguments? | I am running into an issue where some of my Ubuntu/Debian servers do not show the arguments passed to rake in either top or ps. I have tracked this problem down to a variation in output given by /proc/[pid]/cmdline. This is the file that seems to control what is shown by ps and top. On the servers that correctly show t... | The short answer is: you can't. Only the process itself has any influence on the contents of [CODE] . Some tools (ab)use this to override what top and ps display. So either those rake instances have done this, or they simply don't have any arguments to begin with. If rake uses this trick, and you don't want it to, mayb... | 4 | 5 | 2,009 | 2013-02-14T05:43:34.297 | infrastructure | serverfault.com | |
37,671 | A Neural Network That Learns Bitwise XOR | I am trying to build a deep neural network that learns the coordinate-coordinate bitwise XOR of two matrices, but it performs poorly. For example, in the 2 bits case, its accuracy stays around 0.5. Here is the code snippet: [CODE] What's going on here? [CODE] | I think there might be a few things going on. You might have a reason but I don't know why you have shaped your input data into three dimensions: [CODE] . Also, you might have a reason but I don't know why you ran each feature separately through a different layer (each with a single hidden unit), and then merged the ou... | 5 | 4 | 532 | 2018-09-01T00:20:56.183 | data_quality | datascience.stackexchange.com | |
121,145 | virtual machine doesn't recognise ip of the Machine it run on | I am using virtualBox to create a virtual XP machine on my XP using Bridge connection. From my VM I am able to ping to any other IP on the network except for the IP which the VM is run on. any idea? | Your host is running a firewall that blocks pings? | 0 | 2 | 50 | 2010-03-10T15:52:31.150 | infrastructure | serverfault.com | |
380,199 | Architecture for multi-tenant application | We've built a custom CRM for one of our clients. Stack: asp.net MVC, SQL Server, Azure Some of the logic / features were hardcoded specifically for this one client. Now, more clients want to use our software but hosted separately because each client has their vision of the product and features that they want to impleme... | It is not scalable to maintain one fork of your software per client, regardless of whether you try to maintain this as multiple repositories or as multiple branches in one repository. You will be unable to apply cross-cutting changes to all your clients, except with extraordinary effort. Common cross-cutting changes ar... | 2 | 4 | 1,279 | 2018-10-17T20:36:12.167 | database_errors | softwareengineering.stackexchange.com | |
514,358 | authentication failed starting psql | After installing postgres, I tried to start psql on my VPS and got an authentication failure [CODE] I went back to my install instructions, which had me set my password this way [CODE] I tried to do that again but wasn't able to login: [CODE] I'm thinking that I either forgot the password, or, more likely, did this ste... | Have you actually set passwords on these database accounts prior to enabling MD5 password authentication? If you haven't set a password (or you have but you don't remember them) you can reset the passwords by setting the authentication type to [CODE] in [CODE] , logging in as your Postgres superuser account, and changi... | -1 | 1 | 2,780 | 2013-06-08T18:25:47.970 | database_errors | serverfault.com | |
18,577 | Methods to analyze time series data when only small amount of it is labeled | I have time series data out of which only 10% is labeled into 10 classes. What should be the methods or models that I should look for to analyze this problem? I know the question is a bit vague but I am not looking for exact answers. I would appreciate any pointers or resources on how to approach these types of problem... | As mentioned in the comments semi-supervised methods are worth having a read. If the time-series are labelled per time-step you can make use of dynamical systems and Gaussian processes. Some methods that could be useful using NN's are: Pretraining a neural network using an auto encoder. You can use an RNN to encode the... | 1 | 2 | 274 | 2017-04-25T08:08:12.643 | data_quality | datascience.stackexchange.com | |
345,825 | iptables routing - openVPN host inaccessible publicly | i have a dedicated openVPN server sitting behind a NAT router and i have the server's static IP set in the DMZ; the problem is that with current rule set (as seen in the screenshot below) i cannot connect to the VPN server from the internet, nor SSH for that matter; however, if i allow traffic on eth0 all is fine but t... | I had posted linked question on the ubuntu forums and an user did answer my question and it is all fine but they did not seem to claim credit on here :( so i am linking back to the forums and posting the answer! i guess i needed the destination port conditional and not source, terminology confusion :) If I understand c... | 1 | 0 | 751 | 2012-01-02T06:45:36.620 | infrastructure | serverfault.com | |
95,675 | Is C collation suitable for my Postgres database? | I am working with 500m rows (120GB) in Postgres 9.4, and I am trying to make SELECT statements as fast as possible. I am less concerned about the speed of INSERT and UPDATE, because my data only changes once a quarter and I'll probably use a backup database and switch over when that happens. I'm working on a Debian Whe... | From what you're describing, it doesn't sound like anything is contraindicated related to the C collation order. In fact, Robert Haas, has a great discussion on the subject here, which seems to come to the conclusion that if you don't need locale aware sorting, just don't use it: Perils of Collation Aware Comparisons I... | 2 | 1 | 1,134 | 2015-03-19T12:12:38.017 | api_errors | dba.stackexchange.com | |
624,172 | What's the best way to shutdown one Citrix XenApp 6.5 server in a farm with users connected? | I have a citrix farm with four application servers. The users base connections are spread out over the four for load balancing. I want to shut one down for maintenance. Can I go ahead and do that without impacting the users? I'm assuming since the other three are still up, they will fail over to those for application u... | No no - not correct at all. If you have a server, RDP/TS or Citrix XenApp (ICA) with active user sessions on it, and turn that server off, it will kill the sessions for those users and anything they haven't saved will be lost (depending on application.) If they try to reconnect to the farm, and there are still servers ... | 1 | 1 | 1,533 | 2014-08-26T16:43:30.100 | infrastructure | serverfault.com | |
313,331 | How to setup DNS for two domain sharing one subnet | We have a subnet shared by two domains which has its own DNS servers. Forward lookup zone does not have a problem because the workstations will go and register itself on its respective DNS server. I have problem in setting up the reverse lookup zone. How do I setup the reverse lookup zone so that I can nslookup on any ... | From what I understand about your request, you want to have a delegation for in-addr.arpa resolution (reverse lookups) at a sub-class level. You might take a look at this document describing the process in some detail or refer to RFC 2317 which describes the IETF best current practice on this topic. The trouble with yo... | 0 | 1 | 3,091 | 2011-09-20T07:45:08.583 | infrastructure | serverfault.com | |
171,917 | sum of count in where clause (or having) in the same table with group by | I have a products table with columns [CODE] , [CODE] , [CODE] , [CODE] , [CODE] and more. Each bin stores 20 or 30 products. We need to group by [CODE] for dispatch and show sum of items in each bin. That makes the query look like: [CODE] This is working. It gives the following result: [CODE] Now I need to select bins ... | First limit the result to 500 (or whatever) and then [CODE] : [CODE] Optimal index for this query: [CODE] | 0 | 2 | 5,297 | 2017-04-25T11:32:51.770 | api_errors | dba.stackexchange.com | |
285,852 | Apache mod_ext_filter and mod_deflate response problem | I have a mod_ext_filter to replace the statics image url and mod_deflate to compress the web. If I use this two module separate and everything work fine. (1. Replace content ok and no compress 2. Compress content but no replace url) But if I use both module, then I got garbage and the response header not have gzip but ... | I ran across this myself. No combination of INFLATE, DEFLATE and my custom filter would work. It seemed to always perform the gzip DEFLATE before handing off to my customer filter. I'm using Apache 2.2.2. So essentially, when a gzip encoded response was received (reverse proxy mode) and passed along to my custom filter... | 1 | 2 | 1,689 | 2011-06-30T16:38:24.523 | infrastructure | serverfault.com | |
145,173 | Where should you put constants and why? | In our mostly large applications, we usually have a only few locations for "constants": One class for GUI and internal contstants (Tab Page titles, Group Box titles, calculation factors, enumerations) One class for database tables and columns (this part is generated code) plus readable names for them (manually assigned... | Constants that are specific to a class should go in that class's interface. Constants that are really configuration options should be part of a configuration class. If you provide accessors for the configuration options in that class (and use them in place of the constants elsewhere), you won't have to recompile the wh... | 53 | 46 | 64,339 | 2012-04-19T12:02:07.140 | api_errors | softwareengineering.stackexchange.com | |
1,060,949 | Unknown table 'table_io_waits_summary_by_table' in information_schema | how can i get IO stats per table in MySQL/MariaDB? [CODE] Here is the docs but I couldn't find anything: https://dev.mysql.com/doc/refman/8.0/en/performance-schema-table-wait-summary-tables.html#performance-schema-table-io-waits-summary-by-table-table | [CODE] comes from the [CODE] redundantly after the [CODE] . Are you asking "How do I ..." Or are you asking "Why does table [CODE] not exist" In either case, please provide the version of MySQL/MariaDB you are using. Please note that some tables have moved from [CODE] to [CODE] . Check there. MySQL and MariaDB are very... | 0 | 0 | 405 | 2021-04-20T13:57:47.330 | database_errors | serverfault.com | |
135,230 | enforcing data integrity for sequential relations | These are my tables: [CODE] An insert would look like: [CODE] Given the above data: I want to ensure that a departure time in the second segment is after the arrival time of the first segment. Which means the following insert should fail for the second segment: [CODE] There could be many segments for one trip. There ar... | You can make use of an EXCLUSION constraint and tsrange datatype instead of two timestamps. [CODE] You get: ERROR: conflicting key value violates exclusion constraint "trip_segments_travel_ts_excl" DETAIL: Key (travel_ts)=(["2013-01-30 19:55:00+11","2013-01-30 22:00:00+11"]) conflicts with existing key (travel_ts)=(["2... | 3 | 2 | 106 | 2016-04-14T00:29:42.093 | data_quality | dba.stackexchange.com | |
342,664 | Is there such a thing as a wireless access point that isn't also a client? | I come across a lot of technical literature that talks about a device being a "wireless access point/client/bridge", or "AP/client/repeater", or "AP/Client". I understand that bridging and repeating functions are not always available for every device. But is there such a thing as a wireless access point that doesn't al... | This is an explanation "as how I understand it" so if this is wrong please say so or edit. In my eyes, a wireless access point can fuction as a router or such normally, but in access point mode it will only accept/distribute wireless connections and not provide any services such as DHCP or DNS. This is done over a wire... | 0 | 5 | 141 | 2011-12-20T10:03:23.883 | infrastructure | serverfault.com | |
882,502 | Unable to open man pages | We have a newly cloned SLES 12 server on a VMware stack. Since the migration, all attempts to open a man page results in the following error message: [CODE] As a side note, non-root users have also been unable to ssh from this server to other servers on our network, resulting in a vague [CODE] message. | We solved the problem by correcting the permissions on /tmp which was not mounted properly after the clone. Simple mistake. Before: [CODE] After: [CODE] This solved both the problem opening man pages as well as the issue trying to ssh from that server. | 0 | 0 | 188 | 2017-11-08T17:02:51.657 | infrastructure | serverfault.com | |
531,434 | Getting the LDAP password from the LDAP Directory | First up, I know this question's got the potential to be downvoted and closed, nonetheless I think I will go ahead and ask it all the same because our issue is genuine enough. We have a mail server which runs OpenLDAP for authentication and Postfix+Cyrus. So far, it has been working fine. We have an idea to configure a... | If you specify the encrypted password in the ldif file, the new server should apply the password and the user should be able to use it. I don't know how the users in your server are organized, but here is an example: [CODE] This changes the password of user [CODE] to "sekretPass". There is no need do decrypt the passwo... | 2 | 3 | 15,033 | 2013-08-16T08:38:34.890 | database_errors | serverfault.com | |
1,090,169 | iptables: why are outgoing connections working even though no rules allow it | The INPUT and OUTPUT chain policies are set to DROP. Very few rules allowing only specific traffic between directly cable-connected devices. However, if I temporarily add a cable that goes to the router, why can I initiate outgoing connections and receive answers, like do [CODE] , even though there are no rules allowin... | [CODE] and [CODE] chains cover for communication where the source or destination of the traffic is the router itself. [CODE] covers the traffic that the router forwards from one interface to another (from LAN port to WAN port and vice versa. | 0 | 0 | 191 | 2022-01-16T11:00:02.090 | infrastructure | serverfault.com | |
909,809 | Need help to choose a desktop or server for the 50 clients in a local network? | We are going to build a application for school labs. Each lab contains maximum 60 students and all the students has to be connected in a local network. Each student will get a Android tablet or a desktop to watch the videos which will be served from a Lab's Server. Here server has following tasks. It has to download vi... | Looking at your requirements I don’t believe it has to be the most expensive server you can find. I think you’d be very comfortable with a 16Gb RAM with maybe a low level Xeon or even desktop grade processor such as an i5. I’d suggest maybe some SSD storage to give you that quicker access, doesn’t have to be high volum... | -1 | 0 | 45 | 2018-04-28T13:15:57.230 | infrastructure | serverfault.com | |
520,730 | nameserver is not resolving - hetzner root server | I bought new root server on hetzner with 2 additional IPs. CentOs 6.4 minimal version is installed. Based on this tutorial i assigned 2 additional IPs. ie, duplicated ifcfg-eth0 file to ifcfg-eth0:1 and ifcfg-eth0:2, then changed IP. It works. These additional IPs are used nameserver registration and registered [CODE] ... | I am not sure why they call these servers "root servers". They look like ordinary colocated servers to me. It might be an incorrect translation. Anyway, there is nothing magic about [CODE] and [CODE] subdomains. By convention these are nameservers for the domain, but this is neither necessary nor automatic. What you ne... | -2 | 2 | 2,178 | 2013-07-04T03:21:29.820 | data_quality | serverfault.com | |
838,899 | postfix doesnot work with me | I'm trying to setup postfix server I wrote this code in vi /etc/postfix/main.cf [CODE] and I wrote my email and password in this: [CODE] but when I wrote this command [CODE] Can anyone help? I will appreciate that. i got this error [CODE] | Both your errors seem to suggest your local network is the possible issue. There isn't anything obvious to me in the config you share that would be causing this - it seems like your local network might be part of the issue. You could test, of course: [CODE] | 0 | 1 | 603 | 2017-03-17T11:00:48.570 | infrastructure | serverfault.com | |
518,934 | ESXI 5.1 - Losing access to management interface on vSwitch1 when vSwitch0 loses network access | I'm probably missing something obvious here, but, I am trying to make some adjustments to the Vkernel Port management interface on vSwitch0 that is set to VLAN ID: All (4095). So I don't disconnect myself, I have added a second switch (vSwitch1), added the secondary NIC on my host to it and connected it to my switch. I... | For a change to the management vSwitch's vlan settings, it's probably easier to just make the change with the console interface. That being said, your problem with accessing management tools is probably this checkbox in the port group settings, which defaults to off: Edit the port group to check that box and you should... | 1 | 1 | 2,909 | 2013-06-27T05:53:16.097 | infrastructure | serverfault.com | |
1,079,455 | Using Putty/plink to connect to remote MySQL from Windows machine using Port Forwarding and multi hop SSH tunnel | I need to set up port forwarding from my local Windows machine Port 3307 to a remote MySQL server port 3306 but accessed via 2 Linux proxy servers and a Linux web server. I need to use Putty or plink.exe on the Windows machine to set up the connnection. See diagram I've found examples using Putty GUI or plink CLI to ac... | If there is no explicit requirement to use [CODE] / [CODE] , I would just use Windows built-in [CODE] for the purpose. It is the same SSH as in Unix. | 0 | 1 | 661 | 2021-10-04T04:09:29.107 | database_errors | serverfault.com | |
90,768 | How to change a web application that now needs to become OLTP and OLAP application? | Previously, I did a simple web application for an enterprise client using PHP and MySQL. After some time, it has grown to a point where I realized after talking with people here that I need to treat it as two separate apps OLTP and OLAP. I have tentatively decided that the OLTP will still continue to run using the curr... | OK - I'm going to slightly revise my advice in the previous thread . If you have only 1 physical server, you're always going to have problems with OLTP conflicting with OLAP - i.e. disk bottleneck. It would be far easier to use PostgreSQL as the server for both than the other way round - see my previous comments on the... | 1 | 2 | 628 | 2015-02-02T06:33:26.600 | database_errors | dba.stackexchange.com | |
236,376 | Java Singleton fields implementation | I have singleton in Java and I have realized, that I could make its fields static and it would work same way as regular instance fields. Would there be a performance / optimization difference? If so, what would turned out better? Is there a preferred way to implement singleton fields? (again, I am talking fields, not m... | Keep in mind that static does not mean unique in the entire application. It is just unique for the classloader. If you are working with multiple classloaders in an application server for example there will be multiple values for the same field. Instead of the static approach you should take a look into dependency injec... | 0 | 1 | 946 | 2014-04-19T09:52:49.153 | api_errors | softwareengineering.stackexchange.com | |
18,644 | Network Problems with IPCop and VMWare | My network architecture is very simple: firewall - 192.168.0.1 running IPCop vmware - 192.168.0.10 running Ubuntu Server Both computers are connected to a switch, as well as several workstations in the company (about 20 computers total) and a wireless access point. At some point (which I haven't been able to determine ... | It sounds like it's probably time to fire up Wireshark and see what's happening. No point guessing. | 1 | 2 | 1,552 | 2009-06-03T11:54:31.330 | infrastructure | serverfault.com | |
227,313 | Merge jsonb objects and sum their values over multiple rows | I save visits to my database. In my database I have a table with aggregations of visits called [CODE] . This table has one row per [CODE] per [CODE] . Both are fields in the table which will be used to query the rows needed for viewing statistics. For example I will query for the visits in the last 24 hours: [CODE] To ... | As I pointed out in comments I think this job would be easy to accomplish working with a disaggregated data, because now IMHO you must disaggregate it again: For example to get aggregated values for [CODE] : [CODE] hostname | ref_name | ref_value :---------- | :----------- | --------: example.com | example2.com | 4 exa... | 1 | 1 | 1,577 | 2019-01-16T19:00:15.220 | warehouse_errors | dba.stackexchange.com | |
193,240 | Windows Firewall service is ON, but Windows SBS Console (security tab) says that it isn't | i have problem using SBS server 2008, my server use windows server 2008 and the FIREWALL is automatic ON. but when i check in the SBS Console (security tab) the Server Firewall is OFF (Status Critical) why this is happen ?? i have try to OFF and then ON the Windows Firewall but when i refresh, still status is Critical ... | Went through many posts online, none worked for my issue. Ended up Restoring Default Policy in the "Advanced Firewall with Advanced Security" and voila. Although it could have been a multi-step repair, as I had originally deleted the REPOSITORY folder under [CODE] , which didn't fix this issue, BUT did fix an updates r... | -1 | 1 | 1,079 | 2010-10-21T02:38:58.930 | infrastructure | serverfault.com | |
729,160 | Puppet agent apply default configuration but doesn't apply node configuration | Puppet master version: 3.3.1 Puppet agent version: 3.3.1 Content of site.pp [CODE] In the folder where site.pp is located there is folder called 'VirtualMachines' In 'VirtualMachines' folder there is file called: server1mycompanycom.pp permissions for file server1mycompanycom.pp [CODE] Content of file server1mycompanyc... | I think I finally found the cause of the problem. After adding new node you need to restart puppet master and after it puppet master start to apply node configuration. How to restart puppet master: By default, running the puppet master command will start a Puppet master server daemonized in the background. To stop the ... | 1 | 0 | 509 | 2015-10-15T11:39:18.147 | pipeline_ops | serverfault.com | |
790,300 | Is it necessary to include "Connection: Keep-Alive" in the response message? | Based on my understanding, a server uses the [CODE] header in the response message to tell the client that it will not close the connection after sending the response message. But is it necessary for the server to include this header in the response message? or is it the default behavior for the server not to close the... | The fast answer no "No". Keep-Alive headers are HTTP 1.0 syntax and are not included i the HTTP 1.1 definition. HTTP 1.1 defaults to persistent connections, and does not need a mechanism to request them. Please refer to the RFCs for questions like this. HTTP 1.1 us defined in RFCs 7230 thru 7237 . The RFCs are availabl... | 2 | 2 | 3,217 | 2016-07-17T12:48:52.597 | infrastructure | serverfault.com | |
266,565 | How to fix MySQL high CPU usage running on VPS | I manage a WordPress site on virtual private server with 2 vCore, 80GB SSD, 4GB of memory, Ubuntu 18.04, Apache 2.4.29, and mysql community version 8.0.20. When started the site on the server, everything worked OK, but right after running database maintenance (simple table optimization), I’m noticing high processor uti... | [CODE] implies MyISAM. Don't use for MyISAM unless you have an overwhelmingly good reason (and it is a near certainty that you don't in 2020). query_cache almost always does more harm than good, which is why it has been completely removed in MySQL 8.0. Set: [CODE] 1) High mysqld CPU usage is almost never caused by conf... | 3 | 1 | 7,505 | 2020-05-05T23:30:32.330 | database_errors | dba.stackexchange.com | |
949,528 | NGINX Wordpress REST API not working with allow/deny in location block | I'm trying to restrict access to a WordPress REST API with NGINX (it's the main backend [CODE] block, no proxy): [CODE] The problem is, that WordPress always returns a [CODE] when trying to access an API endpoint ( [CODE] e.g.) with that configuration (no matter if it is the browser, which is passing all Cookies and Au... | as you requested, I'm posting my comments as an answer: Instead of using regex (which could be a little slower) you could use a simple location. Also, since the logic to redirect the "pretty" permalinks to the correct PHP file is inside another location directive, you need to copy it to your new custom location: [CODE]... | 0 | 2 | 8,488 | 2019-01-17T13:06:06.977 | api_errors | serverfault.com | |
831,407 | CentOS 7 / Apache / mod_wsgi - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2727: ordinal not in range(128) | I've deployed a Python web application (uses Pyramid) in Apache (httpd) using mod_wsgi. After starting the Apache service the error below (from Apache log) occurs when we make a http request to the web application... [CODE] That web python application works perfectly in all these distros: Ubuntu 14.04, Debian 8, RedHat... | The problem occurs because the [CODE] file of CentOS 7 has the character [CODE] (line [CODE] ) which is invalid for ascii (not extended). To figure this out I had to make some modifications to my Python 3.2.2 and reload my application. The solution is remove the [CODE] character or any other invalid (ascii) character! ... | 1 | 2 | 1,134 | 2017-02-08T18:11:40.727 | infrastructure | serverfault.com | |
244,108 | In chef, how do I access attributes within role files? | I'm able to set attributes in role files as documented but I'm not able to access attributes already set by cookbooks that I'm using. For example within /roles/appserver.rb: [CODE] What I get is an exception stating chef can't find the 'node' method/variable. Thanks | You cannot. The role Ruby DSL is converted from Ruby to JSON when you upload the role to the server with knife. The node object is not available, since it is not processed in the context of a Chef run. If you want to combine node attributes, instead, you should do that in a recipe, for example: [CODE] | 13 | 12 | 7,845 | 2011-03-07T09:11:49.010 | pipeline_ops | serverfault.com | |
765,966 | Puppet run command on master | I am trying to create a letsencrypt module in Puppet. Basically, what I am trying to achieve is the following: Adding a new node and importing my module: [CODE] The puppet master will then check in his file folder if there is already a private key and a CSR for the given URL and then either: copy the private key and th... | Puppet provides a function named [CODE] , which will populate a local manifest variable with the output of an arbitrary local command. It could be used to call a custom local script that performs the key generation, installs the public key locally, and returns the private key content, which can then be installed as a f... | 2 | 1 | 1,563 | 2016-03-24T20:26:58.483 | pipeline_ops | serverfault.com | |
95,008 | How to Improve this socket over TCP-IP system | Im new to Socket programming and im building a Socket over TCP-IP system with this architecture: Server: Basically a TCPIP Listener that waits for connection from the clients. Client: It knows the server Ip and try to connect, when the connection is set i can send commands from another client that acts like the ADMIN. ... | if i understood correctly, that would mean that all the led displays are physically connected to the serial port of the server. instead of doing this, you might want to check some serial-over-ip products. these products would allow your displays to be connected via serial to a "black box" but accessed through an ip add... | 0 | 1 | 603 | 2011-07-21T16:27:25.897 | api_errors | softwareengineering.stackexchange.com | |
84,881 | try to run java wapper "unable to bind listener to any port in the range 32000-32999" | I am try to run java wrapper on ubuntu this is a Server that Call Smartfoxserver and we are getting that error our ip table is empty and we allow all the all ip and ports "unable to bind listener to any port in the range 32000-32999" | Run [CODE] and check if there is no other process listening on those ports. Do you use SE Linux or some other security mechanism that can prevent application from binding to tcp ports and listening for incoming connections? Or maybe your server is configure to listen at ip address that is not bound to any of your netwo... | 1 | 1 | 1,757 | 2009-11-15T08:09:09.657 | infrastructure | serverfault.com | |
272,269 | Installing jems-installer on headless server, error | I'm trying to install JBoss on one of our virtual servers. I downloaded the jems-installer to install JBoss, but it's expecting to run in a GUI. This is the error I get. [CODE] How can I install JBoss without a GUI then. System: Redhat Linux Enterprise 5.5 | The JBoss documentation has an entry for this question . This link is for JBoss 4, but I guess the general approach has not changed, yet. Hope this helps. | 0 | 1 | 196 | 2011-05-21T19:35:19.557 | infrastructure | serverfault.com | |
868,309 | suEXEC queries www-data when trying to execute a script as userXYZ | I am setting up a suexec environment with Apache2 and PHP 7.0 with FastCGI. I have installed everything the normal way [CODE] My server has following structure: There are users who have their websites in /home/ username /public_html/ (linux user " username ") and there is a main website which has its docroot in /data/w... | According to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=785740 : The idea is to be able to have different apache2 processes running as different users be able to use different suexec configs. Thus, if apache2 runs under www-data only the file /etc/apache2/suexec/www-data is being considered. | 0 | 1 | 1,031 | 2017-08-12T11:00:04.750 | infrastructure | serverfault.com | |
301,050 | table or view does not exist while updating a table from private temporary | Facing with issue with executing multiple statements, I assume issue appearing while trying to update from temp table to existing table, having the exception like [CODE] with the following query [CODE] What I'm doing wrong here | The problem is that Oracle has to compile the entire block before it can execute it. When it tries to compile the block, it sees the reference to [CODE] in your [CODE] statement, fails to resolve that reference, and so the entire block fails to compile. If you want to create an object at runtime, all references to the ... | 1 | 3 | 341 | 2021-10-13T08:33:50.457 | warehouse_errors | dba.stackexchange.com | |
93,225 | How to tackle the outside party developement | Currently I'm working on a social networking project whose design is developed by the another company we are dealing with. We informed them that we need a task to be done on high priority to finish the project ASAP. We told them that what we need in the task and the party said, "What you do code or design?"? Is it thei... | i want to handle these situations my self not by boss You should be aware of exactly what your needs are as the developer, as well as the technical needs of the project at hand. If you can develop a sense of what the project is going to need next, than you can tell the 3rd party exactly what you need, and maybe even sp... | 0 | 1 | 145 | 2011-07-15T17:58:58.967 | api_errors | softwareengineering.stackexchange.com | |
511,542 | can't reset password from centos | I lost the root password. So I modified /etc/shadow and also changed '/etc/inittab' file to access single user mode. But both didn't work. It asked me for a password that I don't have. Why updating the two files doesn't work? I mount the file system, then overwrite the old shadow file with a new shadow file. I'm sure t... | How did you "modify [CODE] "? You should be able to copy a user's password hash from [CODE] from one a system on which you know the password "works" to this server's [CODE] and have it Just Work (TM). Oh, and don't edit [CODE] directly. Instead, use [CODE] . That will help prevent you from saving the file with formatti... | -1 | 4 | 198 | 2013-05-29T01:53:32.733 | data_quality | serverfault.com | |
1,143,867 | LDAP server migration from Debian to Ubuntu Error | We are trying to migrate ldap from an outdated Debian server to a Ubuntu server. All attempts at using slapcat, modifying the config manually, and other tricks have failed. I believe the old database uses the bdb structure, which from researching I have found that it is not supported anymore. The steps we took during t... | The error is due to the outdated database backend on most of the old slapd systems ( mdb fixes these issues on new slapd versions. [CODE] Make sure to turn off slapd service. [CODE] Replace all hdb/bdb references with mdb in the config.conf and database.ldif files. Before using slapadd to load the config, empty the sla... | 0 | 0 | 239 | 2023-09-16T20:01:05.940 | database_errors | serverfault.com | |
976,096 | Is it safe to send ZFS-snapshots incrementally ignoring some intermediate snapshots? | Some background. I'm using ZREP to replicate two servers with each other and each server contains one ZFS-pool containing two datasets as replication master and two sets as replication target. The master sets contain the system and VirtualBox-VMs of the local server, the replication targets the same from the other one.... | Yes you still get all the data in-between but you just can't rewind to in-between. If you have snapshot's 1,2 and 3 and the remote pool only has snapshot 1, you can give it snapshot 3 and skip 2.. it just won't be able to roll back to the '2' state. But the data will still be there. The snapshots describe what was ther... | 3 | 3 | 2,625 | 2019-07-21T14:03:03.970 | database_errors | serverfault.com | |
230,722 | Why is a temp table a more efficient solution to the Halloween Problem than an eager spool? | Consider the following query that inserts rows from a source table only if they aren't already in the target table: [CODE] One possible plan shape includes a merge join and an eager spool. The eager spool operator is present to solve the Halloween Problem : On my machine, the above code executes in about 6900 ms. Repro... | This is what I call Manual Halloween Protection . You can find an example of it being used with an update statement in my article Optimizing Update Queries . One has to be a bit careful to preserve the same semantics, for example by locking the target table against all concurrent modifications while the separate querie... | 14 | 15 | 1,739 | 2019-02-26T01:27:45.840 | database_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.