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
52,582
Transfer learning for a regression problem
if my understanding is correct, in case of image classification and NLP, if I have a pre-trained model, to train on new data, I can reshape the data according to the pre-trained model. So there is no problem even if the new data is slightly different from the previous data. I am trying to use transfer learning for a re...
The question is if you can provide the trained model with the data it expects to provide a good output. In your example, for the model to provide an output, you will have to provide 15 inputs. If you have only 14, can you put a value for input 15 that will make sense to the model? If feature 15 is a person's age, can y...
2
1
90
2019-05-25T06:17:57.517
data_quality
datascience.stackexchange.com
211,483
SQL Server : cannot add subscriber to publication
I am trying to configure replication as per the official tutorial from Microsoft . In the section Create a subscription to the transactional publication , see step 5. The name of the subscriber instance is not displayed, so I click Add Subscriber, and then click Add SQL Server Subscriber from the drop-down list. Then t...
In addition to renaming, it was necessary to start the SQL Server Browser Service from the Configuration Manager.
2
0
2,854
2018-07-05T22:28:10.630
api_errors
dba.stackexchange.com
90,563
Dropped connections, corrupted schema ... is MySQL sick?
Lot's of problems and I wonder if it's all tracable to some root cause. I'm trying to load a simple schema related to product marketing. The symptoms are: Not being able to forward engineer said schema [CODE] due to loosing connection with the server. 11kb file, 13 tables, each table has at most 13 columns, and the sql...
Someone fetch me a big spoon, I've got a huge slice of humble pie to get stuck into. I have no formal database training, but as a developer I have had to interact with databases (mainly via PHP). I've never been the person to create the schema. In debugging this, I was having a really hard time, reading many many SE po...
0
0
660
2015-01-29T16:34:20.670
data_quality
dba.stackexchange.com
512,503
Percona and MySQL audit
I am trying to audit MySQL commands for users on Percona. Current version of Percona is 55-5.5.22-rel25.2.237.rhel5. The following URL gives guidance, however I do not know how to get it working. http://www.percona.com/doc/percona-server/5.5/diagnostics/mysql_syslog.html I attempted to add to /etc/my.cnf [CODE] However...
The syslog option goes in the [CODE] section, not in the [CODE] section, it's only for the client, not the server. So this does not provide any auditing of mysql commands, for that you need to enable query logging. For MySQL you'll find documentation here , I didn't find percona-specific documentation unfortunately.
2
4
400
2013-06-01T11:16:56.400
database_errors
serverfault.com
244,185
How to copy data from a table to another in O(1) time complexity?
I have a table [CODE] with fields [CODE] , [CODE] , etc. At the end of every month at midnight I want to copy the whole list of customers with their account balance to another table( [CODE] , [CODE] , [CODE] and [CODE] ). The problem is if the table grows large, the time to copy will keep on increasing and it would all...
The problem is if the table grows large, the time to copy will keep on increasing and it would allow system to make changes to the balance while it's being copied. Yes, but your copy doesn't have to care about that. When doing an [CODE] , any change that occur in [CODE] during the INSERT is ignored. This is guaranteed ...
-3
1
781
2019-07-31T07:35:41.133
database_errors
dba.stackexchange.com
495,190
Retrieve Windows Username via SSPI + CGI Perl
I need to retrieve the username of the windows user logged in currently when he is accessing my intranet page. I am trying to authenticate my webpage using SSPI(mod_auth_sspi.so) on Windows Server 2008, with Apache 2.2. I have made the following changes to the httpd.conf file and added my intranet site to the trusted s...
Got it working for me by including Options FollowSymLinks ExecCGI Order allow,deny Allow from all in the directory directive. I had the original files being referred to from another directory location.
1
0
903
2013-04-01T18:11:29.143
infrastructure
serverfault.com
946,681
Unable to find Nginx (centos)
i am trying to uninstall nginx in centos 7 , i have tried following commands Yum uninstall nginx also tried "sudo systemctl stop nginx.service" this stop services but did not work for me. i have followed this as well https://webhostinggeeks.com/howto/how-to-remove-uninstall-nginx-on-centos-7-rhel-7-oracle-linux-7/ When...
This is not a complete answer. I believe that nginx is only running in memory in that stage and that you have deleted all its files, but here are the steps I would take if I was in your situation. First I would install a package called mlocate which will index your disks and will help you find files much quicker than u...
-4
1
952
2018-12-26T17:22:46.327
database_errors
serverfault.com
28,991
Testing cli programs + file operations
I'm building a dotfiles manager program for uni in rust, and looking for ways to test aspects of the program. As far as I can see, it can be broken into 2 parts: unit testing for logic and individual functions testing that it does what it should do irl (eg. correctly moving/renaming/linking files) The first one isn't a...
Its seems to me that you want to functionally test your application and are wondering what tools to use to do this. It is valid to ask for opinions in the QA/Test space because being QA's we will validate these opinions for our own cases before using them unlike programmers ;-) As a test automation task this can actual...
3
0
121
2017-08-09T07:50:06.727
data_quality
sqa.stackexchange.com
231,190
MySQL hitting IOPS wall in AWS, not able to utilize full volume IOPS level
We are scaling up an existing MySQL 5.6.41 (with Galera) based system running in AWS on EC2, and are hitting a wall in performance, which we believe is narrowed down to storage IOPS. Please note for the sake of testing baseline MySQL performance the Galera cluster consists of a single node – no node-node replication is...
There are many reasons that may lead to the inability to use all the IOPs available. Here's an unordered list of thoughts. How many threads are being invoked in the benchmark? More than about 40 threads may get into a "thundering herd" scenario, where none of the threads are running efficiently because they are steppin...
4
2
2,093
2019-03-03T20:56:42.730
database_errors
dba.stackexchange.com
785,924
Utilizing SSL on Multi-domain, Autoscaling Elastic Beanstalk Setup
We are creating a Content Management System for our company. It is important that this CMS support dynamic domain names on a dynamic number of servers. After many hours of research we felt that Amazon's Elastic Beanstalk was the way to go. One thing that we also require is the ability to dynamically enable SSL for the ...
Elastic Load Balancer can now have up to 26 certificates (as seen here ). If you need more than 26 certificates per ELB and you want to use AWS services you could use a CloudFront distribution per certificate/domain. Also you can use CNAME based DNS validation in CertificateManager in order to automatically renew the c...
8
0
1,460
2016-06-23T21:09:31.363
database_errors
serverfault.com
804,651
Managing mulitple devices behind firewall remotely
I am looking for a solution that would let me remotely access multiple devices from a central server. The devices are preinstalled with custom software but their network conditions will be unknown and probably under 3G or NAT restricted WiFi environments. The first thing that I thought of is using reverse SSH connectio...
With the fashionable buzz-word term the "Internet of Things" we regularly get these kind of questions. I'll add a longish answer with some considerations and invite others to edit and improve. Abandon the idea of interactive access to any specific device. You'll want an agent on the device that picks up instructions/co...
3
3
1,850
2016-09-22T09:18:41.600
infrastructure
serverfault.com
68,654
AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error i am getting
[CODE]
Change that line to: [CODE]
-1
1
23,439
2020-02-25T05:19:12.627
data_quality
datascience.stackexchange.com
290,275
Apache takes 5% of my RAM Memory
I have an apache on my server (512mb ram). The problem is that each prefork process (there are about 12 of those) takes about 3%-5% of the memory when it's waiting (I mean the httpd2-prefork processes Apache launches to process incoming connections) and about 8% when they are working. We have a Symfony app and a couple...
That kind of memory usage is completely normal. The part I didn't get was that how exactly 5-8% memory usage is causing problems for you? You can disable unneeded Apache modules and/or switch to some lighter alternative such as lighttpd or nginx , but I according to your description I don't think that's necessary. Edit...
0
5
131
2011-07-14T10:20:56.280
infrastructure
serverfault.com
53,922
Distinguish Multi-Task vs Single-incremental Task in Continual Learning
I read through the Internet and found this: Most of Continuous Learning studies focus on a Multi-Task scenario, where the same model is required to learn incrementally a number of isolated tasks without forgetting the previous ones. And they explain PermutedMNIST is Multi-Task. I have no idea why? In other words, Singl...
TL;DR/Summary: The classes ( $y1$ , $y2$ , $y3$ below) in multi-task can be anything (it may be that $y1 \cap y2 = \emptyset$ , $y1 \cap y2 = \emptyset$ , and so on). In Incremental we take the labels (and data from a common set, (i.e. $y[:2] \subseteq y[:4] \subseteq y$ , by the definition of subsetting) It is just a ...
2
1
375
2019-06-17T05:40:49.533
dbt_errors
datascience.stackexchange.com
434,841
How to open http for linux server
I am a Windows (IIS) software engineer, but recently I've been thrown into a Linux server admin role until we can find someone to fill the position. I am not ashamed to admit I have no idea what I am doing. Currently the problem I am trying to solve is that the server is only responding to https requests. However, we n...
If your system is RHEL 6 then [CODE] should open the port for you. If your system is RHEL 5 then [CODE] would be the normal way to do it. Either way if once it's working then [CODE] will save the current firewall state to [CODE]
1
2
1,525
2012-10-04T14:43:39.060
infrastructure
serverfault.com
1,104,243
How do I stop AVG from flagging and deleting bat files?
AVG insists on blocking bat files that all our operators use. The files are on a network drive with shortcuts on their desktop. This gives us complete control of which version gets loaded without needing to touch every machine. About 5 or 10% of the time, AVG flags the file as "suspicious" and deletes it for everyone. ...
From the AVG console, go to Policies, click on the name of the current "in use" policy, Exclusions. Further details here: https://businesshelp.avg.com/Content/Products/AVG_Management_Consoles/ConfiguringSettingsandPolicies/ConfiguringStandardAntivirusExclusions.htm?Highlight=exclusions
0
0
38
2022-06-27T17:11:32.610
infrastructure
serverfault.com
942,232
Gitlab CI won't serve Angular app to staging environment
I am trying to set up a pipeline that does the following: Commit new Angular code Build live review app for testing Manual push to production I have been able to successfully build the app within the pipeline using a docker file and have the proper nginx configuration for routing it to the staging environment. Once the...
There is problem with ports. Docker container cannot starts on port 80, because this port is used by nginx. You have two ways to solve it 1) expose docker directly If this is only one app on the server, stop nginx and docker bind on port 80 and serve files 2) Use Nginx as proxy expose docker on another port than 80, fo...
0
0
417
2018-11-29T22:16:32.500
pipeline_ops
serverfault.com
758,245
Using htaccess to grant access to index file when user requests directory URL
I would like to use htaccess to allow access to the index file plus a few others in a directory (index.php) but require a user/pass for everything else in the directory. Right now I have: [CODE] This allows users to access index.php and login.php and denies the rest of the directory. However, whenever a user requests t...
You could try something like the following [CODE] Make some basic tests [CODE]
0
1
1,624
2016-02-18T22:15:43.870
api_errors
serverfault.com
798,147
Returning HTTP status 204 for GET /generate_204 using uhttpd?
To deal with the Android captive portal detection for my specific setup, I need to return an HTTP status code 204 whenever I get a GET request for [CODE] . I currently use uhttpd as my webserver, so I'm wondering whether this is possible to do with this server. My current understanding: I need to write myself a CGI (or...
Unfortunately @HBruijn's quite clever idea of simply making [CODE] a directory rather than a file and then using that as the [CODE] with an [CODE] -file inside it as the [CODE] , only works partly. When I open [CODE] from the browser myself, it does exactly what I wanted, but only after first returning a redirect to [C...
2
4
4,189
2016-08-21T07:21:37.987
api_errors
serverfault.com
1,132,727
How to change SQL Server sa password as part of ec2 userdata
I'm provisioning some development EC2 instances running Windows Server, with SQL Server installed. I use a custom Amazon Machine Image with the configuration we need, but as part of the provisioning process, I run a userData script on each machine that sets some values specific to that user, including a random password...
Well, turns out this was not the right approach, possibly because my userData script was not being run as Administrator. Instead, I found this to be successful: [CODE]
0
1
356
2023-06-06T16:15:35.713
database_errors
serverfault.com
506,160
How can I re-install removed packages on Solaris-10?
My Solaris 10 SPARC host ran its pre-installed Apache server. After it failed to cooperate (it and I couldn't find my apxs) with the installation of mod_wsgi (to handle Django) I made the decision to uninstall this Apache instance and install an Apache instance that could handle mod_wsgi out of the box. I issued the co...
Solaris 10 did not have an online package repository for the OS packages - you'll need to download the Solaris 10 install images from Oracle and mount the iso or burn it to DVD to get at the package contents. Solaris 11 (including its OpenSolaris and Solaris Express predecessors) is the first Solaris release with an on...
1
2
1,297
2013-05-08T19:58:14.497
database_errors
serverfault.com
314,517
Invalid version while creating PostgreSQL 9.1 cluster
I'm trying create a cluster with existing data directory on Debian 2.6.26-2-686-bigmem. I use PostgreSQL 8.3 installed from apt-get and PostgreSQL 9.1 installed from OpenSCG I want to create cluster with existing data directory and add it to postgres-commons using command: [CODE] The result is: [CODE] I found this ques...
It looks like you are mixing Debian and OpenSCG packages. That won't work. Install PostgreSQL 9.1 from Debian.
0
0
1,845
2011-09-22T18:40:31.493
database_errors
serverfault.com
362,209
restore data from backup from file in postgres
I need to restore data which is there in .backup file from /home/somepath/backupfile.backup to mydb.I tried with following psql dbname
From the sounds of the manual , the database must already exist and have rights set to it for the restore to work properly. Did you verify that the template for the database created the framework into which to restore your dumped data? That's what the error sounds like...it can't find the correct table to insert the da...
0
0
480
2012-02-21T13:41:10.007
database_errors
serverfault.com
404,719
installing mod_wsgi giving 403 error
installing mod_wsgi giving 403 error httpd.conf i added code below [CODE] wsgi_handler.py [CODE] Note: localhost is my virtual host domain and it is working fine but when i request [CODE] got 403 error. [CODE] Error log [CODE] Note: My apache is not in c:/xampp/bin/apache it is in c:/xampp/bin/server-apache/
You're using different directories in your and you directives. In your Directory directive you've got [CODE] In the VirtualHost you've got [CODE] You need to fix it so the access rules and the DocumentRoot agree on the directory you want to use.
1
3
1,793
2012-07-04T12:45:42.130
api_errors
serverfault.com
321,207
How to protect certain files from being downloaded
I am using IIS. I have few image files on my server. I want to display them on my website, but when someone finds the URL and tries to access it from the server from the browser, I want to show them Access Denied and not let them download the file. Is this do able? If yes, how do I do it? Thanks.
I think what you are actually asking is how to prevent hotlinking? If so, then there are plenty of resources out there for that. Example: How to prevent image leeching (hot linking) in IIS 6.0
0
3
2,254
2011-10-13T16:30:29.433
infrastructure
serverfault.com
46,852
Multiple Similar Tables vs One Master Table
I'm a web app developer and less experienced in database design, so would appreciate anyone's input. When I first built this web app, the app managed one type of object (table) with a handful of properties (columns). As the app grew, there were additional types of very similar objects, so I created additional tables fo...
Create the [CODE] table which has information that all animals share. Add another column to the [CODE] table called [CODE] or something similar. In this, specify whether the animal is a cat, dog, mouse, or whatever. Then, create [CODE] , [CODE] , and [CODE] tables that have the [CODE] ID (The primary key) as a foreign ...
6
6
5,401
2013-07-23T12:36:55.013
data_quality
dba.stackexchange.com
487,130
How to give a user write permissions to a file whereas the group he is in is denied to write (in Active Directory)?
For example, I have a group Department A . Among other users, I have a user named Boss . I want to create a file that can be changed only by Boss , and be readonly for the other users from that group. I know that deny on the group level overrides allow on the user level so I can't do what I need just with share/ntfs pe...
Don't use deny. Instead: Allow read for group "Department A" Allow read+write for user "Boss"
1
6
355
2013-03-12T06:31:27.467
infrastructure
serverfault.com
291,205
Creating/dropping MySQL users using "IF NOT EXISTS" when row based replication is in place
I'd like to know the affect of using "IF NOT EXISTS" when creating or dropping users when row based replication is being used to replicate data to a mysql slave. I know that in the past I have broken replication by creating or dropping users that already existed (or didn't exist) on the slave, even though row based rep...
You are correct in that row based replication is solely for table changes. CREATE USER etc are replicated as statements. CREATE USER IF NOT EXISTS does prevent a failure overwiting an existing user and a replication failure if the user exists. It doesn't guarantee that the new user definition is the same. MariaDB's CRE...
1
1
205
2021-05-07T19:50:17.800
database_errors
dba.stackexchange.com
1,068,913
Nginx + Wordpress language redirect wrong with default language
Nginx + Wordpress language redirect wrong with default language Sorry for duplicate this questions here: Nginx + Wordpress language redirect All works but for the default EN language. I just want to redirect JP visitors to /ja/ directory, maybe more other countries to other directories later. For now, I want all other ...
If you remove the [CODE] line from your [CODE] , the value of [CODE] will become the empty string which is evaluated as false in an [CODE] expression. See this document for details. You can replace the [CODE] statement with a [CODE] block. See this document for details. For example: [CODE] See this document on which st...
1
0
371
2021-07-07T16:57:00.070
data_quality
serverfault.com
164,189
Why Mysql is not using indexes on join
I have a query that joins table SPACES with 3 rows. But MySql is not using indexes. [CODE] How come that MySql refuses to use index? Join type is ALL , that problem leads that JOIN type for ENVIRONMENTS table will be ALL . If I remove from select this line [CODE] Explain output The output from CREATE TABLE [CODE] SHOW ...
Get rid of [CODE] Get rid of [CODE] Don't [CODE] together identical clauses, just say it once: AND (environmen0_.operation_scope = 'design' OR environmen0_.operation_scope = 'design') Indexes needed: [CODE] When a table has only 3 rows, it does not matter if it uses an index. As the table grows, or the parameters chang...
0
1
2,085
2017-02-13T16:11:43.093
database_errors
dba.stackexchange.com
929,574
How configure Bind (DNS) server to respond internet requests
I'm new to Bind so please forgive any "silly" questions. I've configured a Bind Server on CentOS-7, Server name CentOS-DC (10.64.33.115). I've also configured 3 CentOS-7 Clients CentOS-App-01 10.60.161.99 CentOS-DB-01 10.60.161.169 CentOS-Web-01 10.60.161.229 Everything resolves correctly internally. The issue arises w...
I managed to figure it out with the help of a Linux guy in work. Even though I had configured Forwarders, I hadn't told the server to actually forward anything. Below is the updates code [CODE]
-1
0
2,166
2018-09-05T14:08:37.790
infrastructure
serverfault.com
226,368
Full Migration 2008R2 -> 2016
We currently have Windows Server 2008 with MS/SQL 2008R2: the default instance and two named instances. We are spinning up a Windows 2016 Server onto which we will install MS/SQL Server 2016 Standard default instance and two named instances. If I understand what I've read so far I can detach the databases from 2008R2, ...
f I understand what I've read so far I can detach the databases from 2008R2, copy the files to the new 2016 environment and attach to them... enable query store and up the comparability. No. Dont do detach/attach. Instead use backup/restore. If you have a very tight migration window, setup logshipping or Mirroring and ...
0
1
470
2019-01-04T19:49:51.180
database_errors
dba.stackexchange.com
12,558
How to re-create the ##MS_PolicyEventProcessingLogin## principal
I'm getting a bunch of errors in my MS SQL Server logs about a missing [CODE] principal. I went to check the master database and yes, it is indeed missing. I don't know how this happened. How do I recreate this principal?
Any account enclosed in "##" are certificate based accounts and you will not be able to simply create them as you would other logins/users. If you have a backup of the master database prior to the accounts disappearing you could might try restoring the database to get them back. Other than that I suspect you will need ...
2
7
10,394
2012-02-09T17:10:45.600
database_errors
dba.stackexchange.com
36,753
Testing of a Reporting Tool
I want to test a reporting tool for Call Center Performance. There are too many exceptions and I want to test every possible case. How can I ensure that numbers in these reports are correct, do you know any tool will help me?
There is no specific tool to ensure the numbers in your report are correct. Because the numbers are the product of business logic application that is always different. One of the ways to test report numbers would be the following: You develop automated script using programming language you know best of all. That script...
0
0
50
2018-12-10T06:45:47.920
data_quality
sqa.stackexchange.com
616,275
How do I forward localhost traffic to a remote host with iptables?
I would like to set up my CentOS 6.5 box to forward connections to localhost (127.0.0.1) to the same port on a remote machine (e.g. 10.0.3.10). I've tried the iptables rule below, but when I attempt to connect, it just hangs: [CODE] Running [CODE] on the remote machine, I can see that there was no incoming traffic. I'v...
I do not know how to configure iptables on this machine to do as you want. I usually use in such case SSH tunneling. I find it easy to set-up (personal opinion here!) ;-) but ... you need to have an SSH connection on your localhost (it does not need to be accessible from remote!). The command syntax in this case is: [C...
8
4
11,173
2014-07-29T12:22:21.707
infrastructure
serverfault.com
984,715
Nodes failing to start correctly Google Kubernetes
I am fairly new to Google Cloud Platform(GCP) and also Kubernetes. I was trying to run Cassandra using Kubernetes Engine and GCP provides one-click support to create everything. Because I was just testing, I decided to stop all the VM to prevent unwanted billing after I successfully created the Cassandra. Then when I t...
This is most likely due to your cluster not being deleted correctly. I would manually create a cluster using this command [1], You will then be able to select it from the click to deploy menu. [1] gcloud beta container clusters create CLUSTER_NAME \ --addons=HorizontalPodAutoscaling,HttpLoadBalancing,Istio,CloudRun \ -...
0
0
860
2019-09-18T15:16:57.047
pipeline_ops
serverfault.com
233,540
Receiving cell phone emails through MS Exchange 2007
I am encountering a strange problem whit receiving cell phone emails via my MS Exchange 2007. When my customer needs to send me a picture of a container he/she takes a photo with a cellphone and then tries to send that to my email (name@domain.com). I can see the email in my inbox but I do not see the picture. The send...
Couple things: Does it display in webmail in exchange? By White List do you mean safe senders list in outlook? Also I would guess that it is the encoding of the email. Try embedding the picture in an email to yourself, or from a gmail account and see if it comes through. If it does it's probably the encoding of the att...
0
0
112
2011-02-09T21:06:51.137
pipeline_ops
serverfault.com
236,171
Problems setting up a VPN: can connect but can't ping anyone
This is my first time setting a VPN. Clients can connect but can't ping other machines. This is certainly a route problem but i can't find the right way to configure it. Here is a sample example of the two LANS i want to connect: So, i want machines from 192.168.1.0/24 being able to connect with 192.168.0.0/24 as if th...
There seems to be two error is your config: The Route Push config statement in the Server config should not contain the gateway address: push "route 192.168.0.0 255.255.255.0" The route command on the client side is not needed if you push the routes out to the client via the push config statement.
5
3
12,151
2011-02-16T12:45:42.293
infrastructure
serverfault.com
339,341
How to "model" shortest/longest processing time first on machines in parallel and series
I'm not sure if I am in the right place to ask this question. Please tell me if I'm not. I have the following problem: I have a production process, where a product first has to be produced, it is then stored, and packed afterwards. Hence, it can be seen as that the product has to go through two machines in series. Howe...
Getting minima/maxima with some kind of formula is very complex (similar to the traveling salesman). To get concrete numbers I'd use a stochastic approach. You need a feeding queue where you stuff in random products. From this queue you feed a simulation network. Each machine has an input and an output pipe where a pro...
3
1
688
2017-01-03T12:19:08.077
api_errors
softwareengineering.stackexchange.com
490,520
What to do when local usernames conflict with network usernames
We use Puppet to manage our Linux desktop machines and SSSD to authenticate our users against a central authentication system. Recently when setting up a few new machines we found that puppet was halting in the middle of installing software packages. The culprit was the kdm package, which tries to add a local 'kdm' use...
Come up with a better user naming scheme... (or force "kdm" to use different login credentials) I've had to learn this lesson over the years as I inherited commercial Unix systems with three-letter usernames. Moving those servers to Linux exposed conflicts with system service accounts. The worst case was Randy P. McDon...
3
5
989
2013-03-22T16:45:05.840
api_errors
serverfault.com
397,018
Am I using too much memory? (Rails on EC2 with Resque)
I am looking at the memory usage of the Rails application (it uses background processes via Resque) and since the common answer to the question, "how many workers is too many" was "test and see", I ran some memory commands and wonder if someone can help figuring if the memory usage is high enough already, or I can stil...
Obviously, if you're actively swapping, you have too many. Swap usage doesn't mean you're actively swapping. Swap I/O means you're actively swapping. However, actively swapping isn't the only way excessive application memory use can hurt you. Every byte of memory that applications are actively using is one byte of memo...
2
3
996
2012-06-08T18:47:21.003
infrastructure
serverfault.com
525,951
LockFile succeeds but ReadFile fails
I know it sounds like a programming question but it's actually not. Bear with me please: I have a customer who is experiencing a strange issue that I cannot explain: a program uses a file on a shared SMB drive (Windows 2008R2 server) open in shared mode. Before performing an update inside the file, the program will loc...
Well, the answer was much simpler than I thought: a faulty device driver for the server's NIC apparently was the cause of all these trouble.
5
1
315
2013-07-24T15:20:08.907
infrastructure
serverfault.com
221,586
Stored procedure body missing
I was going through one of our databases in order to answer a question from the boss, and I peeked at a stored procedure. As usual, I right-clicked it in SSMS, clicked Script stored procedure as... then create, and to my surprise, all I found was the CREATE PROCEDURE statement: To double-check, I had someone else look ...
Yes, this is possible, no body required. How it got this way? Your guess is as good as ours. It is easy to do but we can't possibly know whether this was human error or some kind of truncation from a script or tool. [CODE] Output: Command(s) completed successfully. Good to have source control to sort this kind of thing...
1
6
275
2018-11-01T22:03:05.950
database_errors
dba.stackexchange.com
149,805
Resolving a performance issue with BETWEEN join - eager spool
This query (anonymized) takes about 2 minutes to execute. [CODE] Are there some alternatives that would help with this query? After applying the index suggested by Paul White, the query plan looks like this:
Ensure you have an index on T1 like: [CODE] You might reverse the key columns depending on which is more selective with your data set. The optimizer tends to introduce an eager spool for one of the inequalities and leave the second one in a Filter. Repro: [CODE] With the index: Naturally, the seek is only for the first...
2
8
1,281
2016-09-15T16:16:31.190
database_errors
dba.stackexchange.com
234,330
How to use to_regclass with uppercase table names?
I am using [CODE] to check if a table exists (from here ). This works for lowercase table names, but for table names with capital letters it always returns NULL, even when the table exists: [CODE] Fiddle
Once you start using those dreaded double quotes, you have to use them always : [CODE] (another good example why you should avoid those dreaded quoted identifiers)
1
2
691
2019-04-09T15:56:08.537
warehouse_errors
dba.stackexchange.com
231,816
xaml schedule control how to cope with items of vastly differing durations
I have to create a schedule control using WPF XAML for displaying items with duration as little as 1 seconds and potentially as large as couple of hours. First thing which seems clear is that I will need some kind of zoom capability, for drilling into the items with very short durations and zooming out to view the item...
I've created a scheduling control in WPF and you're right about using the Measure/Arrange overrides of a panel for part of your work. There's a great series of blog posts where the author goes over the making of just the same thing. For zooming, I created a ZoomCommand that could be bound to any gesture to allow a user...
3
2
416
2014-03-09T20:15:00.023
api_errors
softwareengineering.stackexchange.com
412,690
Right approach to make code depending on a date
I am currently reviewing a PR where we want to enable a feature based on some suscription date of a user such as: [CODE] You get the idea. When reviewing changes like this, I usually suggest to make it not dependent on a date but on a feature of the user instead. Here is a possible rewrite following this idea: [CODE] N...
For any particular feature that could apply to a user or not, you write one function that returns exactly that information. What's inside that function is totally irrelevant, as long as it works. This check "if (user.createdAt > MONETIZATION_DATE)" is absolutely fine, if it is correct obviously, and if it is used in th...
2
2
71
2020-07-13T19:10:04.910
api_errors
softwareengineering.stackexchange.com
303,944
Normalisation from 2nf to bcnf
This is a question from a textbook [CODE] I believe [CODE] are the candidate key. I have decomposed R to 2nf like this: [CODE] For 3nf: [CODE] My Problem This clearly doesn't look right as we still have multiple anomalies and no relation to convert to bcnf. How am I supposed to correctly normalize R
To normalize in 3NF one should start from a canonical cover of the functional dependences. In this case one is: [CODE] So a decomposition in 3NF with the “synthesis” algorithm is: [CODE] Starting from R, a possible decomposition in BCNF with the “analysis” algorithm is: [CODE] Note that with this decomposition the depe...
-1
0
614
2021-12-14T21:23:58.320
warehouse_errors
dba.stackexchange.com
133,902
XML parsing slowly
I'm currently trying to tune a somewhat problematic stored procedure and I've noticed that majority of cost associated with running it comes from parsing parsing some XML into a temp table. Here is the SQL in question: [CODE] Also, so you have some idea of the structure of the XML being parsed: [CODE] Is there anything...
There are two main things you can do to improve xml parsing performance: Make the xml variable/column typed , which means declaring an xsd schema on it. This will force a validation of the xml, which in and of itself will take a little time, but parsing speed will improve. Index an xml column (does not apply to xml var...
8
5
5,193
2016-03-31T03:03:16.277
database_errors
dba.stackexchange.com
221,486
Optimizing MySQL for small VPS
I'm trying to optimize my MySQL config for a verrry small VPS. The VPS is also running NGINX/PHP-FPM and Magento; all with a limit of 250MB of RAM. This is an output of MySQL Tuner... [CODE] and this is the config. [CODE] The site contains 1 wordpress site,so lots of MYISAM but mostly static content as its not changing...
(I started with a simple answer and it became a link-dump. Sorry.) I found this script when optimizing a 256-Slice to run Wordpress (in our case, Ubuntu-Apache-PHP). It came in quite handy. This blog entry suggests skipping loading InnoDB, because Wordpress doesn't use it. (N.B. don't do this for Rails, which does.) Th...
5
3
4,729
2011-01-12T09:57:55.973
database_errors
serverfault.com
872,319
How to replace ECS cluster instance ami to a different kind of ami while avoiding downtime?
The company I work for uses Amazon ECS. There are 5 or more production clusters configured there and there was some problem last week and AWS support team recommended us to change the ECS instance ami to an " Ubuntu ECS optimized " ami. I'd like to go through all the clusters and replace the currently used ami with the...
Establish a new launch configuration with the new AMI for the ECS Cluster. Verify the new instances are online and associated with the cluster. Launch as many ECS container instances as you need. Ensure that your ECS task placement strategy is reflecting your intention (i.e., ensuring that the new tasks will be placed ...
2
0
1,086
2017-09-06T14:08:18.753
infrastructure
serverfault.com
427,387
IIS 7 virtual directory on network share access denied
I have a loadbalanced web server where I'm trying to setup a virtual directory on one server (server02) to a network share on the other server (server01). Both servers are IIS 7 on Windows 2008R2. They are not part of a domain. I setup the virtual directory on server02 connecting to the network share as an administrato...
The user account that your site's application pool is running as needs to have permission to that share. Change that to an account with rights to that share and you should be fine. Also, whats the point of load balancing your web servers if you're going to have server01 be a single point of failure? You should replicat...
0
1
13,646
2012-09-14T09:05:57.667
infrastructure
serverfault.com
400,958
Locked out of our Comcast Business Gateway for seemingly no reason
Last fall we migrated our ISP from AT&T to Comcast at one of our offices. At that time, we received a new modem/router from Comcast and we configured everything to our liking. We've never really had very many issues with the router aside from having to restart it every once in a while. About three months ago I changed ...
Assuming this was an SMC-branded Comcast cable modem, the usual [CODE] username:password combination should work. However, a safer long-term solution would be to use the Comcast-provided modem in "bridge mode" and install a proper router behind it. This will allow you to make the types of firewall rule and route change...
3
8
22,504
2012-06-21T14:27:24.260
infrastructure
serverfault.com
1,083,063
SSH connection works for root but not user; fails after "Trying private key"
I'm setting up password-free ssh connection to a debian remote server. I've generated a key on my local machine and placed the key in both /root/.ssh/authorized_keys and /home/user/.ssh/authorized_keys. The permissions are set to 700 for .ssh and 600 for authorized_keys. The user is "root as user" and has sudo privileg...
The permissions of the .ssh directory and the authorized_keys file are good, but the ownership isn't. The owner must be the user that tries to login, otherwise sshd can't read those files. Run [CODE] and it should work.
0
1
1,686
2021-11-09T19:40:32.187
infrastructure
serverfault.com
509,485
Coldfusion 10 migration error
After trying to upgrade from Coldfusion 8 to Coldfusion 10, I seem to be getting a migration error in the 64bit installer. It seems to be the exact same issue as Moving from ColdFusion 8 to ColdFusion 10 - Migration Fails , but that question is out-of-date and with no reply from either the person who asked the question...
I've just uninstalled ColdFusion 8 and installed ColdFusion 10 without migration, and manually configured CF again. It seems to work now fine.
0
2
50
2013-05-21T08:50:18.903
infrastructure
serverfault.com
196,838
Operand data type nvarchar is invalid for multiply operator error
I am getting this error when I run (this part) of the following query in SQL Management Studio. Can someone help? Do I need to change the query to see this as a different value? [CODE]
Some of your fields are text (char) fields, you should use CAST/CONVERT or TRY_CONVERT before to use it on numeric operations. [CODE] 2 rows affected [CODE] Msg 8117 Level 16 State 1 Line 2 Operand data type varchar is invalid for sum operator. [CODE] F1 | F2 | F3 :------- | :---- | :---- 108.1000 | 27.60 | 15.50 dbfid...
1
3
7,795
2018-02-01T17:49:51.570
warehouse_errors
dba.stackexchange.com
120,984
localhost works 127.0.0.1 does not IIS
Very weird problem on IIS. Never had it before: localhost works, but 127.0.0.1 does not. localhost pings to 127.0.0.1. www.mydomain.com also pings to that IP, which is set up in the hosts file, but that also doesnt work locally. I've ipconfig /flushdns 'd without success. Ive even restarted the server. Another server s...
I have seen this a few times and it is usually caused by an incorrect proxy server configuration. If you can access it via telnet (this would not be going via the proxy) then you have effectively verified that a service of some kind (not necessarily IIS!) is running on that port. I recommend disabling the auto-detect p...
3
2
7,484
2010-03-10T03:05:19.157
infrastructure
serverfault.com
1,157,165
Jenkins Multiple Agent and Git
I have been using Jenkins for many years, but I have never needed more than one agent for my tasks. Just recently, I found the need to add another agent, which is not Linux but Windows. Now, this node has everything ready; Git is installed as well. However, when I run the Jenkins jobs, it gives an error. [CODE] Selecte...
The issue arose on my Jenkins Windows slave due to Git not being recognized by the Jenkins Git Plugin before inheriting the environment. To address this, ensure that the slave's PATH includes the Git executable by navigating to the slave configuration, verifying the Tool Locations under Node Properties, and entering th...
0
0
40
2024-03-31T04:17:14.577
data_quality
serverfault.com
244,953
using remote MS Access database which connects to remote SQL server
We have a Microsoft Access database + application (on Server A) which connects to a remote SQL server (Server B) using System DSN ODBC connection (on Server A) to the SQL database server. The users are open this Access database remotely as it is on a shared location on the server A. They still have to create a local OD...
You can eliminate the need for the local DSN on each machine by using a bit of code in the Access database. You do of course still need the appropriate ODBC driver installed but I expect the one you need is probably standard on Windows anyway. A local DSN will be required to initially create the database. The following...
1
1
1,406
2011-03-08T23:15:53.337
database_errors
serverfault.com
1,155,734
Filtering logs sent by opentelemetry-agent to Coralogix
I'm trying to figure out how to configure this filterprocessor to filter some kind of logs. I've created for myself playground in minikube with app that randomly generates logs and installed otel integration to coralogix . The example of logs: [CODE] you can see, it's different log level, different color, etc... Now I ...
I'm not an OTEL expert or anything, and I never wrote a OTEL agent configuration from scratch, but it seems like you're trying to filter a field that is a string, but your filter expression treats it like a JSON object I'm guessing this expression should work roughly [CODE]
1
1
43
2024-03-05T19:14:45.247
infrastructure
serverfault.com
769,459
Moving a QLogic fiberchannel card from one ESXi host to another
We are trying to upgrade an DL360 G6 ESXi host with a DL360p G8. The G6 has a Qlogic ISP2532 FC card inside and everything works fine. Since I don't have a spare FC card, I need to use the same card in the new server. The problem I am having is that while the card seem to work fine in the new server, I do not see the s...
Try running Hardware Diagnostics on the HBA cards. If the hardware shows up as green then update the drivers to the latest version by contacting the hardware vendor.
1
0
568
2016-04-11T11:54:16.617
infrastructure
serverfault.com
735,556
Varnish - behind, in front of, or instead of load balancer(HAProxy/nginx)
I intend to run a few tiny ARM "physical cloud" servers behind a load balancer(either HAProxy or nginx itself), but i can't decide where to put Varnish in the whole mess. I can either have it on each instance, doing the job locally, but seeing that the contents will be the same it seems kind of a waste. I can also have...
Caches traditionally go in front of the load balancer, as the load balancer exists to mitigate slow application servers and the cache seeks to mitigate running the application server at all. The downside is that a Raspi-esque cluster might not have a lot of resources to maintain large caches. The time you want to put V...
3
1
1,389
2015-11-11T14:34:01.233
infrastructure
serverfault.com
46,816
Load testing an AI use case/application
I'm struggling to understand the steps for measuring the time for a use case built on AI platform to clear the alarms automatically executing a series of commands. Issue is that only task that needs to be done by user is to send an alarm using a async rest api which just gives 200 status & then application starts execu...
With JMeter you can organize your test plan as follows: HTTP Request to send an API call While Controller to wait until the data is available in the database JDBC Request sampler to periodically check the database for updates Optionally a Transaction Controller to measure the whole workflow duration Example test plan o...
0
1
34
2021-02-11T13:58:40.433
api_errors
sqa.stackexchange.com
74,020
What have you seen go wrong when introducing SCRUM?
What was the single point of failure encountered when your company decided to replace the current processes with SCRUM? Can you give me some examples of things that have gone really wrong when a company tried to introduce SCRUM? I'd like to hear your anecdotes, something you experienced yourself, the big fail that you ...
The biggest problem is misunderstanding. Common failures are: Only a team is doing Scrum but rest of the company (including sales, management, HR) still think in the old way. Examples: Continuous interaction with customer and customer's involvement is very important. HR has to understand that team performance is more i...
21
15
2,528
2011-05-05T18:59:20.867
api_errors
softwareengineering.stackexchange.com
1,026,336
Esxi 5.1 Core Dump followed by poor performance on Server 2012 VM; OK after disconnecting external iSCSI datastores
I have an Dell R510 running esxi 5.1 with 16GB Ram; 1 CPU (Xeon L5520 @ 2.27HGz; 4 core) running a single Server 2012 Machine. I came in this morning to this core dump. I held down the power button and rebooted. It came back to a "VMWARE Recovery" screen and after 10-20 minutes, I came back and it was back to its usual...
Stack trace ends with megasas that means command to your MegaRAID (you probably have some RAID array) may have unexpectedly failed or it's a driver bug. I'd recommend updating MegaRAID firmware together with ESXi driver (and probably ESXi itself while you're at it). ESXi 5.1 is ancient but you can still get updates and...
1
5
234
2020-07-22T20:51:29.967
infrastructure
serverfault.com
628,659
Ubuntu 14.04 LTS 'Not authorized to open root of edit operation'
After migration from Ubuntu 12.04 LTS To Ubuntu 14.04 LTS my Apache SVN (mod dav_svn) behavior changed. I began getting Not authorized to open root of edit operation when updating from the server on projects already checked out. I have multiple repos with independent AuthzSVNAccessFile files, with some sharing the same...
My error was to use [CODE] instead of [CODE] . Not sure why things worked with Ubuntu 12.04 LTS, but with Ubuntu 14.04 LTS 'caught' or brought my error to light.
1
2
874
2014-09-15T16:56:10.027
api_errors
serverfault.com
287,804
pg_dump. Some COPY processes stuck on 'idle in transaction' after pg_dump completion
We do a dump of huge database (~ 2 TB) via pg_dump command: [CODE] pg_dump process successfully (return code 0, no errors), but on database we can see ~8 COPY processes and one "select" in 'idle in transaction' which never finish: No locks. More detailed information for some processes: [CODE] Databse version: PostgreSQ...
It is slightly surprising that [CODE] returned sucessfully with a return code of 0. The only theory I can come up with is that some of the 10 jobs got done early and started to idle, whereupon a misconfigured firewall cut the connection. The backends should die after around 2 hours due to TCP keepalive. What you could ...
0
1
1,198
2021-03-26T22:53:12.380
database_errors
dba.stackexchange.com
308,223
Best techniques to make sure that emails are not marked as spam
We have a service that requires a registration and the registration process sends some confirmation emails. These emails say in a three-line message that you have to click some link with a generated token to complete the registration. We send these emails in several languages, always HTML-formatted. These emails are al...
I don't know Exchange, but I am quite sure that you can somewhere configure to trust every mail coming from your own servers. On a more general note some hints to avoid being classified as spam: Don't send spam (send only requested mails, make it really easy to unsubscribe for newsletters etc., don't give anyone a reas...
2
5
202
2011-09-05T09:05:23.297
infrastructure
serverfault.com
222,707
Can I use Dependency Injection without breaking Encapsulation?
Here is my Solution and projects: BookStore (solution) BookStore.Coupler (project) Bootstrapper.cs BookStore.Domain (project) CreateBookCommandValidator.cs CompositeValidator.cs IValidate.cs IValidator.cs ICommandHandler.cs BookStore.Infrastructure (project) CreateBookCommandHandler.cs ValidationCommandHandlerDecorator...
Making the [CODE] public does not violate encapsulation, since Encapsulation is used to hide the values or state of a structured data object inside a class, preventing unauthorized parties direct access to them ( wikipedia ) Your [CODE] doesn't allow access to its data members (it currently doesn't seem to have any) so...
15
11
8,525
2013-12-30T21:50:11.257
pipeline_ops
softwareengineering.stackexchange.com
238,800
Correlated Subquery can't access column from outer query
Given the following query which contains a subquery: [CODE] If I try to change the inner join on the subquery to be dynamic like this: [CODE] Then I get the error: Unknown column 'sc.vendorID' in 'on clause' How can I make the vendor ID in the correlated subquery dynamic depending on the outer record. Is it even possib...
I'm not really sure what exactly the query is trying to count but you can most liekly rewrite much more simply. One idea would be to get rid of the subquery in the [CODE] and put the join in the main [CODE] clause. Another would be to remove the table that is duplicated from the internal [CODE] . Script for 2nd idea: [...
-1
1
1,900
2019-05-22T16:13:41.883
warehouse_errors
dba.stackexchange.com
190,901
Help needed on installing imap on CentOS 5
I'm very new when it comes to webservers. I have my own DDS but no imap installed at it. I asked my ISP to install it but they charge a lot. In my opinion it shouldn't be too much work so I started googling and came accross this article: http://www.electrictoolbox.com/install-php-imap-centos/ . It seems like i only hav...
It's definitely there. Check your yum repository configurations in [CODE] to make sure that the package hasn't been excluded for some reason.
0
1
4,581
2010-10-14T12:11:06.583
infrastructure
serverfault.com
300,279
How to set "Accept Ranges: byte" in Apache Coyote 1.1 tomcat server?
I'm having a little issue with video files. Apparently, for mobile videos, server should support byte range. The following is response headers from my video request. [CODE] How do I add "Accept Ranges: byte" to my server configuration? Thanks
Is the default servlet pushing out these files, or a custom one? And what version of Tomcat are you on? If it's default, this should be working as of Tomcat 6.0.19 ( reference ). If not, you're looking at setting up an output filter to buffer the whole output and select the ranges for return to the client - if you're n...
0
1
3,555
2011-08-11T21:09:58.610
infrastructure
serverfault.com
94,877
Unknown column in a table
[CODE] When I execute the last select statement , it gives me the error unknown column: reserve.sid I don't know why this error is being generated.
The error is being generated because you currently aren't joining your [CODE] table to [CODE] so the engine doesn't have any reference to the [CODE] table. In order to make the [CODE] table available, you'll need to JOIN the tables on the [CODE] column similar to: [CODE] Or if you just want to return the [CODE] that ex...
0
1
336
2015-03-10T14:26:18.217
warehouse_errors
dba.stackexchange.com
803,170
Why are newly-created files under /root not executable even though /root is and umask is 022? Is this the default on CentOS?
I am building a small set of utility [CODE] functions and aliases that will live on a special [CODE] partition. I've noticed that whenever I [CODE] or [CODE] , the result is [CODE] with the permissions [CODE] . This is highly undesirable if your goal is to run some shell scripts, and that's kind of what I thought the w...
If you notice, the mask 022 yields 755 on directories (the executable flag makes them browsable, as opposed to invisible when it's not present within the permissions octal), making them searchable. Files, however, do not get this executable bit by default. This is a matter of convenience and security within the POSIX s...
-1
1
675
2016-09-15T02:38:00.693
infrastructure
serverfault.com
907,942
Performing TLS handshake with abs.twimg.com - no Server Hello (Twitter page not loading correctly)
I have a Network Server configured with Router, Firewall and Proxy (Transparent Mode) roles, for filtering the network traffic of two networks behind this Network Server. The hosts from both networks, are navigating normally on Web Sites of all kinds (Banks, Emails, Facebook, Linkedin, etc.), but there's a very specifi...
At [CODE] , I changed the order of two rules and the connections started to flow normally (I'm not sure why): From: [CODE] To: [CODE] Basically, the remote hosts of this issue, are allowed to establish connections thanks to IPTABLES Conntrack , and they start connections with the requester, based on conntrack table and...
3
0
957
2018-04-16T20:58:21.577
infrastructure
serverfault.com
927,157
A quick way to change web servers
I have 2 CentOS Web Servers with 2 different hosts 1 is currently Live ( [CODE] ) The 2nd will replace the first ( [CODE] ) Our domain currently points to [CODE] In a normal scenario to switch between servers, we'd just simply update the DNS of the Domain to switch between servers. This action can obviously take up to ...
There are many ways to accomplish this, each ways have different level of certainty, risks and complexity. Some of these were covered in the comments. Reduce the TTL of the DNS record, several days before the move. Perform the move and then you can restore the TTL to its previous value. This does not guarantee all DNS ...
1
3
169
2018-08-20T09:21:29.640
infrastructure
serverfault.com
1,019,253
When using an Ansible playbook, how do you store and use a password containing quotes or other metacharacters without them being interpereted?
My company uses Ansible (which I am a novice at) and we have a playbook and a related role for joining new Linux machines to AD. Our admin accounts have their passwords rolled three times a day, and we can't set them ourselves. The Ansible playbook works so long as there is not a [CODE] (single quote) in the password. ...
This might be what you're looking for [CODE] See YAML gotcha and String filters .
1
0
1,792
2020-05-29T21:37:49.023
pipeline_ops
serverfault.com
13,330
Ingress ip returns HTTP error DNS_PROBE_FINISHED_NXDOMAIN
I have the next ingress (output of "kubectl get ingress") [CODE] But when I try to visit that IP address in chrome I get [CODE] Any idea why? Everything is green on the dashboard, there are errors.
There are two main reasons for this issue to happen: Your dns are not exposed. Your code is redirecting to a https address (and since you are working in your local machine, most likely you don't have a secure certificate) CASE 1 - Exposing DNS On linux you can solve it like: minikube ip vim /etc/hosts Add the ip from t...
0
1
2,090
2021-02-08T19:17:06.750
api_errors
devops.stackexchange.com
373,756
nginx - Takes too long for a connection to be established
I am new to nginx, and I am using it currently on my server to serve videos to users. a few days ago the server started becoming extremely slow while have around 500-600 users online, note that I have a 1gbps line on the server so its not the bandwidth. it takes the server around a minute or 2 to respond but once the f...
So, you need to work from the bottom-up to find the bottleneck. I wrote a fairly comprehensive article on finding performance bottlenecks a couple of years ago, which should be helpful. In short, you need to identify the exact system component that's the source of the problem (using tools like [CODE] or it's many equiv...
0
2
2,975
2012-03-27T06:17:38.213
api_errors
serverfault.com
977,369
How to push system metric from one machine to another in linux using collectd?
I have two centos Machine, Machine A and Machine B. In machine A i have installed collectd and influxdb. So, the system metric from machine A is pushed into influxdb using collectd. I have installed collectd in machine B. Now, I need to push the system metric from machine B to the influxdb which is in machine A. Collec...
Please check with iptables firewall rules and allow the ports with the following rules. [CODE] Open a port in IPtables – CentOS 7 [CODE] Give this a try and post back with the errors you have identified and we shall try to resolve it.
0
0
136
2019-07-31T05:32:02.623
infrastructure
serverfault.com
86,073
Server Spec Recommendation for IIS, SQL 2008, and Exchange 2010
I am looking at setting up my first server at a colocation. I've no idea what I should really be going for, or what I need for adequate redundancy RAID 0 or RAID 1 etc. The server will have Windows Server 2008 x64 installed on it. It shall be used with many low traffic client websites some of which use Sql to store ima...
OK. First, to address the specific questions/issues raised. 1- I think the hardware is sufficient, although it is hard to extrapolate a load from the question. I would get the best server I can afford. 2- Yes, get a second (identical) drive for RAID1; I would buy it with the server. How it works depends on the RAID con...
0
3
1,721
2009-11-18T21:37:05.353
infrastructure
serverfault.com
703,347
MySQL server has gone away error after upgrading Mysql version to 5.6
I have upgraded mysql version from 5.1 to 5.6. Step[s I have followed : I have uninstalled older version and installed new version. Reset mysql root password Restored DB dump of particular DB Now I need to create new user and give all permission in the server. But while creating user I'm getting error. mysql> CREATE US...
You seem to have hit the bug "Any statement of the form [CODE] crashes mysqld" . The reason described is missing "password_expired" column in the [CODE] database restored or reused from older MySQL version. The solution described is run [CODE] .
0
2
870
2015-07-03T12:31:18.227
database_errors
serverfault.com
1,077,926
Trying to improve Azure AD role assignments without breaking everything
I'm trying to remove most users from the Azure AD Global Admin role in favor of dedicated admin accounts and/or use something like PIM. My question is; If a user granted permissions for an Enterprise App, created a security token for app registrations, or some other process that required the admin privilege they had at...
If a user granted permissions for an Enterprise App, created a security token for app registrations, or some other process that required the admin privilege they had at that time, will removing them as a global admin and leaving them a normal user break the things they set up in the past? Nope, nothing will break. The ...
0
0
50
2021-09-17T20:34:59.680
infrastructure
serverfault.com
194,503
Transforming A Physical Algorithm into a Computerized One
I have realized that its possible to create algorithms that operate physically to solve problems much more efficiently than in a computer itself. Consider the following: Finding the shortest path between 2 points in a connected graph. If one were to physically create the graph with the edge weights correspond to length...
In "physical" algorithm you use massive parallelism of the nature. Without going to molecular level every node and connector movement is "calculated" in parallel. To get the same speed you would need a computer with too big number of CPU cores and extremely fast communication between them. So I would say: no, usually d...
3
3
446
2013-04-10T01:38:40.630
hadoop_errors
softwareengineering.stackexchange.com
911,750
Ping is not working for internal interfaces
I am having a Gateway CentOS 7 which gets no reply for pings on its internal interface when the interface is specified making me think there is the problem, but also not able to ping ANYTHING on the internal network while pings to it work. [CODE] it works without specifying the interface [CODE] or the interface by ip (...
If a machine can ping the gateway and get a response, I'd say the network isnt entirely broken. I'd consider stopping the firewall to see if it's related. If you get a reply back, which I imply from 'while pings to it work.' then it doesn't appear to be a routing related issue. My suggestion is to troubleshoot the fire...
1
0
1,907
2018-05-11T09:16:43.317
infrastructure
serverfault.com
8,514
How can I 'aws s3 sync' two buckets, which are located in different accounts
I'm trying to use 'aws s3 sync' on the awscli between two accounts. Account A, I own. Account B, Owned by a third party. Account B has given a user:jon on account A permission to a bucket through a role:assumeDevOps assumption. Jon assumes assumeDevOps to access bucket on Account B. But now I have to sync to a bucket b...
Attach a policy to the source bucket Get the AWS account ID number of the destination account. From the source account, attach a policy to the source bucket that allows the destination account to get objects, similar to the following: Important: For the value of Principal , be sure to enter the AWS account ID number of...
1
2
703
2019-07-02T02:30:28.817
pipeline_ops
devops.stackexchange.com
974,798
Logo picture for all domain users using GPO
I am trying to apply the company logo to all our users' profile pictures using GPO. We created one share folder with the appropriate permissions and the filename "user.bmp". This is done by GPO Computer Configuration/Preferences/Windows settings/ Files. created with Replace option and also update option. While we check...
It's been awhile since I've tried something like this but I believe it works the same. Is the file location local on the server or domain controller where you set the GPO? If you tell it to use C:\logo.jpg in the path, each system is going to look for logo.jpg to be store on the root of C: Either copy the file to each ...
-1
0
1,246
2019-07-11T09:27:56.903
infrastructure
serverfault.com
261,672
Crazy automatic float rounding in MySQL 5.7
My exact MySQL version is [CODE] . And I'm beginning to think that I'm getting crazy... Just try these queries: [CODE] [CODE] [CODE] Returns [CODE] . Then I tried these: [CODE] Both return nothing! However this [CODE] Returns [CODE] . I'm ready to throw my computer into the wall, but unfortunately that won't help becau...
It turns out I've found an answer :)) https://dba.stackexchange.com/a/144990/172761 [CODE] stores 24 significant bits of data (equivalent to about 7 decimal digits ; storage=4 bytes), with an exponent ranging over about 10 ** +/-38. So bad it's not stated in official MySQL docs. At least I couldn't find it after checki...
2
1
2,425
2020-03-11T07:57:28.403
database_errors
dba.stackexchange.com
337,417
Embedding PHP variable into Sqlite statement
I have been struggling with this for hours. I am pretty new to Sqlite and have been trying to write a prepared statement, everything works up until I try to get my variable in. The following works as does a direct [CODE] - entering the string straight in the statement. [CODE] However as soon as I bring a variable in to...
With guidance from Charlieface it's solved. The link he/she provided gives a clear example of how to insert variable. Final working code: [CODE] I was binding values incorrectly.
-1
0
30
2024-03-02T01:38:38.830
warehouse_errors
dba.stackexchange.com
630,350
Authenticated Users builtin group in AD deleted
I have a large-ish AD setup, where one of the already fired admins, for reasons unknown deleted the subject group. Been googling for a while, but besides explanations what the group is for and warnings not to delete it I couldn't find anything. The SID is known, so I wonder if I create a new group with the same name an...
You can't delete the 'NT Authority\Authenticated Users' (SID S-1-5-11) group. You also cannot view this group in AD Users and Computers, which would explain why you can't see it using that tool. It's not a "real" security group the way that "DOMAIN\Domain Admins" is, for instance. The membership of "Authenticated Users...
2
8
9,219
2014-09-22T15:42:22.817
infrastructure
serverfault.com
996,723
I am trying to build php for openlitespeed but getting error
I am trying to build php7.4 for my openlitespeed but unable to build form webconsole and from ssh also when i run from ssh [CODE] configure: WARNING: unrecognized options: --with-webp-dir, --with-litespeed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a se...
This is supposed to be comment , but I don't have 50 rep , so I wrote it here.. PHP 7.4 changed it to from [CODE] to [CODE]
-1
0
897
2019-12-25T10:14:52.427
infrastructure
serverfault.com
156,907
Equivalent of UTF8_UNICODE_CI collation in PostgreSQL
I would like a column in a table inside a PostgreSQL database (I am using version 9.6). I know of the [CODE] collation on MySQL, so I tried: [CODE] but I get: [CODE] Reading around, I found that the [CODE] table displays collations, which showed: [CODE] So it's clearly not there... Is there any way to add it, or obtain...
In Postgres, you would typically solve this differently. For starters, just use [CODE] for case insensitive matching. The manual: The key word [CODE] can be used instead of [CODE] to make the match case-insensitive according to the active locale. This is not in the SQL standard but is a PostgreSQL extension. [CODE] You...
8
5
16,369
2016-12-01T15:54:48.477
database_errors
dba.stackexchange.com
699,477
Can't connect php to SQL server, error:0
I've set up an internal Ubuntu 14.04 LAMP server. I can access SQL when using Putty, but when I try to connect via php script all my pages were blank... Then I tried to debug it by simply connecting to the IP address and I get a (111) error with no port and an error: 0 after 3 minutes of attempted connection when I say...
Solution 1: If you have lines like this : [CODE] In your my.cnf configuration file, you should comment them (add a # at the beginning of the lines), and restart MySQL. Of course, to do this, you must be the administrator of the server. Solution 2: If you could login as root to mysql then you create a new user: [CODE] I...
0
0
179
2015-06-16T19:30:39.510
database_errors
serverfault.com
5,666
pop3 caching proxy
I have a really slow and unreliable internet connection at the office. I also have one email account where many people download mail from the same account without deleting them form the server. (kind of a shared bugs/support/alarms account that everyone checks). Sometimes a client would send a large trace that everyone...
I would use fetchmail to download the mail to a server every few minutes then use dovecot to serve it up as POP3 or IMAP Both are relatively easy to configure.
2
4
832
2009-05-07T08:05:23.360
infrastructure
serverfault.com
75,757
Finding a range of values for each feature that contribute to positive classification
Consider a classification problem(lets say 2 classes, 'good' and 'bad), where all features are continuous. what I need is a range of values for each feature that contributes to 'good' classification. What I thought was simply partitioning the feature values based on good or bad label, problem is all values don't equall...
It's impossible in general , simply because a particular value or range for feature A might correspond to class 'good' if feature B has a certain value/range but correspond to class 'bad' otherwise. In other words, the features are inter-dependent so there's no way to be sure that a certain range for a particular featu...
2
2
647
2020-06-10T05:47:28.997
data_quality
datascience.stackexchange.com
287,756
VMware Server on a Windows Server 2008 Domain Controller
Before I begin, I'm aware of all the issues that can arise from installing VMWare server on a DC. I did it anyway for a learning experience. I'm trying to run a linux distro on my DC so I need to virtualise rather than run another box. My domain is pretty small so I'm not worried about load issues but the virtual netwo...
The correct thing to do here would have been to have virtualised the entire server with something like esxi and then installed the DC and the linux partition side-by-side. However, if you insist on stepping over to the dark side, you need to go to each one of those virtual NICs in the Network Connections screen, go to ...
-2
3
651
2011-07-07T02:31:06.510
infrastructure
serverfault.com
3,027
Run docker inside a VirtualBox of Windows Server 2016 (GUI) on Mac OS
I have downloaded the Windows Server 2016 iso from Microsoft for evaluation. I then installed it via VirtualBox on my Macbook Pro running the latest Mac OS (High Sierra). I downloaded Docker for Windows but when I try to load it, it either fails with an error saying it cannot write to database, or it fails because it s...
According to me this is not possible as the hyper-v should be enabled on the host system. If this is enabled in a VirtualBox, but not on the host system, then this will not work according to what I have experienced.
0
1
673
2018-01-04T12:25:48.333
pipeline_ops
devops.stackexchange.com
625,416
Samba 4: group members not shown in "getent group"
I am running Samba 4 as an AD Server. Everything works fine, beside the members of a group is not listed by [CODE] : [CODE] but they are listed by the [CODE] tool: [CODE] I need this to set group permissions in the [CODE] . I need this, because setting the rights with windows explorer on the share itself does not work....
You can use the group, getent group just does not show the members. samba-tool group listmembers 'LOCAL\Domain Users' should show the members.
4
1
5,101
2014-09-01T08:43:43.893
infrastructure
serverfault.com
54,485
Keras Conv1D model Input_shape value error
I am not sure why I am receiving this value error. Additionally, I haven't found a tutorial that explicitly talks about the appropriateness of size of filters and kernel. I would appreciate some input and some links. I am predicting the next to the last or last column. Here is my code: [CODE] Here is the head of the da...
After running your code & the major issue found out is the lack of proper mentioning of input shape. In your case insisted of passing shape=(6,) try to pass shape=(6,1) and make sure your data should in the following format. [CODE]
0
0
983
2019-06-25T18:35:13.110
data_quality
datascience.stackexchange.com
342,375
REST service as an application server for 2000+ client machines. Is it a good idea?
We will be building a system with the UI in javaFx that will be deployed to 2000+ machines (minimum is 2000, but it will be more - can reach 5000 machines). For other reasons/limitations it must be installed on the machine, so we cannot do it with a web browser interface. The 2000+ machines will be in different geograp...
This is an open ended questions with lots of possible responses that depend on what you are trying to do. Nevertheless I'll add a few things as an answer, since a comment won't be large enough. The service would act as a database connection pool (I think 2000+ connections on a database would cause problems); Yes, that'...
11
3
428
2017-02-16T13:48:02.673
api_errors
softwareengineering.stackexchange.com