question_id
int64
1
1.16M
title
stringlengths
10
191
question_body
stringlengths
6
2k
answer_body
stringlengths
0
2.5k
tags
stringclasses
73 values
question_score
int64
-15
1.65k
answer_score
int64
0
2.91k
view_count
int64
4
1.24M
creation_date
stringdate
2008-08-01 18:45:00
2025-06-19 04:44:02
category
stringclasses
12 values
source_site
stringclasses
8 values
1,137,512
How To Terraform Datadog Monitors with Dynamic Thresholds
I'm attempting to create a number of resources from the DataDog provider. I'm hoping to have to define as little as possible for each resource. For many properties there is some sensible default. I am having difficulty in deciding how to handle monitor thresholds, specifically that some may be optional. [CODE] Given th...
In short, you can't. You can, however, include the [CODE] nested schema with defaults in all cases. Given the same format as listed in the question: [CODE] The [CODE] function allows for a missing key and provides for a default if so. This can be expanded with a conditional for further optional sections. [CODE]
0
0
458
2023-07-17T15:55:01.037
pipeline_ops
serverfault.com
423,276
Use local or nested function for readability?
I found in the catalog of [CODE] book that they mention Extract Function refactoring. It is a good practice to wrap your related code into local functions to make easy the readability and maintenance of code? I always thought that local functions were created to avoid writing multiple times the same code inside some pa...
I always thought that local functions were created to avoid writing multiple times the same code No. That's a misconception, outdated since the 1970s, and I'm happy that we have since learned a few things. Refactoring code chunks into functions is an example of following the guideline We introduce classes/methods/funct...
8
6
2,296
2021-03-11T17:39:58.223
api_errors
softwareengineering.stackexchange.com
143,364
Schema design for metered billing depending on account usage
Sorry if this has been asked somewhere else, but so far I haven't found any questions like this, or can't find the words to search for. TL;DR: What's the best way to implement counters in the database to track usage for billing purposes? Specifically when those counters will reach into the 10's or 100's of thousands? I...
Rapidly changing counters (view counts, LIKEs, etc) are best handled in a separate, 'parallel', table. It would have 2 columns: id of the object (the [CODE] ) and the [CODE] counter (or other size of number). By keeping this 'small, rapidly changing' info separate from the 'bulky, seldom changing' rest of the data, a l...
2
1
896
2016-07-08T20:28:02.483
database_errors
dba.stackexchange.com
299,177
How to calculate/estimate the capacity of a switch theoretically
I don't know whether this is the correct place to ask this question. If not, could any one tell me some sites or forums to ask such questions? Thanks in advance. My question is the same meaning as the title roughly, but more specific. Given a shared memory architecture of a switch, how to calculate or estimate the tota...
The term you're looking for is "backplane speed" for most switches. This is the maximum data a switch can move in an instant. Most switches you'd use in the office or datacenter should list this speed somewhere on the spec sheet. Things get more complicated in blade-style and stacked switches as that concept is more fu...
0
3
12,750
2011-08-09T11:37:10.797
infrastructure
serverfault.com
881,033
Elastic Beanstalk stuck for more than 12 hrs
I have an EB application that is stuck with this error: Failed Environment update activity. Reason: Internal Failure. I can not abort anything and I cannot change any configuration.. I dont know what to do, because every thing I do, it says: Could not abort the current environment operation for environment-xxxxxx: Envi...
If you know how to fix the source of problem (for example: change application settings in Beanstalk Environment variables or deploy fixed version of your application), then: Go to page Auto Scaling Group , choose your region, find Auto Scaling Group by Beanstalk Environment ID (like e-abcd12345). In Details tab, push "...
17
38
25,113
2017-10-30T16:27:58.553
database_errors
serverfault.com
109,819
What are the benefits of using spectral k-means over simple k-means?
I have understood why k-means can get stuck in local minima . Now, I am curious to know how the spectral k-means helps to avoid this local minima problem. According to this paper A tutorial on Spectral , The spectral algorithm goes in the following way Project data into $R^n$ matrix Define an Affinity matrix A , using ...
They are totally different approaches. Spectral Embedding is a representation of your data and it maps close data points next to each other in a new feature space. This helps k-means to deal with more separable clusters rather than original space. But this is not my answer to your question! The answer is that you need ...
1
1
237
2022-04-09T05:32:32.653
data_quality
datascience.stackexchange.com
980,503
Error: 0xC002918F at FTP Task, FTP Task: Unable to connect to FTP server using "FTP Connection Manager"
I am trying to download data files from a FTP server to local machine through SSIS. But it throws the error Error: 0xC002918F at FTP Task, FTP Task: Unable to connect to FTP server using "FTP Connection Manager". I have even explored all the articles regarding it and even changed the protection level to all the types, ...
You are connecting using SFTP protocol in WinSCP. FTP and SFTP are two completely different protocols. You cannot expect that you can use an FTP client (SSIS FTP Task) and it will connect to SFTP server, if you change a port to 22. It won't. SSIS does not support SFTP. You have to use a 3rd party solution. WinSCP can b...
1
0
940
2019-08-23T18:32:39.743
infrastructure
serverfault.com
332,321
ERROR: Can't find the archive-keyring
I'm trying to upgrade my Debian Lenny to Squeeze. I've replaced the word lenny to squeeze in sources.list and ran [CODE] But after a while, I get this error [CODE] So I tried to install [CODE] and I got the same error. Then I tried to install [CODE] and I got this error: [CODE] Maybe I have the wrong sources in my sour...
The message “Is the ubuntu-keyring package installed?” comes from the [CODE] program, which manages keyrings for APT. You evidently have the [CODE] program from Ubuntu, not from Debian. Since the [CODE] program is part of the [CODE] package, there's something deeply wrong here. Are you sure this machine has Debian inst...
0
1
4,310
2011-11-18T11:03:49.050
hadoop_errors
serverfault.com
589,386
Unknown option git config --local reported by Jenkins
I asked the same question on stack overflow but I only got 5 views, I think this is a better forum for this question. I'm setting up CI for a C# project hosted on github in a private repo. Git is installed on master CentOS machine, MSBuild on slave windows. I've created account on github, and added it to my private rep...
CentOS 6 (I'm just going to assume version 6 here) is shipping git version 1.7.1. The [CODE] switch was introduced with version 1.7.4. Therefore it is not available in the version you are using.
7
5
7,041
2014-04-16T10:00:19.267
pipeline_ops
serverfault.com
47,629
Floppy Images for use with VirtualPCs
I am trying to create a Virtual PC (using Microsoft's Virtual PC app) that will run MS DOS 6.22. Yeah, I know, what a waste of time but I do have a use for it. I have created the Virtual PC in the app but now I need to load the OS to the VHD. I run the VPC and now I can "Select Floppy Image To Capture". This is asking ...
You can use a variety of tools to create floppy disk images. If your machine with the floppy drive is running Windows, grab a copy of WinImage and start making images. WinImage is fairly user friendly. VirtualPC will read the images created by WinImage. If you want to be able to work with the contents of floppy diskett...
2
3
2,311
2009-07-29T16:27:02.857
infrastructure
serverfault.com
77,930
Oracle dataguard - Redo apply
In a low bandwidth environment when a transaction commits that generates a large amount of redo data will cause other independent transactions to slow down. This is because the redo data of small transactions will be blocked until the large redo data of the previous transaction is transported to the DR site. Is there a...
No. The operations go to DR site in exactly the same sequential order as they were performed on the primary site. You can only re-order operations at the level of your application code, the database engine cannot do this for you. The database engine cannot reorder changes to data because it needs to ensure that DR data...
-2
0
151
2014-09-29T11:39:18.687
database_errors
dba.stackexchange.com
736,792
EC2 automatic windows updates disabled by default on Windows Server 2008 R2 - why?
I spun up an Amazon virtual instance for Windows 2008 R2 Datacenter Edition and when I went into Windows Updates in control panel, automatic updates were turned off. I turned them on and checked for updates and it found security updates, so I'm assuming I took the correct action, but is there something I'm missing and ...
AWS offers System Patch Manager AWS Systems Manager Patch Manager automates the process of patching managed instances with both security related and other types of updates. You can use Patch Manager to apply patches for both operating systems and applications. (On Windows Server, application support is limited to updat...
4
0
1,365
2015-11-16T19:44:12.460
infrastructure
serverfault.com
482,568
How to Compare better Memory utilization between two machines
i am having two kvm hosts with same h/w and os,only difference is one host is tuned to use huge pages. How can i compare which is performing better I am planning to use some application that is more memory bound and compare its performance for a particular time. Is there any memory usage simulator that serves similar f...
If you're concerned about how fast your application runs you should benchmark it by running your application. It's unlikely that anything else will replicate your application's behaviour exactly and so isn't a guarantee that your application will perform better. Devise a reproducible task for your application and time ...
0
0
221
2013-02-26T11:37:37.160
infrastructure
serverfault.com
895,750
Detecting changes in share permissions
I was wondering if there's a way to detect changes in share permissions apart from enabling auditing, something that would show you what was there before and what has been changed. This would be useful if by mistake you edit the permissions at the root share and instead of adding you accidentally click on Yes at the po...
You can install and use [CODE] for information on who changed the permissions but there isn't any way to tell what they were in the past. The only way to achieve your objective would be to create a script to read and output the permissions at timed intervals so that you can compare them to what they currently are.
-1
1
50
2018-02-05T18:32:10.450
database_errors
serverfault.com
81,471
Best way to implement 10-fold cross validation for CNN model
I was performing a binary classification problem with 15000 RGB images using a scratch build CNN model. While it comes to evaluate the model, I can do it in two ways: Splitting data Train and Test and use 10 fold cross-validation for the training data. Later with the best model, I would use the unseen Test data. In thi...
In my point of view, it should be Option-I Primary logic is to test your Model on unseen data. Reason for that is, When you executed your K-Fold and let's say got a score ~87% and then you tweaked your Hyperparameters. In this way, we actually leak the test data(K-Fold test set) information to the learning process, and...
2
2
1,180
2020-09-09T17:32:33.637
data_quality
datascience.stackexchange.com
1,148,476
Implement subdomain with port 8080
I have a VPS, on that VPS there is an existing application that is live with Docker port 80. There are two applications that I want to deploy on that VPS, the first application is a Laravel backend using port 8080, the second application is a NextJS frontend port 8081. Two This application can be accessed via public IP...
If you want your users to type [CODE] and get your application you need to use the default ports, 80 for HTTP and 443 for HTTPS. With every other port your users need to type the port as well, like [CODE] . That being said, you need to bind your server blocks to the default ports. Example: [CODE] You should however con...
1
1
143
2023-11-24T02:46:14.273
pipeline_ops
serverfault.com
534,931
phpMyAdmin error #2002 "Cannot log in to the MySQL server", but works from console
The MySQL service on my CentOS 6.3 server works well. I'm using phpMyAdmin-3.5.8.1 from default repository. I have sites that can connect to the databases and are using them successfully. I can also connect to the database server using the [CODE] command. The database is NOT on the localhost but another server. Tried b...
I found it eventually! Perhaps this will work for PMA from rpms only. Despite PMA itself is in [CODE] it expects to have [CODE] dir at [CODE] and config in [CODE] Solution: just edit [CODE] and set the correct paths or [CODE] Edit 3 months later: On another server it checks /etc/phpMyAdmin/config.inc.php instead of /us...
1
2
18,497
2013-08-29T18:54:00.707
database_errors
serverfault.com
1,048,787
Nginx rewriting url for proxy passing
So I have two nginx server in a kubernetes cluster. I want that one nginx server acts as a reverse proxy for the other that serves my phpmyadmin files. For accessing my phpmydadmin from the first server, the user has to type: [CODE] From that I want my nginx server to rewrite the URI before he proxy pass with replacing...
I fixed it ! It was an issue with my regex (/.*), I remove the / and now it works Thanks for your helps and suggestion I follow the links and learned some things x)
0
0
2,105
2021-01-06T10:56:42.040
pipeline_ops
serverfault.com
880,999
Avoid Windows shared folder to be read by every one in the network
My folder is located at D:\folder in a server. Inside the "folder", there are 2 subfolders called "one" and "two". I would like to set the "one" folder to be read by "A" user only, while the "two" folder to be read by another "B" user only. However, when I make the "folder" to be a shared folder, I am forced to add som...
This is the most limited implementation Share permissions: "Authenticated Users", Full Root folder: Disable inheritancel, "Authenticated Users":Traverse folder / execute file Folder One: Disable inheritance, Group1:FULL Folder Two: Disable inheritance, Group2:FULL Nobody will be able to view the share, but they will be...
1
1
104
2017-10-30T13:42:29.397
infrastructure
serverfault.com
813,393
kubernetes to resolve custom internal nameserver
When the pods on GKE k8s are deployed they have the ability to connect to other GCE (google compute engine) instances by ip or google metadata DNS server name. I use internal bind installed on 2 (master/slave) GCE instances for resolving. Let say example.local is the internal zone name, and all the instances are using ...
This feature is coming in Kubernetes v1.6: https://github.com/kubernetes/kubernetes/pull/41826 It will allow you to inject private zones into the kube-DNS configuration.
0
1
1,084
2016-11-05T17:31:06.657
pipeline_ops
serverfault.com
366,826
changing the value of String object in java
I have to set the value of a string object "result" depending on the results of different methods and different if/else conditions. In the end, there would be one (last value set) in the string that i need to use. The first way i did it is: [CODE] I feel that i am recreating a new String object many times in different ...
Let's look at this for a minute or two... So you are running some code and expect a string return to tell you how it went. In doing this you noticed (and rightly so) that this evokes a feeling somewhat unpleasant, this just dont feel right you say. The issue however is not one of performance, or rather the performance ...
0
2
10,403
2018-03-01T15:16:46.070
api_errors
softwareengineering.stackexchange.com
321,723
errno: 150 "Foreign key constraint is incorrectly formed" - mariadb
Well, I'm going to be clear. I'm trying to create another table where one of the fields references to the second one. The 'parent' table was created by the forum software I installed on my webserver. However, when I try to reference the new table, it drops me [CODE] . The field I'm trying to reference is [CODE] I downl...
https://mariadb.com/kb/en/foreign-keys/ says: Index prefixes are not supported I suggest that [CODE] doesn't have to be [CODE] . It could be a shorter string. It's quite rare for a name to require such a long field. I know the Guinness record holder for the longest name is over 600 characters, but he can choose a short...
1
2
570
2023-01-04T22:51:11.900
data_quality
dba.stackexchange.com
576,583
XAMPP 403 after all permissions set - OSX 10.9.1
I tried installing the latest version of XAMPP as a simple testing platform to demo PHP on before moving to our production server. I set up a couple of virtual hosts for convenience, but they invariably throw 403 at me. I have recursively chown'd the directories, I have declared the domains in the [CODE] file, I have c...
403 does not indicate insufficient permissions for the server to read the file, but insufficient rights for the client to view the requested URL (the server doesn't even try to access any file, maybe not even map the request to one depending on where the access rights are defined). As your access rules for [CODE] seem ...
0
0
5,451
2014-02-18T21:19:38.357
api_errors
serverfault.com
289,815
Behaviour of Thread sleep in a single core processor machine?
I'm trying to understand how threading works when using a single core, not hyper-threaded processor. I have two identical console applications running on a machine that has one core CPU and 1 GB of memory. In this console application, I have a method that starts a [CODE] . I know that when we [CODE] a new thread, and [...
Starting a new thread, by itself, does not cause the current thread to sleep or freeze. The OS schedules these threads (alongside many other threads) to take turn executing. If the first application starts the second application as a process, via [CODE] , this also does not cause the current process or thread to sleep ...
1
1
1,270
2015-07-15T13:50:50.990
api_errors
softwareengineering.stackexchange.com
152,552
Many queries are slower on new hardware and newest version of PostgreSQL
Note: I have significantly re-worked this question based on the direction the commentators have taken me and what I have learned on the way. I am setting up a new development database server. The new one is a 6th Gen i7-6700 with 16GB DDR4 memory and an Intel 750 SSD with PostgreSQL 9.6. The old one is a 4th gen i5-457...
You have changed too many things at once. First run 9.2 on your new hardware and check the performance. Then upgrade to 9.6 once you get that sorted out. How did you move the data? Logically, by using pg_dump and then a restore, or physically by using pg_basebackup (or a cold copy) and then pg_upgrade? Update finalal S...
4
2
1,746
2016-10-18T03:27:49.440
database_errors
dba.stackexchange.com
230,374
Test Data in a Distributed System
A question that has been vexing me lately has been about how to effectively test (end-to-end) features in a distributed system. Particuarly, how to effectively manage (through time) test data for feature testing. The system in question is a typical SOA setup. The composition is done in JavaScript when call to several R...
I faced a similar question recently. The answer so far has been a mix of both. Some shared data in a single place, other data created by relevant components/tests. I found shared, centralized data convenient when it reduces common boilerplate, but it's costlier to maintain because it must be reconciled with all the myr...
2
1
651
2014-02-25T22:44:54.177
database_errors
softwareengineering.stackexchange.com
185,704
MongoDB Write Concern when Journaling is off
I'm running mongo 3.4.7 (WiredTiger) replica set with two secondaries. According to the docs , when journaling is enabled and write concern is [CODE] , the ack is sent after the data is written to "In memory". However the docs don't specify what happens when journaling is off on the server ( [CODE] ). What happens in t...
Since you're using MongoDB 3.4.7 with WiredTiger, there are certain defaults in place if you run MongoDB with the default values (journal is enabled): If newly created, the replica set would use protocol version 1 (see Replica Set Protocol Versions ) Default write concern is [CODE] (see Write Concern ) With [CODE] , th...
2
1
1,239
2017-09-12T11:59:47.753
database_errors
dba.stackexchange.com
426,786
C99: Alternative to "static" variable declaration?
By coincidence I stumbled over " The New C Standard " from Derek M. Jones, where he comments this sentence from the C99 standard regarding "storage duration of objects": There are three storage durations: static, automatic, and allocated. His comment: One of the uses of the overworked keyword static is to denote object...
The context of this paragraph is explaining storage duration, not the keyword [CODE] . The parenthetical statement in question is just referring to the fact that there are many things with static storage duration that don't use the keyword [CODE] . For example, any file scope variable has static storage duration, despi...
2
4
1,169
2021-05-28T08:38:46.130
api_errors
softwareengineering.stackexchange.com
351,233
What is the best way to make a collection of functions available to a whole program in c++?
I am currently working on a voxel (Minecraft-like) engine in C++. Almost all of the code (ie. world generation, rendering, user input) needs to access data about the block types. To accomplish this, I created a BlockRegistry class with member functions to register and access BlockType instances. Each BlockType instance...
There's no reason why a singleton can't have state, but singletons are frowned upon by a lot of people. Would it be better to pass a reference to the BlockRegistry into the constructor of any classes that need it, rather than cluttering up the individual methods? Make sure the BlockRegistry is constructed right at the ...
-3
0
214
2017-06-20T07:17:47.577
api_errors
softwareengineering.stackexchange.com
28,174
Getting NullPointerException when tried to test two different pages
I am new to automation testing and I have been stuck on testing two different pages (HomePage and AboutPage) BasePage.java [CODE] BaseTest.java [CODE] HomePage.java [CODE] NavigationMenuComponent.java [CODE] HomePageTest.java [CODE] NavigationMenuTest.java [CODE] And my testng.xml [CODE] Here is stacktrace [CODE] But i...
Looks like it might not be finding you aboutLink element. @FindBy(xpath = "//li[@id='menu-item-1390']/a[contains(@href, 'about')]") I always try and avoid using numbered items in my xpath, is it possible the 1390 changes? Also your xpath assumes that the link is child not a descendant of the li element. If there is ano...
0
1
2,263
2017-06-30T16:19:21.443
data_quality
sqa.stackexchange.com
57,298
Does high accuracy metrics with small (but equally sampled) dataset means a good model?
I have been training my CNN with 200 images per class for a classification problem. There problem is a binary classification one. And with the amount of test data ( 25 per class) I am getting good accuracy, precision and recall values. Does that mean my model is actually good?
You can do a crossvalidation to be sure your testing set is not just very easy to classify. If it is possible, you could try to augment the size of your training set by doing some rotation, shift, flip ... If you are using Keras, you can read this blog .
2
0
86
2019-08-09T09:27:51.323
data_quality
datascience.stackexchange.com
284,016
How do I replace a substring within a string, but only if substring is matched within a regex group?
I need to extract information from a malformed json-formatted string. Due to an error, all quotes have been stripped, so instead of: [CODE] I have: [CODE] Using [CODE] I can get mostly fine json, HOWEVER this incorrectly turns [CODE] into [CODE] Using [CODE] I can match the 03":"11":"53 and remove it totally, yielding ...
I would use two nested regexp_replace() calls: first to enclose all keys with double quotes then to enclose all values with double quotes [CODE] returns: [CODE] If you want have the integers without quotes, you could run a third [CODE] that removes the quotes from integers with quotes: [CODE]
1
1
82
2021-01-26T14:52:35.580
warehouse_errors
dba.stackexchange.com
292,539
Linux Postfix Setup on a fresh VPS
I've launched a new VPS with CentOS 5. It's pretty skeletal, nothing setup. I'm trying to configure my mail server to handle my email: contact@domainname.com My DNS settings live on GoDaddy.com. I have set up a contact name under the MX settings (not sure if that is correct) that points to the mail server (mail.domainn...
First off, the MX record should point to whatever server is listening for incoming SMTP traffic. If you're planning to have your VPS handle mail traffic, then the MX record should point to it. Second, the job that you're considering using postfix for is called a Message Transport Agent (MTA) . There are lots of options...
-2
2
1,297
2011-07-21T04:17:54.783
infrastructure
serverfault.com
942,668
2 MySQL instances in the same cib.xml
I have a RHEL 7.3 cluster with 2 nodes, managed by Pacemaker. It's used for MySQL HA. I currently have one MySQL service added to the cluster (MySQL 5.2): [CODE] I need to add a second instance of MySQL to the cluster (MySQL 5.7): [CODE] The problem is that only the first instance of MySQL found in cib.xml is started b...
For anyone having the same issue, here is the solution I found. If you want 2 MySQL databases to run simultaneously on the same node, you have to make sure that the socket , datadir , log and pid parameters are different. I had the first 3 parameters OK, but I didn't set up a pid parameter for neither instance. After I...
0
0
51
2018-12-03T15:27:20.183
database_errors
serverfault.com
225,599
snort analysis of wireshark capture
I'm trying to identify trouble users on our network. ntop identifies high traffic and high connection users, but malware doesn't always need high bandwidth to really mess things up. So I am trying to do offline analysis with snort (don't want to burden the router with inline analysis of 20 Mbps traffic). Apparently sno...
I am not familiar with Gentoo specifically but you could try using the "--daq-list" flag to see what (if any) DAQ modules Snort sees. e.g: [CODE] Then use the "--daq-dir " flag to point Snort to the directory containing the DAQ libraries. [CODE]
7
1
3,992
2011-01-22T20:07:39.713
infrastructure
serverfault.com
433,262
Separate domains vs. one domain with alias-domains
I have set up a LAMP-server using ISPConfig 3 for the administration. PHP is running over Fast-CGI. I have several domains, like my_site.com, my_site.net and my_site.org, but they all point to the same application/website. Each domain has its own web-root-folder and is running under its own user. The application itself...
Turning my comment into an answer. I would aim for one Apache process running as one system user but serving several IP addresses corresponding to several domain names, each with its own SSL certificate. Unless explicitely configured otherwise (e.g. using suEXEC or the [CODE] option to [CODE] ), Apache will launch all ...
0
1
258
2012-09-29T14:56:34.123
api_errors
serverfault.com
214,576
Unit Testing of JavaScript - Are we testing the logic of the code or the behavior against a browser
[Warning]: I am new to the whole unit testing and have been trying to learn as much as possible. I am working on a MS CRM 2011 project and I have been trying to introduce unit testing in my company. For unit testing JavaScript web resources, I found this link at MSDN blog . The Solutions Architect in my company suggest...
According to Wikipedia , "JScript" in IE is based on the same scripting engine as JScript in Windows Scripting Host. So generally, the approach to use the WSH / CScript for unit testing of JScript functions targeting at IE is fine. You should, however, make sure that the IE version (or the JS version which is supported...
4
4
569
2013-10-16T09:06:55.187
api_errors
softwareengineering.stackexchange.com
33,606
Why did my transaction log grow so much?
Possible Duplicate: Why Does the Transaction Log Keep Growing or Run Out of Space? About a month ago I migrated my SQL Server 2008 R2 database to a new schema. I ran scripts to migrate the data in the existing DB to the new DB. When I finished the new database was about 15 GB. A month goes by and my transaction log is ...
It sounds like your database is in full recovery mode. Under this recovery model your transaction log will continue to grow until it is backed up. Because you're not backing up your transaction log you aren't able to reuse any portion of it. This is all for point-in-time recovery. After you back up your transaction log...
5
3
557
2013-01-26T20:58:16.770
database_errors
dba.stackexchange.com
559,254
Puppet agent not following `server` setting
I have a very strange issue with Puppet 2.7.18 (on a Raspberry Pi) that started all of the sudden. In simple terms, the agent only partially follows the 'server' directive in [CODE] . The following works: [CODE] but, if i instead set it in [CODE] , it doesn't seem to follow it. [CODE] I even confirmed it with the genco...
Most likely caused by a temporary DNS issue.
1
2
859
2013-12-04T19:23:58.573
pipeline_ops
serverfault.com
92,981
How do I temporarily suspend mail delivery to a specific domain (non-local) with Postfix?
Using Postfix and custom transports I can manage delivery speeds depending on the recipient's domain. (For example, I send max one message per second to *@hotmail.com) I also use similar rules to block bad destinations (htmail.com is blocked right away, avoiding many loops in the queue). However, I'd like to temporaril...
Put messages in a HOLD state /etc/postfix/main.cf: [CODE] /etc/postfix/hold: [CODE] Make sure you run [CODE] whenever you update the file. If you want to release all messages on hold, use postsuper : [CODE]
15
25
33,173
2009-12-10T12:28:15.277
infrastructure
serverfault.com
14,434
Period Predictive Model
I am not sure how to formulate this problem clearly into a machine learning task yet. So hope you guys can chime in and give me some help. Problem : To predict whether someone will pick up their phone during office hours in week n+2 by looking at customer's behaviour in week n. Data : I have calling records for about 3...
You can try to build some kind of "sliding window table". Let's say you have following attributes: call duration (x1) time of call (x2) picked the phone (x3) Let's further assume that you have data from past 3 weeks, which allows us to set following table. The rows contain individual calls, the columns the attributes. ...
2
2
198
2016-10-10T03:27:49.467
data_quality
datascience.stackexchange.com
241,927
SQL - How to return first encountered row that matches specific criteria
I have a table that has the following format: [CODE] I want to fetch any row whatsoever that has price = null and category = hardware. I only want to know if a row with a null price exists. So whether the query fetches row ID 3 or 4 or 6 doesn't matter. I'm currently using [CODE] but on a very large table with many nul...
I only want to know if a row with a null price exists. MySQL: [CODE] will return true or false (1 or 0). Beneficial: [CODE] With that index it will be very fast, regardless of table size, since it only needs to check one row in the BTree. If you need [CODE] , then Rajish has the optimal answer, but it needs the index I...
2
2
35,689
2019-07-03T02:13:47.487
data_quality
dba.stackexchange.com
41,732
Conda Verification Failed
I was trying to install jupyter package for anaconda in my current environment but constantly getting the following error. Preparing transaction: done Verifying transaction: failed CondaVerificationError: The package for ipython located at D:\Anaconda\pkgs\ipython-7.1.1-py36h39e3cac_0 appears to be corrupted. The path ...
First try this: [CODE] Where [CODE] is/are the package(s) for which an error is reported. If that fails, you could try forcing an over-install (this solution is very handy and will likely fix many issues): [CODE] So, for example, for the original poster of this question, it would be; [CODE] Note that in future releases...
13
6
32,659
2018-11-27T09:29:11.977
data_quality
datascience.stackexchange.com
233,073
Will Postgres handle the Unix Epoch problem?
I was wondering if Postgres will be handling the unix epoch problem coming in 2038? I have read about this and am wondering. It's about a productivity thing obviously because it is so far away, but I am curious.
If you look at https://www.postgresql.org/docs/11/functions-datetime.html in the documentation it displays data about the [CODE] function that returns a [CODE] value from an epoch value. Complete description is: "Convert Unix epoch (seconds since 1970-01-01 00:00:00+00) to timestamp" The input type of the function is [...
5
9
2,223
2019-03-25T21:25:35.517
warehouse_errors
dba.stackexchange.com
1,021,849
How to get the value of ECS_CONTAINER_METADATA_URI_V4 in AWS ECS container?
The question is pretty straightforward but a little background always could be helpful. I need to get a container id from the container itself, and the value of it will be used as a logfile name. According to the docs [CODE] is injected to each container. But when I'm connection to a Fargate hosted containers through S...
I’m pretty sure that the application running in the container will have that environment variable available. The problem is with ssh and bash that clear / sanitise the environment vars before you get the shell. I suggest you run the task on EC2-based ECS for testing (ie not on Fargate) and [CODE] into it - more likely ...
2
2
1,637
2020-06-17T11:19:22.473
pipeline_ops
serverfault.com
357,133
How to handle mapping from object model to different versions of contracts or DTO's
I'm looking for patterns or best practices for maintaining different versions of an API contract . There's lots of information on the internet about how to version API's (URL's vs. headers etc), but this question is related to the mapping from one object model to different versions of the contract types (DTO's), and fo...
The problems you describe exist in identical form in object serialization systems, and these problems have all been worked out over the years. What you describe as a contract can also be viewed as an object serialization format, at a higher level. For serialization, generally speaking, you have only a single version of...
7
3
3,170
2017-09-10T15:58:10.903
api_errors
softwareengineering.stackexchange.com
62,406
X11 performance problem after upgrading from Centos3 to Centos5 with an ATI Rage XL
After upgrading a computer from Centos3 to Centos5 an application that does a lot of scrolling took a very high performance hit. [CODE] tells me that X is using a lot of CPU and that was not happening before. The machine has an ATI Rage XL with 8MB and X is using the ati driver as there is no proprietary ATI driver for...
I don't see DRI drivers for anything older than an ATI Rage 128 in CentOS 5 so the ATI driver might be largely unaccellerated. You might try the VESA driver instead and see if the card is better supported that way.
1
1
947
2009-09-04T13:03:03.467
infrastructure
serverfault.com
475,880
SSH public key auth fails when UsePAM is set to "no"
To disable password auth I've set the following values in my [CODE] [CODE] When I try to log in with my private key I get [CODE] If I then change [CODE] to [CODE] I can login using my private key. Why? I'm connecting to a Ubuntu 12.04 64bit host from OSX [CODE] here's the verbose [CODE] output: [CODE]
Without PAM (Pluggable Authentication Module) more complicated ssh configuration is required to authenticate. You're looking for this, actually: [CODE] This will disable passworded login. Ensure you public key settings correctly established.
31
20
75,956
2013-02-06T02:17:03.020
infrastructure
serverfault.com
733,775
Pods fail and restart / exit many times on Google Container Engine
I'm setting up Google Container Engine and have created pods, a resource controller, and a service. However, it never get ready and restarts for many times as follows. ( [CODE] is [CODE] ) [CODE] I followed Kubernetes Application Troubleshooting Guide , but had no luck. First, I tried [CODE] , but no output [CODE] I al...
It looks like your container is starting, and then quickly exiting. I'm guessing that from the STATUS which is [CODE] . For debugging I would check the following: if you run the same container directly with docker on your local machine, does it also exit immediately? if not, are you overriding any enviroment variables ...
0
1
2,772
2015-11-04T07:29:55.023
pipeline_ops
serverfault.com
294,470
Can I use assignment operator `:=` on a local variable in a SELECT statement?
From my understanding the only difference between user variables [CODE] and local variables like [CODE] is the latter are scoped between the [CODE] and [CODE] statements of a procedure whereas user variables exist for use in the connection as long as the connection remains open. So I would like to use local variables s...
Session variables are go [CODE] [CODE] [CODE] | localVar | | -------: | | 4 | ✓ db<>fiddle here But Variables act different ly from @ sessionvaroables which you see when you add another row [CODE] [CODE] [CODE] | return_var | | ---------: | | 4 | | 5 | you need here a Limit as else you get an error and MySQL can't use ...
1
1
78
2021-06-18T00:39:00.323
warehouse_errors
dba.stackexchange.com
165,864
Counting non duplicates between 2 columns
Suppose we have two columns: Start & End. Both columns store an integer id. For each id in the Start column, I want to be able to determine whether the same id exists in the End column. If not, the count should increment by 1. How can this be done?
Should be fairly simple: [CODE]
1
1
795
2017-03-01T17:14:08.260
data_quality
dba.stackexchange.com
400,675
Propper way to organize and maintain project SDK
There is a C++ project. It is supposed to be executed on x86 CPU, target OS are Ubuntu 18.04 and Red Hat 7.4. There is an idea that there is almost no need to install anything project specific on a build server because all dependancies the project has are stored inside SDK folder. It includes compilers, libraries, requ...
I have seen such messes too, and especially C++ and many tools can make a legacy project cumbersome. In a copy tear the project apart in separate modules, small makefiles (without much complexity in them), and documentation of modules: sources & products and the hierarchy. A must: explaining text and a component diagra...
1
1
87
2019-11-06T13:49:04.390
api_errors
softwareengineering.stackexchange.com
922,319
Grub2 fails to detect partitions if it was installed into file
I'm trying to prepare an image that I can dd into disk or boot using PXE. Some context : I create an image, partition it using sfdisk (MBR), create loop devices for the whole disk and main partition, format the main partition as ext4, mount it and install a base system + kernel and grub-pc packages using debootstrap, t...
This is probably too late, but for me it turned out I needed to mount the /dev/loopX partition using [CODE] That created a /dev/loop0p1 that I was able to mount and install grub on top of. You should also make sure that you've installed a linux kernel inside the image with [CODE] Then you can re-install grub on /dev/lo...
0
0
771
2018-07-17T15:59:54.377
infrastructure
serverfault.com
819,560
RDS Memory Monitoring is almost full but nothing is happenning on the server
I don't understand how to read the Memory monitoring graph. RDS Monitoring Graph Thank you for your advices.
First, database engine itself consumes memory. Second, data is usually cached and not pushed out of RAM until RDBMS needs to. There might be cached data from previous queries.
0
1
167
2016-12-08T16:08:16.690
pipeline_ops
serverfault.com
619,154
Unpredictable Boot Failure of Dell 2950 II
We recently purchased a refurbished Dell 2950 II to use as a development box in our lab. After installing the OS (Debian Wheezy) and booting for the first time, I received the following errors in the DRAC, and the host reboots unexpectedly: [CODE] After that, I receive the following over the course of the next boot (in...
Try disabling the framebuffer in your GRUB settings. You can add a "nofb" to the end of your boot string. We ran into this exact problem on either a Dell 2950 II or III.
0
1
1,303
2014-08-09T03:31:21.083
infrastructure
serverfault.com
1,082,136
Connect to postgres database behind nginx reverse-proxy using docker containers
I have set up a postgres database container and can connect and query it directly using its published port 5434. The goal is to deploy the test database later and access it via nginx reverse proxy. I don't know what is the best way to connect to a deployed test database. Please advise. I have tried to connect to a post...
When connecting to the Docker container by name, you should use the exposed port of a service, i.e. [CODE] , as you are connecting directly to the guest: [CODE] On the other hand, the published port [CODE] becomes present on the host, so you should be able to access the services this way too: [CODE] Which I do not reco...
4
0
7,308
2021-10-29T20:32:56.153
pipeline_ops
serverfault.com
868,979
JSON parsing with Nagios plugin
I am looking to use Drew Kerrigan's JSON Nagios plugin on GitHub (drewkerrigan/nagios-http-json) to monitor the output from a REST API, but I am struggling to get the query syntax right. Here is a sample of the JSON that's returned when I hit the Web API: [CODE] Drew's plugin has an equality test switch: [CODE] and Dre...
Drew's plugin is not coded to handle that specific JSON format, so I hacked in a small fix to take our JSON data and convert it to a more plugin-friendly structure (simple key:value pairs) - I couldn't change the format of the JSON our app generates as it is used elsewhere and too much would break. In the main program ...
1
1
1,168
2017-08-16T15:05:27.477
api_errors
serverfault.com
198,284
Why is 0 false?
Why does [CODE] evaluate to [CODE] and any other integer value to [CODE] is most programming languages? String comparison First of all, it may seem evident to any programmer, but why wouldn't there be a programming language - there may actually be, but not any I used - where [CODE] evaluates to [CODE] and all the other...
[CODE] is [CODE] because they’re both zero elements in common semirings . Even though they are distinct data types, it makes intuitive sense to convert between them because they belong to isomorphic algebraic structures. [CODE] is the identity for addition and zero for multiplication. This is true for integers and rati...
126
107
134,874
2013-05-15T19:37:23.870
api_errors
softwareengineering.stackexchange.com
56,840
Can I provide a default for a left outer join?
Suppose I have tables a (with column a1) and b (with columns b1 and b2) and I perform a left outer join [CODE] Then b1 and b2 will be NULL where a value of a1 has no matching value of b1. Can I provide a default value for b2, instead of NULL? Note that COALESCE won't work here, because I don't want the default value to...
[CODE]
44
47
107,368
2014-01-15T17:15:15.513
warehouse_errors
dba.stackexchange.com
78,684
"wget --mirror" Alternative
I'm looking for an alternative to using this, it doesn't have to use FTP, but it should provide the same functionality as the "--mirror" option of wget where it only downloads new and changed files. [CODE] Currently the above command is how a remote site is being backed up every few days via cron job on a home server. ...
rsync is the standard utility for this: [CODE] a For archive, keeps permissions, type stamps, etc. v for verbose e ssh , use over ssh z for compression, if you want that. It won't try to re-compress archive (zip) files. rsync generally comes with Linux distributions. It also meets your requirement of not transferring t...
4
8
2,148
2009-10-27T13:52:04.533
database_errors
serverfault.com
530
How do you clear out all old query plans from within Microsoft SQL Server?
We have an off the shelf application that uses a Microsoft SQL database. Within this application we pick and choose various selection criteria for each report. This application then runs these reports. I believe we have a query plan issue. The first report we run each day, runs very fast 7 minutes. Any report we run af...
My apologies for my previous answer. 1) Add the WITH RECOMPILE option to the CREATE PROCEDURE statement if you know that your query will vary each time it is run from the stored procedure. The WITH RECOMPILE option prevents reusing the stored procedure execution plan, so SQL Server does not cache a plan for this proced...
12
7
20,410
2011-01-11T14:04:59.613
database_errors
dba.stackexchange.com
263,878
Buffer limit for nginx?
I'm using nginx on an embedded platform (OpenWRT) as a reverse proxy in front of an IP camera, and I'm having an issue where the camera is pushing data to nginx more quickly than nginx is able to off-load it to the next stage. With the reverse proxy removed, extra frames just get dropped and that's that. But nginx seem...
You can turn buffering off entirely with [CODE] However, I don't think you can make it drop data.
2
2
1,332
2011-04-27T12:48:41.267
infrastructure
serverfault.com
355,722
Configure SQLServer 2000 Win7
I've got [CODE] running on [CODE] . There's no management tools so I wonder how do I configure/interact with the server. Main purpose for me is to enable remote connections. I know how to do this with [CODE] but not with [CODE] ? Is [CODE] a default port for [CODE] ? Is it possible to allow port thru [CODE] with [CODE]...
SQL Server 2000 allowa remote connections by default; Windows Firewall is what's probably stopping remote clients from connecting. The default port for SQL Server 2000 (as for any SQL Server version) is TCP 1433.
0
1
228
2012-02-01T10:24:13.170
infrastructure
serverfault.com
461,990
figuring out high load cause from top and iotop
What should i do if I want to prevent this high load. My website becomes slow when load is higher than 8. Please see iotop result too. top - 20:23:10 up 127 days, 3:22, 1 user, load average: 9.92, 9.87, 9.81 Tasks: 1031 total, 3 running, 1027 sleeping, 0 stopped, 1 zombie Cpu(s): 14.7%us, 0.7%sy, 0.1%ni, 79.6%id, 4.7%w...
Your particular problem is most certainly I/O-related due to how deep into your swap space mySQL has pushed you. Ideally you should be using zero swap the vast majority of the time since the instant the OS starts swapping memory to disk your performance will nosedive as processes wait for I/O. Think of it like [CODE] w...
-3
6
2,725
2012-12-31T17:07:15.110
database_errors
serverfault.com
774,335
Percona XtraDB Cluster 5.6 does not start
All the good days. I want to run for test purposes Percona XtraDb Cluster on ubuntu 14.04. The basis here took these two articles https://habrahabr.ru/post/152969/ https://www.percona.com/doc/percona-xtradb-cluster/5.6/manual/bootstrap.html I came instead Ну и в завершение, перезапускаем демона: The daemon does not sta...
I think the path to galera library causes the "error two". You should try this: [CODE]
2
0
1,535
2016-05-02T15:28:17.383
database_errors
serverfault.com
76,205
query to select data between todays date as well as tomorrows date time upto specific time
I have database "raj" with table "pagination" In table pagination have "id", "actualtime" and "created" field [CODE] I want to display all rows which is created on todays date display upto yesterdays 06:00 pm.after that the content will be refreshed based on based on a DATETIME field called 'created' that holds the dat...
This is the expression for 6:00 PM yesterday [CODE] Craft the SELECT with that expression [CODE] Give it a Try !!!
1
2
12,052
2014-09-10T13:47:31.223
warehouse_errors
dba.stackexchange.com
114,425
How to write a procedure which is replacement of ON DELETE CASCADE?
I want to make write a procedure which will delete rows from parent table as well as child tables . How to achieve that.? In my case I can not to use on delete cascade (No data model changes). If the child tables has further child the single procedure should be able to delete them also . Note: I can not do any kind of ...
Your best bet is to delete on cascade but that's not always an option Making a procedure to dynamically work out what columns exist and which relate to one another is not an easy task even if you do have all primary / foreign key relationships setup. I'd advise sitting down looking at where everything is and how it all...
2
2
1,155
2015-09-08T07:43:50.630
database_errors
dba.stackexchange.com
161,142
SCVMM Error 10644 - Missing WAIK files in the GAC
I cannot create a new SCVMM VM from a template. The creation fails with: Error (10644) Virtual Machine Manager cannot access the WAIK (Windows Automated Installation Kit) Image Manager DLLs. Recommended Action Install WAIK and ensure that the Image Manager DLLs are installed in the GAC (Global Assembly Cache). I was ge...
Copied the files right from the WAIK installation folder for the Image Manager (C:\Program Files\Windows AIK\Tools\Image Manager by default) into the SCVMM R2 installation folder (C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2\bin by default). This got er' workin again.
1
1
694
2010-07-16T15:02:01.837
infrastructure
serverfault.com
244,692
Windows 7, 64bit TortoiseSVN-1.6.12, cannot commit
we have a Windows server running VisualSVN. A coworker recently upgraded to Windows 7, and is running [CODE] 64-bit in Windows 7 64-bit, and can check projects out but cannot commit. He gets the following error: [CODE] can anyone tell me how to fix this? As far we know, he has correct permissions and username/password.
Make sure your repository URL is correct. It is case sensitive, so [CODE] will generate your access error if the path is [CODE] If it is wrong you can use "Relocate" under "TortoiseSVN" menu in Explorer to correct it.
1
1
2,051
2011-03-08T14:30:13.807
infrastructure
serverfault.com
98,084
Can I setup a link SQL server connection between servers on different networks?
We have a production SQL server hosted offsite at a hosting company, and we have a staging environment within our own network. We want to be able to setup a SQL job that copies content from a table on the staging server to prod on a regular basis, and I think we need to setup a linked server connection to do this. What...
A linked server is not the best option. it opens the SQL Server for remote T-SQL execution, a very serious security hole it requires SQL password based authentication because of the different domains involved it does not offer any redundancy when faced with spotty conectivity TDS as a protocol is not designed for speed...
0
1
5,828
2009-12-29T22:02:53.750
database_errors
serverfault.com
17,355
Changing reverse DNS in Debian Box
I am currently hosting a website within my university environment with the permission from my university sysadmins. This is my scenario: I am running a DNS server on my own and I am using one of the hosting provider's DNS server to point my DNS name to the IP address of the machine in which I am hosting the website. It...
How can I change the reverse dns records to point my IP address to my domain and not the university domain under which my site is hosted? Will I have to run my own DNS server to accomplish this? Most likely the University owns the reverse zone for their address space and only they can change this record. Start by askin...
0
2
1,700
2009-06-01T23:54:34.573
infrastructure
serverfault.com
107,309
How to merge two large mysql tables into one with similar data keeping the latest record
I have two similar large tables with below table structure [CODE] I want to create one large table merging above two tables with the latest record [CODE] Some data may duplicated in table A and B. How can I achieve this. Note that these tables are very large
Since you have very much data at hand, I suggest you merge your date and time columns first. Then you can use an index efficiently. If you don't, you will have to do something like [CODE] So, first do this for both tables. [CODE] Then you can insert both tables into your combine_table (Note, left this for completeness,...
2
4
15,179
2015-07-17T07:50:45.930
data_quality
dba.stackexchange.com
194,366
Has my linux server been attacked?
I feel as if my server (ubuntu 10.4) has been attacked. I'm a bit of a linux noob. I run a website and a few rows of mysql data have been deleted. This has happened three times now. The auth log is empty prior to 2:00pm ET today. All that shows prior to my logins were a few cronjobs running. The data disappeared betwee...
Can your data be modified / deleted through your website? If so, can it be modified through a GET request, or only through PUT / POST / DELETE? Is your website linked from anywhere? It is possible that if your website is linked from somewhere and that you have web pages that use operations such as "GET" that are consid...
1
2
211
2010-10-25T03:21:45.233
database_errors
serverfault.com
1,047,558
ejabberd getting 404 Not Found at /http-bind
i'm having trouble setting up external xmpp server for nextcloud with my ejabberd server in combination with jsxc / xmpp-cloud-auth. In nextcloud external server config it shown the error: XMPP domain: https://cloud.XXX.com:5280 BOSH url: /http-bind/ Invalid XML received. Maybe https://cloud.XXX.com/http-bind/ was redi...
Check how you configure. If you tell ejabberd to listen in path [CODE] , then that's the URL you must use. For example: [CODE] This works: [CODE]
0
1
1,435
2020-12-25T21:46:42.677
infrastructure
serverfault.com
242,662
Ubuntu PHP5/Apache2 - Displaying 500 error instead of error message
The following script is not outputting error messages to the browser. Instead it results in an HTTP Error 500 response. [CODE] Ideas? This is a basic php5/apache2 install on ubuntu. httpd.conf is blank, no .htaccess file. The error.log file displays the error message: syntax error, unexpected T_STRING, expecting ',' or...
If the script has a parse error that prevents it from running, this also prevents it from changing a PHP setting.
1
3
1,635
2011-03-03T10:37:15.997
api_errors
serverfault.com
381,774
How to define a structure to store some generic "Variable" classes for easy access later
I'm running into a design problem. My code is in C# but the concepts could apply to any OO language. I'm designing a framework to run experiments, and these experiments have several variables which we will manipulate, and several variables that we will calculate after manipulation (like columns in an excel sheet). Each...
There are several ways to do this. Which one is best is somewhat up to the language you use, the libraries you have, and what makes sense to the clients of this data-structure. In essence you are asking for a table. Might i suggest trying one of the several hundred database engines out there. Anything that works with t...
0
1
106
2018-11-20T19:34:04.880
api_errors
softwareengineering.stackexchange.com
1,020,230
SCAP - Workbench on MAC (with Remote Machine option) - Failed to create SSH master socket
I'm running latest workbench : [CODE] I can't run a scan on remote server using RHEL7 (DISA STIG profile - or any profile) because of a socket error ... anyone else have this issue? Can't connect to remote machine! Exception was: [CODE] *Diagnostic info : [CODE] So it seems that the length of the string in the ControlP...
Found a fix on GitHub ... https://github.com/OpenSCAP/scap-workbench/issues/254 TMPDIR=/tmp; open /Applications/scap-workbench.app
0
0
542
2020-06-05T17:32:47.553
infrastructure
serverfault.com
753,582
PowerShell: How to get local users and local groups, but exclude disabled accounts
I got a PowerShell command that gives me a list of users and the groups those users are members of. The only problem is that is gives me every user including those that are disabled. I need to be able to list just the active users and their respective groups. Any help would be appreciated. [CODE]
You might use a WMI query to get AccountType (512 = Enabled, 514 = Disabled): Edit: there are other flags which indicate enabled accounts, but the basic enabled/disabled is 512/514. Refer to this list . Third try: [CODE] Then add the property to your [CODE] . I also formatted it for my own readability, but still the sa...
0
4
10,598
2016-02-02T21:51:02.627
infrastructure
serverfault.com
165,783
Transparent proxy and IPTABLES
I am using PRIVOXY as a transparent proxy on a Fedora Core 11 box. The machine has one interface (eth0) and here is the configuration of the network: 10.0.1.1 - router.foobar.com (connected to ISP) 10.0.1.2 - proxy.foobar.com (proxy) 10.0.1.199 - DHCP server I have set the default gateway option in DHCP to be 10.0.1.2 ...
The default gateway on 10.0.0.2 has to be 10.0.0.1, [CODE] must be 1 and not 0. Also remember that privoxy is a proxy and it can add some delay.
1
0
850
2010-07-30T23:09:42.083
infrastructure
serverfault.com
438,004
Lock down a user on a stand-alone windows web server
I have a Windows Web Server 2008 R2 Core, which runs several web sites. There is no AD. One of the web applications requires Windows Authentication for a single user. I would like to restrict the user from doing anything except being used for IIS Windows authentication. Here's what I did so far? Removed the user from t...
"Authenticated Users" are members of the built-in local Users group. As the user account is authenticated, it is indirectly a member of the Users group. And no, you don't want to remove Authenticated Users from the Users group. You can assign the following Windows rights to the account using gpedit: Deny log on as a ba...
0
0
550
2012-10-13T12:09:21.720
api_errors
serverfault.com
527,000
RDP connection, where Windows stores passwords?
I have a .rdp file with all my configurations but no password field. When I double click it, RDP opens my desktop correctly. My question is: where Windows stores my rdp account password? Thanks.
One of two: SSO via NTLM/CredSSP - http://blog.powershell.no/2009/12/25/single-sign-on-to-remote-desktop-services/ if you're in a Active Directory domain You've selected to save the password previously, which stores the password in the Windows Credential Manager Store - http://technet.microsoft.com/en-us/library/hh9945...
1
2
11,768
2013-07-29T11:34:01.647
infrastructure
serverfault.com
317,592
How does this piece of TSQL work?
Why the following batch doesn't work as expected? [CODE] When I run it, I got: Msg 2714, Level 16, State 1, Line 12 There is already an object named '#test1' in the database. And I have to change the code like this: [CODE] This works as expected. The aforementioned error seems like a parsing error, which I'm not sure. ...
The error is generated at parse time, so before the batch is even executed. And it only happens when the [CODE] target is a temporary table (either local or global). It does not occur when the target is a regular table. One way to work around this issue is to use dynamic SQL, as you have shown. And as you have also dis...
7
4
744
2022-09-29T13:03:13.607
warehouse_errors
dba.stackexchange.com
459,303
Scaling Logstash (with redis/elasticsearch)
Over a cluster of over 12 centos 5.8 servers, I deployed logstash using the native logstash shipper, which sends [CODE] back to a central logstash server. We tried using rsyslogd as the shipper, but due to a bug in rsyslogd's ImFile module, if the remote end didn't reply, the logs would pile up in memory. We're current...
Your post doesn't describe much in the way of specs (memory on the LS indexer, log volume or much else) but I'll try and answer your questions best I can first. Disclaimer: I'm one of the logstash devs - Apache going nuts was likely a side effect of the logstash process acting up. I'd put that aside for now. The sane w...
16
22
13,987
2012-12-19T11:40:18.863
database_errors
serverfault.com
816,900
Ubuntu apt-get update 403 Forbidden in docker on Azure VM
I am trying to build a docker on azure. The Dockerfile starts like this [CODE] The update command crashes with the following output [CODE] The same Dockerfile build fine on my laptop and on other Azure VMs. I tried redeploying the VM, with no success. What makes this particular command fail on this VM and not others? T...
I have exactly the same problem trying to run a docker container with ubuntu 16.04 on Google Compute Engine. Quick fix (for me on GCE): Use ftp instead of httpeg [CODE] My guess is that cloud providers have their own mirrors (make sense, just think how many times [CODE] is run in their dc...having local mirrors would s...
2
1
2,154
2016-11-24T16:58:07.623
api_errors
serverfault.com
298,887
How to query the effective permission of sql login (windows and/or sql user)?
How to query the SQL server to fetch the effective permission of the following SQL logins under the Security/Logins: SQL user Windows user Windows group
You can use the system view [CODE] to query for all server level permissions (which would include permissions assigned to Logins ). If you join it to the [CODE] system view, you can get information about the Login itself as well. Example from the aforementioned docs: [CODE] You may also be interested in the system view...
-1
0
3,222
2021-09-01T11:54:42.727
database_errors
dba.stackexchange.com
1,114,149
Iptables: VM getting locked out when Blocking all OUTBOUND Ports
I am trying to block all ip's other few ip's given in [CODE] Chain. When I install Iptables [CODE] chain was empty & input chain added [CODE] ip's along with REJECT all ip's other than given [CODE] chain rules. It works, I only needed to add ssh, and other ports to allow traffic from input chain. REJECT rule got added ...
What you're doing is exactly what is needed to block outgoing traffic and you indeed achieve blocking egress traffic by adding rules to the OUTPUT chain. What you failed to take into account is that any incoming connection (that is allowed) also needs to send traffic back and therefore also always generates associated ...
0
2
182
2022-10-27T12:55:17.550
infrastructure
serverfault.com
589,558
Enabling mod_session_crypto hangs apache 2.4
I want to try using session crypto on my apache installation so I uncomment the following line. [CODE] I restart apache and it gives me no errors. Then I browse to the site and I get nothing, just error. "Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a c...
Well after over a week I managed to come to a conclusion on the why part of my problem. Apache needs to be configured with --enable-session-crypto, in order for mod_session_crypto to work, as it is just an experimental package and not enabled by default. One would assume that since the module is available in the /modul...
0
0
2,455
2014-04-16T19:56:18.647
api_errors
serverfault.com
176,552
HP switches sending multi-cast ping requests
I'm not our normal network guy... I've just been drafted to help with this issue, so please bear with me. We have a fairly large (~4,000 devices?) network mostly comprised of HP Procurve gear. From time to time over the last two weeks, we've been getting some wicked broadcast storms that pretty much take down everythin...
I'm going to dump a lot of disjoint thoughts and observations on you, in case any of them are able to stimulate your thinking or someone else's. The multicast destination MAC address corresponds to unicast IPv4 address of your firewall. It's as if some software took your firewall's IP address, pretended it was a multic...
3
1
2,910
2010-08-31T15:17:39.870
infrastructure
serverfault.com
134,545
MongoDB Fails to get TGT
I've setup MongoDB enterprise on CentOS 7 with Kerberos support. Additionally I've setup a Kerberos service on CentOS 7 for the authentication. I know that Kerberos is setup correctly as I now have multiple CentOS 7 clients SSH authenticating against kerberos. When I start MongoDB with Kerberos, I get the following err...
I think that you missed one step. You should add an entry into the keytab file for your principal mongodb/mongodb.centos7.vm@CENTOS7.VM Suppose that the path for your keytab file is /etc/krb5.keytab. Now run $ktutil [CODE] Now you can run [CODE] and the new entry should appear on the output. Now, I think you can start ...
4
2
889
2016-04-06T15:15:39.910
api_errors
dba.stackexchange.com
18,315
Restore database excluding FILESTREAM data
Context We are developing a system with a large-ish database in the bottom. It is an MS SQL database running on SQL Server 2008 R2. The total size of the database is about 12 GB. Out of these, approximately 8.5 GB is in a single table [CODE] . As the name suggests, this is a table where we store simple files, of any ki...
What you're trying to do would leave the database in a (transactionally) inconsistent state, hence it isn't possible. The Partial Database Availability whitepaper is a useful reference guide and includes an example of how to check whether a particular table or file is online. If your data access were through stored pro...
20
10
14,802
2012-05-23T11:51:25.903
database_errors
dba.stackexchange.com
507,297
Upgrade Server 2008 R2 to Server 2012, failover cluster problems?
I have a 2-node failover cluster for testing some of our Hyper-V automation Powershell scripts. I evicted node 2, so that I could run the upgrade to Server 2012 Datacenter. The upgrade seems to have executed OK. Now when I log into node 2, I can no longer do "ipmo failoverclusters" in powershell. I can also no longer l...
I figured out that if I select the Local Server in the server manager, scroll down to the Features list, right click on FailoverClusters and Edit/Remove, it will then allow me to uncheck it. If I uncheck it and remove it, and then re-add the feature, I get the correct version of FailoverClusters and it seems to be work...
1
0
1,473
2013-05-13T14:59:17.480
database_errors
serverfault.com
764,495
How can I predict systemd's shutdown order?
Is there a way to get [CODE] to tell me the rough order in which it will shutdown services when I cleanly shut the whole system down? Since [CODE] will shut things down in parallel, I appreciate there is no way to know the exact order, but it would still be very helpful to know what constraints [CODE] will impose on th...
Maybe stating the obvious reduces the learning effect, but all I did to get the full list of reverse dependencies for shutdown-target as asked in the original post, was: [CODE] OT: I ran in a problem where the shutdown of a kubernetes system hangs (the machine becomes irresponsive and will not shut down) because the nf...
12
5
15,860
2016-03-18T00:50:48.880
data_quality
serverfault.com
259,633
Windows 2008 file/folder access
We just upgraded our domain to Windows 2008. I was hoping there is a way to give modify rights to all files/folders on the file server to a group. I know that the administrators group (domain admins, etc)has full access everywhere, but i do not want this group to be able to change security settings. Is there any way to...
There's no "shortcut" way to do what you're looking for. You're going to locate all the roots of permission inheritance in your various folder hierarchies and apply the "New Group / Change" permission to those hierarchies. I suppose somebody could write something to seek out all folders where inheritance is blocked and...
0
1
134
2011-04-14T13:11:29.090
infrastructure
serverfault.com
232,817
Should I include myself as an author after modifying 3rd-party code?
It's common practice to make some tweaks or fixes in 3rd-party code (be it a simple gist or an entire library). But it's also common that many of these code have their own licensing rules and eventually a header on every file with copyright informations. After making those modifications what's the correct thing to do n...
After making those modifications what's the correct thing to do next? Keep the licence info untouchable or try to update it including yourself with something like @author or @revision tags? I think you're confusing the software license and any prologue that might be part of the software. The license is where the owners...
17
9
1,609
2014-03-18T17:00:40.497
api_errors
softwareengineering.stackexchange.com
323,026
MariaDB privileges for "SHOW DATABASES" vs "SELECT * FROM information_schema"
I have a user with an access to several databases. In MariaDB 10.6.11 I cannot use the following command to list all accessible databases: [CODE] On the other hand, I can use this: [CODE] On a different server with MariaDB 10.5.18 "SHOW DATABASES" works fine, even I think users on both servers have the same privileges:...
This was caused by the following MariaDB option: https://mariadb.com/kb/en/server-system-variables/#skip_show_database If the server was started with the [CODE] option, you cannot use this statement at all unless you have the [CODE] privilege. So it is not related to the version of MariaDB, but to the different configu...
0
1
788
2023-02-03T20:47:15.643
database_errors
dba.stackexchange.com
61,946
Windows - Map shared folder as drive in non-local computer
is possible to map shared folder from server to clients computer as a drive without making VPN or simmilar complicated technologies, i'm using iis ftp publishing service extension for IIS on server and FtpDrive application on client computers, but it works not well. Thanks a lot. EDIT: I tried open Samba ports on serve...
Your question is confusing. You can always map a drive to a shared folder, as long as you have access to that folder at the time inwhich the mapping is being accessed/established. The VPN should only be necessary when the the shared drive is not on the local network and requires additional steps in-order to bring up th...
0
0
2,604
2009-09-03T12:33:07.987
infrastructure
serverfault.com
950,776
Hyper-V connect to local computer throws an error - virtual machine management service
I am using Windows 10 professional, connected to office domain network. I just enabled Hyper-V program with other related features in Windows Features. Hyper V and related program in Windows feature After reboot computer, I click Connect to Server in Hyper-V Then I got an error message: related to Virtual Machine Manag...
I managed to solve the problem. Main reason behind this issue: Hyper-V Host Compute Service service fails to start with an error message quoted from Event Viewer: The Hyper-V Host Compute Service service failed to start due to the following error: The service did not respond to the start or control request in a timely ...
10
4
51,760
2019-01-25T14:45:44.047
infrastructure
serverfault.com
157,851
Is this normal behavior of the fans in an HP Proliant DL160G5?
We had an HP Proliant DL160G5 racked in a datacenter that after an year of good work started to show instabilities that we couldn't trace down to specific hardware elements. When doing an hardware upgrade we replaced it with other servers and took it in our office, then had HP replace the motherboard and we replaced th...
I would say yes, it's pretty normal - those 1U HP servers make a lotta noise! I have a Proliant DL360 in my server room (not the same as yours, but still 1U) and it is one of the noisiest (if not the noisiest) server in the room. I had reason to turn it off once, and the noise in the room went down a phenomenal amount ...
1
0
2,435
2010-07-06T14:57:41.750
infrastructure
serverfault.com
2,830
How can we alleviate security concerns when adding internet-connected 3rd party Windows CE devices to a network?
My company makes devices that run Windows CE and must connect to our website through a customer's internet connection. We sell these devices to all sorts of customers with a multitude of network configurations and security needs. These devices worry the IT departments of the companies we sell them to, and rightfully so...
If I was the admin in charge of the networks running those devices, I'd be pleased if you provided a separate "update" service I could run that was the sole host that got to talk to your website (making it far easier to control and maintain) - and the devices would then be (preferably remotely by dhcp options) configur...
2
2
326
2009-05-01T21:57:16.077
infrastructure
serverfault.com
257,196
Should a developer refuse to access production server?
There are already questions on SE that ask if a developer should have access to the production server(s). But, given the fact that I already have a root access on the production server, should I say that, as a developer, using that access is beyond my responsibilities? Should I argue that I'm not a sysadmin and I am af...
It depends. Here is the meta principle. If you are in a small company, and there is a problem, and you're refusing to solve it, then your behavior just became a problem. Now the question is what problem you have. Is the problem that production changes need to be made and you're the one available? Is the problem that yo...
7
15
1,613
2014-09-25T05:00:21.883
api_errors
softwareengineering.stackexchange.com