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
104,339
Mysql InnoDB vs Mongodb write performance
I need to increment a counter each time a web page is rendered. When I use mongodb to do that, I can do about 16000 writes per second on a 4 cores/8 threads CPU on a regular disk. When I use Mysql InnoDB table, I can do only... 30 writes per second on regular disk or 200 writes on SSD !! Because I have only one write p...
The MySQL vs. MongoDB argument is in many ways a relational vs. NoSQL argument. Each one excels in certain scenarios and is ill-suited for others. And because of their very different structures each one contains features not found in the other.
-1
0
1,198
2015-06-17T16:57:35.370
database_errors
dba.stackexchange.com
158,771
MariaDB: Error 121 trying to add a foreign key but no foreign key is present
as part of a migration process, I've got a SQL script that adds several foreign key constraints to the database schema. When I run it in our development environment, I get an error 121 and the InnoDB log says: "A foreign key constraint of name [CODE] . [CODE] already exists.". But when I run either one of [CODE] I get ...
It may have been a residue of the failed migration process: I can add the foreign key on a freshly restored db.
-1
0
181
2016-12-21T07:49:32.443
database_errors
dba.stackexchange.com
177,412
Join On Text Fields In Query
I am unable to change DDL for the tables, but I need to join on two [CODE] fields. I get an error of Msg 402, Level 16, State 1, Line 23 The data types text and text are incompatible in the equal to operator. Below is sample DDL that illustrates my issue, how do I overcome? [CODE]
You can cast [CODE] fields as [CODE] [CODE] id | name | id | green :----- | :--- | :----- | :-------- 123 | Joe | 123 | JDSKLJS 222.00 | Jim | 222.00 | KLJKLJJKL dbfiddle here
2
4
3,948
2017-06-27T18:29:24.663
warehouse_errors
dba.stackexchange.com
644,262
rcp files from windows 2008 server to linux box? (Running rcp on linux)
I am trying to run rcp command on rhel6 server to copy over files from a windows 2008 server but see this error message. /usr/bin/rcp administrator@10.225.185.112:"C:\nfsqa-rhel62-vm01.root.keytab" /etc/ rshd: unable to create process: The system cannot find the file specified. Is there any security policy that needs t...
Run SysInternals Process Monitor on the Windows server, then try the command. It will log what's happening, and show if the file access is denied, or if the file really isn't found (and what path the Windows process is ends up looking for). Since it works on an older server, my guess is it's to do with UAC and accessin...
0
0
350
2014-11-14T02:45:34.557
infrastructure
serverfault.com
915,051
Concrete difference between faults and attacks
I don't know if it is the good place to ask this question but I believe it is OK. My question is simple: how can one make a difference between a fault and between an attack? A denial of service could be cause by both, what may be considered as injection of data could be a device that is not working properly and so on. ...
Attacks involve an adversary. Faults are technical failures. Hence, if you have an issue, you must find the root cause. If the server has a broken power supply, but nobody entered the server room, itˋs most likely a fault. If you find phishing mails, unexpected vpn logins, indicators for CnC traffic and suspicious acce...
0
2
194
2018-06-04T08:23:08.383
infrastructure
serverfault.com
332,222
Postgres - Is it possible to have a `UNIQUE INDEX` with `NULLS NOT DISTINCT`?
Given this table definition with a partial index: [CODE] I would like to ensure there is only one value of [CODE] where the record has not been archived. This constraint should not apply to records with [CODE] as a non null value (i.e. we should allow many archived records for a given [CODE] pairing). The above constra...
Identify a string that cannot occur in [CODE] , for example [CODE] . Then create your unique index like this: [CODE]
1
2
259
2023-10-17T13:41:24.060
data_quality
dba.stackexchange.com
847,663
Filezilla FTP with Google Cloud compute engine Windows virtual instance not listing directory
I have a Windows 2016 VM instance in Google cloud. I have added an inbound Windows firewall rule to allow port 21. I have configured Google cloud with both inbound firewall rules for port 21 as well as outbound for all ports for passive. I am able to connect to my FTP server, but I am receiving this error. [CODE] Note ...
If you want to work using TLS you might need to open port 990 and even port 989 . Another option to encrypt your data would be to use SFTP. There is a nice guide to configure Filezilla on GCE using SFTP here
2
1
3,037
2017-05-01T22:52:44.413
infrastructure
serverfault.com
459,690
Server 2012 - Home Folder Share Permissions
I'm trying (without success) to get help with setting up User Home Folder\Directory permissions on server 2012. What I would like to know is what permission do I need so that each user can access his/her files etc but CANNOT view\access other users home folders. I have already created folders on the server called " Use...
Unless something drastic has changed in 2012, the following should work. Set the share on the server (in your case UserData$) with Full Control for the Admins/Domain Admins, and Everyone as "Change and Read". On the NTFS folder "UserData" set the permissions explicit without inheritance and only grant Domain Admins Ful...
2
6
43,248
2012-12-20T14:32:59.907
infrastructure
serverfault.com
1,107,588
ethtool Says Speed: 1000Mb/s, So Why, ipref3 Not Exceeding 9M4b/s
I am currently attemping to run iperf3 between two 1000Mb capable ethernet devices, a Raspberry Pi 4 running OSMC (a Debian based Media Server distro) and a Dell XPS 15 laptop running Ubuntu. The devices are connected to a Gigabit switch using cat 6 cables. On both devices, running this command: [CODE] Returns: [CODE] ...
Well... seems the issue is I was swapping out the wrong cables. In other words, I'm an idiot who needs to label his home Ethernet cables.
-3
1
332
2022-08-06T23:41:06.357
infrastructure
serverfault.com
528,919
Windows Server 2012: Limiting number of users who can access a file at any given time
I am relatively new to server administration, and have been unable to find much information regarding this matter. I wish to have a file which numerous users have access to, but that allows only 1 user at any given time the ability to access it. Example: User1 and User2 have read/write permission to the file, but if Us...
You can configure the number of simultaneous users on a file share basis by going to the advanced properties of the share itself. Not sure how well this would work though for what you are looking at. This sounds like you want checkout / check-in capabilities which is possible with something like Microsoft Sharepoint . ...
0
1
3,839
2013-08-06T03:22:59.793
infrastructure
serverfault.com
748,021
block DNS Amplification Attack by iptables
Last time I've got warings about DNS Amplification Attack from NFOservers.com DDoS notifier [CODE] For info my.dns.ip.addr.53 - my VIP - external IP DNS address 63.251.20.x.18150 - dont know what this IP address range is My server have to offer recursive queries for internal company network I have configured in bind9 s...
Honestly, it looks like your ACL is working as intended: query-errors: info: client 93.48.40.139#54822 (cpsc.gov): rate limit drop REFUSED error response to 93.48.40.0/24 You're still getting the queries, but you're refusing to provide an answer to them. The rate limiting code is being invoked because the queries are s...
2
3
10,213
2016-01-10T14:52:43.650
api_errors
serverfault.com
525,126
Why can I not get a WDS-originated PXE boot to progress past the first file download?
I'm trying to work out an automated Windows install process, and thought I'd give WDS a look. After some promising initial progress, I seem to have hit a wall. I imported the boot and install WIMs, and created the capture WIM successfully. However, whenever I try to PXE boot the reference machine against the WDS server...
So its getting a DHCP address and contacting the PXE server, but then it isn't receiving a WDS boot image? Check your WDS Server Settings. Specifically the PXE response, and PXE Boot, and Client TABs. I would also double check your Boot images configured in WDS. Imported from a Windows install DVD etc ( media\sources\b...
4
1
9,979
2013-07-21T16:04:20.900
data_quality
serverfault.com
635,126
Manage nginx rewrites in project folder
I am trying to figure out on how to migrate from Apache to nginx, keeping rewrite rules flexible to change for developers. This is our current setup: We have a .htaccess file in the root folder of the project (and in some subfolders as well) In this .htaccess file, the developers can define rewrites for pretty permalin...
OK, so firstly I think you should consider carefully whether nginx will really help you with your performance problem (per your comment), and test that in a development environment before worrying about how your deployment will work. It is true that nginx is faster, and that it's multi-threaded architecture helps deal ...
1
0
301
2014-10-10T16:26:43.587
infrastructure
serverfault.com
7,884
SQL Reporting Services - T2Embed.dll missing
When generating a report in SSRS, I receive the following error: [CODE] Running a repair install of the specific SQL and RS instance did not help. Any suggestions?
SQL Server Reporting Services specifically is not supported on Windows Server Core 2008 R2 SP1 and higher. You've probably stumbled upon one of the reasons why it's not supported. (I.e., it flat out doesn't work.) Besides hacking around, which may or may not actually fix the issue, I think your only recourse is to inst...
3
2
2,690
2011-11-14T20:22:40.267
bi_errors
dba.stackexchange.com
189,857
Unable to connect to SQL Server 2016 remotely
I am trying to access SQL Server 2016 from outside of my network but each time I try I get this error message. A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server...
should i construct the server name as tcp:ipaddress\instance, 1433 Absolutely no. All that the network library needs to connect to SQL Server instance is it's [CODE] + [CODE] . When you are using [CODE] , [CODE] is sufficient as the default port is known, it's [CODE] , so when you pass IP only, or PC name only, and you...
0
1
3,734
2017-11-01T13:57:55.313
database_errors
dba.stackexchange.com
252,021
Notation/Meta Language To Express An Algorithm
I need to learn a notational language, so I can express and possibly prove the correctness of what I believe to be a complicated algorithm that distributes a credit adjustment across multiple water bills in issue date descending order. But I cannot tell what that notational language should be. Each bill has three consu...
As I expressed in another answer , Z-Notation is a common standard method in formal CS for expressing algorithms independent of programming language. The broader category is Pidgin Code. Z-Notation is used in both Introduction to Algorithms and Artificial Intelligence: A Modern Approach , both standard textbooks in the...
2
2
282
2014-08-01T21:31:33.557
database_errors
softwareengineering.stackexchange.com
1,112,144
HTTPS support for GitLab behind proxy
I have one public static IP address and several applications running on port 80 and 443 on their own virtual machines. One of them is GitLab. As I can't forward ports 80/443 to just one of them, I have: An Ubuntu machine receiving all 80/443 requests. [CODE] is installed on it and configured as proxy server based on ho...
and without a valid certificate that's not possible Yes it is. Just set proxy_ssl_verify to false. [CODE]
1
1
3,184
2022-10-03T15:10:41.507
infrastructure
serverfault.com
69,741
All queries on the server have slowed down, cpu is normal, plenty of free memory but SQL is using very little
The other day I logged onto our server to see SQL was using 100% cpu and the server was slowed to a crawl. I decided to stop SQL and restart it. However, it refused to stop properly and stopped responding. After playing around with it eventually I got it restarted and running again. However, all queries against it are ...
When you're trying to find out why a SQL Server is slow, start by checking these things: In Task Manager, is the CPU consumer actually sqlserver.exe, or something else? If it's something else, troubleshoot that first. If it's actually sqlserver.exe, check what queries are running right now. The easiest way is with Adam...
0
2
1,438
2014-07-04T15:16:13.607
warehouse_errors
dba.stackexchange.com
448,060
In "Liskov Substitution Principle", are "Preconditions can't be strengthened in a subtype" & "Postconditions can't be weakened in a subtype" the same?
According to Is this a violation of the Liskov Substitution Principle? , as I understand, the top answer currently says the code below is violating "Liskov Substitution Principle": [CODE] However, I'm not asking why it is violating "Liskov Substitution Principle", what I want to ask is, why would "Preconditions can't b...
You are looking at a method that takes no parameters and returns nothing. Preconditions often involve the supplied parameters, and postconditions often involve the return value. If you default to preconditions involving the parameters, and postconditions involving the return value, it's more natural to express things w...
2
4
316
2023-10-12T08:42:08.133
api_errors
softwareengineering.stackexchange.com
27,057
Automated Hyperparameter tuning
Are there any advanced packages that allow automated hyperparameter tuning for neural networks and traditional machine learning algorithms like XGBoost, random forest (using method like Bayesian, random search etc. that could allow for faster discovery of the optimal parameters)? I have heard of hyperopt, but it seems ...
There are a number of methods to automate the optimization of your hyper-parameters, such as GridSearch and RandomSearch which the article you linked discusses briefly. The main reason to choose one over the other is if you want the best possible parameters, and do not care how long it takes to get them: go for GridSea...
4
3
1,210
2018-01-26T00:51:26.563
data_quality
datascience.stackexchange.com
28,401
Oracle: Long delay opening connections
I am getting a very long delay (about 2 minutes) opening initial connections on my 11g2 development server. Sometimes I get [CODE] and no connection at all. However, the problem disappears on the second attempt. The problem occurs with multiple clients: our app under development (using occi), SQLPlus, SQLDeveloper. Edi...
The appropriate method will be sqlnet tracing. Configuration is described in Net Services Reference the output is useful for oracle support. As far as I know it there is now documentation published but you can try to get some clues set the following parameters in the sqlnet.ora of the client (the client must use tnsnam...
2
1
6,423
2012-11-08T19:54:36.153
database_errors
dba.stackexchange.com
963,688
Not able to login to the remote RHEL server
Problem : Not able to login to remote server using SSH. Environment : Windows 7 PC, Connecting server using Git Bash terminal Below is the command I use to login. [CODE] and I also tried to login with IP Address. [CODE] I am not getting any response/messages in Terminal. The terminal just return in the path. [CODE] Wha...
Please check your ssh config client file and see if you mentioned any user there or you are using system user, it should match to remote user, another thing is check if remote server only allow key based authentication and password based denied.
0
0
69
2019-04-18T15:50:46.583
infrastructure
serverfault.com
680,097
PHP-FPM Primary script unknown, but SCRIPT_FILENAME is set correctly
I'm using Nginx 1.5.12.1 with PHP-FPM for PHP 5.6.5 on CentOS 6.6 x64. When I visit any page, I get a 404 with the error: File not found. My PHP-FPM error log doesn't say anything useful, but my Nginx error log: 2015/04/02 10:25:44 [error] 24689#0: *35 FastCGI sent in stderr: "Primary script unknown" while reading resp...
SELinux was enabled and preventing all filesystem access for the user that PHP-FPM was running as. Changing this resolved the issue. This was visible by checking [CODE] as suggested in the comments by Michael Hampton.
2
1
2,723
2015-04-02T15:36:13.523
infrastructure
serverfault.com
71,486
NP complete or NP hard problems in real life
Does anybody have real life examples where they regularly solve NP complete or NP hard problems (by heuristics, or chasing a suboptimal solution or whatever) in their job? I know they occur in scheduling, planning, VLSI design, etc., but I am trying to get an idea of the major industries employing programmers or engine...
Some of the things I can think of (most of these I've been involved in more or less): Development environments for languages and compilers. Questions such as: does this grammar generate an ambiguous language? (This problem is actually undecidable!) Data recovery. Reassembly of partially lost data packets or recovering ...
18
8
6,438
2011-04-26T18:56:39.257
api_errors
softwareengineering.stackexchange.com
110,678
error18470 when i try to connect to Database Engine
I am new in SQL Server. Wrongly I disabled my instance when I'd worked with Logins. Now I can not connect to Database Engine. Could you please help me?
Download PSExec from Microsoft, then use it to launch Management Studio once you have it installed: PsExec -s -i "C:...\Ssms.exe" This will connect as NT AUTHORITY\SYSTEM and will allow you to do things in Object Explore such as reset SA password. Thanks to user Aaron Bertrand for the information...
-1
1
480
2015-08-11T13:53:53.607
database_errors
dba.stackexchange.com
562,508
squid doesn't cache anything at all
I have configured squid for anonymous search and cache proxy. Initially it was working well, after two weeks it becomes slow(loading web page become slow) then again I had to looked into squid. I saw there was updated standard version of squid then I did update squid from 3.1.19 to 3.2.4. Now squid is running all the t...
The fact that there is nothing in the [CODE] suggests that the requests from clients aren't being routed through Squid at all but something else on the same server. Could you post more information about your setup, Squid config and what you actually have on the same box (censoring it first of course).
3
0
1,236
2013-12-19T15:28:27.613
infrastructure
serverfault.com
533,909
Use personal SSL Certificate created on my own?
I'm new to SSL Certificates. I've seen some tutorials about creating personal certificates but I didn't go far reading. It seems that I can create a personal SSL Certificate and use it on my website, but the question is: Will it do its job nicely? Will the connection with my customers will be encrypted? Is it possible ...
You are free to generate your own SSL certificate. Just be aware that your users will get a big scary warning message saying the certificate can't be verified. This will trouble many users. Some may just leave, or call your support line, both of which can cost you money. SSL certificates have two purposes: To enable en...
2
5
312
2013-08-26T18:17:15.477
data_quality
serverfault.com
445,991
Bridging LXC containers to host eth0 so they can have a public IP
UPDATE: I found the solution there: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge#No_traffic_gets_trough_.28except_ARP_and_STP.29 [CODE] But I'd like to have expert opinions on this: is it safe to disable all bridge-nf-*? What are they here for? END OF UPDATE I need to bridge LXC containers to...
A better way to make your change permanent is to use sysctl instead of writing to /proc directly since that is the standard way to configure kernel parameters at runtime so they are set correctly at next boot: [CODE] As for the answer to the question in your update... bridge-netfilter (or bridge-nf) is a very simple br...
9
6
30,098
2012-11-06T16:10:48.563
pipeline_ops
serverfault.com
620,073
How do I configure RRAS 2008 so that it only allows domain computers to connect?
I'd like to configure RRAS 2008 so that when a VPN connection is initiated, a check is carried out to verify whether the initiating machine is a member of 'Domain Computers'. (We're currently experiencing problems with users using their user credentials to connect with other devices to the VPN.) regards, Evert
If you change your VPN connection to use L2TP then it will require a certificate from the client. Both these articles contain details about the implementation of this: http://technet.microsoft.com/en-us/library/ff687804(v=ws.10).aspx http://technet.microsoft.com/en-us/library/ff687750(v=ws.10).aspx Alternately you can ...
1
2
615
2014-08-13T09:13:57.930
infrastructure
serverfault.com
241,043
Minimize travel distance of n people to n locations
The problem: Given the coordinates of N people on a regular 2-dimensional plane and N target points-of-interest (POI) on the same plane, determine the set of pairs of people and POIs that minimize the sum of straight-line distances between the locations in each pair. No two people can go to the same POI, and all POIs m...
Copying the comments to get the problem out of the unanswered problems queue, and making it community wiki. This sounds like the travelling salesman problem. See Algorithm for an exact solution to the Travelling Purchaser Problem This is known as the assignment problem: en.wikipedia.org/wiki/Assignment_problem - Wikipe...
3
1
1,460
2014-05-24T20:56:47.443
api_errors
softwareengineering.stackexchange.com
697,246
How to fix my broken raid10 array
I have a RAID 10 consisting of 4x3TB drives. It had become degraded (sdd had dropped off). I thought I had fixed it and it was rebuilding, but now (I think) sde appears to be causing problems. [CODE] This is weird - everything I've googled suggests I should see the device name /dev/md127 here, but no: [CODE] Can anyone...
Big fat warning: Anything you do with your array (including stuff I suggest) may lead to a complete data loss. If there is a really valuable (expensive to regain) not-backed-up data, let someone experienced handle the situation for you. Including making binary copies of all four drives. From your output it seems you ha...
3
1
3,056
2015-06-07T19:59:48.603
infrastructure
serverfault.com
333,165
Using logical replication to migrate a large Aurora database from AWS to on-premises PostgreSQL
After 5 years and many $$$ spent on keeping our data in an AWS RDS Aurora PostgreSQL cluster, we now want to bring the 12 TB of data back to an on-premises PostgreSQL instance, specifically a Crunchy Postgres cluster running in an on-premises Kubernetes cluster. The RDS cluster is running Aurora PostgreSQL 14.7, the on...
If you want to avoid a longer down time, logical replication is your only option. Your idea is good: configure logical replication for the active partitions, and dump and restore the old partitions. You can directly replicate from v14 to v16. Logical replication is not simple, and you will meet challenges. But unless y...
0
0
96
2023-11-16T12:30:55.480
warehouse_errors
dba.stackexchange.com
598,253
403 Forbidden in root
I'm setting up a webserver with virtual hosts, and I'm having a hard time getting around this 403 Forbidden error. The error claims something is pointing to root [CODE] , but the directives are set for any requests for the domain to be routed to it's directory: [CODE] Here's the apache2.conf [CODE] Here's the ownership...
After reviewing all the error logs, I've found that my issue was incorrect permissions on one of the .htaccess files located in the site's directory.
2
0
912
2014-05-24T04:35:37.190
api_errors
serverfault.com
490,736
I edited /etc/passwd and have strange problems
I manually edited [CODE] for non-root user - yeah, I know this is bad. Unfortunately I saw this ( SSH failing authentication after manual edit of /etc/passwd and /etc/shadow ) very late. I already recovered [CODE] to previous state, but something strange is happening on the server, for example: [CODE] doesn't create ho...
See the manpage for adduser: useradd is a low level utility for adding users. On Debian, administrators should usually use adduser(8) instead.
0
3
322
2013-03-23T12:00:13.503
api_errors
serverfault.com
703,684
Is it possible to make me send an email by opening a malicious email?
I know I don't have much info on this problem/question so I will delete if everyone downvotes or votes to close/delete. Is it possible for someone to make an email look like I sent it simply by me opening an email from them? I'm not a IT expert so I might be asking a very stupid question. The situation is this: my frie...
Unless there's another fault, like a browser exploit, lack of AV, or something like that, a link alone can't exploit you. Maybe the email server (if it's dedicated) was hacked but that, to me, seems the least likely. That being said, I could easily spoof an email by bouncing it off of my own server and signing it as su...
-2
1
77
2015-07-06T03:07:00.767
infrastructure
serverfault.com
57,140
How do you integrate nlp into an existing website?
Let's say I have a db driven app which has two tables: people and organizations. I run my documents through a named entity recognition program. Now - what do I do with this additional ner information? Does it go in my existing db tables? Do I have to rewrite my existing tables to accommodate the ner data? Do I make new...
The answer is it depends on you architecture. Some things to consider: The tags are attributes of words in a (presumably) text field in a database. So Boyce Codd would prescribe putting it in a seperate table referencing the primary key (and possibly the position in the text) The tags are just a function over your data...
0
1
73
2019-08-07T14:15:05.057
data_quality
datascience.stackexchange.com
143,953
Is Tax Localization a good use for Workflow Foundation?
Scenario: We have both Winforms and MVC code that is being used to work on a nation wide multi-user platform that does lots of logistics for lots of users. Tax rules change per state and even per city or county. These tax rules make a huge difference for our industry. The other issue is that rules can change based on l...
Just like WPF, Workflow Foundation has a pretty steep learning curve to become proficient with it. That being said it is a very powerful framework albeit with a few quirks. Depending on your time frame for delivery, there are alternatives for embedding a simple rules engine into your application. One option, which I ha...
1
1
275
2012-04-11T15:27:39.110
api_errors
softwareengineering.stackexchange.com
202,541
prevent unique constraint violations in clustered architecture
im working with four app servers and two database instances (3DNS and BigIP determine what app server a user is directed to based on usage etc). Two app servers per database node. The database instances stay synchronized using replication. However, when a new user first visits the application it uses SSO to get a their...
Yes, with row-level locking, however I am not sure if this question is appropriate for SF or should be moved to SO? Seems like an app architecture thing, regardless of the underlying setup and/or hardware.
0
0
52
2010-11-16T16:32:25.667
data_quality
serverfault.com
932,853
Fail2ban not working?
I'm trying to use the [CODE] command to test my filter and regex, but it doesn't seem to be having any luck. I used a tutorial to demonstrate how to use the Devise gem with Rails to log failed logins. Here's my [CODE] file: [CODE] and then here's what I have in my [CODE] file. [CODE] And here's an example output from t...
Think I just figured it out. After setting [CODE] to empty in the filter file, it always matches now. Spent 4 hours trying to figure this out.
0
0
426
2018-09-26T23:25:44.547
infrastructure
serverfault.com
972,660
Authenticating Linux Login against Active Directory (AD) without Joining Linux Machine to AD Domain
I have a conventional Active Directory Infra deployed on Windows VMs on Azure. There is no Integration of this convention AD with Azure AD. I want Linux VMs on Azure with SLES 12 SP3 to authenticate against our conventional AD setup, without needing to join the AD domain at all. The flow should happen like this: While ...
There used to be an Identity Management for Unix piece of AD that would allow you to specify home directories, user shells and other Posix attributes and allow users to authenticate from Linux via AD. This is no longer the case. As of Server 2008 that piece has been deprecated. You can try using ADSI Edit to set values...
1
0
2,053
2019-06-24T14:06:37.640
api_errors
serverfault.com
51,712
How to copy a table during replication in MySQL?
I have two MySQL servers; db1 and db2. db1 is production and db2 is for reporting. I have setup replication where db1 is master and db2 is slave. This current setup works fine. I was given a new requirement to not replicate a field from the USER table because it contains sensitive information. Here are the steps I impl...
[CODE] and the related configuration options are problematic at best. Not because they don't do what they're supposed to do -- because they do -- but rather because they have side effects that require a deeper understanding of MySQL replication. The problem you have stems from the way the events are replicating. MySQL ...
1
1
774
2013-10-17T21:38:10.807
database_errors
dba.stackexchange.com
358,621
.NET 2.0 Application on Windows Server 2003 dies with a File Not Found exception
I need to run a small .NET 2.0 based application on a Windows Server 2003 based server. I have successfully installed .NET 2.0.50727 from here and rebooted the server. When I launch the application it is as though I never tried to - no error dialogs, just silent death. The Event Viewer shows an Application Error with t...
I am pretty sure your problem is happening before the application code even gets a chance to run - the error looks like it is coming from the CLR (Common Language Runtime), which is responsible for properly loading the application and any dependencies. I have definitely had this sort of error at some point in the past,...
1
1
1,846
2012-02-10T02:01:35.837
infrastructure
serverfault.com
433,134
correct way to prevent SPF failures
I have a website on a hosted server whose mail users are using their ISPs SMTP to send mail. I have set their SPF record to look like this: [CODE] the SMTP host is comcast.net, 76.96.53.0/24 is the ip range they get assigned from. ip4:216.70.103.0/24 ip4:216.70.101.0/24 are the two possible SMTP ranges they could get I...
I'm not sure, but I think you need to set [CODE] instead of [CODE] because the mailservers are not listed as an A record under comcast.net.
1
1
176
2012-09-29T00:10:32.573
infrastructure
serverfault.com
258,681
Optimize user segmentation by bytea column
First i would too explain my problem: I have around 10 millions of customers in the table. Based on customer attributes, we are creating segments. My table what joins customer with segments looks like [CODE] Every 3 hours we have a cronjob, what refreshing segments and reinsert them again to this table. Each refresh me...
I'm not sure, if PostgreSQL each time of this update will overwrite full file or only one bit in the hard disk? PostgreSQL will definitely rewrite the whole column on any change, as it cannot do in-place updates, let alone in-place intra-column updates. But you could break down the segment into fixed-sized sub-segments...
0
1
103
2020-02-01T13:30:18.393
database_errors
dba.stackexchange.com
94,936
How do I understand this DeadLock Graph?
I'm attempting to decipher the content of this deadlock graph. Is there some way to view this information in a more visually meaningful way? Manually reading through the XML is hurting my eyes. [CODE]
An easier way to understand a deadlock graph is taking that information you have and saving it as a .xdl file. That is the default deadlock graph file extension. Then you can open it with either SSMS or SQL Sentry Explorer. With the graph you will have a quicker understanding on what happened, which process was waiting...
2
3
1,495
2015-03-11T06:40:23.690
database_errors
dba.stackexchange.com
1,095,784
Get real requester IP in containerized NGINX reverse proxy
I have Docker Swarm stack with nginx as reverse proxy set up on OVH vps. I was trying to make use of allow/deny directives in location, but if I set deny all; it wouldn't work even for the ip's added with allow directive. After looking at access logs I found out, that all requests allegedly come from IP 10.0.0.2. Now I...
Problem was caused due to the additional "overlay" network in docker swarm; I have bypassed this by using "host" networking. [CODE]
0
2
8,485
2022-03-09T21:03:52.213
pipeline_ops
serverfault.com
299,557
How to 'pause' SQL Server AlwaysOn Availability Group
We have two SQL Server nodes running in an AlwaysOn Availability Group. I'm looking for some suggestions and/or best practices on how to temporarily suspend connection or prevent users from connecting the Availability Group? I was thinking to pause SQL Server running on the primary node and this will prevent new connec...
The simpliest way seems to simply shut down both nodes. That way, no one will be able to connect to them. If ever you need to roll back to them, just turn one of them (or both) on and they will then be accessible. If you do not want to stop the SQL instances, then you could delete the listener from the AG. As all you u...
0
0
1,086
2021-09-14T13:35:05.323
database_errors
dba.stackexchange.com
227,702
What to do when your company doesn't encrypt passwords
Background I'm been contracted to help a company maintain their server. I work on some minor PHP projects but also look over performance issues and recently, scan logs for hackers. These guys have been running their server for some time and have what I would call a legacy application on its last legs. It uses magic quo...
The calm approach that you suggest would be best. Pointing out that when this data gets exposed, most of your users will be vulnerable to identity theft due to password reuse. This would be a pretty good time to point out that this is the same issue that affected Target (assuming that the company isn't Target). And you...
13
15
1,037
2014-02-04T18:14:07.693
database_errors
softwareengineering.stackexchange.com
46,558
Oracle db_name, db_unique_name, and ORACLE_HOME
I'm studying Oracle and I would like to understand the uniqueness or constrains when assigning these parameters. Suppose a machine with a single OS (host) and 2 different databases (physical). Are they forced to use different db_name in following cases? They share ORACLE_HOME They don't share ORACLE_HOME How is this re...
You can have 2 databases with the same db_name on the same system on linux in the same ORACLE_HOME. You just have to make sure that the instance name differs. EG different pfile/spfile,... It's just not advised to give them the same name... When running the runinstaller you just give them the same global name and a dif...
0
1
6,764
2013-07-16T22:24:29.830
database_errors
dba.stackexchange.com
401,058
How to reach a virtualized application server running on Mac OS X from an outside computer or tablet
After Googling for hours on end looking for a solution I decided to leave a message on this forum. I hope you guys can give me a push in the right direction to solve this issue. I am using a Macbook running OS X 10.6.8 (Snow Leopard). This machine is connected with a wifi router and has a local IP address: 192.168.104....
Original answer here please give him credit too. https://stackoverflow.com/questions/2970442/running-a-server-in-parallels-virtual-machine-is-it-possible-for-the-host-to-ac You want to put your guest into "bridged" networking mode. This will allow it to obtain an IP address on the same network as your host OS (from you...
1
2
579
2012-06-21T19:10:14.117
infrastructure
serverfault.com
436,459
Is it a good practice to allocate memory size to data types?
I'm learning rust and curious to know the purpose that we can allocate memory sizes to data types. I'm not clear yet how this could be an advantage. It can definitely save up some memory space but I ran into a similar thread that stated memory is the least of the concern.
The answer is as always "it depends". If it was a feature with no value, nobody would have put it in the language. If it was a feature which always had value, it would be the default. Situations in which you should do it: You have an actual functional reason for caring about how many bits there are in your data types; ...
1
3
327
2022-02-03T12:26:17.047
api_errors
softwareengineering.stackexchange.com
139,047
Recover innodb mysql 5.6 database WITH ib_logfile0,ib_logfile1, and ibdata1 but WITHOUT .idb files
I had a customer's computer shutdown/crash due to power going out and when mysql tried to boot they got. After I looked in data folder for database and there was just .frm files and no .idb files. [CODE] I copied their data directory to an identical server and am trying to recover. The files ib_logfile0,ib_logfile1 are...
Community Wiki answer generated from comments on the question by akuzminsky User data are in *.ibd files. So, from just ibdata1 and logfiles - not possible. What you need is take an image from the disk, parse it with stream_parser and if it finds InnoDB pages fetch records from them with c_parser (search for undrop-for...
0
1
1,955
2016-05-19T18:31:56.747
database_errors
dba.stackexchange.com
18,290
Virtual Machine guest optimization tips
I've installed Windows7 in VirtualBox 2.2.4 and worked like a charm. But compared with my WindowsXP virtual machine, the performance is slow. I've installed Windows7 in (non-virtual) machines and the performance was better than XP and Vista. I would like to know about tips to optimize the guest Windows7 so the performa...
Generally there's no need to optimize Windows 7 Virtual Machines. Unlike previous Windows releases it's pretty smooth right out of the box as long as it's got at least 1Gb RAM allocated . I'm using Windows 7 x64 under VMWare Fusion on OSX and it's blisteringly fast. We run a lot of Windows VMs for software testing on a...
7
15
12,685
2009-06-02T23:03:05.270
infrastructure
serverfault.com
130,645
Is it possible to have MySQL slave outside firewall
For various reasons I need one of the databases from intranet MySQL server to be made available to (insecure) online server. Due to the requirements it was decided that a db dump will be used via cron to transfer data as the firewall does not allow any connections to be initiated from outside. Then MySQL Master-Slave s...
Rather than exposing your database's ports to the public network at all , I would recommend arranging for the services to be able to see each other by more secure means. The SSH tunnel option already mentioned will work, though for reliability you'd want to look into making sure that the tunnel remained active after a ...
3
2
1,570
2016-02-27T12:45:34.723
database_errors
dba.stackexchange.com
78,428
Sysadmin performance metrics?
I work at a dot com and part of our team's responsibility is to maintain the production web application and server farm. Only recently did our department even get created, and now we have a huge amount of catchup patching servers, and implementing monitoring and backups. To start on this monster we've broken it down in...
If it's a unique problem, how can you measure whether the problem lay in the person or the problem? You should be documenting everything that would be required to get your department running if half your people are killed/fired/etc...if you needed to rebuild the department with new admins, they should be able to get th...
5
8
1,151
2009-10-26T19:02:40.353
pipeline_ops
serverfault.com
590,497
JBoss EAP 6.2 on RHEL 6: ./bin/init.d/jboss-as-standalone.sh hangs while calling via SSH
I'm using jboss-as-standalone.sh to manage JBoss EAP standalone as a service. I can start/stop the service with "service jboss-as-standalone.sh start/stop" while I'm on a terminal. But I would like to start JBoss from outside the server via SSH using our Continuous Deployment Infrastructure. Therefore I'm issueing a co...
Try this: [CODE] Check [CODE] for more information.
3
0
1,779
2014-04-22T09:03:38.537
pipeline_ops
serverfault.com
599,560
Use a specific forwarded key from SSH-agent?
Let's say I have a key for Github, along with other keys. I've added lots of keys to my ssh agent ( [CODE] returns lots of lines) at my home computer A. In my [CODE] I have set up which key to use with which host, so e.g. [CODE] gives [CODE] Only one key is offered, as expected. But then ssh-ing to some host B with [CO...
You got the right idea. The only part you are missing is that the file pointed to by [CODE] must exist. It does not need to contain a private key, having just the public key available is sufficient. On host B you can extract the public key from the agent by typing [CODE] and then point to that file from [CODE]
51
44
16,683
2014-05-29T21:38:11.300
infrastructure
serverfault.com
24,932
Setting relative path in Geckodriver
[CODE] That was my code. I have my [CODE] at the root folder, where my test DLL file is available. (inside bin\Debug) The above code is not working because it can't find the [CODE] . So how am I giving the relative path to [CODE]
Firstly, you should find [CODE] then copy its path as below Hold down the Shift key, then right-click the document. In the context menu that appears, find and click Copy as path. This copies the file location to the clipboard Press ctrl + v to paste in the file location to code below you should change "/" to "\" [CODE]
0
1
1,771
2017-01-18T07:59:33.043
data_quality
sqa.stackexchange.com
419,635
Is there a library or algorithm I can use to solve this type of problem efficiently in C# (.NET Core 3.0)?
I'm having trouble defining this problem space (example below), where to look, what to search etc. and would appreciate any help with suggestions of algorithms or libraries that I should look into. I've spent some time looking into constraint programming & OR-Tools but most problems seem to be scalar and I haven't yet ...
Unfortunately, this is known as a Set Cover problem , and this type of problem is known to be NP-Complete. You can find approximations to the correct answer in polynomial time, but a guaranteed correct answer is going to be unfindable for anything but very small datasets.
1
7
179
2020-12-04T00:39:03.327
data_quality
softwareengineering.stackexchange.com
200,592
Same constructor signature with different semantics?
Occasionally, I'm confronted with the problem that I have to provide some constructors in order to initialize objects with different sets of data. These sets can be mathematically transformed into each other, for example: [CODE] With such an desired overloading, which actually isn't any because of the same signatures, ...
[CODE] You could also use factory methods [CODE] Or you can use a fluent interface [CODE] You can easily use interfaces to force Left after Top, Right or Width after Left, Bottom after Right, and Height after Width. (see below) Or, you can do the most sensible thing of all and not allow the different choices. Just choo...
7
15
6,993
2013-06-05T17:36:45.590
api_errors
softwareengineering.stackexchange.com
890,850
Download private_key.pem when using ansible os_keypair
I'm using ansible os_keypair module towards Openstack, through AWX, to create a new keypair: [CODE] When creating a new keypair from Horizon I can download the private_key.pem. How can I retrieve that through ansible module? Thanks to the register/debug modules I can see output in job execution and copy-paste it manual...
Ok, sorry, the answer was somehow hidden here: Why is module os_keypair not returning private_key? I removed the [CODE] task and added the [CODE] one. The key will be downloaded inside awx_task docker container on AWX host, while I need it also locally on my desktop, I will get it somehow (out of the scope of the quest...
0
0
374
2018-01-05T10:39:40.937
pipeline_ops
serverfault.com
120,552
MySQL Server Disappeared
I haven't used my [CODE] local server in over a year. Today I tried to get in to it, and the server seems to have just vanished. I've been searching a troubleshooting all day and have gotten nowhere. I have gotten several different error messages trying several different attempts to fix/uninstall/reinstall the server, ...
These things don't just grow legs and walk away. It's likely something has gone wrong at some point in time, or something crucial has been removed. Do you know where the logs originally were located at? You're very likely to have a much better message than what you're getting now.
-1
0
656
2015-11-09T22:27:48.727
database_errors
dba.stackexchange.com
426,519
Why is "start in" needed for Windows scheduled tasks?
We develop a web application that can be deployed on Windows or Linux. The Linux implementation uses cron, and the Windows one uses scheduled tasks to run a single PHP script that processes all scheduled tasks for our system. The task is scheduled using [CODE] during the install process, like: This has always worked bo...
The "start in" is mainly to make sure that if you have relative paths in the task to run it understands which directory to run the script in. That said, this link might help you: https://stackoverflow.com/questions/1020023/specifying-start-in-directory-in-schtasks-command-in-windows
2
8
96,601
2012-09-11T21:37:24.310
infrastructure
serverfault.com
570,877
Restrict access to an intranet site to a specific group of users
I have an ASP.NET site running in IIS7 on a local intranet. I want to restrict access to this site to a specific group of users. I think I should be able to do this by using Windows Authentication within IIS, but I'm having trouble. I've enabled the Windows Authentication feature of IIS, and I've enabled Windows Authen...
Can't comment - sorry. Based on this " allow Element for authorization ", you should be able to specify each users like a groups. I.E. [CODE] You might also want to make that only Windows Authentication is allowed.
1
1
9,040
2014-01-29T22:36:59.493
api_errors
serverfault.com
10,781
What are the performance implications for using SQL Server replication?
What are adverse affects to using replication What are some examples of when replication is beneficial
To add some more about transactional replication: it uses a SQL Agent log reader job to harvest committed transactions from the transaction log of the publication database. This means that the log cannot be cleared until the log records have been read. If the log reader agent periodicity is changed then your log may gr...
4
18
10,537
2009-05-21T13:54:51.997
database_errors
serverfault.com
243,391
MySQL query takes too long in codeigniter
I've made this query [CODE] that took 0.3563 seconds to show result through phpmyadmin in my local machine and took 0.1117 seconds in digital ocean vps. But the same query took 24+ minutes in another vps. Does anyone can help me to find out the problem?
Several things make the query slow: Leading wildcard in [CODE] . (See below) [CODE] -- One workaround is with [CODE] . [CODE] -- This one is version-dependent; what version is each machine running? The first two can be alleviated by using a [CODE] and [CODE] .
1
1
1,015
2019-07-21T05:03:32.550
database_errors
dba.stackexchange.com
1,070,757
How to install Micro Focus Data Protector Client 10.91 on SLES 15 SP2?
Micro Focus Data Protector 10.91 should work with Linux distributions like SLES using systemd, but it seems client instalation does not work: When I try to install the client, I get an error message (" [110:101] Client import failed! ") while the installation steps before (Core Component, Core Technology Stack, Disk Ag...
It turned out to be a firewall problem: Port [CODE] (traditional Data Protector port) was blocked on the client. As the installation is done using SSH (which was not blocked), downloading and installing of the software worked, but communication with the cell manager (CM) was not possible. I used these CLI commands to c...
0
0
3,682
2021-07-27T07:22:51.630
infrastructure
serverfault.com
307,452
problem dhcp3-server ubuntu server 11.04
I installed dhcp3-server in ubuntu server 11.04 [CODE] However, an error message during installation: [CODE] [CODE] says: [CODE] when I want access to the file [CODE] I can not find it but the package [CODE] is installed. [CODE]
I tried with debian Squeez is the same problem, after some research I found this information: dhcp3-server package has become a transitional dummy package which depends on the "new" package isc-dhcp-server (which is version 4 of the ISC DHCP server, hence the transition). Forcing the relocation of dhcp3-server has no e...
1
0
4,047
2011-09-02T03:23:26.347
infrastructure
serverfault.com
53,849
Regarding multi label classification
I am performing multi label classification in python using sklearn. Here is the classification report [CODE] micro avg 0.79 0.70 0.74 64043 macro avg 0.76 0.58 0.64 64043 weighted avg 0.79 0.70 0.73 64043 samples avg 0.82 0.76 0.76 64043 /usr/local/lib/python3.6/dist-packages/sklearn/metrics/classification.py:1437: Und...
I don't know the framework but it seems that's what happens: Since this is multi-label classification, it's possible that an instance is assigned no label at all by the model. Apparently at least one of the samples contains only instances which are predicted with no label. This means that there are no instances predict...
0
1
432
2019-06-15T13:54:49.287
data_quality
datascience.stackexchange.com
1,049,605
Not enough space in /var/cache/apt/archives/
Debian 10 desktop with persistence [CODE] [CODE] executes without a single error Something happened to firefox-esr on this system. [CODE] [CODE] debian requires firefox-esr or chromium to be installed. This causing problems with venv install. Fix broken firefox-esr: [CODE] [CODE] Try apt cleaning options [CODE] Try re-...
You could try to purge removed packages with lingering data with [CODE] like [CODE] This also cleans out old kernels properly. Explanation for the [CODE] command is that it find lines where the first column is rc and prints the second column.
1
1
16,969
2021-01-12T21:39:16.513
hadoop_errors
serverfault.com
139,819
mongodb compact does nothing - no entry in mongodb.log and nothing in db.currentOp()
We have space problems. The actual data size is only 5 GB, but disk size is 15 GB because of deleted documents. MongoDB (3.0.6) runs in docker container where we can't extend volume. [CODE] disk [CODE] repairDatabase doesn't work because no scratch space [CODE] So I tried [CODE] I don't see nothing in progress [CODE] T...
Since you are using the MMAP storage engine there are several factors to be aware of: The [CODE] command only defragments data files & indexes in MMAP; it does not release unused space to the operating system. Running [CODE] can still be useful to reduce fragmentation and encourage free space reuse, but will not help i...
1
4
2,997
2016-05-28T07:55:26.553
pipeline_ops
dba.stackexchange.com
670,127
AOL bounces with: AOL will not accept delivery of this message
AOL started bouncing emails from my mail server with the following error: [CODE] On the troubleshooting page AOL asks for specific error code but all I get is a generic message. The emails are sent from Outlook, without any attachments. I don't send out any mass email/newsletters, only personal email. What can cause th...
You can try submitting the form with no error code selected, and hope for the best. If you're lucky, a human being might read it. You can also try contacting AOL Postmaster by phone, on +1 703 265-4670 ( reportedly AOL postmaster operations are now being handled in India; you've been warned).
5
1
32,893
2015-02-20T11:58:05.887
infrastructure
serverfault.com
592,976
IIS Logs even unauthenticated users
I'm planning to get some information by processing IIS Log files (after I imported them into SQL Server database). Now, even if user gives wrong username/password, but request to a file that exists on the server, it is logged and I cannot detect weather the user has received the file, or not. I want to process only req...
You should look at the [CODE] in the log entry. This is a list of http status codes from wikipedia but basically any request that result in a status code in the 200s (usually a [CODE] ) it means a successful request. Requests that weren't authenticated will result in a [CODE] or maybe even [CODE] Basically you know the...
0
1
298
2014-05-04T05:30:18.150
api_errors
serverfault.com
331,261
Getting deadlocks very frequently in Mysql insert query
[CODE] MySQL version 5.7 Table structure- [CODE] I am getting four deadlocks in an hour after the reboot of the MySQL server.
[CODE] merchant_id [CODE] merchant_id [CODE] can be dropped since the [CODE] can handle any needs for that index. (This is likely to decrease the I/O.) Presumably [CODE] and [CODE] could actually be [CODE] ? (This won't fix anything, but it is necessary for my next suggestion.) It seems that [CODE] could be removed and...
0
0
83
2023-09-15T16:23:29.333
database_errors
dba.stackexchange.com
199,855
Special Considerations for SQL Server with 512 GB RAM / 64 Cores?
Apart from some Windows Hotfixes are there any special considerations (i.e. "things to worry about") when running SQL on a server with 512 GB RAM and 64 logical cores? I'm aware of some guidance when operating above one or both of these thresholds but not right at them. OS: Windows Server 2008 R2 SQL Server 2008 R2 SP3...
Max Server Memory should be no higher than 445 GB. This gives Windows enough memory to manage itself. Yes, it really does need that much. Max Degree of Parallelism should be set to the number of logical cores in one NUMA node, up to a maximum of 8. If it's running an OLTP environment, make sure Optimize for Ad Hoc Work...
1
3
315
2018-03-09T21:53:38.053
database_errors
dba.stackexchange.com
312,507
Storage space used for NULL values
According to below links, [CODE] values take some storage space: https://stackoverflow.com/questions/3731172/how-much-size-null-value-takes-in-sql-server https://www.sqlservercentral.com/forums/topic/null-storage-2 If the column has fixed width data type - [CODE] occupies the length of the column [CODE] If the column h...
Some people say that the overhead for having nullable column is 1 bit per row, some that it is 1 byte per row Which one is true ? I assume is 1 bit per row (so 8 rows make 1 byte), am I right ? The null bitmap is stored at the row level so 1 byte is needed for each 8 columns of every row. The overhead is incurred for e...
2
6
1,791
2022-05-24T10:58:40.823
database_errors
dba.stackexchange.com
328,870
NoSQL vs SQL during sharding when a single read operation only hits one shard
I've a use case where I'm stuck between figuring out whether to use SQL or NoSQL db. The db has 2 fields - [CODE] A is 8 char-long, while B is 100-400 char long. The operations are simply: Write: Given strings [CODE] , [CODE] - store both in db. Read: Given input [CODE] , return [CODE] associated with it. The database ...
The reason to choose a NoSQL database system over a regular SQL database system has almost nothing to do with performance or scalability, and is mostly related to schema flexibility. NoSQL is a good candidate for when your schema changes more frequently than you're able or willing to maintain, or when you're ingesting ...
0
0
182
2023-07-02T10:57:30.700
database_errors
dba.stackexchange.com
160,758
For each field name in a list of fields, get the unique values
The Question: I have a view that is a list of fields in tables: [CODE] The underlying tables look like this: [CODE] I want to expand the list of fields from [CODE] , so that there is a row for each unique value, per field: [CODE] What I've tried: I figure a good place to start would be a [CODE] sub-select: [CODE] But o...
One approach for solving this problem is to use dynamic sql . In fact, your question is one of the example use cases: For example, a SELECT statement that includes an identifier that is unknown at compile time (such as a table name) or a WHERE clause in which the number of subclauses is unknown at compile time. At comp...
1
4
1,247
2017-01-11T17:35:23.563
warehouse_errors
dba.stackexchange.com
1,016,398
Nftables - how not to dnat an ip on interface (DNS)
I have been searching, but cannot seem to find an answer to my specific issue. I have the following rule today under prerouting: [CODE] However, I have one issue, the IP address 192.168.22.5 is also on "br0". So the question at hand is, how can I make nftables ignore this IP and allow it access port 53 on the net (this...
You just have to add an additional condition to not match for this IP address, thus not performing NAT in the end: [CODE] BUT... if both client and DNS server are in the same LAN, then the reply would be done directly from the DNS server to the client. For example with a client at 192.168.22.101 being set to use google...
2
1
5,983
2020-05-09T12:16:50.110
infrastructure
serverfault.com
52,348
GridSearchCV with MLPRegressor with Scikit learn
I'm trying to apply automatic fine tuning to a MLPRegressor with Scikit learn. After reading around, I decided to use GridSearchCV to choose the most suitable hyperparameters. Before that, I've applied a MinMaxScaler preprocessing. The dataset is a list of 105 integers (monthly Champagne sales). The problem is that for...
It would be helpful to get the ouput of the program (or at least the error thrown) However, MLPRegressor hidden_layer_sizes is a tuple, please change it to: [CODE] https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPRegressor.html
1
2
14,903
2019-05-21T21:24:38.200
data_quality
datascience.stackexchange.com
25,002
IIS Application Pool identity problem
I'm having a problem with an identity pool on a new IIS server. Here's my Event viewer text: [CODE] Google suggests that it's something to do with the user of the app pool which I set in the "Identity" tab. The most common problems are: Setting the wrong password Not adding the user to the IIS_WPG group I've tried and ...
Thanks to MattB, this Stack Overflow thread eventually led me to the right answer (for me). I ran the following command (from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727): [CODE] ...where domain\username was the domain-qualified username (in the standard Windows format) of the user I was using for the app pool's iden...
4
6
16,900
2009-06-12T20:00:56.290
infrastructure
serverfault.com
202,940
Does `WITH XMLNAMESPACES` have the ability to trigger a DDL database trigger?
I'm having an issue where, intermittently, a stored procedure is causing a database trigger to fire. The trigger is for [CODE] but the procedure itself does not do any of those things. It's a straightforward write procedure that takes an XML parameter and inserts the values into a set of tables. The one thing that is u...
To the question in the title: I'm going to say NO . Something else is going on to force the DDL trigger to fire. You should (at least temporarily) change the DDL trigger to store the [CODE] output to a table so you can examine what else the app is sending when they call this stored procedure. There must be additional D...
0
1
133
2018-04-03T17:11:44.163
data_quality
dba.stackexchange.com
565,641
OpenLDAP client configuration. Can search but cannot login?
I'm trying to set up LDAP on a Gentoo workstation to authenticate against a central server. However, I encountered some issues and I really hope you guys can help me out here :) First off, the LDAP server is running fine because the other machines can connect to it. Second, I followed this guide on Gentoo wiki to set u...
Figured it out, and I hope this will help someone in the future :) The workstations that can login to ldap were using SSSD to authenticate against the ldap server. After installing and configuring it all I had to do was switch the lines in nsswitch.conf like so: [CODE] to: [CODE] I hope this will help someone out there...
1
1
5,376
2014-01-07T17:45:01.620
infrastructure
serverfault.com
1,135,136
Is an ssh user activity (like processing data never saved to disk) secure from root eavesdropping?
Does a school, business, or friend with root access to a computer have access to currently active process data, like memory contents? How about access to an encrypted fuse mount (while mounted)? Can disk contents be protected from root while unencrypted?
Is an ssh user activity (like processing data never saved to disk) secure from root eavesdropping? No. Root can trivially make the SSH service log your activity; even without patching the SSH service itself, they could just configure /etc/profile to make your SSH sessions go through [CODE] and you probably wouldn't eve...
0
1
38
2023-06-29T02:23:39.903
infrastructure
serverfault.com
77,805
Replacing Windows server by Linux
I am looking to replace a Win 2008 server by a Linux equivalent. The Windows server provides us with the following services: File sharing with user / group based permissions VPN access from home user to the company Remote desktops access to PC (usually from home via VPN) Centralized user management and domain user auth...
I am looking to replace a Win 2008 server by a Linux equivalent. This is doable, but requires significant labor. The Windows server provides us with the following services: File sharing with user / group based permissions Samba will provide this. This is a major task in and of itself. However, you are indicating (below...
3
8
3,021
2009-10-23T23:43:36.373
api_errors
serverfault.com
149,850
How to debug ssh authentication failures with gssapi-with-mic
when i ssh to DOMAIN\user@localhosts-name authentication works fine through gssapi-with-mic: [CODE] when I connect to a different machine It just seems to stop half way through the gssapi-with-mic authentication: [CODE] How should I go about finding out what happened differently the second time. How can I find out if/w...
The technique I use in this situation is to start up a separate sshd service on a different port on the target host, and then turn up the debug level there: [CODE] Then, you can connect from the source to the target at the new port: [CODE] The server's debug log often has more pertinent information than the client's. A...
3
5
6,552
2010-06-09T21:41:34.477
api_errors
serverfault.com
216,464
Input/output (read) errors in Bacula while setting up a Tape Drive + Autochanger
When running the [CODE] command in bacula I am getting Input/output errors. I am just getting started in trying to set this up: [CODE] Bacula-dir: [CODE] Bacula-sd: [CODE] Anyone knows what this means / why I am getting this?
Okay, so because of the following config error: [CODE] I confused bacula it seems. The media was listed from the [CODE] command as type File. So what I did was drop the pool and then try to rescan with [CODE] . However, it was refused because the tapes already had the bacula volume lablel on them. To fix this I made th...
1
2
2,574
2010-12-27T17:08:20.830
infrastructure
serverfault.com
561,798
How can I block a malicious port scanner currently running on my server?
I'm currently attempting to clean and secure a server that has pnscan running on it. This instance of pnscan was installed by an outside party most likely to use our server as part of a port scanning botnet. It seems to be able to write it's binaries to /dev/shm and /tmp. Here's the output of "lsof | grep pnscan": [COD...
Normally, a compromised server is backed up as an image for further investigation in a closed down lab reimaged or reinstalled/restored, to keep production going Leaving a compromised machine, even if you seemingly clean it out, in production, isn't a safe practice
1
5
1,315
2013-12-16T23:30:15.257
infrastructure
serverfault.com
25,522
SQL Server 2008 R2 Remote Connection issue
I have installed SQL Server 2008 R2 in mixed mode, but currently issue is I can't use SQL through ip nor ip with port, even I have enabled TCP/IP and open port in firewall too. I tried to telnet 127.0.0.1 1433 to check whether its working or not but its not connecting I tried almost every possible things but failed in ...
By default Sql server may not be listening for TCP/IP connections. Did you check this stackoverflow question ? Also check start the "sql server agent" service is started.
0
1
2,247
2012-10-05T21:30:36.153
database_errors
dba.stackexchange.com
449,278
Preserving URLs after CMS migration with redirect database and apache http?
We will migrate an entire intranet from one CMS to another. All URLs will change in a non-predictable pattern, but I can capture a file with original,new URLs I can feed into anything. I have hundred thousands of URLs, not just a few hundred. What I would like to do: every URL that is not found (404) should be checked ...
I figured it out, partly. While the 404 still eludes me, I can use mod_rewrite and the RewriteMap directive to proactively rewrite URLs instead of relying on a 404 status first. This could work: [CODE] Detailed description here. now with a ErrorDocument statement the original goal might be achievable.
0
0
163
2012-11-16T02:35:56.563
infrastructure
serverfault.com
1,006,557
How to use nginx as reverse proxy send all requests to varnish
I have a centos 8 and varnish is on port 80 connecting with apache on port 8080 bellow is my nginx config. [CODE] I believe the 443 requests are ok now. But what about the non ssl requests ? i want to do the same with the nonssl requests or how to do ? any idea ?
I can come up with 3 possible solutions: Don't worry about plain HTTP on port [CODE] and just let Varnish handle it Create a vhost for plain HTTP Configure Varnish to listen on port [CODE] Copy the [CODE] block from your Nginx configuration Adjust the block to make sure it listens on port [CODE] Remove the SSL bits fro...
0
1
1,769
2020-03-11T18:50:06.733
infrastructure
serverfault.com
188,799
How to step through linked servers after failing to connect to one
I would like to change my stored procedure so it continues executing after failing to connect to a linked server. How could I write this stored procedure better? I am using TRY...CATCH to query servers that I am creating from a list to track transaction log backup history. [CODE]
You just need to add the BEGIN/END for your WHILE LOOP and move the FETCH NEXT outside of the TRY/CATCH [CODE]
1
2
42
2017-10-18T22:17:15.933
database_errors
dba.stackexchange.com
300,864
MariaDB Galera 3-Node Cluster Sometimes Doesn't Serves
I have 3 Node MariaDB Galera cluster. I am using "mariabackup" as the wsrep_sst_method, but the database system doesn't work properly. I can say that sometimes there are 100 connection requests per second from clients, so it is a bit bussy system but sometimes the db system doesnt serves for 2-6 seconds. Connections ar...
"are in the same server as virtual machines" -- This means that they are competing for CPU and I/O, especially during the backup. Is this just a test? I would not deploy Galera with all nodes on a single machine. When SST is involved, 2 of the 3 nodes are involved. The donor is busy fetching and sending data; the recip...
0
1
298
2021-10-08T13:49:15.757
database_errors
dba.stackexchange.com
1,018,518
changing /proc/sys/vm/overcommit_memory broke my server
After changing it to 2 it closed my sftp session, and I cannot connect via ssh or sftp although it kept my session open. Whenever I run a command that isnt cd, I get -bash: fork: Cannot allocate memory. This includes reboot, nano, even ls.
If you still have a root bash shell logged in as the question appears to tell, this should work: [CODE] As it's using a built-in bash command, chances are this should work and be able to allow to overcomit memory again. You can now hopefully be able to use memory again and fix things. Including checking that the sshd (...
2
0
2,286
2020-05-24T19:58:08.853
infrastructure
serverfault.com
323,276
Domain User Account Keeps Locking. No hints in logs
I have account which keep locking out every few mintues in AD. I'm using Windows 7 Enterprise X64 PC I'm using Windows 2003 STD server These are the things i have tried. Created new profile. Removed all printers and mapped drivers. Used tool from microsoft ALtool ( I can't seem to find the log file under. c:\windows\de...
Your Kerberos failure codes explained: 0x18 - The account is locked, is outside the logon hours, or the account is disabled 0xE - KDC has no support for the encryption type 0x12 - KDC Policy rejects request Based on the 0xE and 0x12, you would want to first verify that the system time on that machine matches the time o...
0
2
11,337
2011-10-20T09:12:03.490
infrastructure
serverfault.com
540,831
tap interfaces always disabled in linux bridge
I have a physical interface eth0, and I want to create two virtual interfaces and bridge them with eth0. For this purpose I do: [CODE] However my problem if that the tap interfaces always appear disabled in the bridge, and no traffic flows to them. [CODE] Is there any way to set the tap interfaces in forwarding state? ...
Carrier (IFF_RUNNING) is only set on a tap when a user has the device handle open. For a persistent tap created with tunctl, you need an application which attaches to the tap, eg: http://backreference.org/2010/03/26/tuntap-interface-tutorial/
5
1
7,019
2013-09-22T17:09:58.067
infrastructure
serverfault.com
94,770
How to setup a FTP user for IIS' FTP in Windows 7?
I've setup a FTP server using IIS in a Windows 7 machine. I would like to add a user (I want several really, but if only I could add one I'd see if I can manage somehow with one), but the problem I find is authentication. I can authenticate via the Windows user, which I wouldn't want (imagine 5 users, all 5 would need ...
Generally speaking, IIS's FTP will only authenticate against machine users unless you're running active directory somewhere and want to use that. If you want an FTP service that has independent authentication, use a third-party FTP server.
3
3
3,496
2009-12-16T01:48:02.430
api_errors
serverfault.com
782,388
rsync to backup a multi-user NAS
The setup : a Ubuntu server with samba shares to 25 users all with Windows (different locales). the Ubuntu server then has a daily cron job executed as [CODE] (not [CODE] ) running rsync to backup the shared folders to a Synology NAS. the report of this sync is sent by email. the Synology NAS is mounted through [CODE] ...
Your [CODE] job is not preserving owner/group information. Please add the [CODE] parameter to your [CODE] command (eg: using [CODE] )
0
0
675
2016-06-07T07:34:32.150
database_errors
serverfault.com
40,520
After moving a DB to a new disk, the log file isn't dumping data to the DB
I recently added a new disk to our SQL Server box and followed these steps from Microsoft to move the .mdf file to the new drive. I opted to leave the log file on the original disk for performance reasons. When I tried to bring the database back online, I was met with a systems permissions exception (admin access was n...
However, two days later, the .mdf file is the same size as pre-transfer (I took it offline and only the timestamp changed). There was enough free space in your data file for any new data that was written. When that spare/free space is consumed the file will grow, not before. You can confirm the size and free space in y...
2
5
170
2013-04-20T20:51:58.403
database_errors
dba.stackexchange.com
360,441
Managing many to many relationship with many different types
I have a new requirement that for a given [CODE] how many vehicles he can drives. At present this information needs to be shown as a list of vehicles. There can be different types of vehicles, for example: User A Cars SUV 1 Toyota RED Bikes Fav Yellow Rocker blue And so on... The users are normally family members hence...
Many to many relationships are usually a sign that entities require further decomposition. In the case you describe, what you really have is a one to many. A person can drive more than one vehicle. So the relationship is Person->PersonVehicle->Vehicle PersonVehicle would just contain the list of person and vehicle keys...
2
1
647
2017-11-08T11:00:14.523
api_errors
softwareengineering.stackexchange.com