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 |
|---|---|---|---|---|---|---|---|---|---|---|
13,107 | Does replication with SSL encryption work on MySQL 5.5? | I am trying to set up replication with slave on Amazon EC2 and master in our local environment. The setup went fine without SSL encryption. But when I set up the replication to be SSL encrypted, it is failing to connect to Master. MySQL version on Master : Server version: 5.5.19-log MySQL Community Server (GPL) MySQL v... | To use SSL for encrypting the transfer of the binary log required during replication, both the master and the slave must support SSL network connections. If either host does not support SSL connections (because it has not been compiled or configured for SSL), replication through an SSL connection is not possible. Setti... | 1 | 1 | 860 | 2012-02-15T15:53:09.390 | database_errors | dba.stackexchange.com | |
821,178 | Cannot Create New Group Policy Preferences | In Group Policy Editor I cannot create new Group Policy Preference items in the Control Panel Settings (Data Sources to Start Menu in Group Policy Management Editor). I was trying to create a file association ( [CODE] > [CODE] but no dialog box appears when I click on this. Interestingly, it does appear with Printers a... | I've just fixed this issue using Process Monitor. Filtered to Process Name mmc.exe and Operation to CreateFile and could see the failed capture referencing a file [CODE] with the status 'NAME NOT FOUND' and this file didn't exist. The .mui equivalent did mind you. This file is the Group Policy Preferences Property Shee... | 1 | 1 | 254 | 2016-12-16T16:58:08.143 | infrastructure | serverfault.com | |
995,343 | s3 static site: Amazon using wrong bucket | I'm setting up a static site, hosted on S3, using this set of directions: https://www.linode.com/docs/platform/object-storage/host-static-site-object-storage/ I've set my bucket up with the name holisticnetworking.net-static. I walked through the process of setting up the bucket to serve over HTTPS and checking the inf... | A custom domain name must match the bucket name. Amazon S3 sees only the original hostname www.example.com and is unaware of the CNAME mapping used to resolve the request. So the CNAME and the bucket name must be the same. https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html To disconnect the hostname of... | 1 | 2 | 3,287 | 2019-12-12T13:54:15.427 | infrastructure | serverfault.com | |
693,674 | WARNING: One or more of your nameservers did not return any of your NS records | New to this website hosting and NS records so kindly be easy on me. Kindly help me to resolve this this error. spoke to my Hosting provider as well and they keep saying that I need to change the NS records or DNS records on my domain registrar website as I am still having old Nameserver. I did that but still I do not k... | Comparing the delegatory [CODE] records in the parent zone: jtrading.biz. 7200 IN NS NS305 .FASTWEBHOST.COM. jtrading.biz. 7200 IN NS NS306 .FASTWEBHOST.COM. ;; Received 291 bytes from 2001:503:7bbb:ffff:ffff:ffff:ffff:ff7e#53(a.gtld.biz) in 15 ms with the [CODE] records returned by the servers indicated in the delegat... | 2 | 1 | 3,484 | 2015-05-21T18:07:19.573 | infrastructure | serverfault.com | |
111,369 | How do I install the latest Sun Java JRE on Ubuntu Server 9.10? | Unfortunately, if I try to install sun-java via apt-get, it's not found in the repositories. # apt-get install sun-java6-jre Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-jre is not available, but is referred to by another package. This may mean that the pack... | You need to enable the multiverse repository in Ubuntu: https://help.ubuntu.com/community/Repositories/Ubuntu | 1 | 2 | 2,048 | 2010-02-10T00:21:30.847 | infrastructure | serverfault.com | |
442,560 | Create mirror software raid with bad blocks hdd. How to check data integrity? | There is error in System event log like this one: "The device, \Device\Harddisk1\DR1, has a bad block." Because of above I created Raid 1 on this disk and other one. I'm using Windows Server 2008 R2 software RAID volumes. Volume in Disk Manager is marked as "Failed Redundancy" and "At Risk". I could command to "Reactiv... | First of all: Creating a RAID 1 volume after the fact is not a useful way to deal with a disk error. Because the creation of the RAID 1 mirror fails at the point where the bad block is reached, you can safely assume that you do not have a complete copy of the original disk with the bad block. There is no need to verify... | 2 | 5 | 4,871 | 2012-10-26T04:43:06.117 | database_errors | serverfault.com | |
377,710 | What is name server of my domain, pointing to hosted site on Github Pages? | I've got one domain name and I want to set it up for my hosted site on Github Pages service. In the documentation this point is mentioned that If you are using a top-level domain like example.com , you must use an A record pointing to 204.232.175.78 . But my domain registrar doesn't permit me to add a DNS Record. But o... | Your registrar gave you incorrect information. Presumably, they misunderstood and thought that Github was providing you with name service. In fact, you can't put Github's name server in those cells, they must refer to your nameservers, that is, the nameservers of whoever is providing you name service. That appears to b... | -2 | 0 | 722 | 2012-04-08T20:12:43.433 | infrastructure | serverfault.com | |
334,040 | Windows 7 admin can't edit hosts file anymore | The question is simple. Suddenly I can't edit my hosts file on win7 anymore. I am running notepad as administrator, i get access denied saving the file. Under the security tab of the file it says administrators have read/write permission. The owner is SYSTEM and i can't seem to change that. I can edit the file running ... | Check if the file doesn't have readonly flag set. The other issue could be that some protection software installed on your computer prevents editing this file. Try disabling antivirus and similar software temporarely to check if this is the case. | 1 | 3 | 1,913 | 2011-11-23T11:14:33.537 | infrastructure | serverfault.com | |
342,001 | Boot configuration error: Fedora 15 | I have a Fedora 15 installation on VirtualBox. When I added another virtual hd it erased all the [CODE] . Now I'm trying to manually add the CD-LIVE correct command in [CODE] , but is giving error: GRUB.CONF: Command blkid | My [CODE] is much more complicated than that. Fedora 15: [CODE] This includes the latest updates as of yesterday, Friday December 16. | 1 | 0 | 217 | 2011-12-17T17:14:29.223 | infrastructure | serverfault.com | |
82,260 | Oracle Database 12c on Oracle Linux 7 - autostart, enabling connection as sysdba | I've installed 12c on Oracle Linux 7 for my development work, as per document [CODE] . My previous experience with administering Oracle Database is version 8 on Novell Netware and 10gR2 on Windows x64 at my prevoius workplace. I have not worked with Linux too much, save for some simple services on Ubuntu. This time I c... | Based on my own research, google results and ansible's answer, I was able to come up with complete solution for Oracle Linux 7. Everytime you read [CODE] - this is my Oracle Instance SID. To start or stop database, [CODE] and [CODE] scripts are used respectively. They are located in [CODE] . Both of them need a paramet... | 4 | 3 | 50,501 | 2014-11-09T19:42:39.340 | database_errors | dba.stackexchange.com | |
735,086 | elasticsearch: how to see that warnings are in logs / breakers are being tripped | ES 1.7.x on CentOS Our production ES cluster went down hard. We lost the entire index. Turns out, this had been in the logs for a day or more: [CODE] OK. What url on ES can I hit to see that issues are happening? (Log monitoring is not part of our monitoring regime, but hitting an ES url is easy for us.) We use cluster... | OK, found the answer. Frankly, it is a really weak answer, that puts a true burden on us to deal with. As doced here: https://www.elastic.co/guide/en/elasticsearch/reference/1.4/cluster-nodes-stats.html Use this: [CODE] And then you can see a breakers|tripped element. That is just a counter, not a velocity. So you have... | 0 | 1 | 680 | 2015-11-09T22:15:11.177 | database_errors | serverfault.com | |
125,367 | CPU Benchmark - Set Load, usage spikes | I need a CPU benchmark to test the performance impact of various power management policies. I must be able to set the load (e.g. to get a relatively steady load of 20%-30%-60%) and to simulate usage spikes (set frequency of spikes). I would also like it to be scriptable so as to be able to change benchmark settings in ... | Knowing the operating system you wish to perform these tests would be helpful :) For stress testing the cpu you could use : http://www.fossiltoys.com/cpuload.html Also you could check this question: https://stackoverflow.com/questions/141707/how-to-set-cpu-load-on-a-redhat-linux-box | 0 | 1 | 383 | 2010-03-23T13:07:15.190 | infrastructure | serverfault.com | |
300,029 | MariaDB hidden disk usage for log dir | We have a simple master/slave cluster in our environment which is sets up on Ubuntu 20.04 and MariaDB 10.5: [CODE] We set all log directories to [CODE] including bin log & relay log: [CODE] . For this directory ( [CODE] ), I've created a LVM with 100GB space but after 2 days, I've got an alert which says that this dire... | OK, I've find the problem and it's what I added as " Update 1 " to the question. The main issue was about logrotate; lets see the original content: [CODE] First I've tested if I can access [CODE] , I've ran the bellow command: [CODE] It's says: [CODE] That's because I've restored my own data and deleted everything (inc... | 1 | 2 | 598 | 2021-09-23T09:03:33.897 | database_errors | dba.stackexchange.com | |
290,851 | Is it more efficient to create check constraints on PostgreSQL table before or after bulk load? | I am creating a table in PostgreSQL and bulk load with data first. PostgreSQL's documentation recommends to insert large volumes of data first and then create indexes and foreign key constraints. What's about check constraints? Is it better to create them before inserting initial data or after? Or does it matter? For e... | You can benchmark it, but it shouldn't make a difference. The check expression will be evaluated for each row, and it only uses the data from that row. It should make no difference if that takes place while you load the data or afterwards. | 1 | 0 | 477 | 2021-05-01T13:15:08.070 | data_quality | dba.stackexchange.com | |
115,675 | How to prevent IIS from sending a null response when it can't find a default document? | When I try to access an URL that points to a directory that doesn't contain a Default Document, IIS 7.0 sends me this response: [CODE] I was wondering, is there any way to make it output a 404? | What i discovered is that you have to have the Directory Browsing feature installed in IIS. If it is installed and disabled in the web.config file (which is the default), then IIS will throw a 403.14 error. If you do not install the Directory Browsing feature at all, then you get a 200 with no response. I haven't been ... | 2 | 1 | 663 | 2010-02-23T07:44:12.277 | infrastructure | serverfault.com | |
1,013,838 | Apache mod_rewrite with Redirect Dropping Authorization Header | I have some Apache mod_rewrite rules set up to redirect Maven deploys from one url/server to another. We're in the process of migrating from Nexus to Artifactory and need these redirects set up so that teams can still use the Nexus URLs for a period of time without breaking builds. Here's an example of our mod_rewrite ... | I figured out what I needed to get this to work. mod_rewrite isn't going to get this to work, but using mod_proxy I was able to get this to work: [CODE] It won't redirect the users to the URL but it will display the Artifactory content within the nexus URL. | 1 | 0 | 1,294 | 2020-04-23T18:40:27.947 | api_errors | serverfault.com | |
1,018,511 | How to solve reverse DNS lookup error when mail.example.com is stored on server.example.com | Environment: Digital Ocean, Centos 8, Postfix/Dovecot Background: For my droplet I used a FQDN, [CODE] . Digital Ocean configures the PTR record (reverse DNS entry) on their end based on the droplet name. This works fine with my web server. Unfortunately I'm getting a reverse DNS lookup error for my Postfix email serve... | Only Digital Ocean can control the reverse DNS, as the [CODE] records aren't on your zone, but on an [CODE] zone controlled by the owner of the IP address. A Digital Ocean Community question has an answer to this: The Reverse DNS is configured automatically from our end based on the droplet’s hostname. To rename your d... | 2 | 1 | 4,084 | 2020-05-24T19:03:08.983 | infrastructure | serverfault.com | |
718,749 | Windows Server 2008R2 crash every hour | I have a Windows Server 2008R2 which crash every 1 hour. The server is physical and is provided by fasthosts but I can access the server(out of the country). So I checked for Event Viewer before crash and didn't find anything. I checked in Task Scheduler for any task that is running every hour but again I didn't find a... | When a 180 day trial Windows Server 2008R2 license expires it will start rebooting every hour. http://support.microsoft.com/kb/2021579 You should also see in your log: [CODE] | 1 | 2 | 2,349 | 2015-09-03T07:00:33.097 | infrastructure | serverfault.com | |
1,120,698 | Dynamically move mails into matching mailboxes with sieve fileinto regex | I'm trying to create a sieve script, which files mails into mailboxes (or sub-directories of the inbox) matching a certain subject identifier. For example if the subject includes [CODE] (three digits, 0-9), the server should check if a mailbox matching the same identifier exists, such as [CODE] and if so, file the mail... | Stick the match into a variable and use that: [CODE] Maybe the whole mistake was to add [CODE] for [CODE] and [CODE] . I believe you could just sprinkle [CODE] into the arguments. But I would prefer using the extra variable anyway, to make the rule easier to read. | 0 | 1 | 581 | 2023-01-20T07:33:42.233 | infrastructure | serverfault.com | |
7,147 | OS-agnostic way to set permissions and encrypt files | A friend of mine is physician and shares his office with other physicians (they're all psychiatrists). They're looking for a not to pricey and secure way to share and store files (basically text-only notes and reports) on a server (preferentially running Ubuntu Linux) over the LAN. They need to be able to dynamically s... | I agree with Schmitty23 .. I think it is a mistake to manually manage the permissions .. it is highly prone to errors and difficult to manage. I suggest a simply configured document management system. --> http://www.knowledgetree.com/ --> http://www.openkm.com/ --> http://contineo.sourceforge.net/features.html --> http... | 4 | 2 | 594 | 2009-05-11T20:01:30.517 | infrastructure | serverfault.com | |
12,346 | mysql bin-log.index not found | I moved my bin-logs to a different folder: [CODE] When I try to start mysqld I get this: [CODE] Permissions for the files and directory are fine, [CODE] is working fine and there is no apparmor installed. Any ideas what could cause this? | SELinux was installed and it didn't allow access to those files. Disabling it solves the problem. | 3 | 3 | 17,873 | 2012-02-06T17:28:10.937 | database_errors | dba.stackexchange.com | |
388,573 | manually rotating logfile with rsyslogd | I want to force logfile rotation using [CODE] , but it's only return tones of: [CODE] I know that on this system rsyslogd is running. How to rotate [CODE] ? I want it empty. | You don't tell [CODE] which file to rotate on the command line. You pass it a configuration file. So in your case, [CODE] is reading [CODE] and trying to parse it as a config file and failing (hence your errors). If you want to rotate [CODE] it needs to be listed in a [CODE] config file somewhere, and you just run [COD... | 17 | 31 | 48,838 | 2012-05-12T22:30:58.687 | infrastructure | serverfault.com | |
169,434 | Foreign keys without any checking or index | I have a problem on SQL Server that led me to the question of whether it is possible to define a foreign key that is not enforced, not backed by an index, and does not need the referenced columns to constitute an (enforced) key. Foreign keys do two things: They enforce integrity - which I am willing to give up in my sc... | Have you tried the NOCHECK option? https://technet.microsoft.com/en-us/library/ms177463(v=sql.105).aspx | 0 | 0 | 166 | 2017-04-07T11:16:27.640 | database_errors | dba.stackexchange.com | |
19,463 | Unable to connect SQL Server 2008 from SQL Server 2005 DB | I have SQL Server 2005 on my work station and on my Server, we have SQL Server 2008. When I tried to connect to SQL Server 2008 from my SQL Server 2005 edition, I am receiving the following error: This version of Microsoft SQL Server Management Studio can only be used to connect to SQL Server 2000 and SQL Server 2005 s... | This is a known issue. Please see the following KB article for a resolution: FIX: You may experience problems when you use SQL Server Management Studio in SQL Server 2005 to connect to an instance of SQL Server 2008 | 1 | 4 | 3,157 | 2012-06-18T19:17:19.580 | database_errors | dba.stackexchange.com | |
1,085,489 | Why can't I grant select privileges to all table in schema with PostgreSQL? | I have a database [CODE] , and it have some tables named [CODE] , [CODE] , ... , [CODE] under schema [CODE] . I need to grant select privileges for all tables in schema [CODE] to user [CODE] , so I execute SQL command below: [CODE] And it executed without error. But after I connect with user [CODE] and tried to select ... | ERROR: permission denied for table asm_info SQL state: 42501 Connect with user who is superuser or user with grantable privileges. Connect to the database in which table exists . [Most Important] Then, run the following command : GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO developer; -bash-4.1$ psql erp; erp... | 3 | 1 | 13,858 | 2021-12-06T03:40:03.070 | database_errors | serverfault.com | |
242,288 | primary key constraint Sorting | Is having a field in primary key constraint optimizes sorting of the table ? Here's the schema of the table: [CODE] The sorting query: [CODE] The [CODE] in primary key constraint doesn't provide any uniqueness with respect to values. The only reason it's added is to optimize the sorting on [CODE] , since sorting on a c... | It could help some variations of your query. Take this setup for instance: [CODE] The query you gave as example: [CODE] There's a Sort operation to put things in the order you requested. But this query has a different plan: [CODE] With equality predicates across the columns leading up to your chosen Sort order, the ord... | 1 | 2 | 1,253 | 2019-07-07T16:59:33.227 | data_quality | dba.stackexchange.com | |
587,813 | Does anyone know how to get cross-forest printers in the ADDS "printer directory?" | I'm in the midst of an active-directory forest migration at the moment, and in addition to that, the powers that be have decided to start on an upgrade from Windows XP to Windows 7 for our client PCs. This has left me with something of a problem around printers, in that our clients are on the old forest and domain, and... | You should be able to use the [CODE] script to publish printer objects manually. You could get the list of printers to publish by querying Active Directory (the [CODE] command would locate all printQueue objects in the domain its run against and output them into a file. After that it would be a matter of parsing the ou... | 3 | 2 | 2,507 | 2014-04-09T16:04:00.950 | infrastructure | serverfault.com | |
1,002,001 | In a linked mailbox scenario, is the master account allowed to have the corresponding email address as proxy address? | I read the documentation on how to create linked mailboxes from microsoft , but this is something that isn't answered there or I just don't find it: It's clear that the mailbox account has to be configured with the primary mail address of a user, since it's exactly the responsibility of that account. Hence it will be l... | Try below command to find primary account for linked mailboxes. [CODE] | 0 | 0 | 227 | 2020-02-06T07:13:40.580 | infrastructure | serverfault.com | |
31,591 | MySQL 5.1.66 SSL connection error ERROR 2026 (HY000) | UPDATE2 Using WireShark I found out the problem string (I hope I did): [CODE] And the error is (according to docs ): [CODE] Here are the screenshots of WireShark in two cases: Connection from Windows 8 (Success): Connection from CentOS (Fail): Why does this happen? UPDATE One interesting notice: I have successfully con... | Try making certificate files owned by mysql user and not readable by others. You can try also with a fixed cipher: [CODE] And for the change master: [CODE] | 39 | 2 | 14,968 | 2013-01-04T09:06:08.800 | api_errors | dba.stackexchange.com | |
231,146 | Upon deletion I want to set another value that is in the table (random) as the foreign Key, if i delete that foreign key, how can i do this? | For example, I have a database that has coaches and gymnastics, if a coach leaves the squad then every gymnast they are assigned too need to be randomly set a new coach. This needs to be done in SQL DDL, so when the database is set up. I can't see this being done by CASCADE or SET NULL, so how? Thanks | That can't be done by DDL but you can create the trigger [CODE] for the table [CODE] that will update all the related rows from another tables to preserve the referential consistency. | -1 | 1 | 38 | 2019-03-02T20:35:48.590 | warehouse_errors | dba.stackexchange.com | |
230,158 | How to write camel case for words like "phonenumber", "motorcycle", "wavelength", etc | I am having a problem in understanding how to apply camelCase syntax to some of my variable names. For example, how should I correctly write a word like "phonenumber" in camel case? Is it [CODE] or [CODE] ? Similarly with "username", is it [CODE] or [CODE] ? I think it doesn't look right with camel case like [CODE] , [... | You should capitalize the letter after where there would "normally" be a space (when you would write a letter instead of sourcecode). Your first assumption is correct: It's a "motorcycle", not a "motor cycle", so your variable should be named [CODE] , not [CODE] . It's a "hash map", so you go with [CODE] , not [CODE] .... | 80 | 177 | 31,983 | 2014-02-24T17:10:33.247 | api_errors | softwareengineering.stackexchange.com | |
194,369 | Reasonable values for thread_cache_size in relation with Connections | I want to know reasonable values for thread_cache_size in relation with the connections that you have. Which is the good proportion? And which proportions do you handle in relation with your clients connected? Thanks! | Keep in mind that [CODE] controls a "cache". It is the number of threads (or processes, depending on the OS) to keep open just in case another connection request comes soon. There is some cost in creating a thread. (This depends on the OS, etc.) For Windows, [CODE] should be zero. (Sorry, I don't have a reference stati... | 1 | 2 | 4,833 | 2018-01-02T12:51:00.817 | warehouse_errors | dba.stackexchange.com | |
247,794 | Bad Performance when SQL Server hits 99% Memory Usage | I've got a server that reports 8 GB of ram used up at 99%. When restart Sql Server, it drops down to about 5% usage, but gradually builds back up to 99% over about 2 hours. When I look at the sqlserver process, its reported as only using 100k ram, and generally never goes up or below that number by very much. In fact, ... | SQL server will cache as much data as it can -- which is as others have said a good thing. This data it is caching is called the buffer cache -- but you need to limit this. So what you need to do to fix this is limit the size of the buffer cache . Rule of thumb is (Total_RAM - (2GB or 10% (whichever is larger)) = Max b... | 9 | 12 | 34,826 | 2011-03-15T20:03:41.747 | database_errors | serverfault.com | |
696,267 | Apache2.4 Ubuntu: Virtualhost redirects to localhost | I wanted to set up a virtualhost for my apache2 running on my computer. So when I browse to: "invision.jan.pcsg" I get the page contents/folder structure from "/var/www/html/invision" This is the virtualhost file "invision.jan.pcsg.conf" I created: [CODE] When I browse to "invision.jan.pcsg" now, I get redirected to lo... | First, you don't need the domain name on the first line. The first line should be: [CODE] . Second, the ServerName and ServerAlias should be the same domain. If you want different domains to point to the same root directory, you need to set up multiple virtual hosts. Please find the instructions here . | -1 | 1 | 2,197 | 2015-06-03T08:17:04.413 | infrastructure | serverfault.com | |
351,942 | Is it bad practice to insert and update through database views? | Currently we are slowly replacing a custom made ORM framework with Entity Framework (EF). One of the steps is to make sure we can update and insert records through database views with EF, just like we are doing with the current ORM. The views provide security by filtering on accessible records for the user, preventing ... | You can probably find everything you need to know about this subject in this Microsoft article. Specifically: When querying through a view, the Database Engine checks to make sure that all the database objects referenced anywhere in the statement exist, that they are valid in the context of the statement, and that data... | 3 | 3 | 5,603 | 2017-06-30T14:09:33.113 | api_errors | softwareengineering.stackexchange.com | |
83,670 | Is it possible to setup an incremental backup strategy (e.g. WHS' version) on Windows Server 2008? | Windows Home Server (WHS) has an excellent incremental background strategy. It keeps diff. snapshots of the last three days, one for each of the last three weeks, and one for each of the last three months. Here is the Wikipedia article on Incremental Backups: http://en.wikipedia.org/wiki/Incremental_backup Is there a w... | I don't know what's included in WHS backup or what feature sets it apart from the built-in backup tool - but normally it shouldn't be too hard to script using diskshadow and robocopy to retrieve and store the files somewhere and let the script manage rotation purges. Check this answer out. Use task scheduler to set up ... | 0 | 2 | 1,977 | 2009-11-11T16:19:33.590 | data_quality | serverfault.com | |
38,516 | XML in the attribute of other XML | Today, another developer was talking to me about how he addressed an issue he was working on. The solution he found was to stick a string of escaped XML into the attribute of another XML element. In my head I was screaming "Is that even safe and wise to do???". According to him, that has been done on tons of other proj... | If you properly escape the inner XML, then this CAN work. I'm not going to take bets on how long before you find oddball issues with the escaping, however. I personally think it's a VERY strange thing to do, and I think it's going to cause lots of head scratching further down the line. More importantly (perhaps), it me... | 4 | 8 | 387 | 2011-01-20T22:21:49.957 | api_errors | softwareengineering.stackexchange.com | |
451,387 | How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off | This is more of a curiosity then a real problem, I am just to lazy to reboot or log off my laptop. I have connected to a network share on a Windows server with domain credentials from a non-domain Windows 7 machine, I didn't mark the option to remember the password. The share is let's say [CODE] . I have changed the pa... | NOT FOR WINDOWS 10 (I am answer for WINDOWS 7) To delete all network authentication [CODE] To view current network connection [CODE] IMPORTANT NOTE I tested in Windows 7 SP1 64 Bits, 100% WORK After run the command, you need to go to task manager delete the explorer.exe , then reopen the application again. To open the ... | 99 | 75 | 555,648 | 2012-11-22T23:11:12.270 | infrastructure | serverfault.com | |
352,453 | CentOS Superblock corruption? | I'm on CentOS 5.2 and I'm having a problem booting my two database servers. Our IT department performed a SAN upgrade over the weekend and now I can't boot - they say the upgrade went fine but obviously something has happened. The error I get a boot time is this; [CODE] I have an external consultant who is looking at i... | And its all back and fixed. Turns out someone had mounted the LUNs to a Windows machine in error, then removed and put them onto the CentOS VMs without thinking it would cause a problem. Each partition was labelled as a "MICROSOFT RESERVED PARTITION" - used the cached LVM setting to bring it back. | 2 | 3 | 1,039 | 2012-01-22T13:30:47.693 | database_errors | serverfault.com | |
192,652 | Basic authentication not occurring to a remote machine on IIS7 | I have a sub-directory of my IIS7 website that I want to lock-down with basic authentication. I've gone into IIS manager, chosen Authentication the designated directory and enabled Basic Authentication and disabled all other kinds. When I browse to the directory from the server, I get the username/password prompt. When... | Do you mean that it works without prompting them (i.e. it's not asking for authentication), or does it fail and throw an error of some sort? One thing worth testing is what I call a 'fail test'. Stop the site briefly and confirm that it break (responds differently). That ensures that the correct site is handling the re... | 1 | 0 | 684 | 2010-10-19T20:06:23.420 | api_errors | serverfault.com | |
580,987 | When does the replication from primary to secondary happen in mongodb? | I have setup a 3 node replica set. Writing to primary node works but when I read with readPreference=secondary; I get values as null. When I open the local node with robomongo I see that the collection does not exist. So it has not been replicated? I am not sure when it gets replicated or am I missing something? I have... | Mongo syncs instantly, so there is something wrong with your Replica set. MongoDB replica sets are something that you need to get right from when they are first set up. If they aren't set up correctly, they can be difficult to fix. Configuration of the Replica Set should (normally) be done from the master only. If your... | 0 | 0 | 1,530 | 2014-03-10T10:18:13.380 | database_errors | serverfault.com | |
174,759 | ASP.NET HttpModule gives “Connection Reset” in browser | I have implemented a HttpModule in ASP.NET (framework 2.0). From my logging on the server, I can see that the http request is being picked up by my HttpModule, and my code runs successfully (writing content back to the Response stream). However, the web browser (IE, FF, Chrome, all the same) just give me a "connection ... | Answered my own question at StackOverflow: https://stackoverflow.com/questions/3574451/asp-net-httpmodule-gives-connection-reset-in-browser Sorry for the cross-posting. | 0 | 1 | 14,010 | 2010-08-26T11:35:16.037 | infrastructure | serverfault.com | |
1,036,771 | How can I authorize a MS365 user for remote desktop connections to an Azure-AD joined Windows 10 PC? | I'm in charge of a small Windows work group with a handful of computers. We later introduced MS 365 Business and users could log in using their MS 365 credentials, which I guess makes the computer Azure-AD joined. I'm now trying to figure out how to give a MS 365 user access over remote desktop to their own PC. With re... | Have the user log into the machine locally at least once, and then run the following from an elevated command prompt or PowerShell. (The first logon step may not be required on Windows 10 newer than version 1709.) [CODE] eg: [CODE] When you connect to the machine, enter the user name in the format of their AzureAD UPN.... | 3 | 3 | 4,091 | 2020-10-07T13:23:24.760 | infrastructure | serverfault.com | |
809,616 | OEL 7.2 with LACP systemd shutdowns networking before umounting _netdev filesystems | I've built an NFS cluster with OCFS2 as a backing filesystem. This is working quite well with the exception of when a node is restarted/shutdown cleanly it causes a fence operation as network is severed before unmounting OCFS2 filesytems to inform the other node it is leaving the cluster. Networking is configured as an... | The cause of this was the remote-fs.target was too quick to finish, with the networked nature of OCFS2 it took slightly longer for a proper unmount of the filesystem than the actual return of the unmount command. With the next step in the shutdown sequence to shutdown networking this meant the last filesystem was alway... | 2 | 0 | 159 | 2016-10-17T21:30:59.680 | infrastructure | serverfault.com | |
31,746 | How to switch to window with unknown id | [CODE] | You can use an iterator for switching from one window to other in Selenium script: [CODE] You can iterate or switch browser by this code: [CODE] Using the above code will switch the present window to another. | 1 | 2 | 292 | 2018-01-27T04:54:02.413 | data_quality | sqa.stackexchange.com | |
356,629 | Is it a good practice to hide the framework used in a web application? | I sometimes read about "hiding the framework/technologies used in a web application for security reasons"... But why? Is it a real issue to publicly expose which tools I'm using to create a project? Large public web application like LinkedIn, Facebook and many others don't hide tecnologies used for their platforms, so ... | Hiding your framework does not guarantee security. But it makes successful attacks less easy. Even assuming that all your software is up to date, if you broadcast the fact that you are using Technology vX.Y.Z and a security problem with that version is found, attackers have a window of opportunity between the disclosur... | 7 | 15 | 1,255 | 2017-09-01T09:47:39.110 | api_errors | softwareengineering.stackexchange.com | |
989,316 | Css, js and images get partially downloaded with Netscaler | Trying to sort this out with our Netscaler provider but they have issues finding the problem for this aswell so asking her to see if anyone have any input on where to start looking. We have Netscaler as an SSL offload handling traffic into our IIS site running on http. After an security upgrade of Netscaler we are expe... | Getting the obvious out of the way: - Are your browsers up-to-date? First things to look at on the NetScaler: Is IC (Integrated Caching) enabled? If so, try disabling it and try again? How is the HTTP-protocol configured? Hos is SSL configured. It might be due to incorrect HTTP/2 settings: System --> HTTP parameters: i... | 0 | 0 | 1,424 | 2019-10-24T18:20:17.917 | infrastructure | serverfault.com | |
31,220 | QMail keeps shutting down ... how to check and restart? | On one of our Linux servers (running Plesk for basic hosting), QMail crashes/shuts down and all users on the server can't get mail. This happens about 2 or 3 times a week. No other services are affected (apache keeps humming along just fine). What are some options for checking/restarting QMail in this scenario? Some so... | The DJB way would be to use daemontools . Specifically, supervise . At my site, I'd be using puppet , which checks on all puppet-managed services every half hour and starts them back up if they've died for some reason. Something like: [CODE] But more importantly: find out why it's dying, and stop it from doing that. Se... | 0 | 1 | 1,314 | 2009-06-24T19:49:32.310 | infrastructure | serverfault.com | |
699,554 | Error while configuring odoo in cents 6.6 | When i am trying to install odoo through yum i am getting the following error. Finished Dependency Resolution Package: odoo-8.0_20150617-1.noarch (odoo-nightly) Requires: python(abi) = 2.7 Installed: python-2.6.6-52.el6.x86_64 (@base) python(abi) = 2.6 Available: python-2.6.6-51.el6.x86_64 (test) python(abi) = 2.6 You ... | I have installed odoo by using this document https://odootricks.wordpress.com/2014/09/30/installing-odoo-8-on-centos-6-with-virtual-python-install/ | 0 | 0 | 1,066 | 2015-06-17T04:34:50.110 | infrastructure | serverfault.com | |
524,616 | how to run php files in linux Centos? | How can I get all my php files run in Apache? I copied all the php files to linux server under /www and I did change config setting like following. Also I did create error log file under /logs. But when I run mytest.example.com in browser, it is not working and the page showing that "Oops! Google Chrome could not find ... | Ensure that the php module is loaded with [CODE] , and add the following to your [CODE] [CODE] | -2 | 1 | 2,127 | 2013-07-19T04:49:38.653 | infrastructure | serverfault.com | |
67,944 | How to configure database mail in sql server 2012 | when I configure the database mail it is showing the following error, what it means ? | You don't have the required permission to access the database mail settings. Ask your DBA to configure it for you. If you don't have a DBA then you will need to logon to the server with an account that has sysadmin server role. | 1 | 0 | 144 | 2014-06-10T08:48:21.687 | database_errors | dba.stackexchange.com | |
894,135 | Only getting 100 Mbit in Hyper V Guest from 1 Gigabit network connection | I have a HP Proliant ML350 G6 with two integrated Broadcom NetXTreme Gigabit Ethernet ports running Windows server 2016, updated as of today. If I share a folder on my hyper v host I can add and remove files at around 90MB/s through the network (both ports deliver the exact same speed). Here you can see the details on ... | Verify that you're not using any of the "Legacy NICs" in your Virtual Machines? These are limited to 100mbps. This may be causing the Virtual Network (bound to the physical NIC) to negotiate the lower speed. Other things to do: - Update NIC drivers - Force 1gbps operation in Device Manager - Replace the patch lead conn... | 8 | 4 | 26,613 | 2018-01-25T19:15:07.173 | infrastructure | serverfault.com | |
53,239 | What is the intuition behind using LSTM for classification tasks? | LSTM is good for sequence prediction, because it can remember the previous context. What is the rationale behind using it in classification tasks ? In particular, they have used it for the following task: The Large Movie Review Dataset (often referred to as the IMDB dataset) contains 25,000 highly-polar movie reviews (... | I'll go for you questions one by one: What is the rationale behind using it in classification tasks? LSTM Networks for classifcation tasks are mainly due to NLP. In particular, Sentiment Analysis. What is the sentiment/polarization of a tweet? By "understanding" natural language, a model can guess whether it is positiv... | 0 | 3 | 53 | 2019-06-05T09:34:48.810 | data_quality | datascience.stackexchange.com | |
180,350 | left joining and combining the results where they are not null | I'm given a MySQL database with tables like this: [CODE] Now, I want, for each [CODE] , the sum of the [CODE] values from [CODE] and the sum of the [CODE] values from [CODE] . If one of those is null, I still want the other. My output should have a row per [CODE] . I don't see a way to get that. If I [CODE] twice on [C... | Without an actual query attempt from you, some thing are difficult to understand. From what you've said, you're looking to group by date only, not on any information from [CODE] . That being the case, it's not clear that [CODE] needs to be in the query at all. The following query should give you the totals you want, fo... | 1 | 4 | 2,369 | 2017-07-20T13:33:16.343 | database_errors | dba.stackexchange.com | |
196,795 | Cannot start MySQL | I used this command from shell to repair all Databases [CODE] and after that I restarted the server when it came back alive again I tried to open my vBulletin forum but I recived Database error message. and also tried to open phpMyAdmin but I received this error : [CODE] I checked the services list and found that the M... | This occurs when mysqld is not properly shutdown. Basically, the pid file--a file that contains the process id of the currently running process--exists to detect whether or not the process is actively running. When the system is out of whack--i.e., it found the pid but can't find the process, meaning the server was not... | 1 | 3 | 11,232 | 2010-11-01T04:59:08.070 | database_errors | serverfault.com | |
330,663 | Partitioned view aggregation query not optimized | Given the following two tables: [CODE] And the following view [CODE] The following query uses a [CODE] [CODE] pair: [CODE] PasteThePlan Whereas a minor rewrite gives the obviously more performant [CODE] [CODE] PasteThePlan The compiler can clearly see that the view is partitioned by [CODE] , as this query shows, no [CO... | The SQL Server optimizer has two main ways to push an aggregate down past a union all. 1. Global Pushdown The first rule is [CODE] . It's a fairly straightforward transform that moves the aggregation onto each of the union inputs. It can only do this safely if the union is disjoint—that is, if there's something that ma... | 5 | 6 | 183 | 2023-08-28T01:59:29.710 | database_errors | dba.stackexchange.com | |
1,044,933 | Restart-Computer : Failed to restart the computer with the following error message: A system shutdown is in progress | I have installed updates on my Windows 2012r2 Machine and as usual, I did a reboot. However, it seems that the machine has hung itself during the reboot process and does not do a proper shutdown. I can initiate a connection via RDP, but not connect to the machine, I can also send commands via powershell, so I have trie... | Turns out that the System Event Notification Services was stuck, and killing it remotely did actually solve the issue: [CODE] First, I listed the running services on the remote machine: [CODE] Then I started to manually kill the processes with the above command. | 4 | 2 | 14,426 | 2020-12-04T07:33:42.393 | infrastructure | serverfault.com | |
655,508 | Mapping a drive from Windows on a remote Mac via SMB | I have a Mac Mini in one of our offices that is used as a file server locally. I would like for it to serve the files to remote clients as well. I have File Sharing enabled and Windows Sharing on in the Sharing settings on Mac. There is a shared folder called Shared. I have port 445 open and forwarder on the router tha... | Don't do this. Please, just don't. Set up a proper VPN that your clients can connect to. Once they do that, they'll be able to connect to the share in the same manner as if they were connected to the local network. | -2 | 1 | 214 | 2014-12-30T22:24:24.790 | infrastructure | serverfault.com | |
213,334 | During restore restart, an I/O error occurred on checkpoint file | Short version: Running a [CODE] throws one of these errors: During restore restart, an I/O error occurred on checkpoint file '\Server\Backup\SQLDirectBackup\DatabaseName\RestoreCheckpointDB24.CKP' (operating system error 5(Access is denied.)). The statement is proceeding but cannot be restarted. Ensure that a valid sto... | Anyone have any ideas? Safe to ignore? Potential time bomb? I'm stumped. It's not a "bomb", this means only that if you want to use [CODE] with [CODE] option (to complete interrupted [CODE] ) you'll not be able to do it, i.e. checkpoint file cannot be used and the [CODE] will not be able to skip some passes if they wou... | 3 | 2 | 3,745 | 2018-07-26T17:21:22.433 | database_errors | dba.stackexchange.com | |
1,013,430 | Bind zone error - Unexpected end of input | Everyting seems OK but I get Unexpected end of input for this: [CODE] I also get Unexpected RR type 10800. What could be the problem? | As a human, I can identify this part of the file as what is supposed to be the [CODE] record: [CODE] But that is not how the above actually means if these lines are parsed properly. The problems Since the master file format uses line breaks as the separator between records*, the line break after the first field of reco... | 3 | 3 | 5,983 | 2020-04-21T19:08:25.263 | infrastructure | serverfault.com | |
997,148 | dmraid/LVM Boot Issues After Upgrade to Ubuntu 18.04 | I am experiencing an issue with dmraid/LVM after upgrading one Ubuntu 16.04 machine to 18.04. The root file system of this machine is located on a LVM LV on a RAID 1 consisting of two disks realized using dmraid. The boot process is dropping into a initramfs BusyBox shell after the upgrade. After some investigation I r... | Update the filter configuration in [CODE] then run [CODE] to apply the configuration at runtime. | 1 | 0 | 458 | 2019-12-30T17:13:33.047 | infrastructure | serverfault.com | |
112,222 | SSIS compatibility | I'm trying to use SSIS for preparing data warehouse and for making business objects for report generator. The problem is that i have to support multiple sql server versions - sql server 2008r2 and further (2012, 2014). As i'm understanding - i have to install sql server 2008r2 and business intelegence studio , visual s... | Option A Take a command and control approach. Designate your newest SQL Server tier of boxes as the runner of all things SSIS. Your connection manager for SQL Server will be able to speak the appropriate TDS dialect for everything in your enterprise. Knowing nothing else about your organization, I would generally favor... | 2 | 5 | 1,958 | 2015-08-26T08:22:28.677 | warehouse_errors | dba.stackexchange.com | |
42,781 | Migration of create statement from SQL Server to MySQL | I have a table that have the following table structure [CODE] When I used the MySQL Migration Wizard to convert the above Microsoft database table structure, I got errors that both datatype for my fields [CODE] and [CODE] was not supported (in MySQL). What are the recommended ways to proceed such data type differences ... | This answer will apply to your question : Insert Value based on One Column based on Value on another Column AFAIK, and based on the link posted, you cannot create a computed column in MySQL. You should either: Do the calculation outside of the database, when inserting OR Create a trigger on the table to populate the va... | 1 | 1 | 125 | 2013-05-22T10:03:24.233 | database_errors | dba.stackexchange.com | |
165,501 | Configure unconstrained delegation for BULK INSERT | I have a pair of Microsoft SQL Server 2016 nodes in an Always On Availability Group. I am trying to perform a [CODE] (using a SQL Server 2016 Management Studio query) on a file located on a Windows Server 2016 File Server Failover Cluster, but I get the following error: Msg 4861, Level 16, State 1 Cannot bulk load beca... | Your configuration looks solid. SPNs and Delegation are configured as I would have done it myself. The only thing which you haven't explained are the file/share permissions. This is where my solution steps in. Solution 1 (Personal Account) Verify that your personal account is allowed to access the file on the file serv... | 12 | 1 | 3,104 | 2017-02-25T03:27:12.640 | database_errors | dba.stackexchange.com | |
573,602 | Emails to AOL address arrive with incorrect Sent Time | People in our company have been emailing a person with an AOL email address (let's say [CODE] ). The first problem was that the emails were taking hours to arrive. This isn't a big deal. However, what we've also found is that the emails are arriving with a wildly inaccurate [CODE] time included. For example, if I send ... | It quite possibly is. A lot of email clients will take their time from the time it arrived in the recipient's mail client, not whatever is in the message headers. Without the message headers, or knowing whether Bob is using AOL's website or a mail client like Outlook or Thunderbird, it's impossible to say for sure. Get... | 0 | 3 | 1,367 | 2014-02-06T10:23:04.767 | infrastructure | serverfault.com | |
147,857 | Username length restriction in different MySQL environments | I am setting up a project to my local environment and at its initial script are some SQL commands for creating the database: [CODE] and to [CODE] privileges for the user account: [CODE] When I am trying to run the [CODE] command I get this: [CODE] and I can't understand why is this happening whereas this same script ha... | The maximum length for a user name in MySQL does depend on the version, as stated in the manual : MySQL user names can be up to 32 characters long (16 characters before MySQL 5.7.8). | 11 | 17 | 20,749 | 2016-08-25T08:56:48.333 | database_errors | dba.stackexchange.com | |
227,614 | server 2003 32-bit problem | We have a machine running 32 bit windows server 2003. It has 4 drives - call them A,B,C,D - with the root shared. Our workstations are all XP Pro - call them 1,2,3,4 - and can connect to all 4 drives. In addition, each machine has shortcuts to a specific drive for quick access. ( 1 has a shortcut to folders on A, 2 has... | Have you checked the permissions on your workstations and on the shared folders/drives? Are the workstations even joined to the server as a client in an active directory domain? You should use mapped drives instead of shortcuts as they allow greater control and the links don't get broken as opposed to shortcuts that ma... | 0 | 0 | 65 | 2011-01-27T14:26:25.820 | infrastructure | serverfault.com | |
6,874 | Securing communication between cloud VMs without private networks. Any strategy besides building own VPN? Spiped? | I am working on an application that requires a number of different services (web application + database + worker queues, XMPP server for messaging, redis, central authentication via LDAP, etc). For my first attempt at designing the thing, I am estimating that I will need ~15 instances of varying sizes: more RAM/SSD for... | I am going to suggest an approach that I would not necessarily recommend, because I do not consider it a manageable, scalable solution: SSH port forwarding. SSH is a Swiss Army knife in terms of its features. Virtually any port can be securely forwarded to any other port on a remote machine, and indeed through a remote... | 6 | 1 | 156 | 2019-04-16T15:32:55.137 | database_errors | devops.stackexchange.com | |
868,837 | Webserver in docker container is not reachable via the internet | I've been reading: https://docs.docker.com/engine/userguide/networking/#user-defined-networks I've created my own network ( [CODE] ): [CODE] I run the container so: [CODE] And in the dockerfile expose port 8080: [CODE] I've attached a terminal session to the container and inspected the container to make sure the webser... | You need to inverse the mapping -p 80:8080 to -p 8080:80 The 1st port is on the host and the second is the container's. On your work/home network, make sure to redirect, in your router/fw, the port 8080 to your docker host port 8080. This should work: Here is the same steps I performed with my nginx container: [CODE] C... | 2 | 2 | 6,616 | 2017-08-15T23:09:00.293 | pipeline_ops | serverfault.com | |
625,750 | Emails delivered to Microsoft/Outlook successfully, but do not arrive in inbox/spam folders | Struggling with this for awhile. Have searched everywhere, read every post/thread I can find and have a thread started on Microsoft's "Answers" site, but the replies there are so slow. I am running Plesk w/ PostFix and emails are being successfully sent to Microsoft servers, however the emails never arrive in the Inbox... | Run get-messagetracking on the Exchange server. Or have the admin of that system do it, if you can't. If it's Microsoft, open a ticket with them. SMTP 250 is a success code, so something in their system is dropping the ball, from your perspective. There's literally nothing you can do about it, from a technical perspect... | 0 | 3 | 2,672 | 2014-09-02T16:28:23.387 | infrastructure | serverfault.com | |
121,688 | Best practice for processing a list of items | I have a list of objects that need to be processed in some way. That way may not be correct for an item and thus raise an exception. In pseudo-code, it would look like: [CODE] Is there a pattern for doing this sort of things? Are there any anti-patterns to avoid? A better code (exception not used for control flow), but... | First of all, you shouldn't use exceptions for normal logic flow. You should ask yourself why you are trying to iterate over items which you can't process in the first place. Probably designing the code in such a way you only have items in your list which you can process is a better idea. In case you do feel like all t... | 2 | 4 | 1,195 | 2011-11-25T10:04:29.160 | api_errors | softwareengineering.stackexchange.com | |
286,860 | Git clone to memory | I'm making an app that is required to clone git repositories by a link to it and analyze the codebase. Pulling to the disk using the [CODE] command wouldn't scale well. Is there any way to clone to memory, or at least to get a stream of file contents, instead of intermediary disk I/O. | It is operating system specific. If your application runs on Linux (so perhaps also on Android), you can use a memory based file system like tmpfs . So [CODE] (or [CODE] , etc...) would put it in that FS which sits in virtual memory, and it will run quite fast. However, the bottleneck is probably the network (unless yo... | 9 | 5 | 3,384 | 2015-06-15T17:15:56.337 | api_errors | softwareengineering.stackexchange.com | |
2,580 | Error while running script selenium RC | I am working on selenium 2.18.0 version with firefox 8.0.1.While executing script i am getting error like [CODE] so i am not able to run script. What can i do so that this error will resolve? This is script i have generated by using IDE [CODE] this is first time i am using selenium RC, may be something missed out by me... | Looks like you are trying to connect to a non-standard port for Selenium RC, I assume Selenium-Server isn't running on that port (This is usually the cause of errors like this). Try changing your code to: [CODE] my assumption is that you currently have the port set to 5603 instead of 4444. Of course this is largely gue... | 2 | 3 | 3,635 | 2012-02-06T10:30:55.753 | data_quality | sqa.stackexchange.com | |
78,757 | How do I install VMware Tools in an Ubuntu VM running in VMware Fusion? | I have Ubuntu (Ubuntu 8.04.3 LTS) running in a VMware Fusion VM, and I believe I've installed VMware Tools. But how can I confirm that VMware Tools is running correctly? When I try step 8 of http://www.vmware.com/support/ws55/doc/ws%5Fnewguest%5Ftools%5Flinux.html#wp1127177 (in an xterm) I get: [CODE] I wonder if it's ... | lilott8's answer is correct, here are a few more details: You want the instructions for the "Tar Installer": http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html#wp1127177 If there's nothing at /media/cdrom0, check to see where the CDROM is mounted by entering into the terminal: [CODE] This will show a l... | 0 | 4 | 10,769 | 2009-10-27T16:38:42.767 | infrastructure | serverfault.com | |
182,575 | Windows file backup software | I'm looking for the backup software for Windows servers aswell as for the workstations. We always used Acronis but backup&recovery 10 is slow as hell and has too many bells and whistles (i.e. their new metainfo) so I would be really happy to throw it away. The software requirements: should work on win7 aswell as on win... | You may want to look at Cobian backup. It uses volume shadow copy and seems to be very reliable from my experience. | 3 | 3 | 624 | 2010-09-19T00:35:53.520 | database_errors | serverfault.com | |
299,059 | Optimal fixed-size sequential sorting algorithms | I have been working on sorting algorithms for a few weeks now, but one of my question still hasn't an answer: are there optimal sequential comparison sorts for fixed-size – and random-access – collections? Most sorting algorithms adapt to the size of the collection, but knowing the size of the collection to sort allows... | The problem with finding the optimal algorithm is the word "optimal": A sorting algorithm may be optimal in one case, but it will be suboptimal in at least one other case. The question is, what optimum you are designing it for. Take for instance your algorithm. It is optimal for the sequences: [CODE] (Aside: This means... | 4 | 2 | 1,497 | 2015-10-05T17:48:20.983 | api_errors | softwareengineering.stackexchange.com | |
1,145,587 | How to stream Kubernetes log files to a different location using fluent-bit? | I have a requirement where I want the log files of all the Kubernetes containers stored in the location [CODE] to be kept persistent even after a cluster restart or node issue. I have already implemented the EFK with elastic search, fluent-bit and Kibana. But now I want the log files as it is. I tried using the same fl... | Modify the Kubernetes node's kubelet configuration to use a custom log directory. By default, Kubernetes logs to /var/log/containers. To change this, edit the kubelet configuration file (typically located at /etc/default/kubelet or /etc/systemd/system/kubelet.service.d/10-kubeadm.conf) and add the --log-dir flag. [CODE... | 0 | 0 | 331 | 2023-10-10T10:28:30.643 | bi_errors | serverfault.com | |
1,074,129 | AWS Load Balancer 502 Bad Gateway | I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server. I don't have the logs of those requests inside the servers, that's why I am assuming that the request never reaches the server. I had a similar problem before, and I had to a... | you already know the answer: unhealthy instances. even if times does not match, you should fix that problem and check if others issues persist after. increase instance size, increase ELB healthcheck timeouts, scale up machines and check if it helps | 0 | 0 | 3,027 | 2021-08-10T18:36:44.007 | infrastructure | serverfault.com | |
709,369 | pf (Mac OS X) rule to redirect all traffic to a specific ip/port | I'm trying to recreate this iptables setup (from https://github.com/darkk/redsocks ) with pf: [CODE] I want to redirect all connections going to 10.0.0.0/8 (no matter what port) to the local port 12345. In linux this works great with the above specified rules. Now I'm trying to recreate it on Mac OS X. Currently nothin... | So, I am likely misunderstanding but I think you may be confusing the iptables TPROXY and REDIRECT targets - but I don't think that's important. Ignoring that, you may still be able to realize your goal. Your frustration with the rdr pf rule is because only applies to incoming packets. According to a 2005 FreeBSD-pf ma... | 6 | 4 | 8,772 | 2015-07-29T12:43:07.057 | infrastructure | serverfault.com | |
94,291 | Sudoers rule not woking as expected | I want to allow user [CODE] to run comands as user [CODE] , but only commands located in a specific directory. So I added the following rule to the sudoers file: [CODE] Inside the directory /home/admin/ there are two files: [CODE] and [CODE] The content of [CODE] is: whoami touch dummy.txt Then I login as user [CODE] a... | To the contents of cmd.sh: [CODE] Add: [CODE] I suspect that when user "visit" runs the script with sudo it's not running in the directory you think it is. You would solve this by passing a full path to the tuuch command, e.g., [CODE] | 0 | 3 | 621 | 2009-12-14T20:09:35.920 | infrastructure | serverfault.com | |
194,843 | Apache returns SSL23_GET_SERVER_HELLO:unknow protocol error when connecting from external address | I have the following setup: An Apache server running on CentOS 5.5. Locally, it connects OK using SSL. A proxy between my server and the external network. I doesn't control this proxy. It forwards a port to the https port on my server. A CNAME records that maps my the external DNS name I want for my server to the proxy... | It's most likely the intermediate certificate that your server certificate is chained to. Use curl or openssl instead of a browser to test because browsers not only contain root certificates in their trusted stores now but also intermediate certs, which makes testing with your browser unreliable. Most of the time, this... | 0 | 1 | 1,350 | 2010-10-26T12:46:02.273 | infrastructure | serverfault.com | |
919,939 | SSH asks password when logging from third computer | I have 3 systems: A, B, C. I CAN login passwordless in this combination: A-B A-C But when i try to do A-B-C , it requests a password. I generated a new pair of keys for connecting B-C. Dont know what can be wrong. Any tips? Thanks! Edit: ran [CODE] in debug mode on C: [CODE] | Do you have SSH agent forward enabling on your SSH client? Example for GitHub but applies in general to SSH clients: https://developer.github.com/v3/guides/using-ssh-agent-forwarding/ More detailed explanation of SSH agent forwarding: http://www.unixwiz.net/techtips/ssh-agent-forwarding.html | 0 | 0 | 223 | 2018-07-07T18:49:55.517 | infrastructure | serverfault.com | |
53,730 | approach for predicting machine failure using maintenance history | I have been struggling with this problem for a while now and I finally decided to post a question here to get some help. The problem i'm trying to solve is about predictive maintenance. Specifically, a system produces 2 kinds of maintenance messages when it runs, a basic-msg and a fatal-msg, a basic message indicates t... | Sequence labeling seems like a good fit for your problem. Your features could be the frequency of each kind of basic-msg in the past 4 runs (but maybe it would work better normalized by unit of time). There are a good few libraries for Conditional Random Fields for example. | 1 | 0 | 116 | 2019-06-13T17:37:57.913 | data_quality | datascience.stackexchange.com | |
708,405 | Environment variables for PHP applications | A PHP application requires me to set several environment variables with things like database credentials, SMTP server, etc. Examples of variables include: [CODE] Where is the appropriate place to set these variables? Initially I tried setting them in [CODE] but I realized that I'm not the user that Apache runs as so th... | You can simply put that [CODE] file in the root folder of your project. Just make sure it's not publicly accessible. This is what Laravel does but if you have concerns about performance and/or security you might take a look at Vault . | 3 | 1 | 814 | 2015-07-25T03:06:16.850 | infrastructure | serverfault.com | |
406,620 | CNAME subdomain of subdomain with content on first subdomain | Okay so maybe that title is a bit confusing but here is what I'm trying to do: I have a subdomain with content at my.example.com I want to set up something like sub.my.example.com This does not seem to work if there is content on my.example.com However if there is not content on the first subdomain it seems that it's o... | CNAME cannot coexist with any other record type. So, if you have a CNAME for a domain, you cannot have A, AAAA, or MX (or anything else) for that domain. It is compliant to have a subdomain whose only record is a CNAME alongside other subdomains with other record types, as long as there are no other record types for th... | 0 | 1 | 700 | 2012-07-11T02:46:58.327 | infrastructure | serverfault.com | |
1,030,890 | Lighttpd alpine container logging | The context is that I want to serve a static website inside a docker container so I can have some dedicated metrics, and I want the logs to use stdout/stderr. To do that I thought of using Lighttpd with an Alpine image. I found a tip here where we create a link to stdout, but after creating the link the permissions cha... | If you comment out [CODE] , then lighttpd will log to stderr. If [CODE] does not work, then have you tried setting [CODE] ? | 0 | 0 | 1,453 | 2020-08-20T12:15:59.597 | pipeline_ops | serverfault.com | |
929,758 | Logrotate Not Deleting Compressed Logs | I have a CentOS box running rsyslog and logrotate as my syslog server for a whole bunch of network devices. I've been toying around with this for a while, the logrotate/compression piece is working ok, but I can't seem to get it to delete the old compressed .gz logs. Here's the basic setup: Logs are stored in: /var/log... | You're using two mechanisms for daiy logfiles, and they're not cooperating with each other. On the one hand you let syslog generate daily files, on the other hand you let logrotate rotate files. Logrotate will treat each daily file as a separate unique set of files (it doesn't consider HOST_A_2018_09_05.log to be relat... | 1 | 1 | 4,048 | 2018-09-06T16:11:01.173 | hadoop_errors | serverfault.com | |
556,625 | Sonicwall NSA 2400 Not switching back to Primary VPN after Failover | We are experiencing an issue with our SonicWall NSA 2400 Firewall. We have a secondary gateway over IPSec setup in the event of a failure of our main ISP (which is unfortunately common). The secondary gateway is a 4G connection through Verizon and the cost grows as data usage increases. The firewall switches over to th... | Three things to check: The preempt to secondary gateway option MUST be active even on the remote peer On the 4G-enabled firewall, edit your WWAN connection profile and set it to "persistent connection" or "dial on data" In the load-balancing page, edit the LB Group and check that your WWAN connection is selected as the... | 1 | 1 | 3,434 | 2013-11-18T16:18:17.737 | database_errors | serverfault.com | |
675,223 | How to Give Send on Behalf Permission on a Distribution Group to several mailboxes | I have one Distribution Group TestDG and three mailboxes mb01 , mb02 , mb03 . I want to give Send on Behalf Permission on a Distribution Group to these 3 mailboxes. I've tried to set it like below for every mailbox but next one always overrides the previous one. [CODE] Is it possible to give this permission to multiple... | According to the Technet documentation for the [CODE] cmdlet , the [CODE] parameter takes an argument of type Microsoft.Exchange.Data.MultiValuedProperty . As outlined by PowerShell MVP Shay Levy in this article , any MultiValuedProperty can take partial updates in the form of a HashTable containing values that you wan... | 0 | 2 | 5,041 | 2015-03-13T10:58:03.787 | infrastructure | serverfault.com | |
27,277 | Faster-RCNN how anchor work with slider in RPN layer? | I am trying to understand the whole Faster-RCNN, From https://www.quora.com/How-does-the-region-proposal-network-RPN-in-Faster-R-CNN-work Then a sliding window is run spatially on these feature maps. The size of sliding window is n×n (here 3×3). For each sliding window, a set of 9 anchors are generated which all have t... | For each anchor you find an IoU with the object in the picture and set 1 if IoUexceeds the threshold and 0 if it is below a lower tjreshold(e.g. 0.3). If it's a hit a bbox offset is calculated, distance between prediction and true bbox. Hence there are two loss fumctions: object/bg and bbox regression | 8 | 1 | 5,358 | 2018-01-31T07:12:32.497 | data_quality | datascience.stackexchange.com | |
1,022,897 | openvpn - Authenticate/Decrypt packet error: packet HMAC authentication failed | I have this [CODE] file like this [CODE] and this [CODE] [CODE] ufw firewall is disabled and have generated the openvpn client file through this script (but have tried many different). here's the iptables [CODE] The client is hanging on "waiting for server response" and the server logs this: openvpn.log [CODE] and the ... | just after 4 days I stopped [CODE] and everything works now. dont' know why it was started. thank for your support! my bad | 0 | 0 | 4,827 | 2020-06-25T12:00:00.407 | api_errors | serverfault.com | |
344,822 | Implications that come with chrooting php-fpm | I am creating a production server that will run nginx with php-fpm. I want to have a good mix between securing the server, and still having good quick workflow. Now one thing that always secures the system is chrooting. Now I have read a lot about this, and chrooting nginx is pretty complicated. It is said that a good ... | Yes, you'll need a basic functioning filesystem within the chroot directory. And no, you shouldn't move (or link) everything - that'll pretty well defeat the entire purpose of chrooting. Essentially, the resources that need to be present within the chroot are the ones that the server will need to access during runtime ... | 3 | 4 | 3,427 | 2011-12-28T21:13:23.160 | infrastructure | serverfault.com | |
460,945 | CentOS server RAM usage 100% | I am using Linux CentOS 5.8 VPS. But my site is so slow in last two days. When i cehcked in server's web control panel; RAM usage is 99-100 %. But when i write "top" command; there is any usage on RAM. When i write [CODE] Its giving lists of which IPs still connect. Result is here: [CODE] Maybe you think that; Last IP'... | Since you now have 844Mb free, there is no more RAM problem. If the problem occurs again, you can do the following : Write down the output of free -m and the apache server status before and after restarting apache. It will allow you to be sure apache is getting all the ram. | -1 | 1 | 1,795 | 2012-12-26T12:56:36.747 | infrastructure | serverfault.com | |
112,665 | Help trying to figure out why IIS7 is crashing / locking up / denying connections | I've got a pretty busy website that is running on a single web front end machine, on W2K8 + IIS7. Every now and then - eg. maybe monday at 3am or something, then a few days later .. some early morning time .. then nothing for 2 weeks ... etc - the website fails to respond to any client connections. ie. no one can conne... | I've sort of found the answer a while back. The application was crashing for whatever reason (i still couldn't figure out exactly where) BUT why IIS was stopping, was that it was happening a lot, in a short period -- IIS refers to this as RAPID-FAIL PROTECTION . Here's a screen shot of some typical settings. If i under... | 2 | 0 | 6,655 | 2010-02-14T04:39:55.600 | infrastructure | serverfault.com | |
107,366 | Export a table and zip with password | I would like, from TSQL, to use a view to extract data from a table, output it with BCP, then use non 3rd party tools to ZIP it with a password and AES encryption. Optionnally, I could use a 3rd party tool that doesn't require a local installation (standalone EXE on a network drive for example). I tried using [CODE] , ... | Yes, stay away from the [CODE] OLE Automation procedures. If you want / need to handle this purely within SQL Server then you can do so using SQLCLR, which replaces the [CODE] OLE Automation procedures. And if you aren't using [CODE] for anything else, then no need to enable it just for this (although to be fair, if us... | 2 | 3 | 3,057 | 2015-07-17T15:17:27.007 | database_errors | dba.stackexchange.com | |
142,663 | Trying to get password has for a login through PowerShell | I've trying to get the password hash for a SQL authentication login via powershell. The code I'm executing is something like this [CODE] This works in that the query executes fine but the output I get is PasswordHash {2, 0, 87, 116...} I'm guessing (probably incorrectly) that this is due to it returning a varbinary, ha... | For SQL 2005+ [CODE] You can't use this for everything as it has length limitations, but for this purpose it will be fine. | 0 | 1 | 740 | 2016-06-30T11:51:53.180 | database_errors | dba.stackexchange.com | |
1,081,436 | Running Disk cleanup triggered TiWorker.exe causing high CPU/Memory usage | I thought that running an apparently harmless Clean-up command, the one included in the Administrative Tools, on my Windows Server 2016 would be a piece of cake and it turned out to be a complete mess. Not only hardly anything was deleted but it stalled my server. CPU and memory raised to 100% and as a consequence of t... | The TiWorker system process is related to Windows Update. This is one of the critical process included on in Microsoft Services and must not be mistaken for any malware issues. If there are any updates happening or if the computer is scanning for any update release, this system process may use resources on your compute... | 0 | 1 | 3,153 | 2021-10-22T19:16:09.557 | database_errors | serverfault.com | |
1,012,484 | nginx proxy_pass 302 redirect everything not root to root | How can I get nginx to just redirect all URLs (except root, of course) to root, while proxying root? We have an angular nodejs app that we're trying to take the built output from the generated dist folder and run nodejs's serve ( [CODE] ) to run it in a deployed environment. The problem that we're having is that we're ... | Try this: [CODE] | 0 | 1 | 1,832 | 2020-04-15T20:20:42.077 | infrastructure | serverfault.com | |
624,227 | Set-AzureVNetGatewayKey cmdlet does not exist in Azure PowerShell | Background I am attempting to link up multiple VNets with one another in Azure. To do this I am following this tutorial: VNet-to-VNet: Connecting Virtual Networks in Azure across Different Regions I also found another reference that does about the same: Azure VNET to VNET VPN, across regions and data centers: not so co... | update your azure powershell installation. its a new cmdlet. | 1 | 3 | 613 | 2014-08-26T20:09:38.263 | infrastructure | serverfault.com | |
460,302 | Reasons why a certificate with EV SSL is hidden after finish loading the site? | I'm facing a problem with an Extended Validation SSL certificate that displays correctly (the green bar with the Organization name and Country code) on all pages except the index of my DocumentRoot. Permissions and directives on the web server are the same for all the site but for some strange reason the EV bar is show... | The main page source code contained an iframe for another domain accessing content over http instead of https. I removed the iframe an now the EV cert is being shown as it should. I guess it was related to the fact that not all the content was sent encrypted. Shane's question pointed me to the answer. | 3 | 1 | 316 | 2012-12-22T18:34:01.487 | api_errors | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.