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
753,097
How to resolve hostnames from a intranet interface?
I have a public IP and some hostnames pointing to it, on this public IP server I have others intranet interfaces running apache virtual hosts servers , my question is how can I forward external requests to this interfaces? On a simple apache virtual hosts running in the public IP machine I can easy do that editing [COD...
The solution Ok hours later I found the answer, is very simple: You need to have another apache instance or whatever like it running on port [CODE] for this case and create virtual hosts to resolve the hostnames to the intranet ips. More explanation If I have apache running in others intranet IPs they are not visible o...
1
0
324
2016-02-01T02:48:59.433
infrastructure
serverfault.com
138,890
Bugs that can be avoided with coding standards
I am looking for statistics (or estimations) that backup the claim that coding standards help reduce bugs. Hard-numbers would be nice, although I haven't had much look finding any. I've even looked at bug tracking for various open-source projects, but have not been very successful finding what I need. Does anyone out t...
Coding standards on their own don't reduce bugs. Coding standards as part of a sound software development process reduce bugs. Here are two papers that study the statistical impact of sound software engineering process on defect reduction that you can use as a starting point: Software Defect Reduction Top 10 List , whi...
11
8
1,038
2012-03-08T22:53:42.103
database_errors
softwareengineering.stackexchange.com
97,278
Once I ensure security out of the building, am I safe from Man in the Middle attacks?
Say I want to engage in an action that can be compromised through a man-in-the-middle attack (like key exchange). I've done my best to secure my end of the communication up until the point the network leaves the building: I make sure my machine is not compromised, there's no unrecognized devices on my LAN, I verify tha...
The general security answer is that some information, for example shared secret or other key, must be exchanged "out of band". That information is then used to encrypt the connection between the end-points and also to provide some degree of authentication. If everything passes over a particular connection, then neither...
2
2
191
2009-12-24T21:15:29.127
infrastructure
serverfault.com
333,702
Tcp retransmission tcp session reconstruction
Im trying to write a program that reconstructs tcp sessions. I have a pcap file which have packets. The problem is i dont know which packets i should use to construct sessions when there is a retransmission. http://img412.imageshack.us/img412/4655/retransmission.png here is what wireshark shows about this session. Whic...
It doesn't matter, they should all have the same data for the same byte positions. If they differ, it's arbitrary which is 'correct'. (And, in practice, that will never happen unless someone is deliberately abusing TCP to create a back channel or the like.)
0
1
660
2011-11-22T14:58:14.887
infrastructure
serverfault.com
301,722
Forward an email from command line in Linux
I have email files in my Maildir received with postfix server (Ubuntu). Is there a utility that can forward a selected email file to the specified email address? Something like: [CODE] I tried to use mail command but it just sent the entire file contents including all technical header information as a plain text, which...
There are more possibilities than one. This utility is called sendmail. [CODE] . Maybe you have to rewrite the mail before, as this does not "forward" the mail, but instead "send" the mail. Do this in Postfix itself. You could use the many possibilities already present in Postfix to send a mail to the local user and ad...
7
6
11,741
2011-08-16T17:30:57.927
infrastructure
serverfault.com
368,853
A good IPFIX analyzer
I was looking for recommendations for IPFIX analyzers to use with sonicwall firewalls. I experienced sticker shock when I saw prices ranged between $3500 to $7000 per license. Are there any free, open source, or more reasonably priced windows-based options available?
To report on traditional NetFlow, any reporting tool will work with the SonicWALL. For the IPFIX with extensions, the SonicWALL Scrutinizer cross references many of the flow templates to build the specialized IPFIX reports (e.g. top URLs). For most people, the open source projects won't come close to the quality of the...
2
0
1,920
2012-03-12T15:43:26.467
api_errors
serverfault.com
206,682
Installing Windows 2008 - Hangs During Expanding Files
I'm trying to install Windows 2008 R2 from a USB stick and it hangs during the expanding files, generally in 23% if I install Standard and 16% if it's Enterprise. I checkdisk the USB it's fine, tried 3 times to ensure that files are not corrupted. Did memory check. Even more interesting I tried to install Windows 7 and...
As expected it was HDD, even though checkdisk and everything else looked fine when I changed the HDD it worked just fine.
0
1
2,047
2010-11-28T07:06:14.650
data_quality
serverfault.com
211,085
When is it okay to log filename/line information for errors?
We have a closed-source commercial C++ application. Some of our logged error messages are in plain English like "ERROR: could not read file 'foo'". While others use a macro to print filename/line information like ""SplineReticulator.cpp(423): out of bounds". This is not an assert or a crash, the application recovers fi...
If your application produces a log file, then put all your module name/line number stuff in there. The errors for the user should be in plain $usersLocalLanguage whenever possible. If you need the detailed info while trouble-shooting a client's problem, you can get the user to email the log file to you, and dissect tha...
2
5
697
2013-09-11T04:03:56.093
api_errors
softwareengineering.stackexchange.com
330,157
MS SQL Dynamic Pivot from Stored Procedure result
I have 3 tables as Student, Batches and StudentAttendanceRegistry. I managed to join these tables and get a desired result as following, [CODE] Here is my stored procedure for the above result https://pastebin.com/ANn4kSdQ You can see the Year and Month are not in order since these are dynamically generated using the B...
I think I managed to get the result I wanted. I used python to extract the data from the stored procedure, pivot the tabled and exported it to a csv file. [CODE] The thing is now I'm stuck at creating the report I want. That's another problem.
0
0
66
2023-08-10T08:52:32.630
database_errors
dba.stackexchange.com
66,266
MySQL crashes frequently
I am facing frequent MySQL crash problem. Not sure how to fix the problem. Attaching the mysql error log. Suggest me a solution. Server Config Digitalocean SSD server 1GB RAM CentOS 6.5 64-bit kernel Apache 2 wordpress website hosted Avg. Daily traffic 2000 MySQL configuration [CODE] Error Log [CODE]
You said the total system RAM is: 1GB RAM Your MySQL error log contains: 140530 10:58:40 InnoDB: Error: cannot allocate 524304384 bytes of InnoDB: memory with malloc! Total allocated memory InnoDB: by InnoDB 7994352 bytes. Operating system errno: 12 Errno 12 is "Cannot allocate memory." You have tried to allocate too m...
4
3
5,161
2014-05-30T11:15:53.447
database_errors
dba.stackexchange.com
135,586
Slow Query Postgres 9.2
I've got the following query: [CODE] Explain analyze: http://explain.depesz.com/s/25Wj How can I improve it? The total time is absolutely huge! It seems the major problem is on ja_feedlog table: [CODE] (actual time=307.690..290532.037 rows=323605 loops=1) Table ja_feedlog: [CODE]
It looks like the join between [CODE] and [CODE] is the culprit (it appears to be taking most of the time doing a filtered indexed scan on ja_jobs for each ja_feedlog resulting row). In cases like this where there are two joined heavily filtered large tables, I find it useful identifying which set of filter conditions ...
1
0
66
2016-04-17T21:12:22.013
warehouse_errors
dba.stackexchange.com
672,920
Unable to get SMART metrics from Seagate Disks on Debian OS
Referring to the question here , I too am trying to get all attributes out, as explained in this blog here . I am using Debian 6 as OS, and installed smartmontools version 6.3 using apt-get. My 6 disks are on RAID. I first enabled the stats using the command [CODE] Once done, I am using the following command to get all...
You cannot extract SMART information from a RAID array. The array does have SMART information, the drives that make it do. Dev sda is a RAID, not a unit (sd0, sd1 / sda1, sdb1 etc). So extract your information from disk units, not array.
0
0
520
2015-03-04T09:05:12.407
infrastructure
serverfault.com
896,095
MySQL Authentication against OpenLDAP Failure
I'm trying to set up OpenLDAP authentication on a MySQL Commercial Server (5.7.21) I've followed all the steps described on MySQL web https://dev.mysql.com/doc/refman/5.7/en/ldap-pluggable-authentication.html#ldap-pluggable-authentication-installation But when I try to log with an LDAP account I have the following erro...
I have been facing recently the same problem , after searching I came to that: Knowing that the plugin uses cyrus library for sasl mechanism, and the only supported is scram-sha-1, you have to check if cyrus-sasl-scram plugin is installed first I succeded to connect to the server by installing this package : [CODE] Sec...
0
1
653
2018-02-07T13:42:11.193
database_errors
serverfault.com
91,391
Does READ COMMITTED always start over after serialization failures while SERIALIZABLE simply fails?
On the PostgreSQL Concurrency With MVCC page , it says: know what you’re thinking though: what about a two transactions updating the same row at the same time? This is where transaction isolation levels come in. Postgres basically supports two models that allow you to control how this situation should be handled. The d...
Can READ COMMITTED be set to indefinitely retry with the same atomicity as SERIAZLIZABLE? No. [CODE] doesn't retry. Neither does [CODE] . The application is expected to retry transactions that suffer deadlocks, serialization failures, etc. That description in docs is very misleading, I'll raise it on the docs list. Pos...
2
7
695
2015-02-07T21:24:41.947
database_errors
dba.stackexchange.com
96,824
Is asymmetric latency common in practice?
This is a follow-on to a question posted on stack overflow about whether it is possible to determine the one-way latency of a point to point connection without using externally synchronized clocks - turns out it isn't. Now the question here is if such asymmetric latencies (where the trip time from A->B is materially di...
Yes. Because asymmetric routing (in it's many and varied forms) as well as asymmetric capacity and asymmetric load, are all common in practice. Not as common, but not unknown. Very common. Very, very common.
0
3
483
2009-12-23T00:13:52.103
infrastructure
serverfault.com
416,562
Correct Architecture for Monolith with Go
I'm designing a monolith RESTful API that potentially sometime in the future may turn into microservices. I'm also trying following Uncle Bob's clean code as well. My question lies in structuring the Go code. Many times I see the following file structure for example: [CODE] And the respective files under each file. Thi...
Idiomatic means "natural and correct" . The file structure of an application might look or feel natural, correct, or the opposite. But one cannot state only one file structure for a whole language is idiomatic. Yes, you'll have to adapt your implementations, but that is another problem. Should I be using the second fil...
0
2
448
2020-10-04T18:07:30.267
api_errors
softwareengineering.stackexchange.com
329,471
Performant Loop or Alternatives
My current data set looks like following [Table 1] Key Group Amount Sequence 1 1 50 1 2 1 60 2 3 1 70 3 4 1 90 4 5 2 120 1 I have a second table that records a "Rolling rank" of each of these which looks like this: [Table 2] Key KeySK Rank TotalAmount Amount 1 1 1 50 50 2 2 1 60 60 3 2 2 110 50 4 3 1 70 70 5 3 2 130 60...
Seems like you could just do the whole thing in one big query, by using a partitioning clause. Note also the use of [CODE] which is more efficient than the default [CODE] [CODE] If this results in a lot of rows being calculated but never getting inserted, you might be able to limit it by [CODE] like this [CODE] Do your...
2
2
94
2023-07-20T03:13:41.987
database_errors
dba.stackexchange.com
83,211
How to UPDATE/DELETE/INSERT with Microsoft.ACE.OLEDB.12.0 as Linked Server in SQL Server 2012?
I need to update an Access 2003 database from SQL Server 2012 with the Microsoft.ACE.OLEDB.12.0 provider . As an administrator, everything works great. I can do Select, Insert, Update and Delete statements on the Access database without any problem but when i use a non-admin user, i can only do Select queries . The Ins...
The problem came from an insufficient privileges on the server where the Access file is stored. Here's how you should configure your server depending of the login type that you are using: If you are using SQL Server login : Give to the SQL Server Database Engine service account permissions to read and write (depending ...
3
1
2,674
2014-11-20T20:54:34.450
database_errors
dba.stackexchange.com
276,057
Windows Server CAL and VPN
Possible Duplicate: Can you help me with my software licensing question? We have a a client that wants to provide VPN access to one server running windows 2008 r2, using Routing and Remote Access Server. He wants to give his customers the ability to attach a network drive once they connect. Will my client need a CAL pe...
Each device or user will need a CAL. It can be done eitehr way usually.
2
3
4,597
2011-06-01T20:40:59.047
data_quality
serverfault.com
762,568
how to join centos 7 to samba domain?
In my office, we use samba domain + ldap. I already join some Windows 7 machines, but now I need to join CentOS 7 to that domain. How can I do that? Below are steps that I already did: install nss-pam-ldap.x86_64 configure smb.conf in /etc/samba/ configure all files in /etc/pam.d/, that call pam_unix.so to call and pam...
Krisko. First you have to install the packages for an sssd integration: [CODE] Then create the machine account in an AD container your user ([Domain UID]) has full access to. Add the machine to the domain: realm --verbose join [FQ Domain name] -U [Domain UID] Adjust /etc/sssd/sssd.conf [CODE] You may have to adjust the...
1
1
4,150
2016-03-09T08:23:27.090
infrastructure
serverfault.com
60,449
Implications of changing compatibility mode in SQL Server from 100 to 110
I have a database [CODE] created in SQL Server 2008 R2. I have upgraded to SQL Server 2012. I was trying to execute below query to calculate percentile [CODE] but I am getting an error stating that Msg 10762, Level 15, State 1, Line 1 The PERCENTILE_CONT function is not allowed in the current compatibility mode. It is ...
Have a look at the following link: ALTER DATABASE Compatibility Level Scroll down and you will see the section "Differences Between Lower Compatibility Levels and Level 110" and identify if any of these items will affect you or not. If not, then just change the level to 110.
20
10
50,445
2014-01-22T09:31:00.250
database_errors
dba.stackexchange.com
148,821
Reducing number of php files used in project
I am developing an application in which I have a Class containing various methods. The problem is that i need to call most of the methods on form submission. For that reason, I have to create a new file on each form submission. On every file, I have to create an instance of the same class and then call the appropriate ...
You dont need to create a separate PHP file for each form submission. [CODE] On the PHP side of things, just check the posted 'action' variable, and respond accordingly. Actually, what you want to do is to have a master 'view' controller that handles the interface, and load templates of the pages you need through that....
2
1
275
2012-05-16T10:53:26.573
api_errors
softwareengineering.stackexchange.com
328,974
Microsoft NLB + MySQL + IIS7
Possible Duplicate: Microsoft NLB + MySQL + IIS7 Here is my setup: HyperV VM 1: Server 2008 R2 + Microsoft Network Load Balancer (NLB) + MySQL + IIS 3 NICs- LAN1 - Management 192.168.1.1 LAN2 - Web 192.168.1.2 LAN3 - SQL 192.168.1.3 HyperV VM 2: Server 2008 R2 + Microsoft Network Load Balancer (NLB) + MySQL + IIS 3 NIC...
I think this is expected behavior in a NLB setup. The local TCP/IP stack realizes that it's a local IP address and will not even go out on to the network to transmit the packet. For load balancing web servers the use of NLB is more of less deprecated. You might want to check out the Web Farm Framework in combination wi...
0
0
396
2011-11-08T14:17:24.850
database_errors
serverfault.com
647,200
Is there a way to allow all external ip connections (i.e ipv6 as well as ipv4) in FreeRadius?
I need to accept all incoming connections to the FreeRadius server be it ipv6 or ipv4. I know that we can allow all ipv4 clients with: [CODE] How to accept all ipv6 addresses as well on the same server?
What worked for me: Add the following if not present to radiusd.conf [CODE] And add the following to clients.conf [CODE]
1
1
3,900
2014-11-26T11:07:52.823
infrastructure
serverfault.com
428,829
Connecting guest OS to host os internet connection hyper-v
When configuring hyper-v internal switch, Apart from physical lan adapter (say adapter 1) , I see another LAN adapter (say adapter 2) added in host os. And we already have one virtual lan adapter in guest os, (say adapter 3) . adapter 1 is connected to internet with defaulty gateway say, 192.168.0.254 and uses class C ...
Hyper-V internal switch and VM OS interfacing with Guest OS and IP Cofiguration NOT AT ALL - it is a switch, like any switch you have in your network rack. Access internet in guest os Set it up so that the quest gets an IP address from the internet router and the internet router does NAT (which it quite obviously alrea...
1
1
741
2012-09-16T09:09:43.233
infrastructure
serverfault.com
1,002,513
Redirect Google Authentication to Microsoft Authentication to use with SAML
At this point I have an issue where I want to login to Google Identity's assets but using Azure AD as the IdP (Identity Provider). I already have the whole SAML environment setup with google as the SP and Azure as the IdP. Now, the issue here is when I call an oauth2 login to google I get the google Login page first, a...
If by "when I call an oauth2 login to google I get the google Login page first" you mean that you get the page where you have to enter the username, and after Google sees the user is from a domain that has SAML SSO configured it redirects you to Microsoft, that's expected. Google needs to know which user is being authe...
0
1
652
2020-02-10T15:40:53.327
api_errors
serverfault.com
308,447
how can I join two very different table structures? No common keys
For the purpose of good database design, I've never run into an issue like this, but we are currently changing systems and there is a new key system that will need to be merged in with the old. I can create a surrogate key, but it'll be a lot of effort to prevent duplicate keys at that point. A number of the fields wil...
You are looking for UNION ALL [CODE] Result: [CODE] Demo
-2
0
41
2022-03-08T19:51:36.620
data_quality
dba.stackexchange.com
221,982
How to Run vnc4server on Ubuntu in Certain Resolution?
There's a headless Ubuntu instance used as a host for our build server. I have some UI code that requires some graphical output. Installing a vnc4server and redirecting a DISPLAY to it worked like a charm. Not that my UI tests are running but test scripts can take screen shots. Problem is that I need to set the resolut...
http://usingnix.wordpress.com/2010/12/15/setup-vnc-in-ubuntu-10-10/ http://www.techotopia.com/index.php/Remote_Access_to_the_Ubuntu_Linux_Desktop
1
1
1,988
2011-01-13T11:59:09.503
infrastructure
serverfault.com
257,028
Finding stored procedures with XACT ABORT ON OR OFF
I am trying to troubleshoot blocking problems related to active open transaction with sleeping status and probably have found issues related to XACT ABORT option missing or as OFF read from many blog post online-- Is there a way to find what stored procs are missing those statements for a database? As SQL by default ha...
This query will show you all T-SQL modules (i.e. stored procedures, functions, etc) on a SQL Server instance that have [CODE] in their code: [CODE] One could rewrite that to show code without [CODE] present, by simply adding [CODE] to the [CODE] clause, as in: [CODE] However, you'll notice there are several possibiliti...
2
4
682
2020-01-09T15:44:26.807
database_errors
dba.stackexchange.com
143,388
Fastest query for selecting arrays that contain duplicates
I'm using [CODE] and I have a column, named [CODE] , of type [CODE] . I need to find all rows where this column contains duplicates. I've found this extremely useful set of functions https://github.com/JDBurnZ/postgresql-anyarray and I could use this particular function https://github.com/JDBurnZ/postgresql-anyarray/bl...
1) Function [CODE] can be simplified in several ways to make it faster (note that in the function's body the input parameter can be accessed not only by the name but also by the number: [CODE] ): [CODE] or yet simpler using pure SQL: [CODE] Second one is slower then first but still faster then the original on my tests....
2
1
1,864
2016-07-09T12:00:39.330
database_errors
dba.stackexchange.com
277,979
Cross-server file mirroring with minimal latency
Platform: Ubuntu 10.04 x86. We have a HTTP server (nginx, but that is not relevant) which serves some static content. Content is (rarely) uploaded by content-managers via SFTP, but may be changed / added my some other means (like a [CODE] , made directly on server). Now we want to add a second, identical HTTP server — ...
What about pirsyncd ? I think it`s good idea for you ;)
2
1
1,037
2011-06-07T19:49:52.753
database_errors
serverfault.com
615,386
Reuse remote ssh connections and reduce command/session logging verbosity?
I have a number of systems that rely on application-level mirroring to a secondary server. The secondary server pulls data by means of a series of remote SSH commands executed on the primary. The application is a bit of a black box, and I may not be able to make modifications to the scripts that are used. My issue is t...
Specifically answering the question regarding whether it's possible to reduce the overhead of spawning more SSH connections: Yes. You can use the ControlMaster feature present since OpenSSH 5.5. This blog post will have more details: http://puppetlabs.com/blog/speed-up-ssh-by-reusing-connections I'm not sure if that wo...
3
3
1,993
2014-07-25T04:08:05.823
infrastructure
serverfault.com
137,713
IIS6 Sending a 404 for ".exe" files
Recently a bunch of files I had setup for download via IIS6's web server stopped working. They are a number of setup files ending in ".exe" and were working prior to a few months ago. I have the file permissions set properly, and even enabled browsing in IIS to determine that the paths are indeed correct. I'm not sure ...
IIS will not serve a file with an extension it does not have a MIME type mapping for - see http://support.microsoft.com/kb/326965 for details including how to edit the mappings. Have you changed/installed anything that might have removed the MIME mapping for .exe files from IIS at all? Also, some proxies and security a...
1
2
3,519
2010-05-01T15:25:39.727
infrastructure
serverfault.com
628,257
Elastic IP not pingable with AWS
After instantiating a micro server I created an elastic IP and associated my micro instance with it. In my micro instance settings panel in AWS, I see "Public IP" address and an "Elastic IP" address, which as far as I can understand, means the association was successful. However, I am able to ping the Public IP but not...
Check the Security Profile for your instance and to make sure you've allowed echo requests (AKA ping) to come thru. Basic settings for such a rule would be: Type: Custom ICMP Rule Protocol: ICMP Request Port Range: N/A Source: (whatever IPs you want to allow pings from)
0
1
1,151
2014-09-13T08:09:34.190
database_errors
serverfault.com
81,348
Debugging a simple 1-D CNN for solving a simple classification problem
I have a rather simple classification problem that I am trying to solve. Each instance in my problem is a list of 1024 bytes (each byte is represented by a digit between 0 and 255). There are 2 classes (say, Class 'A' and 'B'). In class 'A', all instances have a common feature. There exists a particular 2-byte pattern ...
you can add dropout to the model It will change your model accuracy. [CODE]
0
0
42
2020-09-07T20:29:18.163
data_quality
datascience.stackexchange.com
647,636
DCpromo creating child domain
yesterday i finished working on my Windows Server 2008 R2. When i was creating a first (parent) domain controller (new domain in new forest) everything went fine. But when i wanted to install a child domain like from youtube.com and/or my "How to Windows Server 2008" book, i got a huge problem. Both options are install...
You need to create the child domain with a new domain controller, not with the existing domain controller.
-1
2
339
2014-11-27T22:10:49.003
infrastructure
serverfault.com
255,719
Testing strategy for games
I've inherited a web-based educational game. Over the past year I've worked towards stabilizing the code and adding new features. Most of the logic is in the front-end, so back-end unit tests, while helpful, cover a small percent of the code. The game has gotten to the point where it's starting to get complex. There ar...
In the enterprise world, an algorithm always functions the same way. I'll write a unit test for an algorithm, I'll expect the value 42 and it'll error if I don't get that value. This is not very different in games. The presence of two modes and multiple flags in the game you're working on doesn't change anything: if yo...
13
16
1,694
2014-09-08T15:49:23.547
api_errors
softwareengineering.stackexchange.com
177,517
What is the proper way to assign the privileges when a MySQL instance has multi dba?
I have a MySQL instance offers services to multi-application, different application has different DBA who responsible to their own application schema. For example: Application A has schema DB_A,there are two type of MySQL account for A,one to satisfy the business requirement, and the other one is for administration pur...
Mysql offers different ways of creating user . For application A you can create a user with specific required roles and its better to give IP from respective DBA operates instead of giving % which allows user to enter in mysql from anywhere. With this user you can check performance of your queries and also explain part...
0
1
37
2017-06-28T16:27:57.980
database_errors
dba.stackexchange.com
899,638
Powerdns recursor deal with root server outage
I'm having issues with powerdns-recursor (version 3.5.3-1ubuntu0.1, Ubuntu 14.04) returning SERVFAIL when the queried root server is down. I'd think it would query another one, but instead it just returns SERVFAIL... Currently b.root-servers.net (199.9.14.201) is down (at least for me): [CODE] and my local server varie...
you must add your root server in hint-file on /etc/powerdns/recursor.conf add your root master or slaves in hint-file as below [CODE]
2
0
1,243
2018-03-02T09:32:04.513
pipeline_ops
serverfault.com
932,052
Ansible - wrong passphrase - even if it has to be correct
i am running ansible modules/playbooks (for example ping) with this command by user, who have sudo rights: [CODE] "hosts" is group of 2 hosts. When i run this, i'm asked for local sudo password, which is fine. Then i'm asked for sudo on remote host (because i configured that in ansible.cfg), which is also fine. Then i ...
First, you don't need sudo locally to run that command. So save yourself sudo'ing locally for no reason. Next, you don't need a password to ping target. This will suffice: [CODE] ...where hosts2ping contains your list of hosts. If you're doing something on remote that needs you to login as non-root, then you'll need to...
0
2
2,921
2018-09-21T14:05:47.160
pipeline_ops
serverfault.com
1,151,920
fail2ban | difference between [sshd] in jail.local, vs sshd.local in jail.d?
AlmaLinux server -- 1.0.2 fail2ban installed. Seems to be working, but, am hoping someone can clarify something for me: 1\ working with jail.local copy of jail.conf. In said jail.local, there is a Jail section with some code for [sshd]. 2\ however, a fair number of 'how to' sites have indicated that I should work with ...
This comes to the processing order of these configuration files how they override the settings on previously parsed files, as described in [CODE] man page: In addition to [CODE] , for [CODE] or [CODE] file there can be a corresponding [CODE] directory containing additional [CODE] files. The order e.g. for jail configur...
0
0
138
2024-01-20T17:15:58.250
infrastructure
serverfault.com
278,760
SQL Server Maintenance Plan - Multiple vs Single Plan / Cleanup History
First Question: I have created multiple Maintenance Plans for SQL-Server via SSMS. Now I'm wondering what is the "best" for similar plans: Multiple or single plans with subplans? Is it safe to use multiple tasks in one subplan? At the moment I have 7 separate plans: Backup - Full (weekly) Backup - Diff (daily) Backup -...
First Answer It depends, i.e. number of databases, database size (maybe all database might not need daily backup and log backup). However, for flexible and reliable approach I would refer this solution . Second Answer The retention period must be decided based on the requirement of business and nature of the data, most...
0
2
548
2020-10-27T18:02:07.770
database_errors
dba.stackexchange.com
533,960
Is it possible to include the private key in an openssl-generated CSR?
I'm using openssl on linux to generate a certificate signing request (CSR) that will be submitted to a Windows Certificate Services Certification Authority that has been configured to archive private keys. Unfortunately, I can't figure out how to use openssl to generate a CSR that includes the private key so that the C...
Stop. You're doing it wrong. A private key is called private for a reason. It is private . It is not to be shared with any third party, not even a certificate authority. It does not need it to sign the CSR and has no business whatsoever knowing it.
3
6
978
2013-08-26T20:07:06.263
hadoop_errors
serverfault.com
344,323
Is there a single data representation that works for all currencies (even those different from Dollars, Euros, and Pounds)?
I can find many questions about libraries to use for representing amounts in some currency. And about the age old issue of why you shouldn't store currency as an IEEE 754 floating point number. But I can't seem to find anything more. Surely there's a lot more to know about currency in real world usage. I'm particularly...
eg, with the dollar, you never have precision of less than $0.01 Oh really? the age old issue of why you shouldn't store currency as an IEEE 754 floating point number. Please feel free to store inches in IEEE 754 floating point numbers . They store precisely how you'd expect. Please feel free to store any amount of mon...
12
24
2,347
2017-03-17T00:53:58.640
api_errors
softwareengineering.stackexchange.com
567,339
PHP Opcode cache that can detect identical files
I am currently using APC with PHP FPM to cache a few hundred Wordpress sites. With a 2gig cache everything works well but it isn't terribly efficient and the cache is always maxed out. If I have 200 Wordpress sites all on the same server all with identical versions, it will cache 200 identical wp-db.php files for examp...
This is a partial response as I did not experience this with zend opcode. Last time I used apc this feature hits me as a bug, never saw it as a feature :-). If you use [CODE] -ed pools with php-fpm and if all the pools have the same relative paths in the chroot, then they share the same cache key in apc. As the key is ...
0
0
425
2014-01-15T02:57:25.717
api_errors
serverfault.com
82,586
Replacement for qmail?
Actually, it's not that I need a replacement for qmail, I already found one: Postfix. I need a replacement for the rest of the email stack, that works well with Postfix. My current setup constists of qmail, vpopmail, qmailadmin, and few others. The stack should be able to handle a lot of email for a few hundreds of vir...
MTA: Postfix . Use DNS-based blacklists to reject SMTP clients that you don't want traffic from. Configure to reject broken SMTP clients (and hence the huge majority of spam hosts). Configure to reject known-spammer SMTP clients , since more of them these days appear legitimate. Malware scanner: ClamAV , with regular d...
3
3
861
2009-11-08T00:00:52.040
infrastructure
serverfault.com
105,788
Any merit to MSSQLSERVER Trace from logman as opposed to XEvent Package 0
The general understanding of monitoring SQL Server activity is that using SQL Profiler is very heavy, server side traces are less heavy, but extended events are even less heavy. Today I discovered you can capture SQL traces with logman.exe [CODE] Assuming I'm running SQL Server 2008 or later, is there any reason to eve...
You can take a look at Jonathan's post here: An XEvent a Day (10 of 31) – Targets Week – etw_classic_sync_target The provider you see in [CODE] is for using the Event Tracing for Windows. I have never used it but from what I understand it is more for tracking events from your application or the Windows OS back into SQL...
2
1
97
2015-07-02T14:19:31.840
pipeline_ops
dba.stackexchange.com
957,961
samba mount not seen on windows 10, how to confirm connection?
I am attempting to link a lab sequencer to our linux server(centos 7) via samba. The seqeuencer is running windows 10 and it connected to our network. I have configured access on the Server and enabled smb on windows 10. I have rebooted the sequencer as well. When I try and connect the driver I see nothing. Is there a ...
Check if the sequencer connects only with smb1. If so configure it to use smb2. SMB1 has known security issues and is not enabled by default. Otherwise configure the samba server to accept smb1.
0
0
291
2019-03-12T19:05:31.687
infrastructure
serverfault.com
227,483
Log perfmon data to SQL Server
I am trying to log perfmon log (Windows Server 2008) to SQL Server 2005 (Windows Server 2003) using dsn (SQL Server authentication). On start perfmon counter i am getting error: "Call to SQLAllocConnect failed with [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''. The user is not associated with ...
Make sure that Perfmon is attempting to connect via a domain account, and not a local account (unless the SQL Server is installed locally). You can also try giving the computer's domain account rights within SQL Server. In the SQL Server add a new login for DOMAIN\ComputerName$. The $ is important, so don't leave that ...
4
2
2,257
2011-01-27T06:53:24.460
api_errors
serverfault.com
498,422
Strange "GET /api/levels/ " and "GET /play/" requests in logs
I've setup new Amazon EC2 instance. In a day or two started to get strange "GET" requests from the "google bot-like" IP's (eg 66.249.76.84, 66.249.74.152) about one in 10 seconds (some examples): [CODE] They are checking hashes in folders like [CODE] I never had such folders on this site. But to do something with this ...
Those IPs are Google IPs, so chances are they're legitimate GoogleBot hits. I wouldn't worry about them. They're unlikely to be hacking attempts. Rather, the most likely situation is that your server's IP was previously that of another website that had these URLs. This is fairly common on Amazon EC2 because of the floa...
2
0
187
2013-04-11T14:30:54.463
infrastructure
serverfault.com
182,867
Optimise Percona 5.7 my.cnf for a 32GB mixed nginx/php/mysql server
I have a dedicated server which I run my website from. It's got 32GB of ram, Xeon E5-1650 3.2Ghz (6 core, 12 with HT) and two 3TB drives in RAID 1. I'm running Percona 5.7.18 99% of my tables are InnoDB My ibdata1 file is 500MB. It's mainly SELECT queries, but some pretty complex joins/queries. With a proportion of INS...
32GB RAM, 12G buffer_pool --> lots of room left over for resizing images. 12G buffer_pool, 0.5GB ibdata1 and 5.7 --> [CODE] is probably [CODE] . Is it? If so, you have not given us a clue of how much data you have. Look at the [CODE] files. [CODE] is probably bad. Any write to a table causes the purging of all QC entri...
0
1
985
2017-08-07T13:29:48.607
api_errors
dba.stackexchange.com
19,892
Replacement for Linksys WRV54G?
I work at a small company that has two offices, each with its own Business DSL connection to the Internet. In order to create a LAN between the two offices, my predecessor purchased and installed two Linksys WRV54G Wireless VPN Broadband Routers to provide a hardware solution to make the computers at both locations see...
I would highly recommend you utilize Sonicwall TZ210 appliances to replace your Linksys WRV54Gs. The Sonicwall TZ210 has built-in Wireless N, 7 Ethernet Interfaces, as well easily support your Site-to-Site VPN configuration required between your two locations. I have personally used these unit as well as the older TZ17...
4
5
2,388
2009-06-04T17:40:33.633
infrastructure
serverfault.com
787,349
Full end to end encryption with AWS Elastic Load Balancer, Nginx and SSL
You will see a lot of places on the web telling you the way to setup SSL with an AWS ELB is to set up a certificate on the load balancer and then forward traffic from port 443 to 80 so that traffic between the load balancer and nginx is unencrypted. To me this doesn't appear very secure as you have unencrypted data flo...
Does having and unencrypted connection between the load balancer and nginx pose a security risk? If talking about credit card data and stuff like this: Yes. If the answer to 1 is yes, how would I setup nginx to allow the secure connections from the load balancer? Would this involve setting up an ssl certificate on each...
4
6
5,887
2016-07-01T09:33:58.600
database_errors
serverfault.com
683,392
salt-manage bootstrap -- Could not resolve hostname
I run my salt-minion and salt-stack on a single machine with its hostname as [CODE] . When salt-minion's key get accepted by the salt-master service, it appends [CODE] to the minion's hostname. So, it looks like this, [CODE] I expect, [CODE] And when i try to bootstrap with the listed name using the command [CODE] , it...
The one thing I configure on all my minions before bootstrapping salt is the minion id. This problem is so common that Salt Stack added an option to Salt Bootstrap to set the minion id at install time: -i Pass the salt-minion id. This will be stored under /etc/salt/minion_id If you aren't using bootstrap.sh to install ...
0
1
621
2015-04-17T06:39:43.957
infrastructure
serverfault.com
561,381
Restore database by files from broken Ubuntu server
I'm pretty lost right now. The RAID controller auf my server broke and all attached hard drives were corrupted. Luckily I copied the plain files off the server right before the crash (phew). I set up the new server with Ubuntu 12.04 and a fresh mysql installation. I copied the backup off a server directly to the new on...
From what i see there is nor IDB (InnoDB database file) or my MYD (MyISAM database file), all you have is the db structure, frm files. I think this guide can help you get your files back https://dba.stackexchange.com/a/57157
3
1
514
2013-12-14T17:54:25.080
data_quality
serverfault.com
160,107
Analogy for Thread Pools
I am working on an application which spawns a new thread per request. Sometimes the number of threads active on the machine at one time is in the high hundreds. It's suspected that this is causing all sorts of problems. I would like to experiment with using thread pool instead to see if this improves work throughput. B...
Not quite a text-book analogy: Thread pooling for application is like recycling for communities. Every time we're thirsty we can go ahead and buy a new bottle of water made of all new matrials. It's easy, relatively cheap for us and quite profitable for a manufacturer. Unfortunately it doesn't scale: In a similar way, ...
3
8
655
2012-08-09T03:01:12.210
api_errors
softwareengineering.stackexchange.com
291,145
Microsoft SQL Server: TSQL Formatting of Results Columns
I have a result set of data that has duplicates because certain companies are tied to multiple banks is there a way to combine the values in the BankName column either into a single column. So the result would be Bendigo Bank, *** Merchant Services on a single row Or Split them so each row has two bank columns BankName...
You could use [CODE] to aggregate the bank names. For your query, it might look something like: [CODE] The STRING_AGG() function will work on all versions of SQL Server since SQL Server 2017.
-1
2
87
2021-05-06T22:48:29.910
database_errors
dba.stackexchange.com
164,995
Select only one duplicate with different time column
So I have data that is structured like this: [CODE] Due to an error in a logging system, which for the time being is outside my reach, I get several rows of data for what should just be one. I can have up to 20-30 duplicates within a 20 second timeframe. I want to select only one record of those duplicates where the ti...
You can achieve this goal by using the windowing functionlag and self joining the table onto itself. I've included an example below. You may need to tweak some of the code to get exactly what you want, but I think this comes really close. The Setup [CODE] The Query [CODE]
2
1
332
2017-02-21T10:36:57.563
data_quality
dba.stackexchange.com
917,282
Transparent HAProxy, clients cannot connect
I have problems with transparent HAProxy. I use Centos 7 with ius-repo, so compiled with tproxy support. No fancy things here, just the basics. Flat IP space, no routing involved (yet). Have other options set as well (ipforward, non local bind). I have a web server with some content (apache on srv1 with IP 192.168.1.10...
Are you sure that you have configured TPROXY in the Kernel, and set the correct firewall marks? https://www.loadbalancer.org/blog/configure-haproxy-with-tproxy-kernel-for-full-transparent-proxy/
0
1
1,324
2018-06-19T13:21:25.750
infrastructure
serverfault.com
521,099
CentOS 6.4 [postfix+dovecot] Can send external mail but CANT receive
Im trying to set up a mail server with postfix, dovecot and roundcube/thunderbird on a centos 6.4 VPS where my weberver is hosted... I have this situation: I can send and receive internal mails ok. I can send external mails ok. But i cant receive external mails. Thats my configuration, please help me to find whats wron...
You very clearly do not have port 25 open in the firewall. Open the port for inbound traffic.
0
2
3,107
2013-07-05T14:30:33.773
infrastructure
serverfault.com
433,122
What to include in sprint backlog in the first weeks of developing?
When using SCRUM as an agile method for development, the first sprint (at least) will involve planning and requirements gathering, alongside user interactions. When I search sprint backlogs, it usually contains items from the product backlog, such as: Build a login system, Build the home interface, Design a database st...
I think Ewan has a good list of things to do and some good advice, but I'd like to focus more on the overall process. Not every moment in the software development lifecycle needs to be a part of Scrum. While you can certainly create "developer stories" for things like setting up version control and continuous integrati...
1
5
180
2021-10-28T16:08:09.943
api_errors
softwareengineering.stackexchange.com
834,355
FTP upload vb script : files are not overwriting
I am passing value as 16 but its not working for me, my files are not overwriting and even getting popup also, Is there any work around ? I checked with as 20 value also but not working. [CODE]
The important questions are not for hobby programmers. A forum can help you to find out, what a userform etc. is.
1
0
785
2017-02-23T05:09:45.653
infrastructure
serverfault.com
262,263
My availability group doesn't work correctly
I recently created an "availability group" on sql server, I created my Listener, all is well the high availability group appears well in the roles of my cluster. However I encounter a small problem, the two replicas are not really synchronized , then when I open my dashboard I have the error message /i.stack.imgur.com/...
Can you confirm you have the correct permissions on the endpoint? [CODE]
0
1
436
2020-03-19T06:43:32.870
database_errors
dba.stackexchange.com
209,589
Association Tables and Data Integrity
I'm developing a solution related to classroom materials. The hierarchy for classes is as follows: Course Type (e.g., Car Courses) Course (e.g., Fixing Cars, Driving Cars) Class (e.g., Fall semester class) My problem deals with class materials. Currently I have a "Material" table that has MaterialId, Title, Href, etc. ...
I fully support your inclination not to delete material records. The association records joining the Type/Course/Class to Materials however, you will need to delete if you no longer need the association. I would recommend the following schema, which I've written in T-SQL as it's my native SQL flavor. It provides you th...
1
0
75
2018-06-13T18:03:26.257
data_quality
dba.stackexchange.com
533,605
Indexer causes MySQL to hang
Not sure what's going on. I run indexer --all --rotate When it finishes mysql hangs and not accepting new connections. from my observation as soon as indexer finishes, all [CODE] queries goes into [CODE] *mysql tables are not corrupt *i'm using Percona mysql 5.6.12-56 *table in Innodb type *tried to install sphinx from...
The indexer is locking the query cache, which is causing all other queries to hang. You really don't want to use the query cache for the indexer anyway, so change the sql query to [CODE] SQL_NO_CACHE [CODE] to avoid using, locking and polluting the query cache.
0
1
598
2013-08-25T13:31:13.860
database_errors
serverfault.com
404,989
Black-box testing when testing without mocking?
My understanding of mocking vs not mocking is that mocking too much creates brittle tests that need to be changed all the time, while on the other hand less mocking better verifies that the system works as it's supposed to all the way through. I can see the value of not mocking too much in an untyped language since, bu...
It is correct that the test result depends on the "real" [CODE] class if you use it in the test. That's exactly the problem that mocks are trying to solve. If mocking creates brittle tests that need to be changed all the time , you are using mocks in the wrong places. In your example, the opposite statement is true: Wh...
2
2
1,000
2020-02-11T09:31:52.653
api_errors
softwareengineering.stackexchange.com
441,167
DNS and Forward Lookup Zones
I have just installed Server 2008 and am installing the role of DNS. It would seem that from all the advice on the Net, there are two ways of configuring DNS. One is to let the default go through and then in the Forwarders put in the DNS. The other is to create a New Forward lookup zone. What is the point of creating a...
These are two different things. Forwarders will tell your DNS server where to query in the event that it does not hold a copy of the zone requested . For example if you have a client that requests [CODE] and you don't have a forward lookup zone for it (you shouldn't, you don't own it) then forwarders (or root hints - t...
1
4
5,350
2012-10-22T23:57:53.353
infrastructure
serverfault.com
58,707
How to avoid restarting Apache proxy when you restart CouchDB
I'm running a localhost CouchDB instance using CouchDBX on my Mac, proxied behind Apache 2 using the [CODE] directive: [CODE] If I try to hit my Couch instance at [CODE] while it's not running I get a 503 Service Temporarily Unavailable error, as would be expected. I then start up the Couch server and hit the same URL,...
I believe what you need to be looking at is the retry option that you can pass with the ProxyPass directive. retry default: 60 seconds Connection pool worker retry timeout in seconds. If the connection pool worker to the backend server is in the error state, Apache will not forward any requests to that server until the...
12
15
2,694
2009-08-25T21:49:57.787
infrastructure
serverfault.com
150,469
High usage of CPU Without use
I'm trying to figure out what is happening but at this point I cannot troubleshoot this issue... I have 2 servers with same specs, actually also with almost same users connected (Only me)... One of the servers is stable at 20% CPU usage while the other is at 1%... Same Databases, same Processes... How I can know what i...
First of all you should find out, which service/process consuming maximum CPU. You can you Process Monitor tool provided by Microsoft, which give details information. You can find it here https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx If it's SQL Server, then 1st I would recommend to use [CODE] as...
2
5
10,438
2016-09-23T07:35:30.340
database_errors
dba.stackexchange.com
210,296
How would one create an SSRS datasource to quickbooks?
My team is stuck. We are attempting to create reporting in SSRS to connect to quick books. We were successful in creating DAO connections in ms access, however we want to have reporting in SSRS and not ms access.
I believe you need to set up an ADO.Net DataSource in SSRS: https://www.cdata.com/kb/tech/quickbooks-ado-ssrs-server.rst
0
1
221
2018-06-21T20:01:19.247
bi_errors
dba.stackexchange.com
310
One-Class discriminatory classification with imbalanced, heterogenous Negative background?
I'm working on improving an existing supervised classifier, for classifying {protein} sequences as belonging to a specific class (Neuropeptide hormone precursors), or not. There are about 1,150 known "positives", against a background of about 13 million protein sequences ("Unknown/poorly annotated background"), or abou...
One class learning I wouldn't be too quick to throw out one-class classification methods (option 2) - the key is to model the positive (minority) class with the one-class model. There has been research demonstrating cases where one-class classification out-performed other approaches like sampling for highly imbalanced ...
17
6
2,913
2014-06-11T10:11:59.397
data_quality
datascience.stackexchange.com
1,014,253
nginx reverse proxy with authentication header
I'm trying to configure nginx to run as a reverse proxy for two applications: a web frontend (IIS) and a .NET Core backend (Kestrel), all running in a docker swarm. I'm rewriting all calls to /api to the backend and all other calls to the frontend. In my current setup, everything works fine until I log in to the applic...
The problem is apparently due to the fact that we are running a hybrid swarm with windows and linux nodes. There is a bug related to the network drivers that, oddly enough, few people seem to run into. When the request gets too big the request isn't routed properly inside the docker network. This causes nginx to send o...
1
1
2,063
2020-04-26T15:41:12.857
api_errors
serverfault.com
362,516
Is there a way to set ddns local to not forward to admin interface
I am running pfsense and would like to configure my site to work locally. I have a ddns setup working externally with no-ip. The problem is I'm trying to get my local setup to work. Locally I enter domain name, ie example.com, and get redirected to the pfsense admin interface. I have disabled dns administration so even...
multiple options http://doc.pfsense.org/index.php/Why_can%27t_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks%3F
0
1
327
2012-02-22T05:12:44.600
infrastructure
serverfault.com
897,845
Why firewalld doesn't apply my drop rule?
In centos 7 I want to block traffic from a source IP (example 3.3.3.3) and for that I apply the following rule: [CODE] After that command I checked that my rule applies by: [CODE] Here you can see the output of all the other active rules: [CODE] In the route table the public zone is listed in that one which routes traf...
I had the same/similar issues. After hours of troubleshooting, I have the following observations. The order of the iptables rule chain (for 'public' zone) is: [CODE] Which means that 'deny' rules are processed before 'allow' rules - so this is significant in understanding what order the rules are matched. I don't know ...
3
3
18,117
2018-02-19T12:00:54.777
infrastructure
serverfault.com
284,094
Cisco Pix how to add an additional block of static ip addresses for nat?
I have a pix 501 with 5 static ip addresses. My isp just gave me 5 more. I am trying to figure out how to add the new block and then how to nat/open at least one of them to an inside machine. So far, I named a new interface "intf2", ip range is 71.11.11.58 - 62 (gateway should 71.11.11.57) imgsvr is the machine I want ...
This can be achieved by proxy-arping on the Cisco PIX/ASA. I haven't done this myself, but I believe it's easy and straightforward. See this thread and this link . From the external link: Let’s see what trick we can use to overcome this stupid limitation: we will be using the Proxy-ARP facility in order to respond for ...
1
1
2,329
2011-06-25T12:07:33.417
infrastructure
serverfault.com
274,738
Simple Update Join much slower than it should be (MYSQL)
This is a simple Update Join that updates only about 100 rows: [CODE] This takes about 30 seconds to run, despite the fact that: This query updates the same 100 rows and takes milliseconds to run: [CODE] The join condition is fast, this query does the same join and takes less than a second [CODE] The field [CODE] not p...
Maybe: [CODE] What is the datatype of [CODE] ? If it is [CODE] , you were excluding New Year's Day. I'm assuming that [CODE] is the [CODE] if each table. But, given that, I must ask why you have two tables with the same PK -- That is usually poor schema design. (There are exceptions.) Furthermore, [CODE] is probably us...
0
0
358
2020-09-01T05:00:56.150
database_errors
dba.stackexchange.com
12,851
Ansible multiple commands to a file
You can see bellow how it looks like my Ansible Script. My question is what i need to change to get output from multiple commands to a file.The problem is that i get output only from the first command. I have 200 vrf,do i really need to make multiple tasks fior multiple commands,or there is another solution for it. I w...
Judging by the documentation , the result of your [CODE] block is an array. You're writing only the first item of that array with [CODE] . The [CODE] here is the pointer to the first element of the array. Try removing it and see if the result fits your needs. UPD : Use this to write several strings into a file: [CODE]
0
1
1,730
2020-11-25T10:02:05.200
pipeline_ops
devops.stackexchange.com
985,897
Postfix discard not working properly
I have set up some bad phrases to look for inside the [CODE] file. I'm not sure if I should post them here b/c of the nature of the words. An example of how I have it structured is like this: [CODE] My version is: [CODE] I am seeing this in my maillog although none of these words match anything from my [CODE] file. [CO...
If you're trying to match actual words, instead of just random bits of text that might appear within a word, you should include word boundaries in your regular expression. For example: [CODE] This will match both [CODE] and [CODE] . But use the word boundary to indicate that you want to match only a complete word. [COD...
1
2
182
2019-09-27T14:23:17.750
infrastructure
serverfault.com
576,070
Unidentified Network for HyperV Internal Switch
I am trying to setup a HyperV internal switch for the guest OS on a Windows Server 2012 host. After creating the new Internal Switch through Virtual Switch Manager, I can see the virtual adapter under Network Connections. But, it is listed as an "Unidentified Network". The host system has only one plugged in NIC which ...
The reason your virtual adapter is listed as an unidentified network is because it does not have an IPv4 default gateway assigned. Get that specified in Network Connections and you'll be on your way.
9
4
29,382
2014-02-17T04:33:25.873
infrastructure
serverfault.com
107,966
Why best hyperparameters leads to drop in test performance?
I am working on a binary classification problem using random forests (75:25 - class proportion). Label 0 is minority class. So, I am following the below approach a) execute RF with default hyperparameters b) execute RF with best hyperparameters (GridsearchCV with stratified K fold and scoring was [CODE] ) While with de...
A simple hack, minority class people usually keep this as 1. As most metrics take into account that only. So you can chnage the mapping that is 0 to 1 and 1 to 0 and see if it works. I think its happening as model is optimising for 1s which in this case is not aligned with what you want to do
0
1
57
2022-02-08T08:26:10.253
data_quality
datascience.stackexchange.com
118,435
Pentaho Kettle - Unable to connect to virtual Oracle Database
I'm attempting to connect to a virtualized Oracle database but I am receiving the following error: Error connecting to database: (using class oracle.jdbc.driver.OracleDriver) Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The ...
So the trick was to go into the Options tab in the Edit Connection dialogue and create a database parameter to define the connection string.
0
2
1,498
2015-10-18T18:47:38.613
database_errors
dba.stackexchange.com
643,116
kibana: no indices error
None of the existing answers helped, so here a new question. Usecase : Redirecting syslog (or) monitoring static file. I have successfully installed logstash (1.4.2), elasticsearch(1.1.1) and kibana(3.0.1) but struggling to get rid of error [CODE] I can visit http://example.com:9200 -> Successful 200 message Visiting h...
As mentioned in another thread: "I had something similar, it sounds like you havent setup ACL's to allow the logstash user to view that log file. Use 'setfacl -m u:logstash-:r-x /var/log' for example, and then test by editing /etc/passwd and giving the logstash user a shell temporarily. Then, su - logstash, and try and...
3
0
2,663
2014-11-09T19:11:35.037
pipeline_ops
serverfault.com
680,143
How to forward domain resolving by prefix?
Sometimes I have to connect to my work network throughout VPNC. That network has DNS server. I don't have a permission to pull zone files from it. And I have local bind server which forwards to 8.8.8.8 and resolves some internal names of my KVMs. And my resolve.conf directs to 127.0.0.1. All names from the work network...
[CODE] will do this for you. Run it locally on your machine and set your [CODE] to point to [CODE] . I don't have the full configuration to hand but the parameters you probably want to investigate are [CODE] You can include other files from the main [CODE] file, so one of those could be updated as necessary when you br...
1
1
1,257
2015-04-02T18:56:47.600
infrastructure
serverfault.com
382,682
Correct way to serve file that's in node_modules
Say I have this structure: [CODE] and in app.js I have: [CODE] the problem is since the server is most likely running from the project root directory, the index.html file won't have the right path to pick up the assets.js file. For example, in index.html if base is set like so: [CODE] that won't work. I could try using...
Well, I solved this with Laravel Mix: in the webpack.mix.js [CODE]
0
1
2,128
2018-12-08T05:22:38.803
api_errors
softwareengineering.stackexchange.com
278,046
add email account to postfix for user not existent on machine
Postfix seems that uses the system users to define email accounts , i'm wondering if there is an alternate method to create accounts? i want to add email users that do not belong to the system and cannot shell to the server thanks
You need to look at virtual mailboxes . The storing and location of these is normally simple enough, but accessing them becomes the question. Where to store user authentication details, what do to about aliases etc. Sometimes people use MySQL, PostgreSQL, LDAP backends etc. The example virtual mailbox domain in the lin...
1
3
1,001
2011-06-07T22:15:37.697
infrastructure
serverfault.com
181,856
We need MySQL redundancy but replication is not an option
We have an app with some peculiar characteristics that prevent us from doing master-slave MySQL replication. It's something to do with random numbers being generated for each session and stored procedures. We plan on fixing the app next year but in the meantime we need to make our MySQL machines "highly available" so w...
I cannot think of any scenario in which you could not setup replication to produce the same data set as on the master with proper architecture. In short, it is still probably an option. You could setup two servers with DRBD replicating the data on the backend. For failover, use Linux-HA . (heartbeat/pacemaker) This wil...
0
3
376
2010-09-16T15:44:17.830
database_errors
serverfault.com
306,269
Manual for 3Com SuperStack II NETBuilder?
I have a client with a 3Com SuperStack II NETBuilder (3C8432), and he wants me to set it up for him. The only problem is that I have no experience with these routers and I can't find it's manual anywhere. Does anyone know where I can find the manual for a 3Com SuperStack II NETBuilder (3C8432)? Update: I cannot connect...
I'd suspect getting the NETBuilder working will cost as much as buying a replacement box; considering consultancy fees etc. A simple Cisco 1941 or similar would easily do the job of a NETBuilder 432 (unless you need legacy tokenring/FDDI interfaces etc). However here are a couple of links for the software guides: http:...
0
1
475
2011-08-30T01:15:00.660
infrastructure
serverfault.com
28,851
How do I populate a SharePoint list with data from an external SQL database?
This is a tossup between whether it belongs on Stack Overflow or Server Fault (but since I am not a developer, and am looking for a no-code solution, I'm starting with SF). Is there an easy way to populate a SharePoint list with data from an external SQL database? In SharePoint designer, it is a simple matter to create...
Another option that you can look into is the Business Data Catalog. While this is more complicated it does allow you to have a SharePoint view of the data. The downside to this is that it does require the Enterprise edition and pretty advanced skills to get the BDC configured to point to your custom database. Since you...
3
5
61,325
2009-06-19T18:32:57.043
infrastructure
serverfault.com
601,577
SCOM 2012R2 Installation Error
I'm installing OPSMGR I have 2 x servers running WS2012R2 with Windows updates applied SQL 2012 SP1 I've made sure the SQL collation is correct I'm installing all roles apart from Reporting on the SCOM server. All of the Prerequisites have passed. I can see the database is created in SQL but it doesn't go past "Operati...
If you installed IIS after .NET 4.0 it will not register properly with IIS. If this happens it will hang your install during the System Management MP import and you will need to re-register .NET 4.0 with IIS by running the following command (open command prompt and select run as administrator): [CODE] Once it is succes...
0
0
1,262
2014-06-03T21:03:25.767
infrastructure
serverfault.com
1,016,491
Groups policy not applying on my VPN users
Hi is any one can help me in below scenario.. I have configured VPN server on my AWS server and created multiple VPN user. After that i have created some groups policy like map network drive, hide their locka drive. But user are connected not through VPN but these policies are not working. I have run gpupdae / force as...
Can you please clarify what setup you are using? You have setup a VPN server, yes but what kind of VPN server: OpenVPN, Microsoft VPN server or another kind server? The solution to your question will be completely different depending on the setup. Also: Is the client computer a member of the domain you want to connect ...
0
0
3,394
2020-05-10T08:54:43.060
infrastructure
serverfault.com
506,974
Any good apps to visualize what's happening on an iSCSI Storage network
I'm a developer/SQL type person that has inherited an iSCSI SAN/Vmware setup in the past year. HP Lefthand P4500 SAN. Single iSCSI switch - HP Procurve 2810. Dell Equallogic PS6010E 10gb SAN (not used yet.) About 60 VMs on 4 HP DL380 G8 hosts with 96gb memory each. The 2810 was upgraded to dual Dell Powerconnect 6248 1...
Does your environment have a monitoring solution in place now? What types of problems do you want to recognize? What do you want to be able to see? I don't proactively monitor my VMware environment's network switches post-installation because serious networking issues usually manifest themselves in VM and storage perfo...
1
3
417
2013-05-11T19:04:20.573
api_errors
serverfault.com
386,325
using chained automount to mount home directory
I have set up two directories mounted with automount (via LDAP): in the /home directory automount is configured to mount [CODE] in the /network directory one entry [CODE] when i try to access the home directory of a user (e.g. ls /home/myuser), automount fails with the error message: [CODE] when i do the 'bind mount' m...
I've encountered the same problem on Ubuntu 16.04 (autofs 5.1.1), but this doesn't happen on CentOS 7 (autofs 5.0.7, but with many patches). I worked around this by mounting directly rather than bind-mounting, with entries of this form in [CODE] : [CODE] I'd also much rather use a bind mount into a [CODE] directory on ...
6
0
1,463
2012-05-05T16:11:02.103
infrastructure
serverfault.com
581,842
Windows DNS configurations for outside IP
Here is my problem. I have a Windows DNS that points to 5 servers all within the LAN. Locally the routing to these servers works fine but I need a way to access these servers outside the LAN ( HTTP ). The DNS has an outside IP, is it possible to point my domain names for these 5 servers ( I bought them on Go Daddy ) to...
No, because: and the DNS will route the traffic accordingly? DNS does not route. Never. DNS answers "where is this domain" with an IP. What you ask for is basically a reverse IP NAT; check your firewall / router documentation.
0
3
115
2014-03-13T15:01:42.177
infrastructure
serverfault.com
83,103
How do I remove duplicate records in a table?
I have a table table1 with 1 millions rows of data. I want to remove all the duplicate records in the table1 I was looking at this link: How do I remove duplicate records in a join table in PostgreSQL? Can you tell me how to do this below query in SQL server? [CODE]
The syntax is just slightly different: [CODE] Personally, I prefer to use a CTE. Then I can easily swap in a [CODE] to validate what I am about to delete, and easily change the where clause to validate what I am going to keep: [CODE] I believe these semantics match yours, but please test. Then, of course, add a proper ...
2
5
846
2014-11-19T20:54:55.373
database_errors
dba.stackexchange.com
875,180
Forward connections to a virtual machine within a docker container
What I'm trying to achieve At work we use a specific operating system, which we (the developers) run within virtualbox. The virtualized OS is running Samba server and rsh that we use to access the OS. Also, the virtualized OS needs access to several servers on our network. What I would like to achieve is to have a way ...
So the solution is incredibly simple: Move the Virtual into another subnet and set its gateway to the IP of the Container That's it. NAT rules as mentioned in the question are correct. Because the Worker and the Virtual were on the same subnet, the Virtual connected to the Worker directly when creating the connection t...
2
0
1,524
2017-09-23T19:19:34.970
pipeline_ops
serverfault.com
43,647
Apache send 403 instead of 401
Is there a way to get apache to send a 403 instead of a 401 with some config in an .htaccess file? I'm using dreamhost btw. Edit: I should better explain what I am doing. I am doing an HTTP auth login page with jQuery. My goal is to bypass that browser popup login window. To do this, I want the server to give me a 403 ...
You can use a rewrite rule to produce a 403. [CODE] F, in this case, means forbidden (403). EDIT ...and yes, this goes in the .htaccess file. EDIT As described in a comment to radius answer, you'd like to check if a user is authorized. I don't know how you're doing your authorization, but my guess is that it's not imme...
5
4
2,611
2009-07-21T17:21:17.513
api_errors
serverfault.com
150,292
Service Broker Connection handshake failed. There is no compatible encryption algorithm
My target server is not receiving the message and the following error shows in the target servers error logs. Service Broker login attempt failed with error: 'Connection handshake failed. There is no compatible encryption algorithm. State 22.' I am using service broker transport security - certificate based authenticat...
A service broker instance on another server was causing this error. It didn't have a master certificate on the server with error. I dropped the service broker instance on the other server and the error went away.
2
1
3,024
2016-09-21T13:53:18.097
api_errors
dba.stackexchange.com
752,979
Set default route to virtual ip
I have a Virtual private cloud running on 10.0.0.x. In this network two machines share a virtual ip to provide HA and connection to the internet via aaa.bbb.ccc.164. There configs are: Proxy1: [CODE] Proxy2: [CODE] In this example Proxy1 holds the Virtual IP. So behind these proxies, a couple of servers exists. At this...
What are you using to manage the virtual IP on the other side (.164) ? Can you not use the same mechanism on the 10.X.X.X side to make a virtual default gateway for the servers ? The only slightly more tricky part is making sure that in scenarios where the virtual IP has switched from one proxy to the other (say a netw...
-1
0
492
2016-01-31T10:16:52.203
infrastructure
serverfault.com
449,221
Location Directive in a VirtualHost
I'm trying to add server-status location directive under one of my virtual host, however i'm getting a 403 Access Forbidden when browsing to www.mywebsite.com/server-status. Is it legal to put the Location Directive under a virtual host? Edit #1: Full vhost config [CODE]
Yes, the documentation states that location can be used in server and vhost contexts. Check the underlying file system to ensure that the webserver has suitable permissions to access the files and directories. Your update shows that you are only allowing access from aumento.io. Ensure that the IP address for aumento.io...
2
5
25,415
2012-11-15T22:29:28.513
api_errors
serverfault.com
199,649
Will altering an nvarchar(max) column to nvarchar(50) lock the table?
I have a table in SQL Server (Azure) with 1.4 million rows. I'd like to index one of the columns; however, its datatype is [CODE] (defaulted to such by using EF I imagine). I'm using Entity Framework and can make a migration that will alter this datatype to [CODE] . My concern is how long this will take, and whether it...
There's no way for us to fully answer your question. Depends on way too many factors, including the table definition, other columns in the table, if the data is off page, the T-SQL generated by your ORM, and so on. The documentation is pretty good though: WITH ( ONLINE = ON | OFF) Applies to: SQL Server 2016 through SQ...
6
9
4,452
2018-03-07T21:37:37.067
database_errors
dba.stackexchange.com