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
321,890
Make MongoDB work for production
I have made a simple test of MongoDB under windows environment. The single collection of objects with ID (int32) and Buffer (byte[4096]) was filling sequentially. After reaching of almost 15G (of 16G total) RAM, environment becames glitching. Some apps were killed, desktop changed its resolution, then it completely han...
Right. Let's take a look at how I'd run a production MongoDB cluster (yes, cluster.. You don't want just one server) 1) Use Linux. Seriously. It's a hell of a lot more predictable for memory management and so on than Windows is. You're also more likely to find people who can help you tune a Mongo server on Linux. 2) Gi...
3
6
1,373
2011-10-16T09:52:13.403
database_errors
serverfault.com
327,971
Azure SQL Database :: SHRINKDATABASE increase the unallocated space
I'm trying to squeeze as much Azure SQL Databases as possible in order to make them fir inside a SQL Elastic Pool. I'm using this query that allows me to compare the unallocated space before and after the operation: [CODE] I noticed that sometimes the unallocated space is actually increasing instead of decreasing: This...
There is no point ot reinvent the wheel. Microsoft propose an out-of-the-box solution for Azure SQL Database: Auto-shrink [CODE] This made the trick. If you then want to rebuild the indexes, once again, there is no point to reinvent the wheel. Microsoft propose Rebuilding SQL Database indexes using Azure Automation
-1
0
55
2023-06-06T20:26:14.863
database_errors
dba.stackexchange.com
1,034,038
SSH Public Key Authentication denied
I am trying to connect to a virtual machine via SSH. I can login to an account with a password. I created another user without a password, generated a ssh key on my host machine (Windows), and placed the public key inside the user/.ssh/authorized_keys, and set the permission to read only, with full ownership of the use...
Found out the problem. On the VM, I created the user, /home/user and stored the public key in ./ssh/authorized_keys. I also made sure I set up the permissions correctly: [CODE] But, I never checked who had these rights, apparently, they were assigned to root. So I did the following: [CODE]
2
0
4,288
2020-09-15T20:50:41.440
api_errors
serverfault.com
153,909
Oracle:How to determine the size of available shared memory of operating system while setting MEMORY_TARGET parameter for oracle instance?
According to the oracle document:"The size of the shared memory should be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each Oracle instance on the computer."Oracle document also suggest that we can use the command [CODE] to get the available shared memory. I got a little confuse of of shared memory w...
You should go for the solution that fulfills your requirements. Both [CODE] and [CODE] are configurable, so first you should to configure them, and after that, you can set [CODE] . The default value (on Oracle Linux 7) of [CODE] is 4 TB, which is irrelevant for most systems. The default size of [CODE] is 50% of the phy...
0
1
909
2016-11-01T16:33:56.910
database_errors
dba.stackexchange.com
1,088,605
kubelet service is not running(fluctuating) in Kubernetes master node
I was trying to create a Kubernetes Cluster using kubeadm. I had spin up an Ubuntu 18.04 server, installed docker (made it sure that docker.service was running), installed kubeadm kubelet and kubectl. The following are the steps that I did: [CODE] Once after I ran sudo kubeadm init --pod-network-cidr=10.244.0.0/16 , I ...
I was able to fix the kubelet.service issue by editing /etc/systemd/system/kubelet.service.d/10-kubeadm.conf . Within the file, I added Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" and commented out Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml" . /etc/systemd/system/kubelet.servic...
0
0
8,145
2021-12-30T20:08:05.360
pipeline_ops
serverfault.com
210,242
MSOLEDBSQL syntax when using OPENROWSET
We have been using this syntax when using OpenRowset to collect data from other SQL Server instances [CODE] Native Client is deprecated and MS advice is to use latest Microsoft® OLE DB Driver 18 for SQL Server® I am struggling to find the correct syntax for my [CODE] query This I how think it is supposed to be now: [CO...
OLEDB connections using the MSOLEDBSQL driver should use this format: [CODE] ConnectionStrings.com is invaluable for obtaining valid connection string details.
2
1
6,197
2018-06-21T12:12:30.960
database_errors
dba.stackexchange.com
407,734
Can I configure iptables to choose a network interface to connect internet depending on destination IP?
Right now, in my ubuntu there are two network cards installed. One connects to a local area network (NIC 1) and the other is connected to internet (NIC2) . We have configured iptables to forward all incoming connections to NIC1 to NIC2. We would like to setup another NIC (say NIC3) which will be connected to the intern...
What you're looking for can be found in the Linux Advanced Routing and Traffic Control document. It's not easy to understand though.
0
0
1,252
2012-07-14T06:07:44.240
infrastructure
serverfault.com
521,103
Configure LDAP for SUDO Support on Ubuntu Server 12.04
I'm running into some issues finishing my LDAP install. I used the following article to try the sudoers schema configured: http://ubuntuforums.org/showthread.php?t=1421998 When I run [CODE] I get the following output: [CODE] Here is my output from syslog: [CODE] For the record I am entering the correct password. When I...
Looks like I miss read a step. These lines need to be removed. structuralObjectClass: olcSchemaConfig entryUUID: 10dae0ea-0760-102d-80d3-f9366b7f7757 creatorsName: cn=config createTimestamp: 20080826021140Z entryCSN: 20080826021140.791425Z#000000#000#000000 modifiersName: cn=config modifyTimestamp: 20080826021140Z
0
0
777
2013-07-05T14:47:14.993
infrastructure
serverfault.com
191,271
Does MariaDB support ST_Distance_Sphere?
Running [CODE] , I'm getting ERROR 1305 (42000): FUNCTION [CODE] does not exist When I run a basic query like [CODE] However, I'm using a pretty new version. [CODE] What's going on here.
10.2+ This issue has been fixed and backported with MDEV-13467 . It's available 10.2.38, 10.3.29, 10.4.19, 10.5.10 Find their support matrix here .
4
5
5,313
2017-11-20T01:09:15.710
database_errors
dba.stackexchange.com
73,370
Time series regression forecast next month from now (random forest,Lasso,Ridge)
I have a dataset about hedge funds. Its include data from 2010 january to 2019 december. This data are monthly financial ratios of hedge funds such as sharpe,alpha,beta,sortino and monthly returns of hedge funds. I normalized the relative returns of each fund. And I want to estimate these monthly returns. Using these r...
You could try to predict difference $dy = Y_{t+1} - Y_{t}$ , not the $Y_{t+1}$ itself. Intuitively, the weather today is good starting prediction for the weather tomorrow. Secondly, with time series, the seasoning is quite important. You usually would like to use models like ARIMA that takes this into account. Lastly, ...
0
0
87
2020-05-01T15:59:01.693
data_quality
datascience.stackexchange.com
62,147
How to choose a model for this cross-validation curve?
I'm using GridSearchCV to tune hyperparameters for a Logistic Regression multiclass model. I read on Kaggle that you should choose the hyperparameter that results in the lowest discrepancy between the CV-score and the training score, but in this case this leads to a very low score. How should I choose the proper C valu...
Choosing the best validation accuracy is the common practice, since validation is unseen data. Sometimes you might have over-fitting to the validation set, mainly if it is too small or no very representative of the data (for example if it has considerably more examples of one class, thus a good model would be a model t...
1
1
214
2019-10-24T01:15:45.243
data_quality
datascience.stackexchange.com
823,469
Katello/Foreman: unable to syncronize products or install software
I have configured [CODE] with [CODE] scenario and previously configured and synced some repositories and content views (for Red Hat 5 server). Suddenly, after running some synchronization tasks, the logs returns: [CODE] I searched on google, community forums and mailing lists with no accurate results, also restarted al...
I have found the root issue of pulp not loading/pinging correctly. I have found that pulp.conf was deleted by foreman in the path /etc/httpd/conf.d/. After adding the content, and also restarting apache httpd, it worked correctly and I can now sync or install any package to the servers. Sharing the content of pulp.conf...
1
1
3,476
2016-12-30T21:22:05.510
infrastructure
serverfault.com
19,488
SQL Server 2005 SP3 Memory Errors when plenty of memory is seemingly available
I have a SQL 2005 SP3 box installed on Windows 2003 R2 SP2. The box has 64GB of Memory with AWE enabled (and /PAE in the boot.ini) as well as lock pages in memory enabled and Max Server Memory set to 45GB. The server also has 32 CPUs. We are seeing errors in the logs as follows: Error: 701, Severity: 17, State: 123. Th...
The AWE mechanism in 32 bit process can only be used for data pages (buffer pool). It cannot be used for procedure cache, for query memory grants, for execution stacks, for access token cache, for CLR etc etc etc, basically all the other allocations other than data pages. All these allocations (including code pages) ha...
4
6
1,739
2012-06-19T11:08:15.490
pipeline_ops
dba.stackexchange.com
664,960
AWS public subnet autoscaling group with outbound NAT
I have seen this question : Static IP address for outgoing traffic from AWS autoscaling group but it doesnt seem to fit exactly what im trying to do. Here's the scenario: I have a autoscaling group of web servers that receive traffic from an ELB. This is working fine for incoming web traffic. The issue is that i have a...
The NAT instance is the correct solution to the situation you are in, but I suspect you have made a common provisioning error -- you have your web server instances on the same subnet as your ELB. It's intuitive to do it that way, but it's not correct, unless your web servers also have their own public IP addresses. I a...
2
4
2,480
2015-02-04T14:53:45.047
infrastructure
serverfault.com
98,854
Alternatives to Java Applet for interactive Websites
In short I am searching for an alternative to Java applets for making some interactive parts like minigames etc. on my website Facts: I´m developing an e-learning website for children. This site has following main functions: practice part where children can do grammar test and receive points for good answers. tamagotch...
I'm pretty sure not many users disable JavaScript. Instead, Flash is the one which doesn't even come built-in with browsers and requires a plugin. That's the new way of making interactive websites. You could look into HTML5, and using the canvas object to create the animations. For the animation, I guess you could use ...
0
8
9,388
2011-08-05T12:04:05.950
api_errors
softwareengineering.stackexchange.com
168,302
Installed PHP module and restarted nginx but but PHP configuration isn't updating?
Okay, I'm on CentOS 5.3 and I'm running an nginx/php/mysql server stack with FastCGI. One of my Twitter apps requires PHP to connect to the Twitter API, which uses OAuth. So I installed the OAuth module with PECL and confirmed that oauth.so was compiled in /usr/lib/php/modules and extension=oauth.so was added in PHP.in...
Php rereads its configuration on every request. You can check it by changing any var in php .ini ( like max mem ) and then see update in phpinfo. can use your module in list of lodaded .so files in phpinfo?
0
0
887
2010-08-08T20:39:01.457
database_errors
serverfault.com
383,059
ssh-add under cygwin
I'm having trouble with ssh-agent under cygwin. The crazy part is that it was working, but stopped after a reboot one day. Here is an example: [CODE] I found this user who is having the exact same problem as me Issues with ssh-add Unfortunately I don't have enough rep to comment there. I tried following his instruction...
OK, that other Serverfault.com answer has a typo. The right thing you want to run is: [CODE] [CODE] spits out a bunch of shell statements to set environmental variables. The [CODE] runs them in the current shell. You can invoke [CODE] that way, or run [CODE] and then copy-paste its output into your current shell for th...
5
8
8,769
2012-04-25T16:19:13.840
infrastructure
serverfault.com
236,809
Cheap virtualization: raid vs no raid for performance
I would like to know how these 2 scenarios would impact each virtual machine on the performance side. I understand the risk of loosing a disk, I can deal with a downtime of a couple of hours. I need to have 6 Hyper-V VM on one machine. 2 moderate web servers, 2 moderate database servers, 1 backup server, 1 test server ...
RAID 10 is extremely high performance with large numbers of drives, so I would recommend that path. You're more likely to run into a controller bandwidth bottleneck before you hit the individual drives' performance peak. In addition, the configuration overhead of dealing with multiple volumes will take a lot of time an...
0
2
242
2011-02-17T16:07:07.020
database_errors
serverfault.com
94,089
Apache config not updating on restart
I'm having a bit of trouble with Apache configuration this morning. I updated some config on a server on Friday, but when I restarted the server, my new changes weren't being picked up. This morning, the config has suddenly started working, but any further changes I make aren't being applied on graceful restart (such a...
graceful restart (e.g. apachectl graceful) only fully restarts Apache when all threads are done working, this stops existing connections being dropped. If you have existing connections (for whatever reason, big file downloads in progress etc), then it'll wait until these are done before restarting. From man apachectl: ...
3
3
2,739
2009-12-14T09:36:11.040
api_errors
serverfault.com
839,879
I have a *.domain.com cert and would like to use it as my root CA cert
I have a *.domain.com cert and would like to use it as my root CA cert. Just for clarification. I just brought a wildcard certificate. I was wondering if I could pull it into my Domain Controller CA and have it issue all the certificate across my domain? Computer or Web or Server certificates.
This is not posible, you can only use this one certificate for all your services on third level domain under domain.com. Wildcard certificate don't give you ability generate subsequent certificates. If you want generate your own certificates, need own CA. This CA must be installed on all host, which need trust issued c...
0
5
158
2017-03-22T11:32:42.667
infrastructure
serverfault.com
1,017,251
gcloud-console "You do not have permission to see this card" => cannot open SSH session?
New to gcloud, need to admin a compute engine. I have the following roles: Compute Admin Service Account Admin Organization Admin Yet when I view the dashboard, the Compute Engine card says "You do not have permission to see this card" It was my understanding that "Compute Admin" gave me complete access to the resource...
The Project Dashboard belongs to the whole project, therefore you need at least a Project Viewer primitive role to view its contents (or Project Editor or Project Admin to edit): Cloud IAM > Doc > Understanding roles > Primitive roles Compute Engine > Doc > Access control overview > Granting users SSH access to VM inst...
0
0
715
2020-05-15T04:45:21.670
bi_errors
serverfault.com
1,029,456
OpenVPN: Client cannot ping 4.2.2.2 when connected
My client cannot surf the internet when connected to the vpn. I have [CODE] and [CODE] set. Sserver and client connect just fine and error free and can ping each other across the VPN, but that's as far as it goes. root@vortex:/home# cat /etc/openvpn/server.conf [CODE] root@vortex:/home# cat /etc/iptables/rules.v4 [CODE...
You're missing a NAT rule on the VPN server to translate IPv4 traffic. Maybe it was deleted, maybe you never had one. It's not possible for me to say. But you should start getting IPv4 traffic as soon as you add such a rule to the nat table. Something like: [CODE] should get you started. WARNING: Your VPN server isn't ...
0
0
216
2020-08-10T00:21:31.823
infrastructure
serverfault.com
247,309
Referencing official documentation in source-code documentation
What are your preferences for referencing official documentation (like a white paper) for an algorithm from comments in the code that implements it? I'm trying to decide between two methods, as illustrated by the examples below, but am open to other suggestions. RFC 1321 , for instance, describes the MD5 hash algorithm...
It depends on type of documentation. If it is a publicly facing function you probably should provide all information necessary to use API. For example if I want to use SMTP library to send an email I don't want to read RFC 5321, RFC 2045, RFC 2046, RFC 2047, RFC 4288, RFC 4289, RFC 2049 and others as most parts are onl...
1
1
104
2014-07-08T23:18:50.743
api_errors
softwareengineering.stackexchange.com
1,082,913
Sending email with ssmtp From value issue
I am trying to send an email from my cron script using ssmtp, the email is working fine but the "From" value is always showing [CODE] which I don't want to use because I need to use something like [CODE] , ssmtp.conf [CODE] revaliases [CODE]
Not sure how to change the settings in the config, but the below worked for me. 1). Uncomment ssmtp.conf: [CODE] and in the crontab itself, specify 'from' address (not the below will send an email every 5 minutes ;): [CODE]
1
0
388
2021-11-08T11:43:26.683
infrastructure
serverfault.com
953,422
Considerations when backing up multiple data sources to the same machine
I'm currently in the process of "designing" my personal (Linux-based) IT, specifically backups. I've got a few servers which generate data worth backing up (databases, files, etc.) and would like to put these in a central backup location (which is again backed up somewhere else). Currently I'm having thoughts on securi...
Solve each of the realistic threats with a tool that is good at the one thing it does. Owned backup target compromises all source backups encrypt & sign incremental backups (e.g duplicity + gnupg2 ) backup target should never store any decryption keys for the data it receives Whoever owns one source might want to compr...
1
1
104
2019-02-11T20:39:55.850
database_errors
serverfault.com
1,012,645
SQL Server 2008 R2 SP1 >> SP3 Upgrade issue
When I use [CODE] then I get: Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (Intel X86) Jun 17 2011 00:57:23 Copyright (c) Microsoft Corporation Express Edition with Advanced Services on Windows NT 6.1 (Build 7601: Service Pack 1) (WOW64) But in Control Panel I see that yesterday I have installed 10.53.6000.34 Yest...
I'm not using SQL 2K8 long time, but you could compare the @@version output with this simple query: SELECT SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel, SERVERPROPERTY('Edition') AS Edition The product level should be SP3.
0
0
435
2020-04-16T20:44:21.377
database_errors
serverfault.com
1,040,478
Routing to client and server from single Nginx server config
I'm trying to use a single Nginx server config to route requests either to the client or a micro service behind it: [CODE] The idea is that the client would call [CODE] to make calls to the micro service. These calls would then be routed by nginx to the service. With the given setup I see the following result: Service ...
I found a good solution to my problem. Instead of using [CODE] for my client, I know use [CODE] for my client and just redirect the service requests to [CODE] . The trailing slash after the server url in the [CODE] means that the [CODE] path is not duplicated: [CODE]
1
0
1,221
2020-10-29T07:47:05.390
infrastructure
serverfault.com
415,426
designing events for an event sourcing based application
In an application to handle employee leaves, I decided to try CQRS & event sourcing and came up with the following flow of events. app events leave-application-received leave-application-validation-failed leave-application-accepted leave-applied manager-notified leave-approved leave-rejected user-notified calendar-upda...
High level: when we are talking about event sourcing, what we are really talking about is describing the state of your domain model using non-destructive edits. Event sourcing doesn't change the information you track with the domain model, it only changes the data structures that we use to keep track of that informatio...
1
1
134
2020-09-01T03:23:52.683
data_quality
softwareengineering.stackexchange.com
65,865
NLP: How to group sub-field into fields?
Suppose I have a list of strings that captures a sub-field of academic research and would like to group them as higher-level fields. For example, [CODE] My understanding is that standard NLP techniques may not fit here, because the relationship between sub-fields and fields are linked by its meanings but not word-frequ...
You mentioned: My understanding is that standard NLP techniques may not fit here, because the relationship between sub-fields and fields are linked by its meanings but not word-frequency or word-embedding etc. However, your understanding is not totally correct, because word embeddings do convey meaning in them and coul...
2
1
73
2020-01-04T17:19:57.620
data_quality
datascience.stackexchange.com
810,227
Postgresql HA PITR
I've had success in the past with MySQL's delayed replication feature which allows you to stop replication, inspect the bin log to find a bad query and [CODE] just before said query and skip over it. Since Postgresql introduced the [CODE] setting I was hoping to achieve the same thing in Postgres, however, I keep readi...
From asking some more experienced PostgreSQL people than myself and doing further reading it seems you can't actually skip over queries like you can in MySQL. When you resume after recovering a new "timeline" is created, "Back to the Future" style. Maybe PostgresSQL will come up with a save way of achieving this in the...
0
0
122
2016-10-20T12:44:44.313
database_errors
serverfault.com
536,009
Error while using oraenv
I'm using Oracle RAC in RH6, and when i try to use the 'oraenv' utility to set the variables with the user oracle, i get an error: [CODE] Using it in the same way with the root user works normally. Also, without the "dot space" preceding 'oraenv', also works. Unfortunally, using without the 'dot space' will not have th...
I was facing the same problem and discovered. It seems that csh doesn't have permissions on running scripts with dot space [CODE] If you don't have root access, simply type: [CODE] And you will be able to . oraenv
0
1
3,157
2013-09-03T18:53:38.603
database_errors
serverfault.com
23,753
Oracle integer to number conversion
According to the Oracle documentation , creating a table with a column of ANSI type [CODE] , Oracle will convert it to [CODE] . According to the same document, [CODE] is supposed to be a [CODE] with a precision of 38 and a scale of 0. But in practice, I am seeing a [CODE] with data_precision set to [CODE] and a data_le...
A [CODE] of 22 is just the largest number of bytes it can take to store the largest possible number (Oracle uses 2 digits per byte). A [CODE] [CODE] implies the maximum of 38. You can verify this with [CODE] : [CODE] (The "*" in the above output denotes the maximum precision). [CODE] is not a data type that can be used...
5
8
4,761
2012-09-05T20:31:03.823
database_errors
dba.stackexchange.com
423,673
Theoretical situation regarding lost ssh keys
This has not happened to me, yet. But let's assume the following scenario: I copy my public key to the server, and then disable password authentication for ssh. Then, for some unknown reason, the public key on the server gets corrupted, and I can no longer login because I have turned off password authentication. What a...
Unless you have either console access or a another user account that can still log in: none.
5
9
204
2012-09-02T15:29:48.343
api_errors
serverfault.com
762,607
Migration between Oracle and Azure SQL Data warehouse using SSMA
I am facing the below error while syncing table from Oracle to an Azure SQL data warehouse using SSMA tool (a tool used to migrate data from Oracle to Azure SQL). I am able to connect to the database and convert the schema from Oracle database but, am getting an error while syncing it with the Azure SQL data warehouse....
I don't believe SSMA supports Azure SQL Data Warehouse. Can you provide a link to the download so everyone is clear which tool you are using? What about an SSMA migration to a SQL Server 2014 Developer Edition instance, followed by using the Azure SQL Data Warehouse Migration Utility to migrate SQL to Azure SQL DW? The...
-1
1
771
2016-03-09T11:10:39.247
warehouse_errors
serverfault.com
47,805
Unable to record using http recording controller with a proxy
I have been trying to record my web application actions using the http recording controller in jmeter. I have added a recording controller, a test script recorder with proxy settings set. Certificate has been imported and installed. Also setup the proxy in the browser preferences for Chrome. But when I try to start and...
It's impossible to say what's wrong without seeing: Your HTTP(S) Test Script Recorder configuration along with the screenshot of the test plan Your operating system proxy configuration ( Chrome browser derives OS proxy setup ) JMeter.log file So the only piece of advice I can give you is to use Recording Template featu...
2
0
2,380
2021-07-15T13:05:54.470
data_quality
sqa.stackexchange.com
59,680
Can a Couchbase application work with no network connection (like CouchDB)?
I'm building an application where users running android tablets will have to be able to write to a database (running on their local device) with NO network connection and sync using peer-to-peer replication (through a USB connection or possibly bluetooth). I'm working in West Africa, where internet is basically nonexis...
PM from Couchbase here. We've actually been working on an embedded NoSQL database for mobile dubbed "Couchbase Lite" (in parallel with SQL and SQLite) that plays exactly into the scenario you are describing. The idea is to provide your application with a JSON-based database that can: Opportunistically sync to a backend...
3
4
752
2014-02-26T11:09:14.830
database_errors
dba.stackexchange.com
933,319
How to let Postfix relay mails at least once
Setup: Internet <> Firewall Firewall <> DMZ (192.168.200.0/24) Firewall <> Green (192.168.100.0/24) 192.168.200.11: Proxmox-Mail-Gateway 192.168.200.12: Postfix I have set up a Mail-Server-VM (192.168.200.12) with a Mail-Gateway (192.168.200.11). This is working perfectly for Mails coming from clients to other server (...
I think the simple solution is to use your Mail Gateway as the outgoing server for your inside clients. Mail Gateway will then do its thing and pass them on to Postfix, just like it does for mail coming from external. It's not really stated that way in your question but from what I understand and deduce, right now your...
1
0
438
2018-09-30T12:04:56.123
infrastructure
serverfault.com
167,867
Tips about how to spread Object Oriented practices
I work for a medium company that has around 250 developers. Unfortunately, lots of them are stuck in a procedural way of thinking and some teams constantly deliver big Transactional Script applications, when in fact the application contains rich logic. They also fail to manage the design dependencies, and end up with s...
Don't try to push OOP, it will only make things worse. Not because OOP is a bad idea in general: it's not. But because it seems that whoever is responsible for that hairball code not only lacks the tools to avoid these problems, but also the experience and, more importantly, the motivation. People who have a desire to ...
14
19
705
2012-10-07T11:59:36.190
data_quality
softwareengineering.stackexchange.com
753,100
RV325 to RV320 site to site ipsec tunnel
Gateway to gateway tunnel from RV325 to RV320 (either direction) won't connect. I can't find any sort of error log. Both are WAN1 (only one connected) and IKE PSK. Both local and remote groups are IP only. RV325 local == RV320 remote for IP and subnet. RV325 remote == RV320 local as well. IPSec settings are identical. ...
The simplest way (yet secure) to implement a IPSec VPN is by using IKEv1 in Main Mode (you can see the scenarios to use aggressive mode). So, assuming you are trying to use IKEv1 Main Mode: First of all, IKEv1 phase 1 must be negotiated. IPSec only will be negoatiated after phase 1 is OK. (Phase 1 is also called ISAKMP...
1
1
3,219
2016-02-01T03:36:11.017
infrastructure
serverfault.com
199,731
how to install a second server of mariadb
I have a server where cpanel is installed (it includes mysql 5, php). What I need is to install a second database server mariadb 10.1.20. I tried through: [CODE] But it shows me conflicts like [CODE] What can I do for this case?
You will probably run into more conflicts than just what is listed in the question, e.g. TCP port, datadir, /etc/my.cnf, as well as maybe pid and socket. I think these configuration issues can be overcome by using different settings (MariaDB-specific sections in the .cnf files). I'm not sure whether installing MariaDB ...
0
1
1,241
2018-03-08T16:07:26.710
database_errors
dba.stackexchange.com
694,314
MySQL process in Sleep command and page is loading after 1 minute
I'm using VestCP which installed for me Apache2.2, PHP 5.5.25, MySQL Percona and Nginx. I have an app built in ZF1 which works fine on all my development computers but on this server the application has a few pages that load in ~1 minute. I took the queries and run them in PhpMyAdmin, the query is finished in 0.7s so t...
The issue was caused by the IPV6, I disabled ipv6 by adding [CODE] to /etc/sysctl.conf and there were no more delays.
0
0
465
2015-05-25T18:13:36.523
database_errors
serverfault.com
1,003,031
Istio components are not getting installed on a private GKE cluster
I'm trying to install Istio on a private GKE cluster. I have downloaded the version 1.4.3 of Istio and then applied the default profile. But not all the components are getting installed from the manifest. Below are the error logs. [CODE] Also, the ingress gateway is not getting created from any of the sample applicatio...
Try to create a Cloud NAT router on the same network you are creating the cluster and recreate the cluster. After this, try to install Istio again. Is possible that Istio is not able to get the images for some components because the cluster is not able to access internet. Cloud NAT on GCP
0
0
232
2020-02-14T07:23:18.367
pipeline_ops
serverfault.com
238,239
Inline function Plan Properties in SQL Server 2008
Currently I use the below two queries to get some properties from the execution plan in stored procedures, the problem arises when I try to run it in a SQL Server 2008 version. Do you know if there is something similar to get these atributes for a SQL inline table-valued function in SQL Server 2008? First query [CODE] ...
I converted the IIF to CASE statements and cleaned it up a bit. Combining them into one query, I came up with this: [CODE] IIF statements started in SQL Server 2012 ( https://learn.microsoft.com/en-us/sql/t-sql/functions/logical-functions-iif-transact-sql?view=sql-server-2017 ) After converting those, everything else w...
1
2
110
2019-05-15T15:51:33.100
database_errors
dba.stackexchange.com
153,766
SQL Server replication with subscriber doesn't know about the publisher
I have a case where many SQL Server instances need to be merged and centralized in one master database. This needs to be near real-time solution. After looking around in Google, I've found that transactional replication can do the trick. The problem is that I have (n) publisher databases, and they don't even have stati...
A VPN connection can be used to connect to each other. But moving a huge data over Internet is done using DHCP connection, And may be slower depending on your internet connection.
1
1
131
2016-10-31T10:58:40.330
database_errors
dba.stackexchange.com
589,672
fail2ban regex working but no action being taken
I have the following snippet of [CODE] configuration on Ubuntu 13.10 server: [CODE] I know the regex is good, because if I run the test command on my access.log: [CODE] I get a SUCCESS result with multiple hits, and in my log I see entries like [CODE] Secondly I know email is configured correctly, as each time I [CODE]...
I had a similar problem. The sollution appeard to be simple - in jail.conf file I had two similar jails - "Apache" and "Apache Multiport" enabled. Both jails were using same filter and same log file as input. After commenting out jail "Apache Multiport" fail2ban started matching regex in log file correctly. PS. I am no...
3
2
4,509
2014-04-17T09:18:39.977
infrastructure
serverfault.com
237,513
What, in reference to DDD, is a bounded context?
When working through the book "Implementing Domain Driven Design" by Vaughn Vernon, I have been unable to gain a good grasp on what a bounded context actually is. The book defines a bounded context as "a conceptual boundary where a domain model is applicable. It provides Ubiquitous Language that is spoken by the team a...
Bounded Contexts and Subdomains exist at different levels. A Subdomain is a portion of the problem space, it's a natural partitioning of the system, often reflecting the structure of the organisation. So logistics and operations might be separated from invoicing & billing . Eric differentiates core , supporting and gen...
43
41
20,260
2014-04-30T16:53:22.257
api_errors
softwareengineering.stackexchange.com
68,588
What is the best way to encode an arbitrary collection of strings into int categorical variables?
I have a bunch of categorical labels which I want to transform into int categorical features for an ML algorithm. The problem is I don't have a prior list of the categories, so that I can't just define a dictionary or mapping function before hand. Say for example that I am using food labels - my current data has the fo...
Let's see. You want to be able to work with unspecified number of categories. There are multiple ways to work with this. Create a special category "other" and put all categories which are very rare into this category during processing. When you encounter a new category, put it into this "other" category. And you can us...
0
1
246
2020-02-24T02:47:02.313
data_quality
datascience.stackexchange.com
898,804
How to configure correctly DNS for 2 servers: one for web, another one for mails?
For email server I use [CODE] . I have email server with the next settings: [CODE] so FQDN is [CODE] . Here I found examples that I used, but with these examples my server could send emails, but could not receive: [CODE] Then I changed: [CODE] to [CODE] and mail server started to receive emails. I have two blocks of qu...
I've translated your DNS records into bind format. Unless you are changing an entry, you shouldn't need to specify the TTL for an entry. I've converted the SPF records to the simplest form. The [CODE] rule for the [CODE] record is for for SPF [CODE] checks. The rule for [CODE] indicates that no email should be sent fro...
0
1
193
2018-02-25T18:57:44.903
infrastructure
serverfault.com
386,911
show my public ssh keys, a good idea?
If I have many public ssh keys. Is a good idea show all of my public keys in web page? maybe a gist or similar . EDIT my problem is : when I create a new server, I have to manually copy the keys.
Sure, share away. There's a reason they are called public keys.
5
8
268
2012-05-08T01:50:19.613
infrastructure
serverfault.com
394,388
Can not create a linked server between SQL Server 2008 on a desktop and my laptop
I'm having an issue getting the linked server to connect between a desktop and my laptop. Both have SQL server 2008 and the link is coming from the desktop to my laptop. Also, both computers have Windows 7. I don't have any issues creating the linked server from my laptop to the desktop. The error I'm getting is "Login...
I figured out what the issue was. The instance of SQL Server 2008 on my laptop had the "Server authentication" set to "Windows Authentication mode" instead of "SQL Server and Windows Authentication mode." Once I switch my laptop to "SQL Server and Windows Authentication mode" the linked server worked just fine.
0
0
145
2012-05-31T15:14:54.827
database_errors
serverfault.com
735,499
hp proliant not recognizing emc sas drives
We have lots of 2.5'' SAS drives from a decomissioned EMC AX4 array (Seagate Savvio 10k.3), and would like to install on HP Proliant 360pG7. Proliant does not detect those drives, is there something we are missing or is this hopeless? Let me clarify: we don't want an HP supported solution, we would like to know if it i...
You can make this work with some effort. Normally, I'd be all like, " Use HP drives ", but the fact that you're using a G7 ProLiant means that many of the firmware restrictions don't apply from either side. Gen8 ProLiant servers are a totally different story. So, in this case, it's just a formatting issue. The AX4 disk...
1
8
6,333
2015-11-11T10:00:44.227
infrastructure
serverfault.com
1,025,836
Remove AD Connect (no connection avaiable to on prem)
Whilst on a Windows Server 2016 course we created domain and setup AD Connect inside a lab. Unfortunately, the lab has since been wiped and now I'm getting emails daily regarding ad sync issues. Is there a way for me to remove AD Connect without having access to the "on prem" DC? I wouldn't mind keeping my Azure subscr...
Looks like after a while I stopped receiving these emails from Microsoft.
0
0
71
2020-07-19T15:37:16.113
infrastructure
serverfault.com
59,061
Do shorter names exist for "one-to-many", "one-to-one", "many-to-many" relationships?
In terms of generic variable naming or even everyday geek discussion, do shorter and "cleaner" terms exist for one-to-one, one-to-many, and many-to-many relationships. For example, in discussion of religion, one can say "relating to many denominations of Christianity", but it's much shorter to say, "ecumenical". In com...
As far as verbal communication, there are none that I'm aware of. There are symbols for writing but those wouldn't be of any help for verbal communication.
2
2
104
2014-02-17T22:00:58.167
warehouse_errors
dba.stackexchange.com
337,977
How to drop a table that was replicated in the past?
An database being used at my job has several tables that appear to be remnants of an previous replication setup. These tables are no longer needed not having been used for at least 10 years so I am trying to delete them. However, it won't let me because it's still indicating they are being used for replication. The err...
You can run the following script to cleanup any orphan replication objects: [CODE]
0
0
47
2024-03-23T17:21:50.333
database_errors
dba.stackexchange.com
35,763
Find a string in a SQL Server database
I have an application which has logged an error like [CODE] The application store all its information in a SQL Server database which contains 100+ tables. For sure somewhere there must be a table which contains all the objects of this type and I'm sure [CODE] is the key column there. How can I find this object? Do I ha...
If I had to guess it's the object id for sys.objects. So [CODE] Specifically look at the name column (object name) and the type column (type of the object, for example U for user table, P for stored procedure etc).
2
5
134
2013-03-01T21:35:12.000
database_errors
dba.stackexchange.com
323,143
Postgresql: Trigger is not working at times
I have a PostgreSQL trigger that is not firing sometimes, even though the status is always shown as "enabled". My trigger code is as follows: [CODE] Is there any specific reason for this behaviour? Does my code show any signs of known issues which would result in triggers not firing? I am getting the audit columns as e...
The NULL values for [CODE] could be explained if the operation was an [CODE] , because your trigger doesn't modify [CODE] in that case. If those were [CODE] s, then the only possible explanations would be The trigger was not defined or disabled at the time the statements happened. To preempt the follow-up question: no,...
0
0
390
2023-02-07T08:07:43.387
database_errors
dba.stackexchange.com
711,472
graylog-server not binding on port 12900
I have a situation here where graylog-server does not bind to port 12900 no matter what I do. I have used github.com/graylog2/graylog-ansible-role to install the rpms for graylog-server-1.1.6-1.noarch, elasticsearch-1.6.2-1.noarch, mongodb-org-server-2.6.10-1.x86_64, nginx-1.8.0-1.el7.ngx.x86_64 on two CentOS 7 VMs. gr...
I traced this back to the elasticsearch_discovery_zen_ping_unicast_hosts value in /etc/graylog/server/server.conf. This is a Java property file so values need to be formatted as such: [CODE] Avoid YAML formats like this. The Graylog code, as in 1.1.6, does not flag improperly formatted values. [CODE]
1
1
3,847
2015-08-07T03:24:19.110
database_errors
serverfault.com
101,896
MySQL database is going down once or twice a week, how do I diagnose?
I have a linode.com account running Ubuntu 12.04 LTS. On my server I have two instances of wordpress running with light traffic (100 to 400 users per day each) and an instance of Sendy (which is almost never used). Once or twice a week, at random times, MySQL crashes and I get an error like database connection failed w...
If your traffic is very light, you could enable the general log which logs everything and use that to debug. WARNING this can adversely affect performance - test first at an off-peak time. Following your comment on my comment, please find below what I have in my own my.cnf. As I said, be aware that this is a dev machin...
0
2
489
2015-05-19T13:15:40.693
database_errors
dba.stackexchange.com
276,746
Random Lag in Apache before serving files
I've been trying to troubleshoot some random lag that happens in less than 3% of requests I'm sending to my server. I wrote a testing script that uses PHP's file_get_contents on a seperate server and uses timestamps all over the place to time how long things take. I've tested both static HTML and PHP files on the servi...
In addition to your test script try also running a benchmark application like ApacheBench (ab) or Siege. Also run this and your test script on the local server itself. If it is a router/network issue your tests on the local server should show no issue. You can play with the concurrency request of ab/siege to see if the...
1
0
1,143
2011-06-03T15:20:28.463
infrastructure
serverfault.com
183,583
how to drop job with lowercase name ORACLE (=> ORA-27475 )
How can I drop a job with lowercase name in Oracle? It gives me an error ORA-27475 "JOB_NAME" must be a job [CODE] The job exists for sure .. do you know how to circumvent this issue? Thx
When you need to work with case-sensitive identifiers, you need to put them between double quotation marks, otherwise the database handles them as case-insensitive and automatically converts to uppercase. [CODE] This fails: [CODE] But this works: [CODE]
0
1
3,268
2017-08-16T02:20:16.743
database_errors
dba.stackexchange.com
310,852
What does the Key reference in MySQL sdi_delete failed message?
I am trying to run this query on a MySQL database: [CODE] The console tells me: Failed to delete sdi for database_name.table_name in database_name/table_name due to missing record. The MySQL [CODE] file tells me: [InnoDB] sdi_delete failed: Record Doesn't exist: tablespace_id: 111111 Key: 1 222222 Note that the ID of 1...
The SDI key is not referring to anything in your table; it's the key of the Serialized Dictionary Information record for the table itself. SDI is new for MySQL 8, so if your table(space) was created by an earlier version, the record would not exist (and would probably be created after a successful DDL statement against...
0
1
446
2022-04-12T15:53:41.207
database_errors
dba.stackexchange.com
306,804
I changed permission of SQL Server Reporting Services through SQL Server Management Studio
Now I can't access Reporting Services through SSMS. I can't even connect to Reporting Services now.
First of all, see if the SSRS service is even running. But if it's mainly a security thing, run a browser on the server as an administrator, and give your regular user some level of access again.
0
0
98
2022-01-24T06:15:10.413
database_errors
dba.stackexchange.com
444,062
Unsupported 3TB drives - should we expect any issues?
We recently purchased a number of 3TB drives, only to realize later it was for a Dell server with a PERC 6i, and that >2TB drives are not supported. Based on the amount we paid though, the restocking fee along with the cost of the 2TB drives is about the same. All the questions here and on Google address that the PERC ...
In my experience, it's like putting more than 4 GB or RAM into a 32 bit OS, in that the additional space is simply not usable. There is one major difference though, in that if you have support through Dell, and you use unsupported hardware (like a 3 TB drive), you will be invalidating your support, and may very well be...
2
5
5,942
2012-10-31T15:25:34.500
data_quality
serverfault.com
27,141
Execute SoapUI project with Maven and Jenkins
I am new to Maven and Jenkins. I have automated my web service project with SoapUI (the free version). I need to include my project with DEV builds for continuous integration build. I searched in Google and seeing a lot in Maven ( [CODE] ) and Jenkins integration. Could you please provide me how to start? Really apprec...
This is my favorite getting started guide for maven and Jenkins, it is with selenium, but should also work with soapui java code. http://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html
0
1
3,512
2017-05-08T18:01:16.337
pipeline_ops
sqa.stackexchange.com
10,197
Running Automation on Google Cloud Virtual Instances using Ansible
I'm trying to automate google cloud virtual instances remotely only using external ip addresses of virtual machines. I can ssh into the virtual machines using command line with user name [CODE] . But If I use any ansible commands like this: [CODE] and it results in this following error: [CODE] I've used some parameters...
I solved the problem by adding [CODE] and [CODE] at the hosts file. This post contain the solution. https://stackoverflow.com/questions/37213551/ansible-ssh-connection-fail?rq=1
1
0
67
2019-12-22T09:48:09.143
api_errors
devops.stackexchange.com
230,871
ORA-14224 Deferred Segment Creation is not supported for this schema
I'm trying to use deferred segment creation and not having any success. My deferred_segment_creation parameter is set to TRUE, but new tables do not defer. I've also tried explicitly stating SEGMENT CREATION DEFERRED in my create table statement but receiving the following error: [CODE] Can anyone provide some guidance...
Sure, do not use SYS for such operations. [CODE] Restrictions on Deferred Segment Creation This clause is subject to the following restrictions: You cannot defer segment creation for the following types of tables: clustered tables, global temporary tables, session-specific temporary tables, internal tables, external ta...
0
3
1,059
2019-02-27T14:58:15.443
warehouse_errors
dba.stackexchange.com
271,349
Database software solution
Our company has user data (name, email, phone number, systems of access, AD username) in a large Excel workbook. The Excel workbook is becoming very slow because of the 1000s of entries in it, and we're looking for an alternative solution. I was think Microsoft Access because of the ease of use and ability to quickly m...
SQL Server express is a good choice. You can also create a very low cost (a few bucks a month) database only on Azure. In that scenario there would be no maintenance. I would argue SQL is what you are dealing with when working on data and Excel can easily connect to a table. This may be your best solution.
1
4
79
2020-07-21T13:53:01.120
warehouse_errors
dba.stackexchange.com
507,823
Apache restrict domain
I would like to configure Apache (2.2)to restrict what domains users can access e.g. if apache FQDN is myapache.myfunnydomain.com then apache will only allow requests to resources in .myfunnydomain.com (or whatever domain I configure as legal) and refuse all other requests (redirect to error page) Use case is: User att...
Create vhost.. The order of vhost matters.. the first vhost is served if none of the vhost matches.. take a look at http://httpd.apache.org/docs/2.2/vhosts/name-based.html create something like [CODE] Let the first vhost be an catch-all vhost..(redirecting to an error page if it was accessed regardless of the request) ...
1
0
1,808
2013-05-14T23:04:48.490
api_errors
serverfault.com
384,027
Cannot install anything because of dependencies. (ubuntu)
Hey so my web server on my vpn was not sending out any emails via php and so I tried installing quite a few packages and they all started giving me this error: [CODE] Is there anything I can do to fix this? EDIT: When I try and install the latest libc using [CODE] It just tells me it cannot find it [CODE]
Ufff when a Debian/Ubuntu get messy with the packages is not a good thing :S The first I would do is make a backup, just ins case... Then you can try the apt-get -f install but I guess it will not work... Well is a little bit drastic solution but use to work and it's easy ;) You can remove libc-dev and libc-bin. You ca...
0
0
342
2012-04-28T06:11:19.167
infrastructure
serverfault.com
366,710
2 Trusted Domains One Exchange Server
As a quick followup to a prior question - I now have two standalone domains in a two way trust relationship - but not Transitive. I am able to add users from either domain to shares on the other. Sweet. What I would now like to do, the final thing, is to allow users from Domain B to use Exchange on Domain A using login...
Solved on my own, but forgot to come back here. Eventually using the full Domain B credentials worked on the users PC to connect back to Exchange. Not sure if it was a rebbot or just giving in 10 minutes that fixed the issue.
0
2
3,987
2012-03-06T04:48:49.417
infrastructure
serverfault.com
194,629
File creation dates of archived WAL files not in line with archive_timeout in PostgreSQL 9.6
I have configured [CODE] (i.e. 5 seconds) for a PostgreSQL 9.6 database in order to conduct tests around point-in-time recovery. My [CODE] invokes [CODE] into a local archive directory. If I check the file modification dates in that local archive directory I see that WAL files are typically created in there only approx...
The documentation has an answer to this: When this parameter is greater than zero, the server will switch to a new segment file whenever this many seconds have elapsed since the last segment file switch, and there has been any database activity, including a single checkpoint (checkpoints are skipped if there is no data...
1
1
286
2018-01-04T15:21:13.503
hadoop_errors
dba.stackexchange.com
729,203
Looking for Failover Cluster for Scientific Linux and nginx
here is what I'm trying: two instances of SL7.1 with nginx as reverseproxy no shared filesystem shared resources: virtual IP running nginx service I already tried keepalived and corosync + pacemaker. keepalived had problems with vrrp-scripts: There was a bug that the script didnt check, if the service nginx is running....
Considering Red Hat has a guide for EL7 that walks you through most of this using Corosync and Pacemaker, your problem (fencing) is political and not technical... There may be another fencing method that could be used here. But that's probably the best option to pursue.
0
2
92
2015-10-15T14:43:01.653
database_errors
serverfault.com
1,045,016
Error while installing postfix on CentOS 6
I want to install postfix on CentOS 6 but I get the following error : [CODE] Can anyone tell me how to fix this ? Does it have anything to do with people saying CentOS 6 is dead ? Is there any fix ?
CentOS 6 went completely end of life on November 30 . Therefore, you won't be able to patch, or install any new software. The only exception to this would be if you were to convert your system to RHEL 6, and purchase Red Hat Extended Life Cycle Support . I wouldn't even recommend that, however. You should upgrade to Ce...
1
4
6,642
2020-12-04T18:55:11.587
infrastructure
serverfault.com
69,687
mysqld is not producing binary log
I'm trying to understand why [CODE] is not writing binary log anymore... [CODE] any ideas what am I missing? * UPDATE * [CODE]
Things I'd check: Are any changes happening? Binary log doesn't include SELECT queries, only changes. Compare the timestamp on files like ib_logfile*. Are replication filters excluding changes being made? Are sessions making changes while [CODE] is suppressing binary logging, either globally as @RolandoMySQLDBA suggest...
1
1
149
2014-07-03T21:57:44.683
database_errors
dba.stackexchange.com
432,539
How do you build redundant Linux servers, such that clients don't lose connections on failure?
If you want failure resilience, you can build several servers, where each can server any clients, and put the data in some SAN or shared DB cluster. But if the clients connect directly to one server, and that server fails, then they get a network error. You can solve that by putting a load-balancer in front of them, ei...
Yes, you are right in the point that the load balancer could die also. For this reason, you need also to have two load balancers instead of one. The simplest scenario is to use them in active-standby mode when you access the active one using a configured VIP. Any Linux box with a package like keepalive or heartbeat can...
0
3
825
2012-09-27T12:08:10.387
infrastructure
serverfault.com
1,128,389
Debian not resolving mdns query
Got 4 debian boxes, all suddenly not resolving mdns ip4 queries. On the contrary MacOS seems to resolve these queries just fine. I can do [CODE] and get the result 'Timeout reached' Odly enough I can see in wireshark that the mdns queries are leaving with the responses returning i.e [CODE] All these machines have a l2 ...
Seems it's a bug in the avahi daemon. https://github.com/lathiat/avahi/issues/448
0
0
772
2023-04-10T22:26:37.810
pipeline_ops
serverfault.com
659,017
Possible to authenticate Samba via Kerberos but without domain-join?
With a Kerberos config file... [CODE] ...it is possible for Linux to talk to Active Directory for password validation without necessarily being an AD domain member: [CODE] At this point, you can use PAM to define local Linux users in /etc/passwd, yet have their TTY sessions authenticated via Active Directory. Authn via...
Samba means different things to different people. To some, it is a way to implement LanMan-style networking without tithing to Microsoft, using WinBind to provide pseudo Domain Controller services without actually running a Windows Server. This is perhaps why ‘drookie’ made the comment “Seems like you have AD running b...
9
7
28,523
2015-01-13T01:16:26.500
data_quality
serverfault.com
1,025,601
Control or reduce fan speed of Dell R820
I recently bought Dell R820 from Amazon. It has 192gb of RAM, 4x Xeon CPUs but Dell Idrac is not working anymore after update firmware from OS. Fan's go full blast and it's very noisy. I tried all fixes from dell's web site suggestions. But no avail. Is there a way to reduce fan speed without iDrac or lifecycle?
The fan speed settings exposed in the iDRAC interface may not be enough to quiet the fans to an acceptable level. Install Dell OpenManage Server Administrator on the server and then run the ipmitool utility to adjust the fan speeds. The ipmitool should be located in the following directory after you install DOMSA: C:\P...
1
3
13,583
2020-07-17T08:28:33.487
infrastructure
serverfault.com
491,452
MDADM did not kick off rebuild after a disk is inserted
I am new to Linux software RAID. I constructed a RAID6 with 6 hot-swappable SATA disks. I tested the failure scenario by unplugging 1 disk. The OS removed the devices from /dev and mdadm showed that the array was degraded. This is expected. However, when I put the disk back, although the OS reinstated the device name, ...
Automatic sync is limited to spare devices. It is of limited practical use to expect a disappeared drive to come back without manual intervention. If the device (or its connection) has become unreliable then a time consuming sync may not even be what you want. If this is important to you then you may regularly check vi...
1
3
394
2013-03-26T13:57:10.713
infrastructure
serverfault.com
580,331
Resetting an ESXi root password
I've just inherited a very simple VM setup with a pair of ESXi servers clustered and everything is pretty much hooked up. Problem is I do not have the root passwords for the servers and no one has any idea what they are (password guessing has been tried). From my understanding, ESXi does not have a single-user mode or ...
For ESXi , the only supported method to change the password is to reinstall. Reinstalling the ESXi host is the only supported way to reset a password on ESXi. Any other method may lead to a host failure or an unsupported configuration due to the complex nature of the ESXi architecture. ESXi does not have a service cons...
7
9
19,825
2014-03-06T20:13:08.177
infrastructure
serverfault.com
393,162
User permission requirements to log into vSphere Client for iPad and vCenter Mobile Access
I was just wondering what the minimum permission requirements for a user for to be able to log into the vSphere Client for iPad and vCenter Mobile Access. The clients are connecting to a plain ESXi box. I created a role with the desired permissions and added a user to this role. However, any login with the user on vCen...
The minimum permissions should be the same as if using a normal client, as far as I know. I'll try and lab this out for you.
9
1
978
2012-05-27T19:10:09.680
infrastructure
serverfault.com
109,987
Creating public API definition for existing application
Let's say there's a successful open source application (written in PHP if it matters), which provides its users with multiple ways to extend it (think about something like Drupal or Wordpress, lots of custom plugins, etc.). Now let's say unfortunately there's no formal definition what constitutes the public API for thi...
Q: Should all classes be part of public API or should we mark those are public or mark those that aren't? A: Do the clear distinction for users of your classes - mark those that are intended for use by "outside" developers AND mark those that aren't (the latter won't guarantee you from weird backward-compatibility issu...
2
5
692
2011-09-22T06:30:35.110
api_errors
softwareengineering.stackexchange.com
714,276
Bind docker container ports only to specific outside server address
This is the first time i address such a network "problem" to solve with docker and i need some inputs. This is my situation: Ubuntu 14.04 running NginX, ufw as firewall and docker containers to run a PHP backend application. Ufw default policy is set to DROP for both INPUT and OUTPUT, as well as for FORWARD. sysctl rul...
On Linux, both ufw and docker's rules are implemented on top of netfilter . So is [CODE] . So it is not possible to get ufw to do some things and get docker rules to do others - all those things will be done by the single underlying netfilter subsystem. The command [CODE] is useful to dump out everything that has been ...
3
0
3,060
2015-08-14T17:09:41.300
pipeline_ops
serverfault.com
994,498
Spam passing postfix config "hostname does not resolve to address: No address associated with hostname"
On a postfix MTA MX setup, I have a spam mail pass two checks which it definitely shouldn't. The [CODE] process logs these warnings, which should be a hard fail in this setup: [CODE] [CODE] The relevant mail log is this: [CODE] This should not even hit greylisting, or the further checks which would block it later. Here...
From #postfix@freenode IRC, I've gotten the helpful hint (thanks, JPT) that the connecting IP/hostname is, of course, checked in [CODE] . [CODE] My existing [CODE] entry only checks for a missing client IP address address->name mapping! I've now replaced it with the stricter [CODE] check which should "eliminate" the fi...
4
4
14,182
2019-12-05T18:27:45.613
infrastructure
serverfault.com
62,067
Attribute error when loading pickle file in python jupyter notebook
I have created a config file with the following code for an object detection task and saved in the local disk. [CODE] I am trying to load this pickle file in another jupyter notebook. [CODE] But it gives me the following error. [CODE] But I was able to load the pickle file from the disk without errors in my previous at...
I guess the [CODE] is a class that you created. It will be needed again when you load a pickle file storing the config. Therefore, you need to import it in the jupyter notebook you use to load your pickle file. Hope this could be helpful.
1
1
1,592
2019-10-22T08:41:44.197
data_quality
datascience.stackexchange.com
580,868
Virtual host does not seems to work
It seems that the most basic virtual host does not work under apache 2.2 : [CODE] the httpd-vhosts : [CODE] Here's what output apachectl : [CODE] In my pow configuration : [CODE] Accessing to [CODE] defaults on the project website, but accessing to [CODE] gives a 404 Not found Thanks for your help
I uninstalled pow, and removed rules in firewall that pow installs, and it works like a charm. Pow was the responsible for that :/
0
2
174
2014-03-09T19:00:21.567
infrastructure
serverfault.com
53,435
How to give the least permissions for CRUD-managing and running SQLServerAgent jobs as well as Maintenance Plans?
Follow up to my question " What's the owner of SqlServerAgent job for? " Basically, I am trying to understand how to create a user-login with least privileges for CRUD-maintaining SQLServerAgent jobs based on SQL Server Maintenance plans. I've just checked on SQL Server 2008 R2 that SQLAgentOperatorRole, which is the m...
On the maintenance plans I typically let my maintenance run as the agent account and I normally keep them owned by SA so when I quit or became a consultant things still run. When I help a client with maintenance/management I do the same thing. You see to run maintenance you need more than just CRUD permissions. You are...
2
1
2,625
2013-11-17T10:41:35.843
database_errors
dba.stackexchange.com
427,232
Cannot resolve a single A Record from client machine
I set up a simple Bind server on my VPS and it is working properly. The problem occurs with my local windows machines, which are connected to internet through the home router. I created an A-record named 'dev' and it is invisible from my local network for some reason, though people from other locations can resolve dev....
Perhaps a cached negative hit? Try [CODE] to clear the client cache. Edit: Summing up the findings so far. You flushed the local DNS cache, so there weren't any cached negative responses. This means that the problem is not with your client. You queried the nameserver directly from the client and received a correct resp...
2
0
677
2012-09-13T19:51:37.693
infrastructure
serverfault.com
695,297
CISCO anyconnect issue with WLAN
When I am connected to internet using WLAN, I am successfully able to connect to VPN using CISCO anyconnect secure mobility client but no traffic passes...please suggest
Check if you have "Allow Local (Lan) access when using VPN " checked in the settings
0
1
86
2015-05-29T14:40:19.000
infrastructure
serverfault.com
954,347
MySQL SSL error: wrong version number
I'm having difficulty with MySQL and OpenSSL. I'm running MySQL 5.7 and OpenSSL 1.1.0g on Ubuntu 16.04 Regardless of what certificates I load, MySQL starts up but does not establish a connection over SSL if the certificates are verified. For example, if I allow it to create its own certs, this is in /var/log/mysql/erro...
MySQL SSL connection are not just a standard SSL connection with MySQL connection inside. When establishing such connection, MySQL client first handshake with server using MySQL plaintext protocol, (if both side agree using SSL) then start SSL connection on same TCP connection. OpenSSL or other general purpose SSL clie...
1
1
4,666
2019-02-17T09:58:26.690
database_errors
serverfault.com
263,264
Running a JAR from a bash script in a cronjob
For some reason my cronjob is not working: [CODE] And my bash script looks like this: [CODE] So the jar file takes in 2 parameters, the first one i want always to be the same, the second one comes from the first bash parameter. Inside /var/spool/mail/ubuntu I see this error: Unable to access jarfile myJar.jar I set the...
Try with full paths: [CODE]
2
5
7,377
2011-04-25T20:14:17.750
infrastructure
serverfault.com
446,558
Why is `WeakSet` great for tracking circular references?
In MDN article on [CODE] s , an example is given for using weak sets to avoid infinite recursion on circular references: [CODE] If [CODE] is intended to allow the objects to be garbage collected, doesn’t this mean that with sufficiently large objects and little memory a previously encountered object will be garbage col...
WeakSet only allows garbage collection of objects which are not referenced anywhere else, i.e. if the reference in the WeakSet is the only remaining reference. If the object is referenced as part of some other data structure, it will not be garbage collected. If that structure gets too big, you will just get an "out of...
0
2
125
2023-07-15T08:47:14.300
api_errors
softwareengineering.stackexchange.com
190,895
Load Balancing PG Bouncer With HA Proxy
I have a server with two instances of PG Bouncer running on different ports. Both are using session mode to pool. I set up HA Proxy to load balance incoming connections between these two processes to distribute the load. I get "server closed the connection unexpectedly" intermittently when connecting through HA Proxy. ...
I fail to see why you are loadbalancing between pgbouncers on the same server, I assume you have a single DB server instance, if they run on the same node you're not really balancing anything. Than being said, this sounds like timeout issues, since pgsql connections tend to live longer than the standard haproxy timeout...
0
0
2,567
2017-11-14T16:20:56.907
warehouse_errors
dba.stackexchange.com
104,473
Hard Link for Directories in linux
Hai, How can i create hard link for my directories ? When i use to make link from /var to /home it shows error on "Invalid cross-device link", How can i over come it ?
You can only make symbolic links to directories. From [CODE] : Hard links may not refer to directories (to pre‐ vent the possibility of loops within the file system tree, which would confuse many programs) and may not refer to files on different file systems (because i-node numbers are not unique across file systems). ...
0
3
658
2010-01-20T05:27:55.000
infrastructure
serverfault.com
266,178
Linux permissions with svn and Syncro
I am using a GUI (Syncro for MAC) and SSh. I set the username to "svn" but I am using MY public key to connect. Can someone explain how this would work? I never have to give it my server username. and all commits are registered to user svn Thanks
You likely put your public key into the [CODE] file on the SVN server and configured Syncro to connect to [CODE] . SSH will then try the private keys it finds in your own [CODE] directory to see if one fits. If it fits, you are logged in as user [CODE] . That's all.
0
0
66
2011-05-04T12:37:38.693
infrastructure
serverfault.com
9,669
How to work with changing element id in the html code
I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time How to capture the ids everytime
Sadly, it sounds like using the ID is not an option in this scenario A lot of websites implement security to prevent automating. While this makes your job more difficult it does improve the security of the application. So what can be done to bypass these security tricks? Use a different unique constant for that element...
2
5
17,673
2014-09-09T13:03:22.203
data_quality
sqa.stackexchange.com
567,983
Can't change Workgroup/Domain due to netid.dll error
I tried to re-add a restored VM to AD-domain to restore the trust relationship. However, I cannot change the workgroup/domain via Computer > Properties . There's an error message which says that C:\Windows\system32\netid.dll is broken and the "Computername" tab is not present in System Settings. I ran SFC and it says t...
I was now able to gain access to the DLL and replace with one from another machine with an equivalent operating system using these commands: [CODE] Source: http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-system-file-in-windows-vista/ It's working now.
1
1
550
2014-01-17T13:05:30.350
data_quality
serverfault.com
99,915
Orthogonality of unit tests vs. concision of unit tests
I'm writing unit tests for a steering system for a video game. The system has several behaviours (avoid this area because of reason A, avoid this area because of reason B, each adding a bit of context to a map of the region. A separate function then parses the map and produces a desired movement. I'm having trouble dec...
In the ideal world, you would indeed have a set of perfectly orthogonal unit tests, all on the same level of abstraction. In the real world, you usually have tests on many different levels of the app, so often the higher level tests exercise functionality which has already been tested by dedicated lower level tests too...
14
11
1,113
2011-08-10T10:55:48.657
api_errors
softwareengineering.stackexchange.com
567,193
Tracing the source of DNS failure
Googlebot is failing to index my domain for DNS reasons, so I looked up my site on a DNS site, and I got this: Lookup failed after 2 name servers timed out or responded non-authoritatively MXTB-PWS3v2 7488ms 0 d.ns.at 81.91.161.98 NON-AUTH 171 ms Received 2 Referrals , rcode=NO_ERROR NS dns1.50webs.com,NS dns2.50webs.c...
We start by checking your whois record to see who your authoritative nameservers are set to: [CODE] Those being the authoritative nameservers for your domain, each of them should be providing the world with answers with respect to your domain. However, they do not... [CODE] I was able to ping these machines, so I suspe...
1
2
2,691
2014-01-14T17:03:51.057
infrastructure
serverfault.com
8,984
How to find the window name using firebug?
I can get the window name through selenium IDE, but with the same name, i cant able to find through firebug. Is there anyother way to find the window name using firebug?
Try the following: Open [CODE] tab in Firebug; Execute [CODE] or [CODE] .
3
6
14,789
2014-06-21T06:44:44.310
data_quality
sqa.stackexchange.com