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 |
|---|---|---|---|---|---|---|---|---|---|---|
318,876 | Missing Removable Storage Manager Feature | Anyone know a workaround for the instructions found here: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=4220 since they are incorrect for Windows Standard 2008 R2 SP1. There is no "Removable Storage Manager" feature available! | Here is the kb related to the Server 08 R2/Windows 7 version of the ntbackuprestore utility. http://support.microsoft.com/kb/974674 | 2 | 3 | 8,788 | 2011-10-05T21:32:51.247 | infrastructure | serverfault.com | |
785,737 | Installing LetsEncrypt on Ubuntu 14.04 | I'm trying to install LetsEncrypt for my domains on my Ubuntu server, I've done these before.. Now I'm on another server, and when I try to run [CODE] , I receive this error: Failed authorization procedure. www.domain.nl (tls-sni-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect... | Did you just set up nameservers/added A records? I know I had the exact same problem and I just had to wait for the DNS to propagate. | 2 | 1 | 2,755 | 2016-06-23T07:41:01.977 | data_quality | serverfault.com | |
376,208 | Windows 2008 R2 Terminal Server - RemoteApp - Option "Start in" available? | we have set up a Windows 2008 R2 Terminal Server. On this server, we want to run an application which needs another path for the option "Start in" than the application itself. In a shortcut, this is no problem (for example, the "Target" is C:\app\bin\application.exe and the "Start in:" is C:\app\users\user1). But I hav... | I don't know any direct way to do that. Workaround: Create batch file that goes to the start directory and then call the executable. Publish this batch instead of directly the executable. This is not clean, but application that require a start in folder to work is bad too. Use @echo off in your bat to make is more sile... | 1 | 0 | 1,606 | 2012-04-03T09:12:23.870 | infrastructure | serverfault.com | |
696,237 | Ubuntu Apache Virtual Hosts directing to wrong directory? | I am running an Ubuntu 14.04 LTS server with Apache installed. I have 3 Virtual Hosts set up, with another Default Server to catch all other requests not taken care of. The Default Server has a Document Root of /var/www/. The other 3 Virtual Hosts have a Document root of /var/www/html/.../. I have all three Virtual Hos... | After lots and lots of searching, I finally found the cause. In the Apache virtual sites configs, The first line was set to instead of ServerName some.domain.com The first configuration is incorrect as the global directive is NameVirtualHost *:80 The following paragraph from the Apache wiki explains it more in depth. W... | 0 | 0 | 3,237 | 2015-06-03T04:07:05.493 | infrastructure | serverfault.com | |
40,334 | How to count selectivity rows in PostgreSQL 8.2 | I have problem with two queries on PostgreSQL v8.2. It seem like the optimizer chooses a wrong index: [CODE] I have read 54.1. Row Estimation Examples ( http://www.postgresql.org/docs/8.2/static/row-estimation-examples.html ) article and I counted the selectivity of rows by templateid and templateinfoid columns. My sta... | Consider [CODE] Also, consider either of these (to avoid an extra sort): [CODE] or [CODE] | 2 | 0 | 810 | 2013-04-18T11:07:53.027 | database_errors | dba.stackexchange.com | |
656,368 | CoreOS / Docker "$ fleetctl satus my.service" - ssh: handshake failed | Digging in to CoreOS clusters with Docker and have come upon a SSH issue while trying to learn how to work with fleet. Deploying, running services etc goes well. SSH auth problem occure when executing status on fleetctl. [CODE] Understand that this is not a specific problem for fleet, but that am missing a correct ssh ... | Make sure when you log in to the initial system that you have the key added to your SSH agent and that you either provide the [CODE] flag or that you specify [CODE] in your [CODE] file. | 2 | 0 | 1,006 | 2015-01-05T13:39:49.917 | data_quality | serverfault.com | |
392,856 | Multiple applications with single database for IoT | I'm using a raspberry pi 2B with raspbian lite. I have made a program that communicates with a LoRa module (RFM95, sx1276 chip) and collects data from a sensor. The data it collects, are stored in a file date.log and goes to Google Drive using third party software. Now I want to make an asynchronous TCP service to coll... | Basically yes: We are aware of no other embedded SQL database engine that supports as much concurrency as SQLite. SQLite allows multiple processes to have the database file open at once, and for multiple processes to read the database at once. When any process wants to write, it must lock the entire database file for t... | 1 | 2 | 117 | 2019-06-04T11:30:27.497 | airflow_errors | softwareengineering.stackexchange.com | |
181,167 | Licence all code? | Should every piece of code put online have a licence with it, or should it explicitly mentioned that it is in the public domain? I'm writing a simple python script that will take a project euler problem number and save a file with the question text as comment. As I was creating the directory and initializing git I adde... | I would recommend including a license. It may seem to be unnecessary overhead and not every piece of code is a patent-ridden court case in the making but many people and organizations, large companies in particular, are very careful about other source that they use. Even if is just a quick cut and paste of the BSD or M... | 5 | 11 | 241 | 2013-01-01T14:19:43.737 | api_errors | softwareengineering.stackexchange.com | |
862,166 | Server responsiveness and swapping | I know how swapping basically works, why it's automatic and why it's generally a good thing. There is, however, a common scenario where I wish I had more control. I write LOB web applications with IIS and Sql Server (this question is more general than that though). Those applications are hosted on dedicated servers (or... | All this depends on how you set up the virtual machine and the guest OS. If you reserve all guest memory you can be sure that it's never swapped out (which shouldn't happen with decent provisioning anyway). Within the guest, there should be enough memory to avoid swapping out anything. Ideally, there should be no or ex... | 0 | 0 | 182 | 2017-07-14T08:40:44.757 | database_errors | serverfault.com | |
37,950 | Robustness of ML Model in question | While trying to emulate a ML model similar to the one described in this paper, I seemed to eventually get good clustering results on some sample data after a bit of tweaking. By "good" results, I mean that Each observation was put in a cluster with high probability (as opposed to having being 50/50 between two clusters... | Clustering is an unsupervised approach wherein unlike supervised learning its devoid of not knowing the class label or the response or dependent variable. In clustering, the idea is to determine patterns in data such that it can be grouped into cohesive clusters. Such groups will have data points that are similar to ea... | 10 | 1 | 184 | 2018-09-07T20:53:48.683 | data_quality | datascience.stackexchange.com | |
923,007 | dd "no space left on device" cloning SSD to USB drive | So I have a weird error, while dd'ing partition 3 (partition table below) from my laptop's SSD to a larger USB drive with an identical partition table. After writing ~3-4GB (expecting to write >75GB), I get an error from [CODE] "No space left on device". I get this result: [CODE] here is the partition table for /dev/sd... | How about a "df -h" (altenatively "df -i" for inodes) and space left on the "current" partition, ie. doesn't dd store temp data somewhere (like /tmp) and fills it before it can move everything to its finale destination? This is probably not you are looking for, but it might help. Unless you are looking to automate this... | 0 | 0 | 1,276 | 2018-07-22T00:13:10.663 | infrastructure | serverfault.com | |
289,302 | Try Catch and Flow Control dilemma | I am aware that doing Flow Control on a program using a [CODE] block is bad practice, but I can't see how to do it in another way when the error caught needs a redirection of the code's execution. For example, let's say I have screen where the user clicks a button, and on the buttons click I execute some code. After th... | It seems that you have misunderstood what is meant when people say that you shouldn't use exceptions for flow-control in your program. Throwing an exception and catching that exception elsewhere in your program changes the control flow of the program. In that way, exception handling is a flow-control construct, just li... | 3 | 10 | 4,368 | 2015-07-10T03:34:49.280 | api_errors | softwareengineering.stackexchange.com | |
338,202 | After configuring OpenVPN in bridge mode my serve becomes unreachable from an outside network | I have configured a Debian server with OpenVPN in bridge mode according to OpenVPN's ethernet bridging guide. As part of the guide I ran the [CODE] script which creates a bridge and tap interface. After running bridge-start and openvpn, I can't access my server from an outside network, even though I was able to before ... | great! this information should be added to the openvpn bridgin docs - my vserver wasn't reachable without that line | 2 | 1 | 2,147 | 2011-12-06T16:27:33.820 | data_quality | serverfault.com | |
86,991 | mysqldump: Got error: 1044: Access denied for user 'username'@'localhost' to database 'databasename' when using LOCK TABLES | mysqldump: Got error: 1044: Access denied for user 'username'@'localhost' to database 'databasename' when using LOCK TABLES I am able to loging properly and able to take full backup from SQLyog Tool but when i am trying to take backup from MySQL Enterprise Workbencg then getting error message. mysqldump: Got error: 104... | I found two possible solutions, either: your user is missing the [CODE] privilege, so you should ask your database administrator to grant it to you run the same [CODE] command, simply adding the [CODE] flag, eg. [CODE] | 36 | 60 | 56,144 | 2014-12-25T08:07:46.617 | api_errors | dba.stackexchange.com | |
1,118,179 | No config named ... error when running ipsec up <conn name> | I am getting the 'no config named ...' error like others have posted. I have auto=add in my etc/ipsec.conf file as I read in one post. I have followed everything which I have read online to no avail. I am running Ubuntu 22.04.1 and the latest strongswan. Let me know what information I need to provide to get some help w... | Thanks, went back and looked at the logs in /var/log and found that it was having an issue with loading aes256. Removed that from the ipsec.conf file, restart and viola! Now have to figure out why it doesn't like aes256? | 0 | 0 | 849 | 2022-12-16T06:53:55.793 | infrastructure | serverfault.com | |
24,927 | How to create a unique column in SQL Azure Federation | I need to create two columns in a federated table where [CODE] is a primary key and [CODE] can never contain duplicate values. Think of it like a user being able to register only one email address at a time, and each user has a unique [CODE] . [CODE] This will allow me to create a table, but I can still save duplicate ... | You can only have uniqueness validation within a single federation, same as partitioned table allow for aligned uniqueness validation only within a partition (federations don't have an 'unaligned' equivalent). The solution is trivial: create a separate, non-federated, Azure DB used only to validate email uniqueness. | 2 | 2 | 439 | 2012-09-26T06:54:06.703 | data_quality | dba.stackexchange.com | |
837,241 | Bacula versions compatibility | Recently we have upgraded some of our servers to [CODE] and [CODE] has also been upgraded to [CODE] . Now we have: [CODE] [CODE] some [CODE] some [CODE] . Now [CODE] gives this error on the machines with Ubuntu 16.04 and [CODE] : Fatal error: Bad response to Storage command: wanted 2000 OK storage I didn't find anythin... | The problem was solved after upgrading storage daemons to v7.0.5. We still have some file daemons v5.2.6. | 1 | 1 | 5,027 | 2017-03-09T11:07:51.617 | infrastructure | serverfault.com | |
567,352 | site to site vpn between sonicwall and pfsense | The problem i am facing is establishment of a site to site VPN in between pfSense( version 2.0.1) and SonicWall Pro2040 Enhanced ( Firmware Version: SonicOS Enhanced 4.2.1.4-7e) . All of the configuration is done properly , still i got the following error in sonicwall - Phase 1 and 2 passes properly but problem with "P... | Looks like you don't have DPD enabled on the Sonicwall. Make sure it's enabled, and that the settings match, or else disable DPD on the pfSense side. | 3 | 0 | 4,038 | 2014-01-15T06:08:50.230 | infrastructure | serverfault.com | |
783,049 | Exchange mailbox forwarding - emails fail dkim body hash | Exchange is modifying emails before forwarding them out to an external Google Apps account. I'm hoping to find a way to fix this. Here's some more detail: Using Exchange 2010 SP3 Version 14.3.123.4 The exchange server is forwarding email of some users out to Google Apps accounts (using an External Contact in AD). Excha... | Yes, preventing modification of emails in transit is one of the benefits of DKIM but obviously some side effects here. To pass DKIM your Exchange server must make no changes at all to the headers or DKIM will break, by design, to prevent message tampering. It occurs to me that you might be asking how to stop Exchange f... | 4 | 0 | 2,355 | 2016-06-09T18:02:05.667 | infrastructure | serverfault.com | |
117,235 | PDO Disabled in PHP... how to enable it? | Sorry I'm still a bit of a novice with dedicated hosting. Anyway, we have a dedicated server running cPanel and WHM. I have full terminal access and all that. Basically I've tried to install Chive to a user on my server's account. Unfortunately whenever I login with any details, I get the following error: [CODE] failed... | try this : http://www.webhostingtalk.com/showthread.php?t=680039 | 1 | 2 | 33,723 | 2010-02-26T17:52:05.643 | hadoop_errors | serverfault.com | |
338,978 | Web server slow when transfering many images | Here is a little background of a intermittent but very real problem. I maintain a web application that is running on Esxi private cloud. We have a database server, and 4 web application servers. The 4 web application servers all have a very odd problem. The servers all run (Ubuntu 10.04.3, 2.6.32-28-server, Apache web ... | Your goal here is to locate the bottleneck. In other words, the particular place in the pipeline that is causing the slow downs. Collect your Vitals The first step to this is to collect data. The most common bottlenecks are Network IO, Disk IO, CPU, and Memory Constraints. You can either use a full fledged monitoring s... | 0 | 1 | 1,208 | 2011-12-08T14:02:51.793 | infrastructure | serverfault.com | |
767,226 | Website over HTTPS gives 502 error on Azure VM behind public load balancer | I have an Azure VM behind an Azure Public Load Balancer. The VM is running a website. I can load the website in a browser over HTTP with no issues, but when I try HTTPS I get a 502 error. I've got a load balancing rule set up to send 443 to the VM. I allow all connections on 443 via a Network Security Group. I've tripl... | I finally figured out the issue, hope this saves somebody else a few hours. The problem turned out to be a combination of my load balancer Probe settings and the IIS bindings for my websites. In IIS on the VMs I have 2 websites configured. Since the 2 websites share 1 public IP, I'm using a Host Name when setting up th... | 2 | 1 | 1,848 | 2016-03-31T05:23:28.197 | infrastructure | serverfault.com | |
609,137 | How can I set permission 000 to every "error_log" file in my server? | Even though I disabled error reporting on the php settings, some scripts still make their own error_log files, some of them are eating all the space of my VPS. I already know the errors, and I would like to force them to be unusable. The way I found was setting the permission 000 on the error_log files. Now, how can I ... | [CODE] would be the easiest, dirtiest way to do this. The clean one of course is to reconfigure your programs not to create those files in the first place. By the way, if your programs are run as root, there's no way you'll stop them from writing the files with a permissions trick. In this case, you'll need : [CODE] wh... | -1 | 1 | 185 | 2014-07-01T01:36:45.083 | infrastructure | serverfault.com | |
597,394 | openssl upgrade from 0.9.8w to 0.9.8y | I am trying to upgrade the openssl version from 0.9.8w to 0.9.8 y to address the following security vulnerabilities CVE-2012-2333, CVE-2013-0166 , CVE-2013-0169. While trying to upgrade I am facing following dependanices and any insight to this will be highly appreciated. [CODE] Thanks, Vetrichelvan.G | I don't know where you got that RPM from (since you don't tell us), but you have a problem already: [CODE] Someone has brute-forced a second OpenSSL RPM onto your system, in addition to the RedHat-provided one, probably as an incorrect response to an earlier OpenSSL issue. You don't need to upgrade the version of opens... | 0 | 3 | 428 | 2014-05-21T05:50:19.740 | infrastructure | serverfault.com | |
262,515 | Git push to deploy technique | I'm adopting a git push to deploy method where I setup a bare repository on the live server which I push my local changes to. Using a post-update hook, executed after I've pushed I pull my changes to the directory housing the live site. This method works extremely well but as we are using virtual servers sometimes disk... | "git clone" has a couple of options that might help: "git clone --local" tries to save space by hardlinking files if you are cloning a repository on the same machine "git clone --shared" points your cloned repository over the where you cloned it from (on the same machine) and avoids copying objects over. There is a ser... | 1 | 2 | 178 | 2014-11-12T01:24:53.203 | api_errors | softwareengineering.stackexchange.com | |
642,778 | configure power restore policy HP ProLiant BL2x220c G6 | After each reboot my server automatically powers on: [CODE] How to change the Power Restore Policy from command line to always-off ? I mean after each power failure. I've tried to configure it using ipmitool ... but I can't figure out how to change it. OS: linux. It is a linux cluster for scientists, all nodes are work... | This is a blade server. Your power control is partially dictated by the chassis Onboard Administrator. You can disable automatic power-on for all blades with: [CODE] Or you can set this from the ILO web interface directly for an individual blade... Or you can set this in the BIOS. But really: You shouldn't be experienc... | 1 | 2 | 1,049 | 2014-11-07T16:09:55.087 | database_errors | serverfault.com | |
375,256 | Iterating a class representing a collection: IEnumerable<T> vs custom method | I often find myself needing to implement a class which is an enumeration/collection of something. Consider for this thread the contrived example of [CODE] which is an enumeration/collection of lines. The reason this class must exist in my codebase is that I want to avoid business logic being spread all over the place (... | I'm reviewing your approach before suggesting a wholly different approach. I'm preferring the different approach but it seems important to explain why your approach has flaws. I choose to implement [CODE] because it makes its usage convenient Convenience should not outweigh correctness. I wonder if your [CODE] class wi... | 9 | 14 | 3,226 | 2018-07-16T06:30:17.507 | api_errors | softwareengineering.stackexchange.com | |
734,510 | Is our RDS write IOPS too high | Our site has been running slow recently and I've noticed that the RDS write IOPS can go as high as 80/sec and as low as 9/sec. Is this something that could be causing pages to load slowly? If so what could be causing it. Our RDS is a db.m3.large with 7.5 GiB memory and 100 GB SSD storage. On average we have about 2 peo... | How long is a piece of string? That's an analogue of your question. Regardless of what metric you're speaking about, it could be CPU usage, Disk IO, Network IO, RAM, etc...their values only matter to the extent that they affect your application. So, if your current level of Disk IO is slowing down queries to the point ... | 0 | 3 | 9,859 | 2015-11-06T17:59:08.110 | infrastructure | serverfault.com | |
130,739 | How do I kill a non-running impdp job? | I am trying to run an import operation into an Oracle 11G R2 database from a [CODE] file using SQL Developer 4.1's Data Pump Import Wizard. I set everything up with IMMEDIATE start, but then the job first said it started executing and then said it is NOT RUNNING. The job's log file was not created, so I think it stoppe... | You can drop export/import job using the following command First of all find the name of the job table under 'DataPump>Import Jobs or Export Jobs'. Use the drop command to drop that table by the user who has created that import/export job. In my case it was created by SYSTEM user. SQL>conn system/password SQL>DROP TABL... | 0 | 2 | 14,397 | 2016-02-29T00:54:33.750 | database_errors | dba.stackexchange.com | |
329,643 | Php is not executed on a wordpress admin fresh install. Fatal out of memory | I just installed 2 versions of wordpress but none of them works : It just gives me : [CODE] I've got a 8Gb memory server. So the problem is not the 2Gb limit for php. I Run under Debian with PHP [CODE] Each time i try to navigate through the admin panel, it crashes, and downloads the page i want to reach (an empty .php... | this was solved in a quick chat. seems that the problem appeared after APC php module was enabled. once APC was disabled the problem disappeared. It is unknown to me why APC was causing problems. worth mentioning here for further references in similar scenarios... I guess. | 0 | 0 | 302 | 2011-11-10T09:09:04.280 | infrastructure | serverfault.com | |
904,062 | MySQL 5.6 Deadlock Issue | I have a sporadic deadlocking issue with MySQL 5.6. This server is configured as a read only slave, which is why it is extremely odd there is a deadlock issue. I have innodb_lock_wait_timeout set to 120. A subset (due to character limits on serverfault) of the output of SHOW ENGINE INNODB STATUS; is below. I am hoping ... | Even SELECT statements can cause locking activity. To minimize the impact of this you can set the transaction isolation level to READ UNCOMMITTED before you execute your SELECT statements. Note that you might potentially see data that isn't yet committed by a transaction. | 1 | 0 | 777 | 2018-03-22T16:02:25.297 | api_errors | serverfault.com | |
1,385 | How to Index a JOIN result of two or more tables in order to improve the performance in SQL server? | I am new to indexing and gone through the basics of indexing. I can find a default clustered index for the primary key constraint within the indexes part of the corresponding table, but after creating a foreign key constraint i can't find any. Now i've a requirement in which indexing should be implemented to improve pe... | A foreign key does not have an index by default. You have to create one. In this case, I'd suggest either of these. It depends on relative selectivity of the 2 columns [CODE] OR [CODE] The INCLUDE will make the index covering to avoid key/bookmark lookups | 10 | 15 | 20,562 | 2011-02-22T05:44:59.343 | data_quality | dba.stackexchange.com | |
8,928 | SQL Server Alert Based On Severity Level Not Working | I am new to SQL Server alerts, and I am trying to setup an alert That will run a job and send a notification, based on severity level. In order to test if the alert works correctly I have downloaded a sample corrupted database from MSDN Blogs , and I have restored the database and issued a query against the database wh... | The SQL Agent may need to be restarted to pick up the configuration changes. | 4 | 1 | 1,600 | 2011-12-07T23:16:44.817 | data_quality | dba.stackexchange.com | |
1,079,135 | Is there any limit on number of ports at which HAProxy can listen? | I want to configure a HAPRoxy that can listen on 200 ports. Is there any limit on number of ports it can bind to? Also, will there be any performance degradation if it is listening on 200 ports? | According to the official HAProxy documentation , the frontend has no limits for the addresses and ports it listens to. [CODE] According to the latest benchmarks of HAProxy 2.4, the reported number of connections per second is in the range of 2.04 to 2.05 million. This figure was obtained on a system of 46 allocated CP... | 3 | 4 | 552 | 2021-09-30T09:38:25.160 | infrastructure | serverfault.com | |
306,925 | SQL Server Scalar UDF Parallelism Mystery! | Referencing this blog post by Erik Darling on the website of my favorite SQL Server guru - Brent Ozar: When you select from that table alone , it shows " CouldNotGenerateValidParallelPlan ". But, when you join that table to another that does not have a check constraint/computed column calling a Scalar UDF, the query go... | You need a non-trivial plan if you want parallelism, plus the optimizer must be able to find a valid parallel plan for the query. For example, modifying your first query (which did not use parallelism): [CODE] I changed the [CODE] to [CODE] there to avoid projecting the column with the scalar UDF constraint. I also add... | 6 | 8 | 421 | 2022-02-02T14:10:46.810 | data_quality | dba.stackexchange.com | |
420,636 | Monit configuration for Apache, MySQL, and Postfix | I plan on enabling Monit on my production server with the below configuration. I'm completely new to Monit and wanted to hear from others on tips or if there were other directives I should consider to bolster my monitoring script based on your experience. My server is CentOS 5.6. Thanks! [CODE] | I have an extra line in my Postfix section for monit: [CODE] Depending on what's being served by Apache, you can test on a request (e.g., [CODE] ) instead of a plain HTTP response. The request can be something that hits your app directly, rather than just a static file. Again, it depends on what you're doing. Since you... | 0 | 5 | 3,268 | 2012-08-24T03:03:34.317 | database_errors | serverfault.com | |
372,493 | How can I find the original un-changed configuration file to compare with the *.rpmnew file? | While upgrading from CentOS 5.7 to 5.8 I've received the following warnings: [CODE] (To know the reason for such files, and what one can do with them read - Why do I have .rpmnew file after an update? ) I want to know what exactly has been change in the default config file by comparing the old default file (the origina... | the original files should be one without .rpmnew so for instance, you should have a /etc/ssh/sshd_config diff /etc/ssh/sshd_config /etc/ssh/sshd_config.rpmnew will show you the diff. rpm does this to prevent overriding your settings. if you are looking for the previously installed rpm, you need to find that rpm, and th... | 4 | 2 | 1,684 | 2012-03-22T17:14:01.513 | infrastructure | serverfault.com | |
164,224 | Does windows/other licensed software on a VM work if VM is run on another machine? | I'm attempting to make several test machines virtual. Ideally I'd like to setup several images with various installed software - eg. windows 7 with quickbooks 2010, vista with quickbooks 2009, etc - save the images, then restart them later as needed on other hosts. My question is: will I run into licensing issues? I ow... | You shouldn't have a problem. The virtual machine doesn't have any idea what physical machine it is running on, so it shouldn't know that the hardware under it has changed. | 1 | 3 | 425 | 2010-07-26T18:29:20.797 | infrastructure | serverfault.com | |
522,747 | How to delete Cisco 1841 IP | I am trying to delete IP assigned to interface fa0/1. But it returns an error saying "Delete Secondary first" i have alreay tried this command (config-if)# no ip address 192.168.5.23 255.255.255.0 | You have a secondary IP address defined on the interface. Your configuration will have something in it like: [CODE] You will need to [CODE] out the secondary IP address first. | 0 | 2 | 288 | 2013-07-12T05:04:23.393 | infrastructure | serverfault.com | |
629,016 | Do all captive portal solutions work the same way? (cookie, vs MAC address, vs other?) | While traveling and having to interact with a number of broken captive portal implementations I've overheard other passengers having usability issues with iPads, Phones, computers depending on the captive portal technology being used. E.g. Captive portals with a pop-up window, vs ones without such a pop-up, seem to be ... | It would be based on a MAC address. Basing it on a cookie would not work, as the cookie would not be presented to the access-point (etc.), but based on the DNS name of the domain they are currently viewing. It would also prevent things like email (not webmail) working. The difficult part is how to effectively present t... | 3 | 2 | 2,460 | 2014-09-16T21:04:12.383 | infrastructure | serverfault.com | |
9,759 | PostgreSQL multi-column unique constraint and NULL values | I have a table like the following: [CODE] And I want [CODE] to be distinct in any situation. So the following two inserts must result in an error: [CODE] But it doesn't behave as expected because according to the documentation, two [CODE] values are not compared to each other, so both inserts pass without error. How ca... | Postgres 15 This works out of the box with [CODE] : [CODE] See: Create unique constraint with null columns Postgres 14 or older (original answer) You can do that in pure SQL . Create a partial unique index in addition to the one you have: [CODE] This way you can enter for [CODE] in your table: [CODE] But none of these ... | 157 | 174 | 170,763 | 2011-12-27T09:10:21.130 | data_quality | dba.stackexchange.com | |
265,424 | SQLite - Counting referenced rows in one table using a different, related self-referencing table | [CODE] I have the above two tables with data. The [CODE] column defines how each row in metadata_items relates to any other row, which is also evidential by each row's [CODE] . The [CODE] can be nested by a root ID having a child, and that child having a child (if that makes sense). The [CODE] column from [CODE] relate... | Test [CODE] fiddle If you need the data for one separate record only then add proper WHERE. | 0 | 0 | 197 | 2020-04-20T09:33:56.390 | data_quality | dba.stackexchange.com | |
298,667 | KVM NIC where can I see the eth number ? | I added a NIC to a vm in kvm, but I tried "uping" eth0 to 3 but every time I get an error : [CODE] Where can I see the correct eth number / connected NIC's? | Probably in the log. Do an [CODE] and see the lines with eth. Other possibility is to view [CODE] which should contain all available devices in the first column. | 0 | 2 | 194 | 2011-08-07T22:41:53.623 | infrastructure | serverfault.com | |
313,110 | Managing a development database in a group project | I'm working for a small webdevelopment company and we want to set up development environments. We'll be using the Laravel framework in combination with Homestead. Now, Homestead has its own database and can work with migrations from Laravel, meaning that any changes to the existing database from previous versions can b... | I am not a Laravel expert, but the problem you describe is not very special to that framework. You have different instances of a database, and you need to make sure when schema changes have to be applied, that all database instances get the same schema updates existing data does not get lost, and if necessary, will be ... | 3 | 2 | 765 | 2016-03-18T08:33:51.237 | api_errors | softwareengineering.stackexchange.com | |
198,877 | IPv6 AAAA vs. CNAME for same domain name | I reach my home site through a DynDNS name, and also have tunneled IPv6 there. In the DNS zone, I have: [CODE] How do I simultaneously point "myhomesite" to an AAAA record? If I trivially make it [CODE] the zone is invalid (CNAME and other data). Can you suggest a way for having the CNAME record and the AAAA record vis... | I copy from DNS for Rocket Scientists : CNAME RRs cannot have any other RRs with the same name, for example, a TXT - well that was true until DNSSEC came along and in this case RRSIG, NSEC and certain KEY RRs can now occupy the same name. Therefore what you want to do cannot be done using a CNAME. Use the CNAME to acce... | 13 | 16 | 24,019 | 2010-11-06T07:40:30.150 | infrastructure | serverfault.com | |
44,795 | How can I get my linked server working using Windows authentication? | I'm trying to get a linked server to ServerA created on another server, ServerB using "Be made using the login's current security context" in a domain environment. I read that I'd need to have SPNs created for the service accounts that run SQL Server on each of the servers in order to enable Kerberos. I've done that an... | Every machine in the chain from your desktop to the server you are calling has to be Kerberos enabled for the trust to advance past the first hop. So, yes the server needs to trust the user for delegation. The "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'" almost always indicates a delegation problem. Your Wind... | 25 | 27 | 96,685 | 2013-06-18T21:29:19.027 | database_errors | dba.stackexchange.com | |
265,287 | How to list all pending friend requests for a given user ID? | I have a friendship table like this A and B are friends if there are (A,B) and (B,A) rows. For example, uid 132 & 67 are friends indicated by (132,67) on 2nd row and (67,132) on ninth row. Rows 4 - 8 are pending requests to uid 132. My question is how to list all pending requests to uid X? I tried this (X=132): [CODE] ... | how to list all pending requests to uid X? I tried this (X=132) [CODE] I'm only interested to find everyone who send friend request to 132. – anta40 [CODE] | 0 | 2 | 191 | 2020-04-17T16:04:24.310 | warehouse_errors | dba.stackexchange.com | |
292,562 | String split, Token indexing and concatenation (in this order) | How to split the string and create a word with the first character of each token? I use MySQL 5.7 . [CODE] | Strings are not a strong suit for RDBMS, in your case a function is the best. Here the rules are simple: split the text, check if it is a number then add the number to the result, if not take the first Letter. If your rules get more complicated, you have to expand the part after [CODE] [CODE] [CODE] [CODE] | getfirsst(... | 0 | 0 | 56 | 2021-05-31T20:15:47.463 | database_errors | dba.stackexchange.com | |
506,333 | PHP file upload limit | Im running CentOS. Im not exactly sure the standard max upload limit in PHP, but i tried to upload an 8MB file and i see a loading status on my browser, when it reached 100, it does nothing. the file was not successfully uploaded. my [CODE] [CODE] when i try uploading using Filezilla, im not having any problems at all. | PHP is executed after POSTed data has been transmitted to the server. If you were to upload a 1GB file, then it would be up to your web server to stop the upload when it reaches your limit. This is why you see your web browser run and complete the upload before it fails. After the data is uploaded, then the web server ... | 0 | 0 | 2,053 | 2013-05-09T11:11:22.403 | infrastructure | serverfault.com | |
563,399 | Change group gid for new group | I have added a new group to my system, which I will add my user to, so my UID/GIDs are sync'ed with my company's server when using NFS (fixing write permission issues). I've created a new 'production' group but when I try to change the GID, usermod complains it cannot find the GID I'm referring to: [CODE] I'm confused,... | Because you need to specify the name of the group... [CODE] | -2 | 2 | 192 | 2013-12-24T18:06:04.163 | infrastructure | serverfault.com | |
338,007 | Sharing public key certificate | I'm working on a piece of software in Visual Studio. I created a PKCS#12 archive in Visual Studio to strong name sign my assemblies. I then extracted the public key from the archive using OpenSSL. I realise that I must remove the PKCS#12 archive from the VS solution before making it publicly available but what do I do ... | If you use public and private keys to sign, you are using what is called Public-key cryptography . The private key is yours. Take care to never let it leak. The public key is, like its name, public. This is what you distribute so other people can verify if something (a code, a document, (...)) is signed by you. The sig... | 0 | 1 | 1,220 | 2016-12-12T17:54:07.873 | hadoop_errors | softwareengineering.stackexchange.com | |
413,840 | logrotate not deleting old files - glob failing | I'm stumped with this one. Any help is much appreciated...! Logs in /var/log/HOSTS/cacheflow_access_log/ are configured to archive to /var/log/HOSTS/archived/cacheflow_access_log/ and compress. These are pretty big files so should only be kept for 1 day so that Splunk or Sawmill can summarize their content. The logs ro... | Perhaps it is failing because the log file already has the date in the name, and so it is a new name each day. Typically I see log files with a static name, and logrotate adds an extension to make them unique. logrotate may be looking for old files in the archive directory with a name of CF_5000_20120802_120326.log to ... | 2 | 0 | 2,833 | 2012-08-02T23:57:50.537 | pipeline_ops | serverfault.com | |
2,722 | change tab order on Bugzilla bug details page | I spend a lot of time in Bugzilla. Sometimes I wish I could change the tab order on the bug details page to better match how I use it. For example, starting from the Additional Comments box, the tab order is the Commit button, then the help link for the Status fields, then the two Status buttons. When I am reviewing bu... | You can change the tab order with a SeaMonkey script (on Firefox), or a user script (in Chrome). Here is an example: [CODE] To use the script in Chrome, just store it on your local filesystem, edit the second ( [CODE] ) and third ( [CODE] ) lines to reflect your Bugzilla installation's URL, point your browser at the fi... | 2 | 2 | 83 | 2012-02-29T15:49:53.203 | data_quality | sqa.stackexchange.com | |
447,786 | How do function inlining and Tail Call Optimization affect call stack? | I've just accidentally came across this answer about inlined functions and I'd like to know how this affects call stack. But I can't add comments because I don't have enough rep so I decided to ask this question. Also recently I discovered Tail Call Optimization (TCO) and now I want to learn more about this topic. And ... | AFAIK every function call adds a new stack frame into a call stack. This is true for some functions, but not for all functions. On some processors, simple functions, called leaf functions (functions that may do work but simply do not call other functions), usually operate without a stack frame. On x86, the "stack frame... | 0 | 2 | 208 | 2023-09-26T23:11:11.387 | api_errors | softwareengineering.stackexchange.com | |
911,358 | SQL Server Management Studio - "Restore from Device" dialog is slow | Whenever I try to restore a database in SQL Server the dialogs take an excessively long time to open. The worst offender seems to be the "Select backup devices" modal sub-dialog from the Restore Database dialog. It usually takes 20-30 seconds to open the modal, even though it has no information and would open instantly... | @Randolph West suggested this and it works for me. Basically, when you want to restore database, don't click on the database itself. Instead, click on the folder 'Databases' and then restore. | 8 | 3 | 2,727 | 2018-05-08T22:54:17.250 | database_errors | serverfault.com | |
927,998 | Why is Phplist responding with 500 Internal Server Error? | I just did a fresh install of phplist, but when I attempt to access it in my browser, I get an empty page with status code: [CODE] I'm running CentOS 7 and Phplist is being served on Apache v2.4.6 with Php v5.6.33. I can see the query in my apache's [CODE] , but there are no entries in the error_log. The vhost config f... | After digging through the phplist code for many hours, I fixed this by installing libsodium on my server. First of all, I found that--by default--phplist will suppress errors from being written to logs. This is not documented anywhere, so I left a note on their documentation page asking them to document how to re-enabl... | 0 | 1 | 1,010 | 2018-08-25T20:33:47.107 | api_errors | serverfault.com | |
176,252 | Drop Table and recreate Permissions | So we followed an best practice by Andreas de Ruiter ( https://blogs.msdn.microsoft.com/andreasderuiter/2015/04/20/transforming-data-in-a-data-warehouse-through-sql-views ) The Idea behind it is, that you write SQL Views which are easy to maintain and deploy. You use stored procedures to use these views and create tabl... | Export the table permission before dropping: [CODE] | 2 | 1 | 1,592 | 2017-06-14T10:57:43.803 | database_errors | dba.stackexchange.com | |
959,670 | How can I delete an inaccessible folder on Windows 10? | I have a folder on one of my hard drives, [CODE] , which I want to delete but cannot. I have tried numerous different ways to change/reset permissions and I still cannot delete this folder. [CODE] I don't have read privileges. It can't show the owner: If I try to change the owner, I don't have permission to view or edi... | Try out this: First, check if your User Account is Administrator. Run cmd as administrator, type in [CODE] , this should give you ownership of the directory. lastly, type [CODE] if it still doesn't work, try the same steps in Safe Mode. I hope this helps. | 0 | 0 | 3,586 | 2019-03-24T00:36:01.487 | infrastructure | serverfault.com | |
438,965 | How to check for docker specific code and APIs in an application for later migration to containerd? | So I have a couple of Java RESTful microservices, and since the past few years I have basically been using Docker to build them and deploy them over to a Kubernetes cluster. Our team is upgrading Kubernetes versions, and it was brought to attention that latest versions of Kubernetes don't support dockerd, and has moved... | Newer docker engine uses containerd. What are some basic hurdles and problems I should look out for while moving from docker to containerd? Perhaps none ? Images build via newer docker engine should also run on containerd. If you are concerned about developers having to learn containerd CLI you could use something like... | 0 | 1 | 44 | 2022-05-31T14:36:42.540 | pipeline_ops | softwareengineering.stackexchange.com | |
34,921 | Command Line Winrar & Batch Scripts | I've written a wee batch script to backup some stuff on my desktop and dump it over the network to a share... The only thing that's bugging me is the verbosity of rar.exe while it's doing the compress part of the job. Anyone know if it's possible to tweak rar.exe to display a status bar for the entire process of at lea... | if you want to suppress the output just add [CODE] at the end of command line for rar.exe. I use 7-zip's command line tool and I am pretty happy with it. its just a single exe. http://dotnetperls.com/7-zip-examples | 0 | 2 | 29,172 | 2009-07-02T09:27:09.253 | hadoop_errors | serverfault.com | |
519,045 | How create partitions with custom layout in VM on Xen Server? | We use XenServer with RAID 0, as one disk only (I wonder if this is a good approach, if not what would be ?), then we install Xen. After that we put the centOS 6.4 x64 DVD in the server and try to install it. But when it should came the option to create a custom layout of the partitions, it don't. So when we choose the... | I could solve my problem choosing the 'other media', when it shows the menu to choose which OS you wanna install. | 0 | 1 | 969 | 2013-06-27T14:10:26.800 | infrastructure | serverfault.com | |
991,003 | How to remember a choice to launch an application via Google Chrome 77 | Prior to version 77, Google Chrome includes an "Always open these types of links in the associated app" checkbox in the dialog initially presented to the user after clinking the link the first time. But with versions 77 and beyond, there is no longer a checkbox. I noticed this only after resetting Chrome to its default... | After further research, I have found it is feasible to suppress the security dialog box itself, thereby addressing he root cause directly. With no security dialog, of course, the absence of the checkbox becomes moot. A blog post on T-E.CC explains the technique, which entails adding the application's "browser protocol"... | 1 | 0 | 2,780 | 2019-11-07T17:33:26.613 | infrastructure | serverfault.com | |
741,559 | Force http on specific folder and maintain https on all others | I have a site as follows https://domain.com/app/ the site has a folder that houses web services. The path to which is https://domain.com/app/ws/api.php All this works fine, however I want the web service path to be http and not https (remove https from api calls) How can I achieve this? my htaccess is as below [CODE] | [CODE] in the Virtual Host for HTTP is what is causing HTTPS only connections. Using Rewrite is more suitable. [CODE] The first rule will end the rewrite processing, so the dir /ws/.... will not get redirect to HTTPS. Remove the redirect in your apache virtual host | 0 | 1 | 2,228 | 2015-12-08T13:30:19.357 | infrastructure | serverfault.com | |
1,024,809 | chmod issue - Incorrect Command Issued | From this linked post (answered by [CODE] ): How can I make a user and give read only access? On a CentOS box When attempting to create a readonly account, the command [CODE] was executed under the root user. A bunch of "Operation not Permitted" errors popped up before the command was quickly halted with [CODE] Since t... | ssh isn't working because the command you ran made the ssh host private keys and configuration file world readable. ssh refuses to allow connections in this case because of the security compromise. Yes, this needs to be handled as a security incident. Not just because of ssh, but because the [CODE] command made everyth... | 1 | 1 | 167 | 2020-07-10T18:36:03.077 | infrastructure | serverfault.com | |
450,600 | Getting a chef node to re-register a new identity with the server | I'm using chef-server to manage resources deployed on AWS. But when I want a new node, I don't like waiting the 30+ minutes it takes for a full chef run to install everything. So I've created an AMI with a recent snapshot of the machine after convergence, which avoids 95% of the startup time. The problem is that the ma... | You have to delete [CODE] and remove the node_name method from [CODE] in your template AMI. However, leave [CODE] in place in order for the new server to be able to register itself. If you want to immediately register the node in chef after first boot, try adding a script in [CODE] that runs the [CODE] and then removes... | 0 | 3 | 3,789 | 2012-11-20T18:56:16.963 | pipeline_ops | serverfault.com | |
344,455 | Set up emails with ** SPAM in the title to go the the user's junk E-mail folder | I have a spam filter that will mark all emails it thinks are spam as ** SPAM Email Title Here ** I'd like to still send these to the users but make a rule that if ** SPAM is in the title to send it to the Junk mail folder. Is there a way I can do this globally for all 2000+ users in Exchange 2010? Google has failed me(... | I found an easy way to do this. Under Organizational Configuration -> Transport Rules You can create a new rule that If ** SPAM is in the Title, set the spam confidence level to 9. This puts all of these in the proper Junk folder. I did end up writing [CODE] That should also work but I never ended up testing it. | 1 | 0 | 348 | 2011-12-27T18:07:58.970 | infrastructure | serverfault.com | |
463,338 | MySQL replication re-sync | I'd like to set up a zero-maintenance hands-off MySQL replication regimen for backup purposes. It's been my experience, though, that these things inevitably eventually get out of sync. Perhaps it's due to developer abuse, unscheduled accidents, or other unknowns. But I'd like to periodically re-sync the slave(s) just t... | do you use innodb engines both on slaves and masters? avoid queries that can break replication ? avoid unclean shutdowns of mysqls both on masters and slaves? if so replication in my experience is pretty solid. knowing how your slaves break would be helpful - does the replication stop? if so - with what errors on the s... | 0 | 2 | 954 | 2013-01-05T23:27:04.967 | database_errors | serverfault.com | |
631,821 | Wrong REMOTE_ADDR and SERVER_ADDR on Apache when using nginx as reverse proxy | I'm on Mac OS X, running Ubuntu in VirtualBox. Mac OS can be accessed in the local network with IP 192.168.0.100 and Ubuntu is 192.168.0.123 (it's using the "Bridged Adapter" option in VirtualBox networking settings). In the Ubuntu installation I have nginx (port 80) working as a reverse proxy to Apache 2.4 (port 8081)... | Apache would see the IP address [CODE] as the source and that needs to be added the [CODE] directive, this tells [CODE] that its a known proxy. Quoting from http://www.stderr.net/apache/rpaf/ It changes the remote address of the client visible to other Apache modules when two conditions are satisfied. First condition i... | 1 | 3 | 5,706 | 2014-09-27T23:24:10.167 | infrastructure | serverfault.com | |
763,540 | When I run "sysctl -p" in CentOS 7, an error occurs | When I run [CODE] in CentOS 7, I get the error: [CODE] My [CODE] is: [CODE] What am I doing wrong? | To enable [CODE] via procfs do this. [CODE] Then run [CODE] please get rid of this in the 9th line of your config [CODE] | 1 | 2 | 5,820 | 2016-03-14T07:25:59.900 | infrastructure | serverfault.com | |
69,588 | Openfire Java Memory | I have openfire installed on my debian server. I want to know that whether openfire java memory should be less than server memory? For e.g. i have a server with 256 MB RAM now can i have openfire java memory more than 256 MB RAM or it should be less than 256. Please help Thanks, Pankaj | I believe you will find that the JVM won't start if you set the memory too high on your system (something like "Could not reserve enough space for object heap") How many users are you planning to have? If it's just a few, openfire should run alright with 128MB or so. If you are planning to have more than a dozen active... | 0 | 1 | 2,306 | 2009-09-29T12:31:56.553 | infrastructure | serverfault.com | |
401,546 | Can /etc/hosts.deny/allow be overridden? | I have security measures put in place to keep unwanted users out of my server. I've changed the SSH port, disabled root login, have a software firewall to block portscans, and have entries in hosts.deny and hosts.allow. I have various services denied to all but another server of mine should my IP change, and two other ... | [CODE] is only used by a network application if it uses TCPWrappers; if it doesn't then those files practically may as well not exist, and if it does then those files should hold regardless of the clients. A chroot jail will certainly provide some security, but if you want something bulletproof then you'll want to look... | 0 | 4 | 651 | 2012-06-23T02:50:43.050 | infrastructure | serverfault.com | |
597,349 | SpamAssassin ASN Plugin | I've got spamassassin 3.4.0 setup to use Mail::SpamAssassin::Plugin::ASN . cpan confirms that it is installed, and dig confirms that I can get the ASN TXT records from http://routeviews.org . My [CODE] has this section: [CODE] Yet, whenever I look at the headers in a message, the ASN section is blank: [CODE] Additional... | I ran into this myself and figured I'd respond since there isn't an answer. The answer is actually that you're sending mail to yourself through the same mail server, which is normally the first thing anyone does to test a change to mail server configuration. As far as I can tell, anything that is in your list trusted n... | 1 | 1 | 524 | 2014-05-20T22:17:02.483 | infrastructure | serverfault.com | |
208,619 | Why is there high load on my cpu if both %cpu usage is low and %memory is low? | I have a Rackspace cloud server running Ubuntu with 2GB memory that is being used as an application server (the html & php files are loaded from this server and the mysql database is on another server in the same datacenter). When the number of users of my webapp increase (10,000+/day), the load goes up to 1.00 and som... | "Load" comes from more than just cpu utilization. It's the number of processes that are waiting for resources. The first thing you need to do is figure out if this is having any impact to your application you're serving. A load of less than the number of cpu's you have is normally considered good. When you're seeing th... | 1 | 2 | 4,633 | 2010-12-03T00:46:17.760 | api_errors | serverfault.com | |
420,025 | Ping server NETBIOS name returns wrong IP and "Destination host unreachable" | Problem server is Windows 2008 R2 VM running on VMWare ESXi 4 host. Single network adapter manually assigned single IP address (192.168.1.11). When I ping the server from any other network computer, it returns 192.168.1.124 and "Destination host unreachable". Yesterday I found a second network adapter assigned to this ... | I love the smell of solutions in the morning! Kudos to: http://community.spiceworks.com/topic/121513-server-giving-wrong-ip-address-when-doing-internal-ping?page=1#entry-598812 Based on this thread (and this particular response to it) on Spiceworks, I was pointed towards DNS. Checking the DNS server I found the DNS rec... | 1 | 1 | 5,344 | 2012-08-22T13:13:12.033 | infrastructure | serverfault.com | |
1,068,561 | Skeleton files /etc/skel/ automatic syncing of changes to all users | Linux distributions place some important scripts and config files in the skeleton, from where they are copied to each new user's home directory. Ideally system-wide files would be used instead of anything automatically copied to home but this is not always possible or practical. In particular, shell startup scripts are... | I know this probably feels like a non-answer, but my answer is to avoid doing that if at all possible. The stuff under skel really should only be per-user things, and shouldn't need to be managed after they have been deployed. If you have shell fragments and config put them in the [CODE] , [CODE] . Drop any system wide... | 2 | 4 | 1,536 | 2021-07-03T14:09:11.047 | infrastructure | serverfault.com | |
882,338 | RHEL ports not using same cipher | [UPDATE] I ran the openssl command from a couple servers and my local machine. It seems like port 9443 is not remaining consistent. The cipher on server1:9443 remained the same from the first server (RHEL5) I queried from. However, querying from my local machine (Win7) and a VM (RHEL6.9) result in a [CODE] cipher. I do... | So it wasn't the cipher, but the redirect port... one the clients weren't using and was shutoff on one server, but not the other. [CODE] Once we commented out this block from the JBoss server.xml file and restarted the service, things started working as intended. Each port on both servers are now reflecting the same, s... | 1 | 0 | 438 | 2017-11-07T19:36:02.757 | infrastructure | serverfault.com | |
551,649 | Sendmail slow to accept emails | I have a PHP web app which is using SMTP to sendmail on [CODE] to send email. I would like sendmail to accept the mail request immediately and queue it for later sending, as I don't want to have user-facing request threads blocked on emails. Sendmail is installed with the default settings on RHEL web servers. Sometimes... | There are several sendmail tuning parameters that can affect the initial delivery attempt. Have a look at Sendmail Tuning . | 4 | 1 | 3,674 | 2013-11-08T14:22:26.250 | infrastructure | serverfault.com | |
173,103 | INSERT INTO table FROM SELECT * with nextval() specification | I need to copy records within the same table changing only one field. My table has default-generated sequence [CODE] , however I am not sure [CODE] column is SERIAL (how to check that?). [CODE] returns just this [CODE] So the problem is: when I try copy record in a simplified manner: [CODE] it throws error [CODE] Defau... | As noted in the comments there is no special syntax for such task. You could to use combination of functions [CODE] , [CODE] and [CODE] : [CODE] But I think it is not much simpler then just enumerate all columns. You always can use this relatively simple query to get the columns list of table: [CODE] | 6 | 6 | 31,773 | 2017-05-09T15:18:33.560 | warehouse_errors | dba.stackexchange.com | |
101,359 | Error 1067: The process terminated unexpectedly [InnoDB] | I am facing the following error when i try to restart the MySQL service after an unexpected shutdown of the database server last night. Could not start the MySQL service on Local Computer. Error 1067: The process terminated unexpectedly. When i check the .err log file under MySql data folder, the log details are as per... | Sounds like you have your data file corrupted. You may try to start up your server using innodb Force Recover and then dump your table data using Select Into Command . If you had your binary log file enabled before the crash, you may restore data through Point In Time Recovery | 0 | 0 | 6,326 | 2015-05-13T06:05:23.573 | database_errors | dba.stackexchange.com | |
466,316 | locale not getting set correctly over ssh connection | I have a debian server with several locales installed, de_DE, en_GB and en_US. I want to be able to login over ssh and get the locale set accordingly (to en_US in my case, different for someone else) I ran dpkg-reconfigure locales, and selected None as the default locale as mentioned here: http://wiki.debian.org/Locale... | Ok, I figured it out. Someone hard coded the [CODE] and [CODE] variables in [CODE] , so everything else was just ignored. After removing these, the locale now gets set according to the environment transmitted by ssh. | 4 | 3 | 8,969 | 2013-01-11T21:32:49.983 | infrastructure | serverfault.com | |
912,573 | How to enable IAP for k8s on GCP? | Aim: to enable Identity Aware Proxy (IAP) in conjunction with Kubernetes (k8s). Methods: Two apps were deployed A SSL load balancer was put in front When one navigates to domain/app1, app1 is shown This tutorial was followed to enable IAP for k8s https://cloud.google.com/iap/docs/enabling-kubernetes-howto Results The G... | To begin with, here’s some general information: To get started with IAP in GCP, add an App Engine app or configure Cloud Load Balancer for IAP . In case you are running Kubernetes cluster, you may have the Load Balancer configured already. Then you should enable IAP for it here: [CODE] And finally, that is the place wh... | 3 | 1 | 1,953 | 2018-05-16T19:45:53.770 | pipeline_ops | serverfault.com | |
23,687 | xgboost with tree_method = 'hist' in R | According to a benchmark of GBM vs. xgboost vs. LightGBM ( https://www.kaggle.com/nschneider/gbm-vs-xgboost-vs-lightgbm ) it is possible to implenet xgboost with the argument [CODE] in R. However doing so gives me always an error: [CODE] What am I missing? | The fast [CODE] mode is available in newer versions of XGBoost. You can find infos on https://github.com/dmlc/xgboost/ For small data sets (100k lines), you wont feel much gain in training speed. | 1 | 2 | 1,519 | 2017-10-11T08:36:18.057 | data_quality | datascience.stackexchange.com | |
183,015 | How long has it been since last card top-up? | We have a table for our stored-value cards: [CODE] We would like to know for each card (customer), the time between each purchase and the most recent top-up at that time. So the intended result is: [CODE] Why is there a gap of 2 days for a row id of 3? The purchase happens before the top-up. The date column is of type ... | I've added time part to the [CODE] just to get the correct order for the transactions: [CODE] 5 rows affected Then you can get it by using an [CODE] operator with all records where [CODE] . Note you must limit to one record the rows returned by the subquery. [CODE] CardNo | TransactionType | Amount | TransactionDate | ... | 1 | 3 | 66 | 2017-08-09T03:54:27.243 | warehouse_errors | dba.stackexchange.com | |
167,079 | Tomcat 6 using wrong SSL cert | I have IIS and Tomcat 6 running on the same box, both applications need SSL (on different ports). I have purchased and installed two SSL certs, one for IIS and one for Tomcat. Both certs are using the same FQDN. IIS is working properly, but when I try hit Tomcat, it's serving me the IIS cert and my browser is throwing ... | There shouldn't be any way for it to serve up the IIS cert until IIS has a site listening on port 8443. And if the cert is revoked, you should be getting the same error when accessing it with port 443. Are you sure it is the same cert? Also check for a keystore file at "C:\Documents and Settings\user_name\". That is th... | 0 | 0 | 923 | 2010-08-04T16:25:37.377 | api_errors | serverfault.com | |
64,639 | How to create a user via GUI in SQL server 2008 R2 with read only access on specific databases? | I am a newbie in SQL server 2008 and slowly learning it. Today I got a task of creating a user with read only access for a specific database in a server. So what should I specify under the tab- Server Roles User Mapping | In user mappings, simply select the database in question, and choose "DB_Datareader", this should allow the user to read from the database, while nothing else. Considering you probably have no other security set up for this user, this will be the simplest / fastest way. If you want to have a better idea as to what the ... | -2 | 1 | 1,022 | 2014-05-07T10:04:59.147 | database_errors | dba.stackexchange.com | |
644,734 | Target object for this command has incorrect format | I'm doing some 70-410 training and this script that I'm trying to run that I made keeps on failing due to an error that I receive that I stated in the topic. doesanyone see anything wrong in this: [CODE] | The first container names lack the container type from your third statement on down to the bottom, and you don't have the first one quoted (for consistency). For example, it should be "ou=Chicago Admins,ou=Chicago,ou=IL,dc=sawahcompany,dc=com". | -2 | 3 | 3,009 | 2014-11-16T14:27:34.677 | infrastructure | serverfault.com | |
174,803 | Latency appear to be an issue with linked server | A client have a data warehouse server with a linked server set-up. The data warehouse server is SQL Server 2014, while the linked server is a SQL Server, but version unknown. Those two servers was previously physically at the same location, but a while ago the linked server was moved across the Atlantic. The performanc... | The queries are simple selects from single tables. There are a number of details that you need to include that may have an effect here. Are they many small resultsets (a few rows or small rows) or small numbers of large results (many rows and/or large columns like BLOBs)? If it is a mix can you separate them out and te... | 0 | 1 | 936 | 2017-05-29T07:41:21.677 | database_errors | dba.stackexchange.com | |
167,133 | Permissions, rights, roles, user groups, delegations | I am looking for a good book, Internet resource that can clearly explain these terms. Really, I would not like to read any Microsoft books or any book about windows or other operation systems. I really need the theoretical explanations. I am appreciated to get any help. | That should be a good book. It is on information security, and has chapters on system security. http://www.pearsonhighered.com/educator/academic/product/0,,0136004245-TOC,00%2ben-USS_01DBC.html | 0 | 2 | 128 | 2010-08-04T19:08:07.907 | infrastructure | serverfault.com | |
374,140 | Using command in ssh authorized_keys breaks scp | I would like to use command per key in authorized_keys to set some environment variables. [CODE] Shell works fine but scp is not working. What would be the correct way to set environment variables per key and not break ssh file transfers? | Your configuration forces ssh to run whatever command is in [CODE] whenever you connect with the matching private key. This is fine if what you want is an interactive shell, but will break any attempt at running a command directly. This breaks `scp as you've seen, but will also break things like: [CODE] The solution is... | 2 | 4 | 3,565 | 2012-03-27T21:52:45.230 | infrastructure | serverfault.com | |
83,315 | Memory Interpretation Graph - Munin | Yesterday I rebooted the web server machine, but I'm trying to figure out why the graph below shows prior rebooting the memory almost full of cache and just a bit of active memory used. Would there be any problem keeping it the same was it was or rebooting every ~30 days is what I'm suppose to do? Thanks http://img513.... | Check out this blog post , it might shed some light on the issue. | 1 | 5 | 3,044 | 2009-11-10T16:25:46.033 | infrastructure | serverfault.com | |
192,433 | Gitosis permissions issues | I have Gitosis installed on a Centos box which I use to manage about a dozen repos(html/php/css etc) which I then manually pull through to live sites running on nginx/php as needed. The issue I have is every time I do some work on one repository and then push my changes when I try and pull from another repo I get ERROR... | Are you changing the gitosis.conf file on the server or in the gitosis-admin repository? Because the one that is on the server is actually generated from the one located in the repo, so you would need to change that one instead. Hope this helps. | 0 | 1 | 254 | 2010-10-19T10:42:50.740 | infrastructure | serverfault.com | |
108,694 | mysqlbinlog: unknown variable ssl_key or ssl_cert or ssl_ca | I am trying to recover binlog from a remote server using [CODE] client program, however it appears that [CODE] doesn't recognize the SSL options that's required to establish SSL connect to MySQL version 5.5 server, which is set to require X509. Any other ways to get [CODE] to connect? Update: I've noticed this bug repo... | BOTTOM OF THE BUG REPORT YOU REFERENCED [21 Jan 16:44] David Moss Thanks for your feedback. This was fixed in version 5.7.3, and the following text was added to the 5.7.3 release notes: Previous versions of mysqlbinlog did not correctly accept the ssl-ca option in an option file. This fix ensures that this option can b... | 0 | 1 | 748 | 2015-07-31T16:52:29.267 | api_errors | dba.stackexchange.com | |
1,083,791 | Moving docker container from linux based server to AWS | I am trying to move a container running on a linux based server to AWS. I am doing a commit-save-load. After doing a commit-save-load, a docker image is created. I then ran this docker image using command [CODE] But I get the following error The requested image's platform (linux/amd64) does not match the detected host ... | You can't just run a amd64 image (to be more precise, the same digest of the image) on an ARM platform, even if the image it's based on is multiplatform-featured. in other words, it will not work with commit/save/load procedure. The image itself usually needs to be built ( [CODE] ) based on a Dockerfile for every targe... | 0 | 1 | 819 | 2021-11-17T11:18:11.823 | pipeline_ops | serverfault.com | |
254,725 | Allowing non-privileged users to cause privileged code to run | Context: Our SQL server is used for teaching, and we need to be able to automatically create databases for the students on demand and in real-time. We also need the students to be able to delete databases that they created. The students cannot be given administrator privilege, or any other level of access that would po... | perhaps a signed stored procedure would work? I'm looking for the simplest, sanest options here, thinking forwards to whoever winds up looking after this server after me and looking for solutions that will be understandable and maintainable. Yes. A signed stored procedure absolutely would work, and would work well. As ... | 3 | 1 | 262 | 2019-12-03T23:15:29.980 | database_errors | dba.stackexchange.com | |
321,798 | In C, why is NULL and 0 triggering an if statement | I have a function that is called by [CODE] The function looks like [CODE] Passing [CODE] or [CODE] BOTH trigger the [CODE] statement and I can't figure out why. I need to return from the function on [CODE] but continue if the value is [CODE] . Any change made can only be made within the function itself. | In C, [CODE] is a macro that expands either to [CODE] or [CODE] (or something that has a similar effect). In the first case, you can not differentiate between [CODE] and [CODE] , because they are literally the same. In the second case, your code will cause a compile error, because you can't compare an integer variable ... | 1 | 12 | 7,471 | 2016-06-10T00:37:54.817 | api_errors | softwareengineering.stackexchange.com | |
412,577 | Installing Ubuntu Server on Dell R710 with HW RAID disabled | I disabled Enable Controller BIOS control , then disabled HW RAID from the BIOS setup screen, then booted with a live Ubuntu Desktop 11 CD only to clear RAID's metadata based on the information on that page . But when Ubuntu is loaded (GUI), I opened the terminal and issued the os probing command using sudo, it returne... | If you have a good RAID controller then why would you try and mess around with software RAID? If you have a good controller, and you disable it, then you obviously won't be able to see the drive because they are physically connected to the RAID controller. They are not like fakeraid on motherboards where you flip a swi... | 1 | 2 | 2,895 | 2012-07-30T16:24:02.993 | infrastructure | serverfault.com | |
106,931 | Logging Bounced messages to a Database (Postfix with virtual domains/users) | We have a postfix installation with a couple of virtual domains each with virtual users. These domains and users are mapped using a mysql database. I have been until now tracking bounces by parsing the postfix log file. I suspect there must be better and more efficient ways of doing this. I thought of three but I am no... | This all assumes that you want to collect info on bounces rather than the bounced email itself: I have pretty much the same setup with postfix, mysql, and virtual hosts. From n hardware resource perspective the most efficient way to keep track of this is to parse the log files as you are doing. But if you think how you... | 4 | 5 | 8,402 | 2010-01-27T19:06:01.837 | database_errors | serverfault.com | |
14,088 | Keras' Evaluate function training model on test set | I've been using Keras to do some timeseries predictive neural nets. One thing that's had me staggered is how I was getting an almost 99% accuracy rate on very very noisy and uncorrelated data (I was looking for accuracy of around 50% to be good!)... What I've now found, is that after I trained my model on the training ... | Keras doesn't update your model with testing data. It might be that your labels have been provided wrong in the test data, check the model.predict_classes() to get the output of your classes and crosscheck them with your actual output manually by picking random subset. | 0 | 1 | 1,548 | 2016-09-19T11:35:00.540 | data_quality | datascience.stackexchange.com | |
441,832 | Applying Domain Driven Design to applications with both reading and writing heavy logics | We are planning a complete rewrite of a very complex project (10+ years, ~15 different application modules) and we would like to adhere to DDD and CQRS as much as possible but we are struggling to fit our needs. The context The app is a data-analysis tool that basically stores data and allows the user to configure cust... | we would like to adhere to DDD and CQRS as much as possible but we are struggling to fit our needs Re-read what you've written here. You struggle to apply some pattern, because you're not sure it'll fit? Maybe don't do it then :) Seriously. I guess your question could be understood to mean, how do you "follow the domai... | 1 | 1 | 123 | 2022-10-24T10:04:35.950 | data_quality | softwareengineering.stackexchange.com | |
45,880 | Extract data to another computer | I have SQL Server 2008 R2 Express edition, and I want to export the data in that database to another computer so I can import it again in that computer. How please? What I have tried Right-click in the database -> Tasks -> Export -> Set server name + password + set database source. My problem I found that I have to set... | There are a few ways to do this, some easier and safer than others. You could mess around with detaching and attaching, but I will never recommend that solution for normal cases like these. Since you have your database on SQL Server Express Edition, then it can't be larger than 10 GB. It'll be a quick and painless proc... | 3 | 5 | 1,835 | 2013-07-08T07:16:24.843 | 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.