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
900,595
"/usr/bin/env node: No such file of directory" - only under Supervisor
When I try to run Node.js applications from under Supervisor I get following error: [CODE] It is a machine running Ubuntu 16.04 and actually there is /usr/bin/node installed and it is symlinked to /usr/bin/nodejs. I installed it from Node.js repository . So when I run [CODE] I get: [CODE] My application's configuration...
if you are using [CODE] node version manager, use this comment to create a symlink: [CODE]
1
5
16,484
2018-03-08T07:36:55.170
infrastructure
serverfault.com
283,728
How to install specific version of MySQL?
I installed from the repo, 5.0.77... including setup of PowerDNS (and the backend for MySQL). I tried setting up replication from my Master (which is MySQL 5.1.53) but it didn't work even though there were no errors, nothing got replicated. So the last resort is to try the same MySQL version on both the master and the ...
There are several ways to install specific versions of MySQL LATEST VERSION To install the latest version as of today (MySQL 5.6.10) run this: [CODE] SPECIFIC VERSION To install a specific version, set the following: [CODE] (5.5, 5.1, 5.0) [CODE] For example to get MySQL 5.1.66, run this: [CODE] REPOSITORIES WITH OLDER...
1
2
7,156
2011-06-24T08:30:26.003
database_errors
serverfault.com
843,363
How do I setup Route 53 to point to Api Gateway
I'm writing a Cloudformation config file to create a website all in one go. This includes, creating lambda functions, creating the API Gateway, Setting up a S3 Bucket, Creating the Route 53 zone and records. So far: Creating Lambda functions and it's role (works) Creating API Gateway it's deployment and it's role (work...
You have to create a SSL certificate using the Certificate Manager. For an edge endpoint, create it in eu-east-1, for regional and private endpoints, create it in the region you are deploying the API gateway in (or the lambda). Read more here . I will refer to the ARN as [CODE] You have to configure a [CODE] : [CODE] T...
13
4
9,022
2017-04-08T05:14:31.963
api_errors
serverfault.com
426,767
Preventing workstation from getting to specific IP
I'm working in a VMware View 5 environment and I'm looking for a way to prevent fat clients from getting to particular View Connection brokers. I've been thinking of either using a static route or possibly a Windows firewall rule, but was curious to hear if anyone else might have some suggestions.
Put your fat clients on a separate VLAN/Subnet and use an ACL on the L3 device/firewall to prevent them from getting to whatever IP they shouldn't be able to get to.
3
3
55
2012-09-12T14:07:45.077
infrastructure
serverfault.com
929,797
cannot import a zpool volume : I/O error
this is on nexenta open storage. I have a zpool that is in UNAVAIL state because of some disks. [CODE] How can I get this zpool import work fine? Are the disks that are pointed out 'UNAVAIL', how can I get them repair/replaced? Update: 7 Sep, 2018 After finding the disks to slot mapping on Nexenta, reseating the disks ...
Should I detach/attach the spare to raidz2-1 group which has only one disk UNAVAIL under sub category of spare-6 ? Your spare disk has already been automatically attached to [CODE] and has been resilvered. Normally, you would now detach [CODE] and remove it form the system because it has failed once (or repurpose it on...
3
1
1,594
2018-09-06T22:08:06.523
infrastructure
serverfault.com
164,203
How to get the timezone from a PostgreSQL timestamp
This is probably a very simple question, but it's hard to Google because it matches too many different questions. I want to get the timezone (or offset) of timestamps saved in my database. For example, right now in my database I have [CODE] I want to find all [CODE] that has the PST offset. So my pseudo-code would be s...
The documentation on Postgres timestamps says : For timestamp with time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). An input value that has an explicit time zone specified is converted to UTC using the appropriate offset for that time...
15
29
34,765
2017-02-13T19:14:20.417
database_errors
dba.stackexchange.com
1,031,489
What are alternatives formats to pg_dump for the purpose of diff-ing schema?
We are storing [CODE] produced schema DDL in our version control. We find that comparing [CODE] ouput before/ after migration scripts are applied gives a better sense of the changes that are being applied. However, the problem that I am facing with [CODE] output is that related object changes are all over the file. The...
Hardly an answer to my question, but I will document what I have found: simply using [CODE] to generate psql description of the entire database https://www.schemacrawler.com/output.html generates diff friendly schema in plain text, HTML and JSON. http://schemaspy.org/ - not what I was looking for, but discovered as a g...
1
0
1,526
2020-08-25T21:43:18.100
infrastructure
serverfault.com
599,453
mod_rewrite all but two files causing loop
I'm trying to set up a web site to allow the creation of a semaphore file to close the site. The logic I want to follow is: when the semaphore file exists and the request is not for /style.css or /favicon.icon show the content of /closed.html I have 1 and 3 working, but my exceptions for 2 result in a processing loop w...
Try to add [CODE] And look in the log file if it could be helpful.
1
0
291
2014-05-29T14:55:03.607
infrastructure
serverfault.com
546,216
Magento subpages give 404
I just restored our Magento website on a different server running apache2 on ubuntu. The home page pulls up just fine but if I try to go to any other page, I get a 404. Permissions All files are 660 All directories are 770 All files and directories All files and directories belong to the www-data group Things I've Trie...
Sounds like a problem with rewrites. In Ubuntu: Run: [CODE] and then: [CODE] [CODE] and [CODE] will now be enabled!
2
1
1,804
2013-10-15T17:54:05.750
database_errors
serverfault.com
956,053
Apache/httpd error: Invalid command 'WSGIPythonHome'
ISSUE: My Apache/httpd server will not launch. [CODE] reveals: [CODE] [CODE] reveals: [CODE] SPECS CentOS 7 (This is a virtual machine running on an Ubuntu 18.10 host) [CODE] installed [CODE] installed python virtual env created at [CODE] httpd.conf : [CODE] Expected output: I expected that the site would launch when I...
EUREKA! I was able to fix the problem by adding the following before the [CODE] additions I have displayed in the question (so, just before [CODE] ): [CODE]
0
3
7,644
2019-02-27T21:48:22.790
infrastructure
serverfault.com
460,147
Bacula virtual backup job doesn't run, no output?
I am trying to get Virtual Backups working, but when I try to run a virtual backup job, it appears to get created, but then never seems to actually run. I have a full, and a couple incremental backups. [CODE] I attempt to start a job from [CODE] like this. [CODE] Then my new job, just sits there, doing nothing. The Job...
Type "messages" in bconsole and it will output all logs from jobs, but just once. Another way is to configure bacula director with good email, and it will send logs to that email.
2
0
2,167
2012-12-21T21:14:17.970
database_errors
serverfault.com
388,364
Strategies for detecting corruption in Greyhole pools
Are there any good strategies for proactively detecting data corruption in a Greyhole pool. Suppose the following chain of events happens. [CODE] What are good strategies for proactively detecting corruption in a JBOD-style duplication array like Greyhole? Unless I'm mistaken, even 3-way replication isn't fool-proof. I...
You're assuming that corruption will creep in silently, which is a form of data-integrity loss that both file-system and storage hardware developers actively work to avoid. Chances are real good that the block-driver will notice something went wrong with a read/write and yell about it, at which point it's up to the hig...
1
2
569
2012-05-11T20:32:05.527
database_errors
serverfault.com
43,155
Optimum configuration for 4 SSD drives
I would like to move a SQL Server database from a shared configuration with the web-server to it's own dedicated box. My current budget will allow me to put 4 disks together in an array with a single hot spare. I'd like to stretch to 8+ drives but the costs are a little out of my budget right now (and probably somewhat...
With spinning-platter disks you want to have the logs and data on separate drives as random access data disrupts the sequential log write operations, making the logs a performance bottleneck. SSDs do not have this issue as they lack the performance constraints imposed by the mechanical action of conventional hard disks...
6
8
1,342
2013-05-27T17:48:00.563
database_errors
dba.stackexchange.com
284,966
Why is the built-in distance function so much slower than my custom one?
I'd like to find the distance between 2 sets of coordinates. First I use the built in function: [CODE] Now I use manual calculation to do the same thing: [CODE] In my testing on SQL Server 2014, the manual function is around 4x faster than the built-in one. Is this normal or am I missing something fundamental?
SQL Server 2016 improved the perf somewhat, but the basic reason is the STDistance is accurate, but simpler formulas can be faster, if you understand the errors they produce. See eg Geographic distance can be simple and fast , and a description of the algorithm used in STDistance: This paper outlines some geometric alg...
0
5
97
2021-02-08T19:47:18.503
database_errors
dba.stackexchange.com
780,934
Password policy in Active Directory - inactivation of complexity without effect
In my Samba Active Directory Domain, I want to allow passwords that are long (passphrase) and based only on small caps and special characters, i.e. no requirement for large caps and numbers. In order to do so, I created a new domain wide GPO for authenticated users where I disabled the complexity check ( [CODE] ) and i...
Ok, this caught me completely off guard. While a Samba Active Directory domain can be usually fully configured without any issues using RSAT, it seems that the password policy is one of these very few things where this doesn't work, or at least not in its entirety. The solution is to turn off complexity directly on the...
0
2
4,741
2016-06-04T09:53:17.190
infrastructure
serverfault.com
314,409
how to write a query to show values in separate date columns
I have some data John has sum of money for the year = 30 Larry has sum of money for the year = 60. Usually, the results in the database show like this... id name yearly sum 1 john 30 2 larry 60 so I want it broken down like this without personally inserting the values myself id name jan feb mar apr may 1 john 10 5 4 6 ...
This is commonly referred to as a pivot. I'm not a PostrgreSQL expert, but this style of query is pretty easy to effect in virtually all SQL-compliant database management systems. First, we'll create a table: [CODE] And insert some values into it: [CODE] Here's the "pivot" bit: [CODE] And the results: employee january ...
2
0
119
2022-07-14T12:08:32.620
warehouse_errors
dba.stackexchange.com
291,033
6to4 behind NAT
I've got problem with 6to4 tunnel on Ubuntu. My PC's public address is [CODE] , my pivate address is [CODE] Configuration of tunnel: [CODE] And now I try [CODE] and destination unreachable What is wrong?
For 6to4 to work behind NAT, you need to have your NAT:ing router forward all "protocol 41" (6to4) traffic to your Ubuntu computer. Exactly how you set that up will depend on the router. You also wont be able to have more than one computer speaking 6to4 behind the router, for this reason. But that computer can announce...
0
6
5,055
2011-07-16T17:03:15.933
infrastructure
serverfault.com
61,981
Hide zero hours and minutes with NLS_DATE_FORMAT
I'm currently using date format: [CODE] The (cosmetic) problem is that this always displays time even if it's zero, for example: "27.03.2014 00:00". Is it possible to hide 00:00 with NLS_DATE_FORMAT, but display the time when it's not zero? I realize this is not a good idea for any kind of automatic processing but this...
No, it can not be done, because 00:00 is a valid time. That you use it to represent "no time available" in your application is your own decision and you have to take care of the consequences yourself. You could store date and time in separate columns and show only the date if the time is NULL.
0
2
201
2014-03-28T11:16:04.120
warehouse_errors
dba.stackexchange.com
732,890
How is LSI FastPath different from Software RAID?
This question pertains to SSDs on RAID levels without parity (like RAID 0, 1, 10). The recommended settings for FastPath are to set the Write Policy to Write Through , Read Policy to No Read Ahead and IO Policy to Direct . This disables the cache on the RAID controller and the requests directly hit the SSDs. Doesn't so...
To tell the truth, it seems that LSI does not provide much details on its FastPath tech. Anyway, some information can be gathered from the DELL docs: from DELL PERC H710P controller brief : Dell’s FastPath™ software feature enables the use of the second core on our PowerPC chip to accelerate write-through I/O, which si...
6
9
4,714
2015-10-30T21:34:54.380
data_quality
serverfault.com
988,007
How can I allow http when on a specific subdomain with nginx? (HSTS)
I am trying to test my site on a stage site before making it live. Obviously it doesn't have the same certificate. When I try to going in with the testing.domain.com subdomain, I get this error in firefox: [CODE] [CODE] I added in this server block in the hopes that it would handle the HTTP requests coming from the tes...
You have 2 issues here with HSTS, potentially 3. First, you've selected [CODE] , which means that your NGINX has been telling browsers that every single subdomain, including the root, of example.com only use HTTPS. Moreso, it has told browsers to cache this value for 63072000 seconds, aka. 730 days, or 2 years to be ex...
2
0
2,161
2019-10-15T03:09:13.250
infrastructure
serverfault.com
22,240
Wake on Lan for Linksys WRT54GS
I have a Linksys router WRT54GS V1 Firmware version 4.71.4. I am having issues getting the router to allow me to use wake on lan over the internet. If I send a magic packet to the local subnet it works fine but if I attempt to do it from the internet I get nothing. I set the subnet mask of my router to 255.255.255.128....
You need to send the packet to the broadcast address of the network. You can't send it to 192.168.1.127, because the PC is powered off and so this IP is not owned/bounded by him. Set it to 192.168.1.255
0
2
3,440
2009-06-08T22:15:38.457
infrastructure
serverfault.com
315,257
dsbulk unload fails on a specific row after running for nearly 2 minutes
We would like to export all data from a Cassandra Keyspace table to CSV with dsbulk. [CODE] If we do so, it completes with 1 error after 1 minute and 50 seconds with the following output: [CODE] It fails every time at the same position. So my question is, how can i determinate WHERE the error appears? Update with more ...
When DSBulk runs into issues, it reports the path to the logs to [CODE] including an error file. Check the output files, particularly the error log, as they will give you clues for why the export failed. Cheers!
1
1
437
2022-08-05T06:32:47.017
database_errors
dba.stackexchange.com
164,267
Change the server Collation
I am discussing a controversial subject on the server Collation. When I prepare the 70-462 exam I learned that if we want to change the default collation of the new coming databases we have to change the collation property in the 'Model' database. However on the internet all articles said that The collation of system d...
Technically yes, you can change the Instance's default Collation without reinstalling by "rebuilding the system databases" via the SETUP program. This is documented in the following two places on MSDN: Rebuild System Databases Set or Change the Server Collation However, as can be inferred from the instructions on those...
4
2
6,520
2017-02-14T11:47:32.160
warehouse_errors
dba.stackexchange.com
94,842
TPOT machine learning
I trained a regression TPOT algorithm on Google Colab, where the output of the TPOT process is some boiler plate Python code as shown below. [CODE] Would anyone know what is the Sklearn pipeline process like how does this work? When I butter up the boiler plate code and run it with my data set in IPython I can see this...
The documentation for [CODE] is surprisingly poor, but it's relatively simple: fit the [CODE] on the data, and tack its predictions onto the dataset as a new feature. Source , github issue . So, your pipeline fits an [CODE] on the original inputs, and appends its predictions to the dataset going forward. The data (orig...
2
2
484
2021-05-24T14:08:08.433
pipeline_ops
datascience.stackexchange.com
202,145
Does pausing a VM on ESXi release resources?
Does pausing a VM on ESXi release resources? If I have a vm that is running slow will pausing other VMs help?
Yes, that will work just fine.
3
1
191
2010-11-15T19:23:27.100
infrastructure
serverfault.com
177,394
Security Permission for creating an AD Distribution Group
I would like to create an OU that only has the permission to create and manage Distribution Groups for email purposes. Is that possible and what is the permission required?
In ADUC, right-click on an OU and choose "delegate control," choose a group, and give them "modify the membership of a group."
0
1
172
2010-09-02T16:03:33.797
infrastructure
serverfault.com
321,144
Hosting animated GIF banners on S3
I have uploaded some animated GIF banners to our S3 account and when we use the web url provided by S3 and try to view the banners in a browser, instead of display the banners in the browsers, I get prompted to download the banner image. Why is this? When I uploaded a JPG image in the same S3 bucket and try to view it ...
This is due to a proper mime type not being added for gif files. Add it or change the current mime type for that file to the appropriate gif mime type rather than binary/octet and the problem will be fixed.
2
1
3,019
2011-10-13T12:53:12.273
infrastructure
serverfault.com
895,924
Server 2012 R2 is not using my Server 2012 R2 License Server
First Question: I have a Windows Server 2012 R2 server that hosts my license server. It is set up with two sets of licenses packs (a 5 user cal and a 10 user cal). Currently on the first pack of 5, all 5 are used. On the second pack of 10, 2 are used. So I should have a few more seats available (per the management cons...
For some reason my SQL server (also running Server 2012 R2) is giving me issues when more than two users try to log on. It's like my MSSQL server will only allow two users to log on at a time. Giving me the impression it's NOT trying to use the license server. More than two sessions only applies if the server(s) have t...
1
1
87
2018-02-06T16:33:15.617
database_errors
serverfault.com
395,667
IP failover with 2 nodes on different subnet: cannot ping virtual IP from second node?
I'm going to setup redundant failover Redmine : another instance was installed on the second server without problem MySQL (running on the same machine with Redmine) was configured as master-master replication Because they are in different subnet (192.168.3.x and 192.168.6.x), it seems that VIPArip is the only choice. [...
I think problem is not in cluster configuration, but in your routing architecture. VIPArip resource agent manages local quagga to send routing updates. But you also need to use this routing updates to change routes to point to active server. I'll try to explain how it works. Look at the picture. HA1 and HA2 is linux-ha...
2
2
6,959
2012-06-05T11:53:12.963
database_errors
serverfault.com
261,945
Why use Creational patterns in Java?
How are Creational patterns useful? Most of the material I came across explains the use case to "solve common problems associated with object creation, improve flexibility". I can think of just two similar cases where these might help: Encapsulating object creation code into a factory like class, so that all object cre...
Why use creational patterns (in Java)? The main reason for creational patterns is to separate the creation of an instance from its consumption . That seems in the first place rather abstract, but has easy to see consequences. 1) You hide creational logic from the consument of an object-instance . As a consument you are...
0
8
3,346
2014-11-06T13:36:40.807
api_errors
softwareengineering.stackexchange.com
107,526
How to get last messge between two friends in the messge table having id in descending order?
Hi friends help me to solve this problem ," display all last messages of a user from all his/her friends" My sample message table is --------------------------------------------------- | id | msg | sender | reciver | friend_id | --------------------------------------------------- | 1 | Hi | 1 | 2 | 1 | | 2 | Hi.. | 2 |...
[CODE] Can be tested at http://sqlfiddle.com/#!9/35823/10 It uses "groupwise-max" solution with a left join as can be found for instance in mysql manual (last example). Your schema seems a bit weird keeping sender, receiver and friend_id, but I suppose friend_id is a FK to some friends table where pairs of (1,2) and (1...
0
1
1,055
2015-07-20T15:22:17.267
hadoop_errors
dba.stackexchange.com
265,311
Troubleshooting spid suspended ASYNC_NETWORK_IO
Recently we moved our database to a new server The old server was running [CODE] The new server is running [CODE] We have a C# Windows service that uses the database. It is intermittantly stopping or running extremely slow. The windows service is using .Net Framework 4.7.2 and it calls a library written in .net standar...
[CODE] generally indicates that SQLServer has results ready to return to the client, but the client is not requesting them as fast as SQLServer can deliver them, or the network is going slow. A common scenario with C# is if you are consuming results via an [CODE] with a bunch of slow processing per row coming from the ...
2
2
971
2020-04-18T00:56:13.883
warehouse_errors
dba.stackexchange.com
34,162
Using MySQL EXPLAIN to analyze the performance of a function
You can precede a [CODE] statement in MySQL with [CODE] , but how would you explain a function? I have a function that does a lot of work and I would like to analyze the performance of the function as a whole.
EXPLAIN was meant to do queries, not functions or procedures. When it comes to procedural code, you must think like a developer all over again. For what purposes would you optimize code, especially for a database ? Streamline Code Execution Use SQL for all rows Forcing SQL behavior over the Query Optimizer Reduce Clien...
2
2
7,109
2013-02-05T13:58:15.420
database_errors
dba.stackexchange.com
917,166
LDAP user can log in from tty but not login manager
Configuration CentOS 7.5.1804 GDM, LightDM, SDDM tested yum group "KDE Plasma Workspaces" as desktop environment, GNOME also tested LDAP logins provided by sssd, /home/* mounted via autofs over NFS Problem Login as the root user works, as well as any other local user. Bypassing the login screen by switching to TTY2, lo...
The issue was the user's login shell was a wrapper (inherited from a legacy system), and we were in the middle of an upgrade of the OS, which had selinux enabled by default. Switching to selinux permissive fixed it, but our permanent fix was to remove the wrapper and restrict SSH into our servers via PAM.
1
0
1,139
2018-06-18T19:22:36.203
infrastructure
serverfault.com
200,288
"Invalid object name" error when executing query
I connect database with Visual Studio 2017. When I am trying to execute a query then it shows the following error: The connection string I am using is: [CODE] My code: [CODE] Database explorer image:
I'd guess the problem is your SQL Server login does not have it's "default database" properly set. This will show you what your "default database" is set to: [CODE] You can either change the default database of your login, or you can specify the database in the connection string. This will modify your default database:...
7
13
89,106
2018-03-14T19:04:36.493
warehouse_errors
dba.stackexchange.com
15,390
Can you run chown on a root volume folder in a Dockerfile setup?
I have a docker container with a volume /foo defined in the docker-compose.yml. The Dockerfile then does: [CODE] When the container is setup I can see it run the two commands with no errors, but the folder /foo is unchanged. When I run a shell on the container I can see the user is created. I can run chown on other dir...
I have a docker container with a volume /foo defined in the docker-compose.yml. The Dockerfile then does... The logic here is inverted. First you build an image with a Dockerfile. Then you run that image as a container with volumes and any other configuration. So you will not be able to modify the volume during the ima...
0
0
2,187
2022-02-02T19:59:19.943
pipeline_ops
devops.stackexchange.com
563,469
FTP connection possible only through command prompt
Suddenly users were not able to ftp using FileZilla and only ftp connections were made through the command prompt. When I searched for this issue, I found a couple of questions here in serverfault facing this issue and the reply was because command line uses active mode and the solution was to change the transfer mode ...
Most likely due to the random high port for the data channel from the client to the server is now blocked by a firewall. With Passive FTP, the client establishes both the control channel and data channel. The data channel is established from the client to a random high port on the server. If those random high ports are...
0
1
1,136
2013-12-25T14:50:43.683
infrastructure
serverfault.com
43,221
Shrink a SQL Anywhere 12 database
Is there any way to shrink SQL Anywhere databases? With SQL Server, it was an easy task. Just do it, have a faster database again that has a size which can be transferred over a slow internet connection. Can this be achieved with Sybase? The question is not whether you should shrink or not - it is how it is done. So pl...
You can't shrink SQL Anywhere databases online. The "correct" way to do it is to unload/reload it in a new database. It's easy to do it via Sybase Central. Via command line it is the [CODE] command with the [CODE] command line switch. See Unload utility (dbunload) in the documentation. A shrunk database is not by defau...
2
3
4,496
2013-05-28T12:13:04.173
database_errors
dba.stackexchange.com
361,010
Is a god class still bad practice if it is used with mixins?
Every description I have read about god classes considers them to be an anti-pattern and a bad practice. Most descriptions I have read about mixins considers them to be acceptable in some cases. If the functionality of a god class is broken up into several mixins, each mixin can be separately unit tested and separation...
Sorry to be the bearer of bad news: Yes. The larger your application gets, the more trouble this will cause. What happens when you try to name a method [CODE] , import it into your god class, and find that it already has a method named [CODE] ? Now you have to worry about namespace collisions in your god class: what a ...
2
11
1,552
2017-11-20T17:12:50.590
api_errors
softwareengineering.stackexchange.com
1,103,266
Unable to start php-fpm on ubuntu 20.04
I am trying to start php8.1-fpm and i get the following error (while php8.0-fpm and php7.4-fpm start correctly). Any help would br greatly appreciated. [CODE]
It seems that you already have a process running on port 8002 in your localhost identify the process with [CODE] and check if you can kill it or not If another process need port 8002 you can change php-fpm port in file [CODE]
1
1
19,169
2022-06-14T14:16:35.437
infrastructure
serverfault.com
498,079
Munin : aggregate network traffic
I have a default configuration of munin-node on 3 of my servers, and I would like to create a summary chart that displays total output bandwidth. Here is what I have done minin.conf : [CODE] But it's not working, I only get broken images instead of graphs. In munin-graph.log : [CODE] EDIT : Following http://waste.mandr...
Just replace [CODE] by [CODE] .
1
1
1,674
2013-04-10T15:26:52.760
infrastructure
serverfault.com
270,817
The right way to model multiple FACTs schema
Background I'm in a process of designing a database (using a STAR schema). There are three tables to model: products , tests , states . The database will be used to store results of tests conducted on products (in a great simplification). There can be many tests pointing out to a single product but each test is unique ...
Firstly, neither "star" nor "fact" are abbreviations, as isn't "dimension", so they should not be in all caps. "Fact tables" are called such because they contain facts. A "star schema" resembles (to some people) a star when represented graphically, in case there are many dimensions describing a single fact. A product c...
1
0
569
2020-07-12T22:14:23.770
warehouse_errors
dba.stackexchange.com
838,609
sftp connection can't be established remotely
I'm trying to create a SFTP connection to a remote CentOS v6.8 webserver. When i connect through SFTP from my office network i can connect without any problems but when i try it from a different location(e.g. my phone or the client's PC/network) SFTP doesn't work. FTP connection with the same account can be established...
The iptables rules you have posted don't include any [CODE] or [CODE] . Even the default policy for [CODE] chain is [CODE] . This means that your server is accepting all types of traffic. Since you can connect from at least one location, this means that the service is running correctly and the server is accessible. You...
0
0
1,108
2017-03-16T09:02:14.907
infrastructure
serverfault.com
336,026
What is taking backups of my servers?
I am working in virtualized environment. All my SQL instances are hosted on Windows Server machines. My infrastructure team is using Veeam tools for backups and replication to the secondary data center. I noticed that pretty much each SQL box is reporting some backups and I cannot figure out what they are. (Everyone cl...
Checking the SQL Server backup tables, with something like the following, may help. [CODE] VSS seems to be device_type 7. If your VSS backups do not have is_copy_only set to 1 then they will probably interfere with SQL Server backups. If you are using SQL Server backups, you should make sure that your infrastructure te...
0
1
93
2024-02-19T16:51:38.363
database_errors
dba.stackexchange.com
406,117
How do you resolve a byte[] into a class instance in a way that doesn't couple the serialization/deserialization contexts together
Consider that you've got a POJO that you intend to serialize and send through a socket. You can use whatever serialization strategy you wish (JSON, XML, protobuf, ..., etc) to serialize the actual POJO into a byte[], then you send it through the socket. The byte[] arrives on the other end, but in this receiving context...
The short answer is that you have to provide sufficient metadata to allow the receiver to recognize what to do with the message data. You want some approach that supports extensibility and loose coupling. A client and server are already somewhat tightly coupled if your metadata assumes that all receivers are Java with ...
2
5
222
2020-03-04T20:02:16.970
api_errors
softwareengineering.stackexchange.com
620,332
SSH using ssh_key from a different account
Is there a way for a user to ssh as a different user using ssh_keys? For example, i have host A B and C. [CODE] I have the keys stored in /home/Y/.ssh/ [id_rsa | id_rsa.pub] Now When X is on B and runs [CODE] will this pick the SSH key from Y ? or should the key be specified in the command with -i flag, like [CODE] The...
This is becoming an increasingly common misconception around [CODE] authorisation. Merely having a public keyfile on a remote server doesn't give anyone the ability to authenticate using the corresponding private key. Do a [CODE] and search for information about the [CODE] file. This file, [CODE] , is what remoteserver...
-2
4
473
2014-08-14T06:53:16.293
infrastructure
serverfault.com
587,728
Will Windows 2008 R2 still accept remote connections if the system drive is full?
I have a 2008 R2 server which is running out of system disk space. I know back with Windows 2003 server, if you ran out of disk space, RDPing into said server would often fail or freeze, resulting in one needing to make a trip to the server room (or use remote hands). In anticipation of no free space on the system driv...
Yes, Windows still lets you log in through RDP if the system drive is full.
-2
2
76
2014-04-09T11:53:10.470
infrastructure
serverfault.com
237,720
Router recommendation to virtualize 800 IPs
I've recently been looking at getting some new load balancers for our environment as we are expecting to double our client base in the next 12 months. Currently we have 400 public IPS serving 800 clusters ( 2 clusters / IP due to ports ) on Coyote Point Balancers, and distributing connections to 3 web servers serving a...
I have done virtually the same using vyatta. I have done the same also using pfsense - however vyatta may be a bit more mature for support reasons. The cost is very low compared to the other options ... pm me for details
3
2
311
2011-02-19T22:11:47.000
database_errors
serverfault.com
336,705
How do we solve the perceptual problems that story points can cause?
I worked in many companies, and whenever the dev process is tracked by the ticket system, there is a big related issue: quality and perception. When a developer finished 12 points, he or she will be viewed as a super star of the team, but there is way more that is overlooked: there will be 6 to 8 points for other peopl...
Measuring individual people by the number of Story Points they complete is an abuse of the metric. That's not the purpose of Story Points; the purpose of Story points is to establish an average Velocity for the entire team. It is a team metric, not an individual metric. Story points are an arbitrary measurement of how ...
4
5
172
2016-11-23T19:53:43.840
api_errors
softwareengineering.stackexchange.com
240,386
ISA 2006 SP1 - SSL Client Certificate Authentication in Workgroup Environment
We have an IIS6 website that was previously published using an ISA 2006 SP1 standard server publishing rule. In IIS we had required a client certificate be provided before the website could be accessed... this all worked fine and dandy. Now we wish to use a web publishing rule on ISA 2006 SP1 for this same website. How...
Sorry - with ISA-based products (including TMG 2010), this doesn't ever work in Workgroup mode. Client certificate authentication is always assumed to be performed by Active Directory - there's no IIS Client Certificate Mapper equivalent (which just does local-box trusted certs). Perhaps you could look at using ARR (Ap...
1
1
1,774
2011-02-25T19:18:35.360
data_quality
serverfault.com
229,810
IBM System x3500 M3 refuses to boot from LSI SAS card if blank SATA drive is connected on mainboard
Have an IBM System x3500 M3 that refuses to boot from the IBM branded LSI SAS card if any SATA drive is also connected to the mainboard. The system restarts itself over and over. No error messages. Just sits there with a blinking cursor until it restarts, and the process repeats. Tried changing the boot order, resettin...
After talking with IBM, we found we had an unsupported configuration. The only drives supported to hang directly off the mainboard are a CD/DVD drive and a tape drive. IBM recommended we buy an IBM ServeRAID-BR10IL SAS/SATA Controller Card for the SATA drives and make sure the drives are setup within a hot-swap cage (w...
0
0
2,452
2011-02-01T19:50:07.423
database_errors
serverfault.com
452,525
How can I query or view the usage and ownerships of physical memory?
On Windows 7 and Windows 2008 SP2, how can I view who or what is using up my memory? In the task manager I can see the memory usage of user processes of me and other users, but there's always a gap between the sum of the memory of the individual processes and the actual total used memory. I understand that several driv...
You may want to get this application provided by Microsoft called RAMMap. http://technet.microsoft.com/en-us/sysinternals/ff700229.aspx
1
2
138
2012-11-27T11:09:20.550
infrastructure
serverfault.com
1,096,652
issue with playbook script
How can I write a playbook to Make sure both NFS server and client listen to same domain in [CODE] and confirmed with [CODE] [CODE] Also Enable the id mapping in [CODE] It is currently Y and I need it to be N. I tried running the playbook below but I get an error: [CODE] Finally Run the command [CODE]
For the CLI commands you can use [CODE] – Execute shell commands on targets . [CODE] You may compare it then with Ansible Facts - [CODE] and if gathered. For your configuration file you could use a [CODE] – Template a file out to a target host [CODE] . [CODE] Looking into what exactly does [CODE] parameter do there see...
-1
0
118
2022-03-21T15:11:42.877
infrastructure
serverfault.com
277,948
Easy way to limit file size (stdout) on a shell script level?
Ok, this is a very practial use case from my point of view. Let say I have a some simple shell oneliner which does log the output into a file. This can be simply anything, for example tcpdump. Is there any generic and trivial way, to make sure, that the output file won't exceed given size? Resoning behind this, is to p...
You can use [CODE] for this: [CODE] It accepts K, M, G and the like as suffixes (bytes are the default). Append 'B' to use the base 10 versions.
13
18
22,745
2011-06-07T18:13:13.773
infrastructure
serverfault.com
150,821
How can I exclude a file in a folder from basic auth (regex help)?
I have a folder on my site which contains admin files and I've added basic auth following a little unwanted attention. This works fine however a couple of the admin functions won't work through basic auth as they handle file uploads and so I want to exclude these files from the auth. It shouldn't have any security impl...
I suppose the file [CODE] does not really exist. There is probably only an [CODE] file to which you append [CODE] as [CODE] . Try using Location / LocationMatch instead of Files/FilesMatch.
0
1
2,143
2010-06-13T13:24:31.583
infrastructure
serverfault.com
219,032
Soft-deleting change-tracked user content
To begin with, I distinguish between tables containing user-generated content and tables containing information about the user. The former are associated with the user profile, whereas the latter are directly associated with the user. In particular, foreign keys referencing the user profile are set to cascade deletions...
Alright, so my solution is to cascade soft-deletions in the [CODE] triggers. Here's an example: [CODE] Also, I use views to filter out already deleted rows: [CODE] And finally, I turn even the simplest [CODE] , [CODE] or [CODE] statements into stored procedures. That's how I mask whether an entry is physically deleted ...
1
1
106
2018-10-02T02:17:44.567
warehouse_errors
dba.stackexchange.com
278,940
Failing to build ape server on centos
I'm trying to build an ape server on Centos 5.6 but getting the following message: /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status make: *** [modules] Error 1 How can I get it working? I've found libmysqlclient_r.so in /usr/lib64/mysql and /usr/lib/mysql/ are these the files it needs? If so...
To make this work, you must edit the Makefile in the modules directory. On line 7 change [CODE] to [CODE]
0
2
823
2011-06-09T22:02:01.907
database_errors
serverfault.com
535,996
If an IIS hosted site is secured using Kerberos, can Linux machines connect to it?
I'm running into a problem configuring my IIS 7.0 website in a test environment with Kerberos. I have a trial version of Windows Server 2008 R2 with AD DS, AD RMS, DHCP, DNS & IIS roles installed. I have gone into the IIS security settings for the site and set-up Windows Authentication to permit Kerberos login. The pro...
In Firefox you will need to set it up to use Kerberos under about:config network.negotiate-auth.trusted-uris and network.negotiate-auth.delegation-uris . For Chrome/chromium try chromium-browser –auth-server-whitelist=”company.com”
5
1
2,246
2013-09-03T17:58:42.903
api_errors
serverfault.com
772,507
How to set "Expires" and "Cache-Control" headers on Nginx server?
I have a php website running on a DigitalOcean droplet (nginx server), and I also use Cloudflare. Recently, my website was hit by something that I yet did not understand.. as my CPU usage was usually 1-2% and it went to 100% for a few hours resulting in my server crashing. My Cloudflare analytics showed an extremely hi...
You have an incorrect setting in your [CODE] file: The [CODE] value is set to [CODE] in the default [CODE] file and needs to be changed. [CODE] should be defined and set, either to [CODE] which inserts public cache-control headers, or to [CODE] (blank), which doesn't insert any cache-control headers, and the headers se...
3
6
21,815
2016-04-24T00:08:28.520
infrastructure
serverfault.com
980,355
Network adapter for HP ScanJet 8300
I have an HP Scanjet 8300 flatbed scanner, which comes with a USB connection. Now I would like to put it on my network rather than attached to a computer through USB, so I'm trying to find a suitable network adapter. HP sells one for other models ( https://store.hp.com/us/en/pdp/hp-scanjet-wireless-adapter-100-accessor...
No , please buy a scanner with the network option. The reason ? the scanner probably use TWAIN technology and transfert the data via the USB cable. A network scanner will scan and deliver the scanned document via SMB or via SMTP usually, so it'S different technologie as you can see. The adapter you find don't fully tra...
0
1
84
2019-08-22T16:47:22.263
infrastructure
serverfault.com
842,644
Do I have to enable authentication in Mongo for a self-managed server?
Up to this point, my server was a development environment. As such, authentication was off in MongoDb. It's now time to get into production. I looked up how to do authentication. However, given the following circumstances: No remote connection is allowed. I use a tunnel to administer it. There will be 4 apps running, a...
I expect that this developer also thought that enabling authentication would not be needed. Look at how well that worked out for them... And that is just one example of many thousands unsecured Mongo instances found online. Does it actually make any sense turning on security, other than looking good to management? I'm ...
0
2
37
2017-04-05T04:10:02.567
api_errors
serverfault.com
313,194
What is GLFW in relation to OpenGL
Now this question might sound (/ is) stupid, but I'm just getting into OpenGL. So I installed GLFW source and I'm looking at some easy examples. What I'm noticing is, that the code still contains "typical" OpenGL functions, like [CODE] or [CODE] , but it also contains "glfw" functions like [CODE] . I don't really under...
Yes. you are right The OpenGL is the base layer, and is an API. But it's a difficult (or , may better, low level) API. So, using any library build on top of it will make things easier for you. Of course, there are things that don't need to be made "better" or easier, so you still use now and then the base function call...
6
3
7,255
2016-03-18T23:49:13.327
api_errors
softwareengineering.stackexchange.com
71,495
Disable/Remove Apt(-get)
Is there anyway to disable/remove apt-get on a debian based server. I'd prefer to use aptitude, and don't want the other users to be installing packages with apt-get, to avoid package/database issues.
There are no issues with people using both tools at the same time. I frequently install things using apt-get or aptitude from the command line or use the curses interface to do security updates. Both apt-get and aptitude are front-ends to libapt-pkg, which deals with the dependency resolving and fetching of packages. l...
6
19
4,704
2009-10-05T21:15:02.337
infrastructure
serverfault.com
61,348
Tensorflow uses more memory, the more epochs it completes
I created a genetic algorithm "optimizer" for Tensorflow but it is written in python. I know TensorFlow was not designed like this and I need to rather create the optimizer in C++ using their API's but I found out about it only after I already programmed the optimizer and I don't really have the time to do research on ...
It seems like you are adding nodes to your computational graph in this line: [CODE] . The [CODE] -operation is just as multiplication or addition a node in the graph and you construct a new one in every step. Call [CODE] after defining your model. This will raise an error whenever a node is added to the graph and help ...
2
3
863
2019-10-06T20:24:27.977
data_quality
datascience.stackexchange.com
175,377
Windows 2008 64bit: applications and explorer always hang
I setup a couple of Window 2008 64bit systems about 5 months ago. Initially all seemed well. Now however, for no apparent reason, things are dog slow, apps hang, explorer hangs, just clicking on something can cause a CPU spike of 100%, and often it's explorer that is eating it up. As I have two on identical hardware, a...
Good luck : http://blogs.technet.com/b/markrussinovich/archive/2005/08/28/the-case-of-the-intermittent-and-annoying-explorer-hangs.aspx One anecdote - I have seen some IBM SNMP software cause something like this. I had to uninstall and update the RAID management piece. That's definitely add-on software, although it's f...
2
1
1,562
2010-08-27T17:49:10.737
infrastructure
serverfault.com
73,647
Email Problem - Windows Server 2008 R2
Windows Server 2008 , Server Manager-> File Services->Share and Storage Management->File Server Resource Manager > Right click -> Configure options-> Email Notifications tab I have already configured what I need but when I write for example smpt.google.com in the log it writes [CODE] I have been through this article ht...
Because smPT.google.com doesnt exist. You should try smTP.google.com.
1
6
1,869
2009-10-12T13:14:53.870
infrastructure
serverfault.com
153,633
problem with Remote-desktop
I want to connect to my rdp but when i want to logon in my remote desktop , after puting user and pass i get this error : [CODE] my server : windows 2003 . what am i going to do ? please help me . Thanks in advance
I'm guessing you're running in the default mode where it only allows two simultaneous connections. There are already two idle sessions connected, so you probably just need to fire up Terminal Server manager and kill one (or more) of the idle sessions. You'll be able to connect after doing this.
2
5
108
2010-06-22T15:17:01.780
infrastructure
serverfault.com
105,424
Minimizing SELECT latency in PostgreSQL
I am evaluating Postgres 9.4 performance on a machine with Intel i7 quad-core 3.6 GHz CPU, 8 GB ram, and 7400 rpm HDD (no RAID) running Linux Mint. The DB schema has the following table: [CODE] This table has 72 million rows and is 35 GB in size (PKEY index is 25 GB). [CODE] ranges from 0 to 5000. I need to query senso...
The main problem is that you have 60 GB of data which you want to access quickly on a single slow HDD (I've never heard of 7400 rpm, is it 5400 or 7200?). You can partition on the time, so the last two weeks of data are grouped together in tight set. Or you could try clustering on the time instead of partitioning on it...
0
1
3,015
2015-06-29T11:38:58.353
airflow_errors
dba.stackexchange.com
1,052,943
Viewing boot in serial Console on GCP Compute Engine
I am diagnosing a boot process of a custom image on GCP Compute Engine. I am trying to figure out how I can view the boot from the serial console or anywhere else. This is all I see on the serial screen: [CODE] I can boot successfully in VirtualBox, so I can make any changes to the image if required and have tried usin...
You didn't specify what OS you're trying to boot in GCP, but I can take an aducated guess and assume that you've created a VM with a disk from a VirtualBox image and it doesn't want to boot. If that's all that you're getting from the serial console output it's not enough to troubleshoot. I recommend going again through...
1
0
391
2021-02-09T11:08:33.987
infrastructure
serverfault.com
320,684
How to install MySQL on Ubuntu 22.04LTS?
I want to install the latest version of MySQL on my Ubuntu 22.04.01 LTS desktop, then try to use it as a local database, but I have been confused because there are a lot of different files here: https://dev.mysql.com/downloads/mysql/ I don't know which file(s) are needed to be downloaded? Also the same issue here for t...
If you look at the descriptions of the packages/bundles/debs some have this string: "dbgsym" those are installs with debugging symbols installed. Probably you do not want those (if you did want them, you would know) On your Worksapce Question: the 60M field are debug symbols. As Ergest said above that package is the AP...
0
1
432
2022-12-07T19:13:44.430
database_errors
dba.stackexchange.com
354,870
Strange Jmeter connection refuse on Tomcat
I tried difference setting in Jmeter and Tomcat. If the Threads number in JMeter is 1~200, Then tomcat is okay. If It is 300, Then after serving few requests, tomcat starts to output errors. Here is the error show in JMeter [CODE] My tomcat server.xml in eclipse [CODE] Any idea why this is happening ? How do i check th...
I had the same problem, which turned out to be the limit of half-open socket connections in XP. I used this tool to solve the problem: http://www.megaleecher.net/Tcpip.sys_Patch_To_Increase_Windows_XP_Connection_Limit
0
1
4,244
2012-01-30T02:15:57.533
infrastructure
serverfault.com
429,778
Linux Software RAID: How to fsck on hard drive?
We have a Linux server running with Software RAID1. We see some issues in [CODE] like: unreadable sector . I want to perform a complete [CODE] on the drive to get some more information, but a [CODE] brings a clean due to the Software RAID layer in between. How can I check the real hard drive? Do I need to disassemble t...
[CODE] tests the filesystem, but this should be fine as long as the RAID hasn't failed completely. To test the disk itself, use [CODE] (in package [CODE] ). [CODE]
2
2
8,935
2012-09-19T08:57:00.743
infrastructure
serverfault.com
437,261
Folder rights doesn't work on group, but does on user
I've got this share where I want to restrict access to two folders so that only members of a group can get access to them. I've done this countless of times, but this time there's something odd going on. The root folder has these permissions set: [CODE] This is so that everyone can get access to the root folder Every s...
You need to wait a bit for all the domain controllers to see the new groups. What's likely happening is that you create the group on DC 1, and your file server is authenticating users against DC 2. If you turn on auditing login events on the file server you might be able to see why the login failed. You can check in AD...
1
1
2,536
2012-10-11T12:01:33.583
infrastructure
serverfault.com
3,874
How to deal with automated test cases that always fail?
I'm facing a lot of automated GUI tests that fail one or more verifications during their run. All the failings points have been reported in our tracking system and they are known issues but get "ignored" as having low priority. Development team promised to have those issues fixed "in the next few months", and this was ...
One possibility here is to build into your testing the ability to flag a failure as a "Known issue" which is then reported with each run of your automation. I've gone into more detail in my answer to the question user246 linked - I'd recommend you check into my comments and the other responses there.
12
10
2,773
2012-09-25T13:10:11.213
data_quality
sqa.stackexchange.com
822,553
Can't connect to via ssh to second NIC on RHEL aws
I want an EC2 host with 2 NICs, one for administration and one for hosting a few server processes. I successfully cloud form'd a host with 2 NICs, each with their own elastic IP. I expect I can SSH into the box from either IP, but I can only connect via the IP assigned to eth0. Connecting via eth1 just hangs. Tried set...
I would first of all verify that eth1 was capable of connecting outside. I'd probably do this with [CODE] . I'd check that sshd was listening in the expected address and ports using [CODE] . Then I'd check that the firewall was not blocking packets. If all of those are good then the problem lies outside the box. Perhap...
0
1
983
2016-12-24T00:53:07.830
database_errors
serverfault.com
466,369
BIND9: Do forwarders have any priority?
I am just setting up my BIND9-Server and it works well so far. I decided to integrate a little gimmick into the abilities of my DNS. I want it to resolve IANA-compliant domains like *.com and *.net by the DNS-server of my ISP but i also want to integrate OpenNIC-domains like .geek and .project by using a OpenNIC-DNS-Se...
I've looked this up before, but I'm having trouble finding something better than this at the moment: https://lists.isc.org/pipermail/bind-users/2012-April/087455.html BIND8 and onward consider each of the forwarders begin with "equal weight". Based on the SRTT of the responses, the nameserver begins to favor one over t...
12
6
10,928
2013-01-12T01:02:55.767
infrastructure
serverfault.com
340,937
Sealing Tiles and Cable routes in datacenter fire supression
I've been given the task of moving a small datacenter (3 Racks) into a new building where a server room was built with water sprinklers. The issue was raised and the contractor changed it to an FM200 system. I'm not sure who hired these guys or what the outcome will be b/c they have turned to me to find out how to seal...
Honestly, you won't be able to create a 100% air-tight room. No point in trying to. Most fire-suppression systems are deliberately designed with a certain amount of escaping air. That being said... The guy selling DuPont products should be the one to consult on this. You're the customer, not the service provider.
5
6
545
2011-12-14T16:47:19.973
infrastructure
serverfault.com
607,378
Minicom Successive Address Dialing
I've been tasked with writing a script for the minicom connection utility that tests a series of numbers in its dialing directory, I have found the baked in scripting language to be near useless. I've been trying to use the shell launch syntax to specify a number of entries in the dial directory but nothing has worked ...
It's unclear what version of minicom you're working with, but I went and had a look at the source for the current version, 2.7. (I'm kinda sorry I looked-- it's burning my eyes. What an ugly bunch of C code...) It looks like the prompt you're talking about is invoked from [CODE] in two different places-- lines 384 and ...
1
2
108
2014-06-23T19:40:59.190
infrastructure
serverfault.com
114,878
Windows Server 2008 - IIS 7 - ASP.NET - Does my web server go to sleep? How do I keep it awake?
It seems that my asp.net sites on my web server are very slow to load if they have not been accessed in a while. Does the ASP.NET processor go into suspend or sleep mode if it has gone unused for a period of time? Is it better for me to fix this by configuring ASP.NET or writing some program to visit my sites every so ...
Depending on your configuration the Application Pool assigned to your ASP.net application the AppPool will recycle at a certain time of day, or after a certain number of requests. Once this happens it forces ASP.net to recompile the site. There is a good overview on ASP.net compilation on MSDN . There are also several ...
7
6
7,408
2010-02-20T08:14:58.413
infrastructure
serverfault.com
717,601
OpenVPN Access Server: Remote Subnet Cannot Access Client's Resources
I have OpenVPN Access Server running on AWS. Here's the configuration: 172.18.16.0/20 Client (172.18.16.101) ----- OpenVPN Server (172.16.0.0/20) | | | | Private Subnet (172.16.16.0/20) The client can connect to the OpenVPN server. The OpenVPN server can ping and access resources on both the client and also on the priv...
TL;DR version: On the EC2 Dashboard, select the EC2 instance running OpenVPN Access Server Click Actions -> Networking -> Change Source/Dest. Check -> Yes, Disable For more information: Disabling Source/Destination Checks It turns out that all my OpenVPN and route settings were correct, and it was an issue specific to ...
4
0
454
2015-08-28T21:40:20.290
api_errors
serverfault.com
928,861
Ansible: check supplied tags are valid before running a playbook
I suspect that this is trying to be too clever (and failing), but - especially in development of a PB, it's really useful to use tags to limit the roles which are run - so for example we have: (snippet of the playbook) ... [CODE] Now occasionally, I run with a misspelled tag - eg [CODE] And pre-tasks get run, as do pos...
IMHO there is no such variable to "see which tags are set in a playbook". There are only ansible_run_tags and ansible_skip_tags . I'm afraid the only option would be to write an ansible-playbook wrapper to check if the supplied tags are present in the playbook ("to run in check-mode first, and manually parse the output...
2
2
2,179
2018-08-31T11:19:59.510
data_quality
serverfault.com
426,660
Is it possible for the CPU to read or write to the cache, while I/O device is reading main memory?
If an I/O device is reading the main memory (directly) then is it possible for the CPU to access the cache? I think it's possible for the CPU to access the cache in case of a hit. But in case of a miss there could be two scenarios. Either the CPU pauses the DMA and fetches blocks from the main memory (haven't heard of ...
Without miss, no problem. With a miss that can be filled from L2 or L3 cache, no problem. High end CPUs can have two paths to separate RAM chips, so they could run simultaneously. CPU and external hardware or multiple CPUs accessing the same RAM chip someone would have to wait. If hardware designers determine that this...
0
4
225
2021-05-23T14:32:50.407
api_errors
softwareengineering.stackexchange.com
23,612
How to get notices to the output stream?
I have debugging messages in functions. Those message are raised like [CODE] I set my log file with [CODE] Then I do what I need to do with [CODE] And when the execution is terminated, [CODE] . The problem is that I don't have the messages raised by notices into messages.txt. The messages are displayed on the screen bu...
I'm afraid that you won't like this answer, but currently it seems impossible. From the psql documentation : Saves future query results to the file filename or pipes future results into a separate Unix shell to execute command. If no arguments are specified, the query output will be reset to the standard output. "Query...
25
12
40,448
2012-09-04T04:47:38.780
database_errors
dba.stackexchange.com
223,836
Where can I find Solaris patch clusters for Solaris 2.6?
One of my customers is working on a product which can virtualize old Solaris environments and run them on current, supported Solaris platforms. Of course to do this, we need to run an assortment of old Solaris platforms, and by "old" I mean Solaris 2.6. We have the OSs and can install them, that's no problem. The issue...
Google is your friend: I found what I was looking for on http://www.mirrorservice.org/sites/ftp.sun.co.uk/patchroot/clusters/
1
1
582
2011-01-18T16:36:18.603
database_errors
serverfault.com
839,309
Nginx config keeps throwing a redirect loop while trying to redirect www to non www and to https
I'm trying to re-direct all [CODE] requests to my domain to the non www url and everything to [CODE] at the same time. Here's my nginx configuration: [CODE] The problem is, I'm getting a redirect loop in here. The browser says [CODE] . Any idea what's happening? The curl for https://slmun.org : [CODE] It's access log e...
You didn't mention you're using CloudFlare in your question. I believe the problem is with CloudFlare, either a cached result or a PageRule. Clear your CloudFlare cache, and disable any pagerules while you're doing this diagnosis. Next option is it's your proxied application sending the redirect. Check the access logs ...
0
1
1,870
2017-03-20T01:31:03.697
infrastructure
serverfault.com
314,796
What does "Maximum memory usage reached" mean in the Cassandra logs?
There's a lot of confusion as to what this message means and whether there's any action to take: [CODE] Does this pose a problem and should Cassandra operators be concerned?
Cassandra uses buffer pools when reading off the disk. Decompressed SSTable chunks are stored in a cache allocated from off-heap memory that operates in much the same way as the OS page cache. When a node is busy, it is quite normal to expect that the cache can fill up quicker than the space can get freed up. When this...
1
2
1,907
2022-07-25T04:04:56.517
database_errors
dba.stackexchange.com
669,501
define ssl_ciphers in nginx for each vhost
i`am just wondering if i define something like this: [CODE] in my vhost config in nginx, it is active on all my vhosts which use ssl. Is there a way to define the ssl_ciphers and ssl_protocols for each vhost separately?
nginx documentation states that the [CODE] directive can be used both at [CODE] and [CODE] levels. So yes, when you specify it inside a [CODE] (virtual host) block, it applies only to that vhost.
1
4
1,303
2015-02-18T06:15:43.080
infrastructure
serverfault.com
998,131
ADFS 2019 OAuth Access Token Lifetime
Is it possible to change the access token lifetime in ADFS? I have an Application Group configured that issues tokens perfectly fine. I just want to know if I can somewhere change the lifetime of access and refresh tokens you get via OAuth. Only thing I found were some settings about Relaying Party Trusts, but I don't ...
I had the same / very similar issue and I wasted a lot of time going through the Internet to find the answer for this. I think the issue is that most of the docs and blogs online were made using ADFS 2.0 and 3.0 which neither had the Application Group setting (at least true for version 2.0). I believe Win 2016 comes wi...
1
1
3,771
2020-01-08T15:07:26.213
api_errors
serverfault.com
730,161
Changed /bin/sh to /bin/busybox for root, broke SSH access. How to fix it?
I made a silly mistake... I was playing around with busybox and used [CODE] to switch the root shell from /bin/sh to /bin/busybox which seems to have broken the SSH access. When I do: [CODE] I get: [CODE] Technically, I am unsure of why it closes the connection. Non technically I have no idea how to fix this and would ...
The connection is closed because calling [CODE] just shows you the output you see but won't start a shell session (try it in a terminal). You need to create a symlink [CODE] and call [CODE] to start a busybox shell. You'll probably have to fix this via a rescue system in order to change it back.
0
2
2,857
2015-10-20T09:58:11.820
infrastructure
serverfault.com
1,006,718
rsync: Only update owner/group and permissions?
I'm in the process of duplicating a remote webserver and am using rsync to transfer the files: [CODE] It took about 12 hours to transfer 115GB of files only for me to find out I forgot the "-a" option. So now I have 115GB worth of files with the wrong owner/group and permissions. Is there a way to use rsync so it only ...
Yes, run the command again with the [CODE] flag. [CODE] is smart enough and it will just change the owner/group. You can see that if you use [CODE] (itemize). It lists the changes done.
2
3
1,682
2020-03-12T19:41:23.193
infrastructure
serverfault.com
73,439
How to tell my neural network that I care much more about precision than recall?
I am training a neural network for a multilabel classification problem, so my last layer consist of [CODE] sigmoid neurons. Now, I know that it is impossible to nail the learning task both because of noise and lack of predictable power in my features. However, I am assuming that the predictable power should be enough t...
edited As a first approximation to your goal and without much effort needed, I would try to customize your validation metric function (for instance, based on what you want, a metric which applies different weights on precision and recall) and pass it via the metrics input parameter of your network.
1
1
747
2020-05-03T07:50:47.087
data_quality
datascience.stackexchange.com
898,815
NGINX Not Resolving Domains
I have woken up to an issue this morning where I can access the server via SFTP SSH etc via the IP is fine but if I try and access via the domain I get an error of: dev.tinyturtles.co.nz’s server IP address could not be found. NGINX Config is sweet and NGINX is started UFW Status: [CODE] NGINX Config: [CODE] Site Confi...
Your domain expired about 12 hours ago. [CODE] Contact your registrar for further instructions on recovering and renewing your domain.
4
18
1,841
2018-02-25T21:23:01.130
infrastructure
serverfault.com
206,859
Are there security implications to using dynamically-assigned TCP port numbers?
I'm getting pushback from operations for having a server process listen on a dynamically-assigned port number (i.e. it binds a socket to a port number of 0, triggering a dynamic assignment by the OS, which it retrieves using getsocketname()). The argument was that is "creates all kinds of issues for firewalling, routin...
Network administrators like to know exactly what ports your software will listen on, so that they can open only the required ports on the firewall defending their network from intrusion attacks. Protecting a network is all about knowing where an attack could come from. If your network, via its firewall, will never expe...
3
10
2,289
2013-08-01T20:31:15.113
api_errors
softwareengineering.stackexchange.com
118,539
How/Where To Set Sendmail Requeue Interval
Simple question time: where can I define the requeue interval for sendmail? By default SendMail is configured to retry delivery of deferred messages once every hour. I'd like to set that to be more frequent. Is there a DAEMON option somewhere for this? -M
(*sigh) Found it after googling quite awhile: To find the current running instance type: [CODE] To actually change it, modify the /etc/sysconfig/sendmail file (keep in mind that this is for CENTOS). It'll look something like this: [CODE] Change the QUEUE unit to suit your preferences.
4
2
13,065
2010-03-02T23:30:50.800
infrastructure
serverfault.com
173,527
Combining Ruby and C++
I've been discussing a conceptual project with a friend of mine and the the most effective way we've seen of doing it is writing the engine in C++ while the logic would be done in Ruby. However, we would need data to be passed around often, for example: Engine reports that A happened, that gets triggered in a proc arra...
Swig is the way to go. The data passing is also possible there in my understanding with typemaps. Have a look at it. Also look at some helpful links below Extending Ruby rice (Github) Ruby extention with C
4
2
2,618
2012-11-04T01:12:39.070
api_errors
softwareengineering.stackexchange.com
28,906
SQL Table Indexing - Database Overloaded With Queries
I'm a bit of a newbie to SQL who has been thrown in on the deep end with a server that gets about 2 million queries an hour. I'm trying to optimise our database and I noticed this in our database runtime information: Select_full_join 789 The number of joins that do not use indexes. If this value is not 0, you should ca...
There are several approaches that can help. If you just throw in more indexes, then you are likely to speed up most simple queries, as well as introduce unused indexes. Unused indexes don't really hurt if the database is read-mostly, but they take up space. Unless you care about disk space, adding single-column indexes...
0
1
693
2012-11-18T20:03:14.833
warehouse_errors
dba.stackexchange.com
1,122,125
Why does ip6tables lose packets after PREROUTING to a different interface?
I'm using [CODE] to nat packages to an IP on a different interface (localhost), but all packets sent there are lost. I have the same [CODE] rules for IPv4 where everything is working fine. Setup The host is a debian 11 VM, the client is a docker container running [CODE] . [CODE] : [CODE] The host has the [CODE] interfa...
After some more digging i found out that the problem is not cross-interface routing, but routing to [CODE] , which this answer to a different thread has shown me, is not allowed in IPv6 as per RFC 4291 Section 2.5.3.
0
0
258
2023-02-06T14:55:13.163
pipeline_ops
serverfault.com
803,175
How to kill a process that never dies?
Problem I have java process which does not die neither with SIGTERM nor SIGKILL. [CODE] It respawns everytime signal is received. [CODE] It sounds strange but even I reboot the server, it still does not die . Process was executed through init script with below command: [CODE] Is there any way to force this process to k...
init: logstash main process (2546) killed by KILL signal Actually your process does stop here. init: logstash main process ended, respawning A new logstash process is started by init to replace it. That is also shows which control process is responsible for restarting logstash: init . (On RHEL 6 and CentOS that is Upst...
26
79
16,659
2016-09-15T04:31:52.410
infrastructure
serverfault.com
343,850
Apache httpd with LDAP error in CentOS
I'm trying to setup an Apache web server that only allows access to users that are in an LDAP store. I am able to setup exactly what I want on my local Windows 7 machine using Apache 2.2.21 against the LDAP server. After trying to login through the prompt, the Linux version displays a 500 error page. To setup the Apach...
It turns out that SELinux was blocking Apache's connection to LDAP. Running the command: grep -m 1 httpd /var/log/audit/audit.log | audit2why I was able to find out that Apache was trying to connect to a port that SELinux didn't recognize. After following suggestions from this site and the CentOS/SELinux documentation ...
0
2
6,037
2011-12-23T19:54:14.790
api_errors
serverfault.com
360,393
Is there a system wide limit to the total amount of socket & queue buffer space?
in Linux I know that you can tweak the maximum buffer size per socket connection, but is there a system wide limit to the amount of space the buffers can take up and does this apply equally to the size of message queues?
type: [CODE] This file defines the system-wide limit on the number of message queue identifiers. To set it to a new value for this running session with: [CODE] , which takes effect immediately. The system wide default maximum size in bytes of a message queue: 16384 bytes, this can be read from [CODE]
0
2
1,343
2012-02-15T15:13:26.787
infrastructure
serverfault.com