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
333,165
Using logical replication to migrate a large Aurora database from AWS to on-premises PostgreSQL
After 5 years and many $$$ spent on keeping our data in an AWS RDS Aurora PostgreSQL cluster, we now want to bring the 12 TB of data back to an on-premises PostgreSQL instance, specifically a Crunchy Postgres cluster running in an on-premises Kubernetes cluster. The RDS cluster is running Aurora PostgreSQL 14.7, the on...
If you want to avoid a longer down time, logical replication is your only option. Your idea is good: configure logical replication for the active partitions, and dump and restore the old partitions. You can directly replicate from v14 to v16. Logical replication is not simple, and you will meet challenges. But unless y...
0
0
96
2023-11-16T12:30:55.480
pipeline_ops
dba.stackexchange.com
297,490
SQL Server 2008 CPU usage goes to 100% - troubleshooting help needed?
I have a fairly powerful database server having SQL Server 2008 R2 installed. There is only one database on it which is being accessed from 2 servers (around 5/6 applications). The problem is as soon as applications start pointing to the database, system's CPU usage goes upto 100% with sqlserver itself using 95+%. I ha...
I'd also take a look at sys.dm_os_wait_stats to see what the server is waiting on. If a few queries are really pegging the CPU like that, I'd suspect lots of parallel execution. It's something to look for.
1
1
1,818
2011-08-04T09:21:27.003
database_errors
serverfault.com
956,793
Nginx load balancing bad configuration or bad behaviour?
I'm currently using Nginx as load balancer in order to balance network traffic between 3 nodes where a NodeJS API is running on. The Nginx instance runs on node1 and every request is made to node1. I have a peek of requests about 700k in 2 hours and nginx in configured to switch, in a round robin manner, them between n...
The problems were caused by the slowness of the OpenVPN network. By routing the requests on the internet after the addition of authentications on each different server we got the errors down to 1-2/day and are probably caused by some other issues now.
1
1
869
2019-03-05T07:54:21.237
api_errors
serverfault.com
589,540
Samba server authenticating against Active Directory. Is it possible to reboot and still connect to the domain?
I have tried to setup Samba File Server with AD authentication. The authentication via Active Directory is successful but if you reboot the server the linux Samba file server will NOT join the domain automatically like windows server do. You still have to manually join the domain by issue the below command line with us...
You shouldn't need to join your Samba host back to the domain every time you reboot! If you've done it correctly, it should just reauthenticate after your services come back up. Are you getting any errors for smb, winbind or kerberos? I can't view the article you've linked. It seems likely you've omitted some config st...
0
2
14,296
2014-04-16T18:33:25.967
api_errors
serverfault.com
844,061
ZFS: Does anyone know how to roll a zvol back in time?
I have a ZFS based iSCSI SAN that serves ZVOLs to a bunch of VM servers. Today a network glitch caused all the iSCSI volumes mounted on the clients to go RO. The only way out of that is to shut them all down and restart, often running fsck to get the iSCSI volumes back on-line. Well, fsck decided to thoroughly destroy ...
Yes, it can be done. It will be messy. https://gist.github.com/jshoward/5685757 Including the original file now that the link has gone dead. zfs_revert-0.1.py [CODE]
1
1
1,128
2017-04-12T07:20:33.563
infrastructure
serverfault.com
283,305
What contributes to the transaction size on a MySQL UPDATE?
Background We're running a MySQL 8 INNODB cluster behind some Java services. We received an error from the application because we'd exceeded the group replication transaction size limit (“Error on observer while running replication hook 'before_commit'”). Our limit was set to 150Mb at the time. Problem Looking at the t...
The transaction size is not just based on the amount of data you're actually change, rather the whole state of the row before you made the change is preserved in case of a rollback and therefore the entire row is essentially copied. From further research it sounds like as much as even the entire page of rows is copied ...
0
1
2,459
2021-01-15T09:29:29.350
database_errors
dba.stackexchange.com
438,235
What is the meaning of these BIND log messages?
Please clarify for me the meaning of the following BIND messages in syslog, these are from a DNS resolver. Whilst I think I understand them, I don't know what all four mean, so I think it's best if someone will clarify for me: [CODE] Thank you.
The nameserver it contacted was expected to be authoritative but isn't. The nameserver responded with a SERVFAIL error code. The nameserver responded with a REFUSED error code. The client was denied access to read the cached response for that domain. 1-3 are issues with the configuration of the nameserver for the domai...
1
9
16,843
2012-10-14T17:50:04.480
infrastructure
serverfault.com
314,821
Oracle 21c XE, need install/enable JServer JAVA Virtual Machine, but ORA-00904
In Oracle 21c XE, I need install/add JServer JAVA Virtual Machine. When I try to install it, there is a problem, exactly [CODE] . [CODE] Now it is in `LOADING' state. [CODE] Where is the catch please? Thanks.
The catch is that 21c XE comes with all features preinstalled including "JServer JAVA Virtual Machine", yet for some unknown reason you wanted to install it manually, which messed it up. At this point I would not bother, just reinstall and use the database as it gets created automatically. Express Edition is different ...
0
1
272
2022-07-25T18:06:09.433
database_errors
dba.stackexchange.com
87,632
How to assign a new data point to a cluster?
I have a user dataset which contains fields like [CODE] . I clustered this data and assigned the new cluster to the existing data. Now I want to know: how can I find a similar cluster for a new user? As an example, if I am a new user I may submit only a few details like [CODE] but still want to know to which cluster I ...
Suppose if you use kmeans clustering then you can 1.train and save the model using pickle 2.loa the model using pickle 3.pass your new sample as a vector to the predict function of the loaded model object model.predict([[0, 0], [12, 3]]) this will give you only one cluster label 4.if you want to get top n clusters that...
1
1
1,661
2021-01-07T13:38:34.077
data_quality
datascience.stackexchange.com
1,008,413
A Record change on messing hosting setup
Freelance web developer here seeking some advice... I am working with a client who wants to launch new website. Their registrar is FastHosts, which points to Sitegrounds namesevers (their DNS host). I've built a new site which needs to run in a Node.js environment, but that isn't compatible with Sitegrounds hosting. So...
'public IP' on an EC2 might not necessarily be a publicly accessible IP address. This is generally called the "Elastic IP" in AWS-speak. Is that what you are using? You mentioned being able to access the website using the "public" IP. Were you trying this from a computer within your network (or VPN'd) or external? If y...
0
0
30
2020-03-25T22:59:20.713
infrastructure
serverfault.com
326,727
Default Forwarder Windows Server 2008 R2
I set up my Windows Server 2008 R2 box to act as a DNS server so that I could address some of the computers by name instead of IP. I'm a little rusty on DNS, so you'll have to bear with me. I configured my router to use my Server as the DNS server for the network and can successfully address machines by name from withi...
You don't usually need to configure anything, the default behaviour for the Windows DNS service is to perform recursive DNS lookups for the zones it isn't authoritative for, using the so-called "root hints" (the Internet root DNS servers). A default forwarder is used only to speed things up, if you have a reliable DNS ...
0
1
492
2011-11-01T16:32:25.380
infrastructure
serverfault.com
117,179
How to use PHP in combination with the IIS7?
I have enabled IIS7 and would like to use it in combination with PHP. For that I have already installed PHP. And than I found a rather detailed description of how I can make IIS7 be able to use PHP. However, I have problems on the very last steps. As executable I need to indicate "php5isapi.dll" and I do not have this ...
Have a look at this question over on SO: Why is php5isapi.dll missing after installing PHP for Windows?
0
1
901
2010-02-26T14:57:24.193
infrastructure
serverfault.com
283,107
Difference between class scope and object scope design patterns
Apparently design patterns have a ton of classifications. One I am struggling with is whether or not the pattern is a class scoped pattern or an object scoped pattern. Of course no documentation exists on the differences between the two, so I'm asking your opinion. The GoF book defines it as: "Class patterns deal with ...
This boils down to composition vs. inheritance. Let's take a look at one pattern that you can do in both ways. The [CODE] is, as the name implies, an adapter between two classes that are otherwise incompatible. Say you write a 3D engine and you need a [CODE] class. You have your [CODE] all ready and it kind of works, b...
8
6
5,366
2015-05-06T01:52:03.700
api_errors
softwareengineering.stackexchange.com
245,396
filesystem on shared host mounted read-only
Lately on a shared host, the filesystem containing my home folder was mounted read-only for 45 minutes to 1 hour. The technical support did not know about the outage, evaded direct questions. After a bit more than three days I obtained the answer: There are many explanations, but in the most times this caused by server...
I am going to assume that you are talking about a Linux system on ext2/ext3/ext4 filesystems (also reiser if you dare). Anyway, when a new filesystem is generated on the disk, there is something in the filesystem meta information that informs the Linux host what to do in the event of some problem in the filesystem duri...
0
1
578
2011-03-09T20:56:56.473
infrastructure
serverfault.com
266,869
Can't enable wal2json in postgres 12 docker image
I'm trying to enable wal2json in an image extended from [CODE] image. But i'm getting an error: [CODE] This might be because wal2json is also missing from [CODE] : [CODE] Dockerfile: [CODE] postgres server logs: [CODE] the postgresql.conf file has been tweaked to [CODE] Any help with getting this working will be apprec...
2 years later, on postgresql-14 with wal2json. After installing with debezium docker image : https://hub.docker.com/r/debezium/postgres/tags Which basically does what you did https://github.com/debezium/container-images/blob/023a7da62f802051b15e3991e2a28f8d705e8d40/postgres/14/Dockerfile I'm able to use the wal2json ex...
2
0
2,164
2020-05-10T14:12:37.467
database_errors
dba.stackexchange.com
166,538
ORA-12504: TNS:listener was not given
I created container [CODE] database with pluggable database [CODE] . When I try to connect [CODE] I get this error: ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA My [CODE] look as follows: [CODE] I can normally connect to [CODE] with: [CODE]
You have [CODE] instead of [CODE] (space instead of underscore). Fix that, and try again.
0
1
13,283
2017-03-08T13:06:26.237
pipeline_ops
dba.stackexchange.com
548,425
How to get puppet to stop on the first error in a Manifest?
How do you configure puppet to just stop on the first failure instead of continuing on and just spewing errors for the rest of the steps that depends on the first failure?
This is not possible with puppet. The puppet master will build the graph with what needs to be done. Puppet will start executing the graphs nodes. If one node fails, all dependent nodes will fail also. Everything else gets executed. Stages are the same: if anything goes wrong in a stage, all dependent stages will autom...
11
4
5,420
2013-10-24T17:38:04.097
pipeline_ops
serverfault.com
391,533
C++ : What is the order of function pointers inside vtable?
In this answer to " In C++ why and how are virtual functions slower? ", the author mentions below point: "Get the right function address from the vtable into a register (the index where the correct function address is stored is decided at compile-time)." As a follow up of this comment, i have some questions: What is th...
While it is implementation dependent, it is also fairly predictable. Especially historically speaking, the compilers layout members in declaration order. For fields (instance data) that means each field get assigned the next offset in the object (after alignment is rounded up as required), and, each virtual method that...
7
10
3,191
2019-05-07T10:26:03.307
api_errors
softwareengineering.stackexchange.com
1,051,239
KVM Live Migration- VM is already active
I'm trying to perform a live migration from one KVM host to another, both SLES12SP5, share the same subnet. [CODE] Executing the following command: [CODE] This is the error that I get: [CODE] 'login01' is not active on another KVM host, I tried to disable autostart, but it doesn't seem to be related. Anyone else encoun...
This error is coming from a hook script , not from libvirt itself. So it is a script that you or another admin added to the hypervisor. The script called when libvirt tries to migrate a VM (and also start/stop a VM) is [CODE] . If the script exits with an error, migration is aborted. Check this script to find out why i...
1
2
407
2021-01-26T09:54:09.397
infrastructure
serverfault.com
895,828
Connect FreeNAS to AD on Windows Server 2016
I have configured DNS, NPT and active directory services on my server but I'm still struggling to connect FreeNAS to a domain. There is no firewall between these two. I've created a freenasAdmin user and added a new computer with all the necessary privileges. There is no adminui nor nis feature anymore in 2016 so I'm n...
I suppose you have a working Windows 2016 DC so I won't go into that. In FreeNAS go to directory services -> active directory and click Advanced Mode. Enter your domain name, Domain acc. and password (I used Administrator acc) uncheck UNIX extensions enter your site name (this can be found in server manager -> Tools ->...
3
2
29,820
2018-02-06T07:13:41.227
infrastructure
serverfault.com
373,922
strange ping start time on Windows 2008 R2 server
I have a 3 computer network connected through a Linksys/Cisco E3000 Router in a small office. One is running Windows 2008 R2 Foundation and the other 2 are running windows 7. When I ping the R2 from the windows 7 machine using the name (eg. ping server), the ping waits for 6 seconds, and then starts printing the round ...
If the server is configured as an Active Directory domain controller, it should also be running a DNS service for the internal clients. Your client machines should be using the address of the domain controller as their DNS server (the server should be pointing at itself for DNS). You'll then need to configure the DNS s...
1
1
1,252
2012-03-27T13:10:00.630
infrastructure
serverfault.com
288,476
Git branch model critique: always derive from master
I am currently working on a large project involving at least 3 teams working on separate feature sets in the same codebase versioned on Git. Some features require back-end integration and stabilization and I've heard of features taking months from being ready to going live. I've seen A successful Git branching model an...
The main problem you are going to face is that when you are combining the feature branches to a release branch, you'll need to solve all the inter-branch conflicts. Merge conflicts are the easier ones, since they pop when you are merging specific branches and you can ask the branch owner to solve them(it's far from ide...
2
4
1,994
2015-07-02T06:37:25.700
api_errors
softwareengineering.stackexchange.com
23,766
How to Optimise Query
I have a database structure similar to this, [CODE] The point of the DispatchLink table is to link two Dispatch records together. By the way I am using a composite primary key on my dispatch table because of legacy, so I cannot change that without a lot of pain. Also the link table may not be the correct way to do it? ...
The optimizer can consider many plan alternatives (including ones with multiple seeks) but for disjunctions ( [CODE] predicates) it does not consider plans involving index intersections by default. Given the indexes: [CODE] We can force index seeks (assuming SQL Server 2008 or later): [CODE] Using your sample data, the...
9
12
421
2012-09-05T23:04:23.030
database_errors
dba.stackexchange.com
55,441
DNS servers not assigned by DHCP
I got working domain with DHCP, DNS servers installed and firewall ZyWall 5 which resolves names to internet. In DHCP server configuration I've set also static IP address of server as a primary DNS server but when I try to renew IP address on Windows XP clients logged to domain there is only ZyWall IP address listed in...
Your ZyWall thing probably has it's own embedded DHCP server which is interfering with your Domain DNS. Disable that and you're done.
0
2
1,684
2009-08-18T11:03:51.927
infrastructure
serverfault.com
298,114
How to design access to different type objects in protocol response
I have written a communication library for an industrial device protocol. The response frame contains a byte array as payload data. The payload data consists of several "objects“ of different types, like integers, floats and other, more complex data like dates or different string encodings. To make this more fun, the d...
If you declare a type that's actually supposed to contain useful state as [CODE] , there is really no way to avoid typecasts all over. There's no way around it. However, it seems that what you're doing, at a higher level, is attempting to extract information from a stream of bytes by applying formal rules to recognize ...
3
1
200
2015-09-24T06:46:02.863
api_errors
softwareengineering.stackexchange.com
340,186
Remote installation script great in XP, doesn't work in Windows 7
I have a script to install an .msi file out to a list of remote workstations. Works fine going out to XP machines. I now get error code 1603 when trying to run out to Windows 7 machines. [CODE] Is it a permissions error? The user (me) is an Administrator on the Windows 7 workstations.
Try using the -h switch for psexec. From the psexec help: [CODE] This may resolve any issues that are occuring with UAC.
2
1
615
2011-12-12T18:06:39.133
infrastructure
serverfault.com
417,961
Tunnel an SSH connection transparently (no ProxyCommand)
Here's the scenario: the user runs "ssh -i sshkey user@server1". I want the SSH connection to be tunneled through server1 to server2. Normally, the user could do this himself using: [CODE] However, I don't want the user to set up the proxy themselves, using ssh command-line arguments or even ssh_config changes. As sysa...
I can think of two ways to do this: Forced command in the user's [CODE] (i.e. [CODE] ) on server1: The entry would look like [CODE] Then the command [CODE] will send the user directly to server2. Or, change the users' shell on server1 by setting it to something like [CODE] , the contents of which will be: [CODE]
2
2
2,245
2012-08-15T21:03:26.157
infrastructure
serverfault.com
80,153
Attempts to Add user to SysAdmin in SQL 2008 do not work
When I attempt add an existing domain user to the server role, sysadmin, I am not able to do so. I am logged in as the SysAdmin. I execute sp_addsrvrolemember (or do it through the gui). I get no errors. But that user is not added to the sysadmin group.
Well, mystery solved. The system administrators on the box had installed some 3rd party software (McAfee Host Intrusion Prevention) and it was blocking the sp_addsrvrolemember call. no one told me this had been added. We built in a rule to allow the change. It now works.
0
1
837
2009-10-31T15:17:31.263
infrastructure
serverfault.com
139,196
Unique pair checking query improving in pivot table
First of all, I have a solution, but I do not know that query can be transformed to uses [CODE] or to more effective query. I just want to improve my skill. I have seen an example online . So I have a pivot table which contains two column: [CODE] , [CODE] , each column a reference to the [CODE] column, this is a friend...
The query can be made easier: [CODE] Using this approach you can also create a unique index on the table [CODE] This above will however not prevent or detect multi-level loops: [CODE]
0
2
115
2016-05-22T09:49:26.250
data_quality
dba.stackexchange.com
150,251
Dell Management Packs in System Center Operations Manager 2007 R2?
I recently set up SCOM in a small business network environment. The root management server is a Dell Poweredge 2950, and I'd like to use SCOM to monitor it using Dell's management packs. I've imported the management packs into the SCOM deployment and followed Dell's installation instructions, but it doesn't seem to be ...
The problem is, these performance collection rules are disabled by default. You just need to turn them on. From the Dell MP documentation: In the Operations Console, Dell→ Performance and Power Monitoring Views displays the performance information that is collected from Dell Systems. This feature is available on instal...
3
1
1,974
2010-06-10T21:37:22.717
pipeline_ops
serverfault.com
181,825
Fast compression in C++ and decompression in C#
Overview I am working on a client-server application. The client is written in C++ (working on Windows, planning to support Linux) and the server is a .NET RESTful service. I need to HTTP POST some data to the server. The data is a unicode [CODE] that I need to compress using any fast compression algorithm (needs to be...
If anybody interested I ended up using gzip from zlib . Never figured out why LZ4 doesn't work, as suggested in the comments this could be an endianess problem or a 64/32-bit mismatch. However, I tested this on a single machine compressing and decompressing a local file. The same compilation settings worked for gzip. C...
5
9
12,606
2013-01-07T22:26:21.177
api_errors
softwareengineering.stackexchange.com
352,082
Does MPIO aggregate bandwidth for a single connection?
Consider the following setup: Windows 2008 R2, MPIO feature installed. Two iSCSI NICs (not bonded), 1Gb each. Storage: Compellent, 2x 1Gb iSCSI ports, single controller. In my tests I have confirmed that using Round Robin MPIO, both iSCSI NICs on the host are active during a single-worker IOMETER test. Both iSCSI NICs ...
MPIO has various policies available to it. As the Coding Gorilla points out, most of those policies allow for load balancing across multiple connections to aggregate bandwidth. Both your initiator and target have to have multiple connections for it to actually be faster than single link speed however. Round Robin is a ...
1
4
11,262
2012-01-20T21:22:30.887
infrastructure
serverfault.com
941,472
Domain user cannot access to his shared folder after deleting that user
I've created an shared folder in domain and user was able to access that shared folder with his permission but after deleting that user he cannot access to that shared folder. I've created that user with same name again but problem is not solved. Please help me, Thanks a lot.
This is the expected behavior. Each user account is unique. You created a new user account with the same username but this is not the same user account as the deleted user account. You'll need to grant the new user account permissions to the folder.
-2
3
555
2018-11-24T18:19:07.747
infrastructure
serverfault.com
441,471
Bubbling errors upstream in async message-based services
Imagine a simple set up of an API and a 2nd service, where the API pushes some msgs to the message queue and the service pulls them and processes them. Now, if an error occurs while processing a msg, there's no straightforward way of sending the error upstream to the API, so it can bubble it up to the client. The first...
Say your first queue contains requests to frobnicate certain foos. Each message in there needs a unique identifier. Best would be something natural (like the ID of the foo that should be frobnicated). To handle success/error feedback you add a second queue, e.g. [CODE] . When a foo has been frobnicated, you push e.g. [...
0
2
160
2022-10-06T15:43:05.213
data_quality
softwareengineering.stackexchange.com
1,155,586
Does this particular NVMe disk work in Storage Spaces on Windows Server 2019?
HPE Proliant DL380 Gen10 with Windows Server 2019 Standard. I want to use NVMe disks with Storage Spaces (not Direct aka S2D). The disk is HPE P50228-B21 3.2TB NVMe Gen4 High Performance Mixed Use SFF SCN U.3 PM1735a SSD. Does Storage Spaces support this disk? If not, what other way can be used to create a big pool?
Yes, you’ll be fine. HPE has no NVMe capable RAID controllers, which leaves software RAID as your only option. If you don’t want S/S you can enable Hyper-V role, spawn some Linux virtual machine, pass-thru your disks there and pool them with either ZFS or Linux software RAID. Both are way more reliable compared to what...
3
3
124
2024-03-02T23:08:08.083
infrastructure
serverfault.com
266,602
Frequency of SQL Server full backups vs. diffs
I have a SQL Server located in a colo center. Currently, our database is about 100Gb. Log files average about 500Mb/day, and differential backups grow by a bit less than that. My current disaster recovery plan is: have a full backup elsewhere, take log backups every ten minutes, diffs every night. I copy the logs and d...
Our schedule is the same as yours. Tlogs every 15minutes to 1 hours (depending on the db), Diffs at night, and fulls during the weekend. It all depends on the SLA of the database that you are serving, and how much downtime everyone is okay with having.
1
1
608
2011-05-05T12:47:54.220
api_errors
serverfault.com
104,184
How can I configure my programming environment to enable rapid switching between projects?
It often happens that I develop multiple different projects at once, so I need a solution to switch from one environment to another. I have created batch files to do the job but as this thing grows, I'll soon need something better. Some things I do are: Map drives Launch applications Load test databases Set environment...
Ask yourself: why do your projects need different environments? Can't you launch your development tools for two projects at once? That means: Map drives: if your project need a specific drive mapping, there seems to be a design flaw, at least a missing configuration option Launch applications: should be possible in par...
0
4
316
2011-08-27T20:02:55.387
api_errors
softwareengineering.stackexchange.com
121,441
Using gentoo, how does one stick -9999 ebuild to a specific svn revision?
As an example given the django-9999 ebuild, to match a developer's environment I need to checkout R12120 from trunk. Installing Django manually is not an option due to package management reasons. But there is also no ebuild in portage for 1.2 beta versions. So I did the following: [CODE] Which installed the required re...
I'm not completely against using [CODE] . If you understand and document it within your environment it can be a useful method to apply subtle changes with ebuild hooks whilst still tracking stable ebuilds. I don't think it's an appropriate way to fix the revision of a [CODE] ebuild though - according to the "principle ...
4
5
2,982
2010-03-11T11:11:08.047
infrastructure
serverfault.com
713,308
iSCSI to NetApp FAS: high latency for write load
Problem A Linux iSCSI initiator is seeing high service times when writing to a NetApp FAS target exposing a bunch of LUNs. Where to look for the cause and how to resolve this? Reproduction I am using [CODE] and [CODE] from the sysstat package to do the calculation of "await" - the time a specific request is waiting on ...
Too long for a comment; I'am not a Linux guru, but in Windows I disable TCP Large Send Offload on the NIC, as it can produce lag. It send less packets, but bigger, but for critical IO it's not recommended. A official explanation; The TCP Large Send Offload option allows the AIX TCP layer to build a TCP message up to 64...
2
0
1,128
2015-08-11T12:09:21.180
infrastructure
serverfault.com
673,303
Reflect HKLM registry changes to HKCU
Ok so I have a Local Group Policy (under Computer Config, not User Config) to force install extensions in Chrome. This policy needs to run for every user of the computer. The value is going to change based on a new version of our chrome extension and the policy checks if it needs to update the installed extension (it w...
Google Chrome ADM/ADMX templates You can use Google Chrome ADM/ADMX templates (ZIP including documentation) to force settings on every user on every computer via Group Policy. gpedit.msc > Local Computer Policy > Computer Configuration > Administrative Templates (Right click on) Administrative Templates > Add/Remove Te...
0
0
2,115
2015-03-05T16:52:30.563
infrastructure
serverfault.com
47,397
How Transformer is Bidirectional - Machine Learning
Asking question in datascience forum, as this forum seems well suited for data science related questions: https://stackoverflow.com/questions/55158554/how-transformer-is-bidirectional-machine-learning/55158766?noredirect=1#comment97066160_55158766 I am coming from Google BERT context (Bidirectional Encoder representati...
It is the encoder part of the Transformer model that is bidirectional in nature, not the whole model. The full Transformer model has two parts: encoder and decoder. This encoder-decoder model is used for sequence-to-sequence tasks, like machine translation. There are other tasks, however, that do not need the full mode...
3
1
1,620
2019-03-16T07:12:36.477
data_quality
datascience.stackexchange.com
30,385
Setting Linux time zone
Should [CODE] (under RHEL 5.3, not that I think it matters) be: a symlink to [CODE] a hard link to [CODE] a copy of [CODE] I'd prefer 1) because it's explicit and easy to manage via Puppet but will it break anything? RedHat's default looks to be 3). Edit : I'm aware of the usual problems of symlinking across filesystem...
3 is the prefered method. This is due to an old bug that cause systems with a seperate /usr partition to set the system time to UTC since /usr/share/zoneinfo was not available during rc.sysinit. You can look it up at the following bugzilla
1
6
1,030
2009-06-23T15:47:42.420
pipeline_ops
serverfault.com
108,033
problem in publishing
when i am publishing my .net website on my domain it is showing the directory of files when i open my site .. anyone please tell me how to avoid this and make my website open mu home page .
You have to setup the default document to be Default.aspx or whatever is your start page. If you are using IIS, take a look at this or something similar ;)
0
1
29
2010-01-29T18:39:55.023
infrastructure
serverfault.com
1,093,483
Two webservers on one LAN, running apache2 and nginx respectively, under one WAN IP address - connecting to correct server by (sub)domain name
I have two physical servers running on the same LAN. Both are running webservers; one runs apache2, the other nginx. They each have a different domain name, but the same external WAN IP address. Let's say the network layout looks like this: [CODE] The apache2 server belongs to me, while the nginx server does not. Both ...
What worked was creating a new file [CODE] (equivalent to [CODE] , with [CODE] being replaceable with anything) with the following content: [CODE] The nginx config I typed in my original post should have functioned almost identically to this, so I suspect the issue was either the lack of [CODE] for IPv6 compatibility, ...
0
0
888
2022-02-12T18:46:23.253
infrastructure
serverfault.com
145,241
Postgres 9.5 import to MSSQL Server 2012 r2 verification issue
I have a postgresql table with 8 million rows. I need to copy it over to MSSQL. I do not have access to the console so I am unable to use PG_Dump. I have the ODBC driver, and have successfully linked up the servers. I was then able to copy the table over month by month. This was slow and painstaking. I need to create a...
This is more readable and may perform better: [CODE] Note that you could install PgAdminIII in your windows desktop, and use its pg_dump (in [CODE] ), or start the console from PgAdmin (menu Plugins/PSQL Console). Depending on the type of data you're trying to import, a CSV format export file could be a good alternativ...
0
0
40
2016-07-28T15:00:47.247
database_errors
dba.stackexchange.com
369,291
Single Stored Procedure Per Table Update or Per Column Update
Let's say i have a table (in a large enterprise application) that has about 10 columns. I am limiting any consumer access to the table to only be possible by calling stored procedures. When it comes to updating a record in the table, i basically have 2 options. One stored procedure to update all the columns of the tabl...
Neither. Depending on the database you might be able to provide granular permission levels for your users. Stored procedures should not be used in this case as you are implementing a security measure unrelated to your functional logic.
-1
1
75
2018-04-12T17:28:56.880
database_errors
softwareengineering.stackexchange.com
225,501
Why can vectorization reduce the use of virtual functions?
Vectorized Query can be very helpful to get a high-performance analytical systems. I know that vectorization can execute all operations on blocks of values (SIMD instructions) instead of interpreting a query expression tuple at a time. But how can I understand ,the vectorization can reduce the overhead of virtual funct...
Glancing through the paper, it sounds like the answer is as simple as this: for "row-based" (non vectorized) operations, the (virtual) functions used to process query results have to be called once per row. for "batch-based" (vectorized) operations, the (virtual) functions are called once per batch, and then optimized ...
2
4
201
2018-12-20T18:49:31.573
warehouse_errors
dba.stackexchange.com
412,049
Is it okay to keep open the MySQL database connection open through out the Application or open and close connection query-wise?
I'm developing a REST API using Nodejs along with MySQL as the database.Is it okay to keep open the MySQL database connection open through out the Application or open and close connection query-wise ? Is there a best practice or a standard methodology for handling situations like this.
For fast response time and high throughput, it's actually best to keep database connections open and reuse them for subsequent requests. Most database frameworks offer some kind of connection pool mechanism where a request handler can get a database connection for its work and return it to the pool afterwards. Note tha...
3
4
6,942
2020-06-27T01:47:53.933
api_errors
softwareengineering.stackexchange.com
167,765
Why do I have two collations in mysqldump, under stored procs?
When I run mysqldump --routines I'm seeing multiple collations for my stored procs. Neither my DB nor columns use utf8mb (I understand the benefits of utf8mb over utf8 but let's leave it for now). [CODE] The database seems all utf8... [CODE]
(Some of this answer is 'guesses'.) Each database has a default charset and collation. That is used only for providing the charset and/or collation for a [CODE] when you don't explicitly provide it for the table. (And perhaps for Stored Routines.) Why are there two [CODE] in that dump? I don't know. Perhaps it would ma...
1
0
409
2017-03-21T15:53:33.680
database_errors
dba.stackexchange.com
606,015
Wildcard in named.conf.local (Ubuntu/Bind)
I'have a ton of domains I want to park using the same template. I've made all neccesary changes to my nameserver. Currently, I have to add an entry to named.conf.local for each domain that I'm pointing to my nameserver. Current situation: [CODE] Desired situation: [CODE] dp.parking [CODE] Unfortunately, the desired sit...
Bind doesn't allow this, and for a very good reason - if you were to do this, then anybody anywhere on the internet could use your nameservers for any domain they chose. This would be splendid for e.g. a spammer who doesn't want their spam to be rejected due to nonexistent hostnames. You should use some form of script/...
2
2
792
2014-06-18T09:56:30.920
infrastructure
serverfault.com
143,818
How to securely grant WordPress write access to certain directories?
Do I need to set the permissions to 775 or higher? At the moment, I can't do this, as apache runs as 'nobody'. I use WHM/CPanel to administer the server.
If you set your server to use SuPHP and SuExec using EasyApache, that will secure the PHP. You then wouldn't need global permissions for WordPress to write files as WordPress would be running as the cPanel user, thus you can set file permissions appropriately.
1
4
412
2010-05-20T17:07:16.263
infrastructure
serverfault.com
181,864
Mail backup error (tar Cannot stat: No such file or directory)
I have got this error in during my mail server backup: [CODE] Does it happened when a user deleted their messages? Is there anyway to prevent this? I assume it can't only be a problem with e-mail backup. Can I rely on a tar & gzip based system to backup my mail system?
Yes. The files are probably being deleted or moved while your backup is running.
0
1
1,006
2010-09-16T16:04:28.327
database_errors
serverfault.com
88,986
MySQL over total memory allocated usage? memory leak?
I'm using 5.6.21-70.0 for a performance test. When I run [CODE] to do a performance test, the RAM grows up over the maximum memory usage and never releases. When finish I [CODE] the memory show use 78% I have a 1G physical memory and and I do NOT use swap KiB Mem: 1016656 total, 953808 used, 62848 free, 30324 buffers K...
i have found out why memory leak happeneds. now i have only 1GB memory and no swap. the performance_schema cause the allocate the memory for about 400M at startup. and innodb will take up to 400M memory usage so,because of my.cnf use [CODE] it will cause high performance_schema allocated, more information pls see ref1 ...
2
2
2,735
2015-01-10T06:13:42.990
api_errors
dba.stackexchange.com
30,768
Access denied for user 'root'@'%'
I used to access the root user in MySQL just fine. But recently, I am no longer able to. I am able to login fine : [CODE] Here is the mysql status after login : [CODE] But when I want to do any action, such as : [CODE] I understand [CODE] is used to signify any host , but my status clearly states localhost. Does somebo...
I think you have anonymous users Try running this: [CODE] This will show what anonymous users exist. Most likely, you will see a line with a blank user, host [CODE] , and a blank password as shown below: [CODE] So, how did you login? Run this query: [CODE] What does this tell you? USER() reports how you attempted to au...
31
21
194,251
2012-12-19T09:15:33.017
database_errors
dba.stackexchange.com
955,419
VMWare Vsphere can't ping the SMTP Server
On the VM i can ping the smtp.gmail.com just fine, however when I'm using the Putty to connect to my vsphere it's always "Destination Host Unreachable". Google the issue and found a good article to enable the "File and Printer Sharing (Echo Reuqeust -ICMPv4-In)" rule but as I said nothing worked.
A local firewall rule for ICMPv4 echo requests would decide whether your own host responds to such requests or not - not whether it's allowed to send them. Do you have a network administrator who has attempted to harden your management network? If so, speak to them about opening up for outgoing mail from your vCenter a...
1
1
410
2019-02-23T12:54:40.950
infrastructure
serverfault.com
564,716
Slow Network Printing over OpenVPN / Windows Server 2008
Our setup is as follows: Two offices (A and B) connected with OpenVPN Access Server. One Windows Server 2008 R2 Standard Housed in remote datacenter. Terminals at both offices connect through RDP in order to use a particular piece of software concurrently. Network Connected printers (Deployed with GPO) that are connect...
I don't have any advice to offer on root cause. Nothing jumps out. If I were troubleshooting this I'd sniff the traffic. Nothing beats seeing the packets on the wire. I would capture network traffic between the Terminal Server computer and one of the computers hosting the shared printers while the problem is occurring....
2
2
1,432
2014-01-02T21:25:07.483
infrastructure
serverfault.com
786,543
Will a Xen Server v5.5 Snaphot run on Xen Server v7.0
I have a Citrix Xen Server version 5.5 running with a few VM's. I want to upgrade the hardware (new hard disks) and also upgrade the OS to the new Citrix Xen Server v7.0. Can I just make a snaphot of my VM's on version 5.5 and then run them again on version 7.0? There will be no compatibility issues?
I did a upgrade in the past and if Xen7 is compatible with your hardware you simply update over your old install. The datastore will be re-detected. (if you have a datastore separated from the Xen OS). The VM will ask to update the xentool after. In your case you need a three step upgrade , see that chart; Version Dire...
0
2
34
2016-06-27T15:56:57.457
infrastructure
serverfault.com
109,272
is it "bad" to bulk update a boolean column semi-regularly on potentially a large set of records in Postgres?
pertaining to a previous question I asked: how do you prevent dead rows from hanging around in postgresql? If I have a table with 300k rows, and I were to update all rows in the table, setting a boolean column from false to true, is this an OK thing to do or should bulk updates over a certain size always be avoided? I'...
So, 300k rows total doesn't seem like a huge amount, I wouldn't be overly worried unless you have a particular cause for concern (e.g. your UPDATE taking way too long, holding row locks for too long, etc). But two suggestions which may be helpful for your particular use-case: First, make sure that your UPDATE statement...
1
2
883
2015-08-06T19:14:49.040
data_quality
dba.stackexchange.com
156,174
Deadlock on inserts to a single table with a single key. (Mysql)
I have a simple game server. One of the requirement i received was to handle a single request for a single player at a time. so in order to achieve that i decided to create a lock table: [CODE] Before I handle any request from any player I am inserting a row into that table like so: [CODE] This actually works. In the f...
I guess you have following issue. If a duplicate-key error occurs, a shared lock on the duplicate index record is set. This use of a shared lock can result in deadlock should there be multiple sessions trying to insert the same row if another session already has an exclusive lock. This can occur if another session dele...
1
0
1,210
2016-11-23T15:48:18.373
database_errors
dba.stackexchange.com
42,177
Make an if/then statement utilizing a non present element
I'm using Python and I came across one problem. I'm trying to make a bot using selenium, and it's coming along nicely but I'm trying to use a non-present element to activate a function and I just can't figure it out [CODE] I can't find anything on the internet.
You can either: Look for all element that match certain search criteria: [CODE] Catch an exception when searching for a single instance: [CODE]
3
6
70
2020-01-14T22:52:04.087
data_quality
sqa.stackexchange.com
398,631
VPN on server for certain outgoing connections
I have a server running openvpn for outgoing connections. However, once I start openvpn, I lose SSH, HTTP access to the server's IP. This is expected I guess, but is there a way to circumvent the VPN connection when connecting to these ports?
Try setting a static route to the Server's address to go through eth0, wlan0, etc. This should bypass the tunnel interface explicitly. If you need to do this on a port level, try IPTABLES Linux [CODE] Windows [CODE]
0
0
140
2012-06-14T08:42:46.047
infrastructure
serverfault.com
176,517
How to do a point in time recovery in postgresql?
I want to do a point in time recovery in postgresql. This is my recovery.conf [CODE] But when I start the server I always get this error in log [CODE] I have try to change the recovery_target_time to other time but still get that error. How do I do a point in time recovery ?
AFAIK in recovery.conf file apply only for the duration of the recovery it, this file provide the parameters that PostgreSQL needs to perform an archive recovery of a database, or to act as a log-streaming. replication standby. you need to turn on archive_log the log show you there is no "cp: cannot stat '/home/duc/bac...
1
0
767
2017-06-17T01:31:21.743
database_errors
dba.stackexchange.com
220,949
Change location of error_log for userdir + suphp
I have needed to duplicate a FastCGI + suPHP , and I have re-created the setup but unlike the CentOS one my [CODE] files are all in [CODE] instead of the directories where the script triggered the error. How do I configure PHP to write all [CODE] s to [CODE] ?
I believe your suphp configuration file is possibly missing a logfile statement which states where logging information is stored. Based on their documentation this should be configurable with variable definitions. Further info should be found here : http://www.suphp.org/DocumentationView.html?file=CONFIG
0
3
971
2011-01-11T03:22:41.327
data_quality
serverfault.com
1,023,884
VPS's memory consumption
I have a VPS with ubuntu 18.04.4 with 2gb and 512mb swap. Working regularly with 600-800mb and 100mb swap and all is well. 2 weeks ago I updated the WAR (tomcat) and the memory jumped to 1.2gb and 400-500mb swap. At first I thought it's normal because I did change something that should consume more memory. I needed to ...
ERROR: type should be string, got "https://www.linuxatemyram.com/ It is normal for the operating system to use all the memory available, even light use of swap space. Do not make much of an effort to force it back below 50% utilized. That is just going to get used again. And unlikely to be something worry much about when utilization hovers at what sounds like a nice 60%. For example, any file system caches of either copy of the application file would be quickly reclaimed if needed for other memory. Rather, watch for the application itself being slow. Set a target user response time or similar, and monitor how you meet the service target. User experience is much more important than what you think the memory utilization should be. For OS memory metrics, on Linux watch the page in and out rates . A memory starved system will do a heavy page rate in, as it needs to move memory back in to work on. This makes for a just slow feeling system, as swap space is much slower than DRAM. And obviously running completely out of memory is bad, OOM killer or maybe panic. But this happens much closer to 0 pages available. You have not shown evidence of severe memory pressure. Java has its own memory tuning, between heap metric collection, tuning, and avoiding garbage collect pauses. That's a question for another time, perhaps after you study this application's heap patterns, and estimate how much memory budget you really have on this 2 GB instance."
0
0
99
2020-07-03T12:07:02.067
api_errors
serverfault.com
169,021
Spiceworks SQL Monitor cant authenticate
I have SpiceWorks 4.7, installed and added the sql monitor extension to monitor our SQL servers. It does identify our sql servers correctly, but when I put the login information in it can't authenticate, with the following error message. [CODE] I get the same result trying to use windows authentication. WE do use an al...
Try this two things: Make sure to enable allow remote connections on the target server. Make sure the firewall is opened to allow connections through your new port. Try to login using [CODE] as user name instead of only using [CODE] . (don't forget to change the port number 1433 with your port number.) Also make sure m...
1
0
437
2010-08-10T20:20:54.117
api_errors
serverfault.com
273,031
How to benchmark Switchable Optimizations in MySQL
I want to benchmark the performance of Switchable Optimizations in MySQL, i.e., comparing the query latency and the result of [CODE] with/without using these optimization switches. I have already tried to use sysbench and MySQL official test-suite . But I fond that they are too general and mainly for functional testing...
(I realize that this does not "answer" the Question. But it is too long for a Comment.) Good luck. re "Almost identical" -- Probably because they were "identical" except for random noise in the timing. The switchable optimizations are, in general, "binary" and "optional". Consider an obvious situation: You have an inde...
0
1
74
2020-08-01T08:36:23.720
database_errors
dba.stackexchange.com
745,790
Hyper-V VM moving went wrong
I had a little project to move our DHCP server from an old host to a new one. It looked dead simple.. but after I moved it manually ( copying vhd to new host and then configuring VM there) the Guest on the new host cannot acces internet. I have been trying to figure it out as other VM-s can access it with the same virt...
A few things: - Have you installed the latest version of the integration components in the guest OS? - You have a new NIC - have you configured IPv4 and ensured that DHCP is approved (approve it again)? - Are the phsyical NIC(s) that the vSwitch connected to 1 GbE? If so, is VMQ disabled on the physical NICs? It needs ...
0
0
76
2015-12-29T16:12:38.777
infrastructure
serverfault.com
633,179
Can't make confluence run on port 80 with Windows Server 2012 R2
I am trying to get Confluence to run on port 80 using Windows Server 2012 R2. It's not working even after reinstalling it on port 8090. But the default works great locally. [CODE] yields nothing running on port 80. Any ideas on what to try?
If you want something to run on port 80, it's usually better to use port forwarding to handle relaying port 80 to it's standard port. Port 80 is a "reserved port" as well as a "low port." Many programs will refuse to run on it unless they have proper permissions, which you likely don't want to give them. Instead, once ...
0
2
1,801
2014-10-02T21:03:27.820
infrastructure
serverfault.com
830,788
Systemd service: Failed to issue method call: Unit service failed
I am trying to make a custom service in my VPS. However, it doesn't let me to run it. It says the following. I am not sure what is going on but when I run it on my Ubuntu laptop, it works properly. What could be the problem? sudo systemctl start websocket.service [CODE] cat /lib/systemd/system/websocket.service [CODE] ...
One issue here is that you are adding the script to the root directory, which is not the place for scripts. [CODE] is a better place for scripts like this. Second issue is that your shebang is incorrect. Shebang only includes the path to the executable that will be used to execute the script, not any arguments to it. T...
4
0
3,893
2017-02-06T05:11:57.893
api_errors
serverfault.com
342,139
API - Restricting Access to Resources the Authenticated User Created
What is the best practice way to restrict access to particular resources based on ownership. For example, if Adam created several posts (collection: /posts). And I want Adam to be the only user able to GET these, how can I restrict another user, Eve, from retrieving Adam's posts from the data store? I can force a user ...
You are mixing two different topics: Authentication and Authorization . Authentication Authentication is the act of confirming the truth of an attribute of a single piece of data claimed true by an entity or as identification, which refers to the act of stating or otherwise indicating a claim purportedly attesting to a...
5
5
4,160
2017-02-13T05:30:27.510
api_errors
softwareengineering.stackexchange.com
640,306
Relase outgoing mails to internet if local delivery failes
How can I release outgoing mail to the internet if local delivery fails in postfix? My server has virtual domains configured with mydomain.tld. When I send an email to somename@mydomain.tld it try to deliver locally and fails if user not found. Instead of that I need to release those mails to the internet. Reason for a...
I would suggest that you to remove all the virtual_mailbox_* parameter and use only transport_maps and relay_domains. Set up a "dovecot:" transport in master.cf which delivers your mails via the dovecot LDA or the dovecot LMTP. E.g.: [CODE] The next action is to append mydomain.tld to your relay_domains. After that con...
1
4
1,057
2014-10-28T17:03:42.650
infrastructure
serverfault.com
1,136,190
Connection to Mysql database failing from different clients
I work with an ETL tool called airbyte to move data from various data sources to our main data warehouse. I am also asking this question in the airbyte slack channel, but would like to ask it here as well. Up until Thursday(06.07.2023) the connection from a mysql database to snowflake via airbyte was working fine. Howe...
While I'm not certain as to why this happened, I am now able to connect to the datawarehouse via 3rd party clients again. The connect timeout was increased today, so that seems to have done the trick. However, I'm still not sure as to why this helped since the connection itself hadn't been updated in the past months
0
0
313
2023-07-08T08:05:47.897
warehouse_errors
serverfault.com
5,232
MySQL table_cache and Opened_tables
I have seen people use the comparison of Open_tables and Opened_tables to assess whether the table_cache is too small in MySQL. However, I believe that Opened_tables is cumulative across uptime, so this is not a valid comparison. The only caveat being that perhaps Opened_tables is only bumped on misses - although even ...
The biggest reason to have a large table_cache is so that LOCK_open mutex is not hot. MySQL prior to 5.5 has a lot of contention when you are trying to open/close tables, so you want to restrict doing this as much as possible, i.e. have a large table cache. So you don't care about any particular ratio of hits to misses...
15
7
31,106
2011-08-31T06:47:11.840
database_errors
dba.stackexchange.com
1,142,309
Suspicious "find /" command uses ~90% of Disk IO
As I detect my server are very slow, I do some researches and detect in [CODE] a weird find command uses 80-96% disk io usage. [CODE] the whole command is very large, [CODE] gives me [CODE] for me it looks very suspicious even I kill the processes and take a look in [CODE] a second command starts [CODE] somebody knows ...
This matches the [CODE] command present in the package [CODE] . Its [CODE] script invoked from system's daily crontab (usually at 06h25 as seen in [CODE] ) has various options to skip some paths and filesystems : [CODE] which get converted to [CODE] options in the [CODE] command. All these match the content of OP's [CO...
1
2
118
2023-08-24T12:07:10.140
infrastructure
serverfault.com
211,659
Temporary Resolving State on Synchronous HA, is there a way around this?
So we're having an issue whereby any loss of communication between our 2 HA nodes causes the primary node to temporarily go into a 'resolving' state. This is for all of 1-3 seconds however we serve a DB to an application which doesn't retry connection and requires users to close and reopen meaning they lose work in pro...
It's difficult to answer the first part of your question as it seems to be related to the network and/or cluster configuration and not related to the availability mode. You should take a good luck at your cluster logs to see what is the root cause. 1. Checking cluster status a. Login to failover cluster manager console...
1
1
306
2018-07-09T10:20:09.810
data_quality
dba.stackexchange.com
196,319
SQL Server 2016 AlwaysOn VDI_CLIENT_WORKER command
I've setup an AlwaysOn AG on SQL Server 2016 SP1 Standard. Then I created an AG and added a database with autoseeding (synchronous mode). I used SSMS 2017 to create my AG and to add the database. Everything works fine. But when I check the wait stats I get waits of type VDI_CLIENT_OTHER (80%) on the primary with an ave...
After some more research I discovered that when I create an AG with autoseeding SQL Server creates a new worker (that executes the VDI_CLIENT_WORKER command) for each scheduler. To remove those workers I need remove every 'autoseeded' AG and restart the SQL Server service. If I then create the AG with full backup/resto...
4
5
5,796
2018-01-26T13:26:07.187
database_errors
dba.stackexchange.com
476,787
Copying cause big iowait
I have dedicated server with 3 HDD. System disk, backup disk (same as system disk) and data disk. When I copy lot of data with cp (say, between backup disk and data disk) load average goes sky high. For instance, the load average at the moment is around 0.57, when copying data it can go beyyond 50 or more. Copying with...
I think you are in the same case than I in Generating a lot of dirty pages is blocking synchronous writes kjournald among top processes. you are using a journaling file system like ext3 which apparently is causing synchronous writes to block. You can try Reducing the amount of dirty memory a process is able to create: ...
1
2
3,117
2013-02-08T10:24:30.850
database_errors
serverfault.com
649,309
HBASE Space Used Started Climbing Rapidly
Update 4,215: After looking at space usage inside of hdfs, I see that .oldlogs is using a lot of space: [CODE] So new questions: What is it? How do I clean it up? How do I keep it from growing again What caused it to start growing in the first place? Also .archive is big too, what is that, my snapshots? Also as homewor...
I think my replication went bad. I seems that .oldlogs is where the Write-Ahead-Logs (WALS) go according to this safari article . They should be cleaned up but were not for some reason. I used the following to clean it up: [CODE] Since I noticed this while working on building a replacement cluster as the replication ta...
7
2
1,548
2014-12-04T22:41:43.847
database_errors
serverfault.com
963,427
AWS describe-configuration-settings returns InsufficientPrivilegesException
I've created a "Programmatic access" user with full read and list permissions on Elastic Beanstalk, provided by a Policy I've created specifically. This means that when I go to the Policy Summary page I see: - Service: Elastic Beanstalk - Access level: Full: List, Read - Resource: All resources - Request condition: Non...
Whilst I don't know exactly what permissions are required for this specific operation, there's CloudTrail (or some similarly named) logs available for all API operations done in an account. Going over those will tell you exactly what calls are being made, and from there you can determine what additional permissions you...
1
2
560
2019-04-17T08:01:57.217
database_errors
serverfault.com
1,146,392
How a failover in Active/Passive SAN multipath should be properly handled on Linux multipath system?
I try to create a multipath configuration with SAN HPE EVA 6350 (2xHSV340 controllers with iSCSI mezzanines and FC/iSCSI multiplexers) and Linux debian 12 systems over iSCSI. Vdisks created on EVA have an "owner" controller,I left all of them belonging to Controller 1. Targets presented by SAN have FC WWPN in its names...
The back-end FC ports of each ISCSI module (also called as "MPX bridge" as it performs the role of ISCSI multiplexer from ISCSI to FC) on the EVA connects as a FC Direct Connect to HSV front-end FC ports on each HSV controller. AFAIK there are 2 backend FC ports for each ISCSI module and those ports each connect separa...
1
4
171
2023-10-23T12:27:29.010
database_errors
serverfault.com
66,011
How to vectorize the one hot encoding process?
Sorry for such a weird question - I do not even know if this makes sense, however I thought of this during my intro to Python course at uni and have wondered about it since. So I have some experience with Python for data science, but have never taken a structured course. I am in an intro class, and on the first day we ...
You can read the sklearn documentation here . If you click in source you can check the code . If you want to do one hot encoding you can do [CODE] You should only try to implement this if you are an experimented developer. A couple lines of code that implement OHE in a non optimal way is: [CODE] where columns_encoding ...
2
1
1,408
2020-01-07T07:47:48.790
data_quality
datascience.stackexchange.com
612,232
/bin/sh: difference between variable and direct command
Imagine i have following bash script: [CODE] Question - why second approach via variable does not work? How to make it work?
As @lled explained, the problem is that the shell processes quotes before expanding variables, so putting quotes in variables doesn't do anything useful. But there are a couple of alternatives, depending on why you want to store the command (rather than just executing it directly). If you just want to define the comman...
3
2
518
2014-07-13T13:43:57.620
infrastructure
serverfault.com
388,762
Accessing tapes at the Windows Server 2008 R2 with NTBackup backups
Does anyone know any solution how to access tapes at the Windows Server 2008 R2, tapes written with NTBackup from earlier Windows versions ??? I appreciate free or low cost solution to access such tapes without necessity to install tape drive on second PC / Server with Windows 2000, XP, 2003, Vista system as Microsoft ...
Symantec BackupExec is able to restore NTBACKUP tapes - see the Restore old Backup Exec tapes with NTbackup question for more details. This would work on from at least BackupExec 2010 (the first BE version supported for Windows Server 2008 R2).
-1
0
1,571
2012-05-14T03:30:23.770
database_errors
serverfault.com
375,813
NTP configuration not recognized?
I'm trying to configure NTP on my machine but it seems that the parameters I set are not being read by the system. Below is my [CODE] file. (I applied the most basic configuration to eliminate other issues) [CODE] After I set the above configuration, I restart the ntpd process by doing the following: [CODE] And then I ...
On Red Hat there are a couple of things that happen when you do [CODE] . [CODE] is stopped [CODE] is run to set an initial time. This is because, by default, [CODE] will not adjust the system time past a certain threshold. [CODE] does a one off time set using a specified time server. You can do this manually with [CODE...
6
6
18,644
2012-04-02T08:06:57.247
infrastructure
serverfault.com
173,351
RMAN 12C SETTING UP AUXILIARY INSTANCE
I am trying to learn how to use RMAN , version is 12.2 Read Oracle documentation.... It talked about setting up a Ghost instance first... Thought I did what it supposes to do, 1. copy password file from source and rename it 2. edit listenor.ora to add a static entry for the Ghost instance 3. edit tnsnames.ora to add an...
You can create manually a dummy instance. On Windows you need [CODE] to do this. This is documented in the Database Platform Guide specific to Windows: About Administering an Oracle Database Instance Using ORADIM Example: [CODE] After this, you can set [CODE] and log in and start the dummy instance: [CODE] On Windows, ...
-1
0
634
2017-05-11T16:33:21.860
database_errors
dba.stackexchange.com
311,218
.php won't execute but .html will execute php?
I have php 5.3.5 installed however when I try to execute a file with a .php extension I'm prompted to download a file . Now I tried a few solutions but it was redundant since most were just problems with apache config and making sure the module was loaded or adding the type to the apache config. those didnt work so I a...
You have to set the correct handler for *.php files: [CODE] See the documentation for details: http://www.php.net/manual/en/install.unix.apache2.php
0
3
145
2011-09-14T09:19:32.570
infrastructure
serverfault.com
241,396
What tools, or techniques are available for managing large sets of rewrite rules for Apache?
[note: I asked this question on Stack Overflow , and it was suggested that I come here. I searched here and found this which is close to my question but not quite.] We currently have a little over 450 rewrite rules in our Apache config spanning 4 different files. As you can imagine, they are vital to the way our site o...
We are using svn + rsync + python script to sync all the rule files across the web farm. How do you use Git?
2
0
586
2011-02-28T23:34:00.077
infrastructure
serverfault.com
426,951
error when start Subversion Server in UberSVN
I'm using uberSVN on Ubuntu server. Now, I can't checkout, commit source from Subversion Server ( domain.com:9880, port subversion) I tried to start httpd by command line as: [CODE] , but I get error: [CODE] I tried run this command as follow: [CODE] then get errors: [CODE] In the Ubersvn website GUI, I tried start Ube...
I have found out the answer for my problem. You just need delete the file [CODE] and remove all file in log folder of Ubersvn [CODE] . Then you could restart the this server.
-2
0
1,482
2012-09-13T04:20:03.513
infrastructure
serverfault.com
325,940
Are there any differences relating to query performance between >= and <= vs. Between clause?
Are there any performance-related differences between those two queries? [CODE] [CODE] The output of [CODE] is the same; currently, I have 8M rows, and this number will increase to around 50M rows. Below is the applied index:
If you do [CODE] you will see that the parser turns [CODE] into [CODE] . Hence, the two formulations are identical in performance. I suggest that [CODE] (and the equivalent [CODE] ) is a mistake. Did you really want a range of months, plus the first day of the next month? I like this formulation: [CODE] To do even bett...
-1
2
208
2023-04-12T21:02:06.950
warehouse_errors
dba.stackexchange.com
533,171
Hosting a web service on port 22... Is that possible? frowned upon?
I am trying to resolve a client's problem and I had an (bad?) idea... The problem : Client has two web servers running behind his wan router. (physical servers in his building) Each server hosts a different web service and merging down the two servers is not an option. The router forwards requests on port 80 to server ...
Officially port 22 is reserved for secure shell access (ssh/sftp). It is good practice to follow the standards set out by the IANA, but so long as you don't require those services there isn't a problem with running your HTTP port forwarding against 22. It will work (I have done this before due to similar reasons). "The...
-1
3
2,857
2013-08-23T07:12:15.623
infrastructure
serverfault.com
598,893
Missing a Generic/Text Only printer driver?
I have a program that needs a printer with the Generic/Text Only driver to print shipping documents. Some users in China (who use Windows XP and Windows 7) don't have the option to select this driver when installing a printer. The Generic/Text Only option is missing from the list of Manufacturers and Printers. How can ...
Would they happen to be running the Chinese version of Windows? It's a generic driver that ships with Windows from Microsoft. You should be able to get off the appropriate Windows CD/DVD or disk image. You might have to use the English language version of Windows to find it. I wonder if it got left off the Chinese vers...
1
0
3,147
2014-05-27T19:01:26.500
infrastructure
serverfault.com
127,101
Retrieving changed rows only from a table with 10^7 rows
I have a table with about 300 columns and about 10 7 rows and I have to retrieve changed rows only, ordered by time (not distinct, but changed). The result set may be limited to 100 rows as well. I've tried the following query with [CODE] window function: [CODE] However, it takes too much time to complete. Is it possib...
If the version was 9.3 or newer, I would try this rewrite of the query: [CODE] with the index you have and with an index on [CODE] Unrelated to efficiency: are you sure that you want to use [CODE] with timestamps? It's more common to work with inclusive-exclusive ranges. In other words, shouldn't this condition: [CODE]...
2
4
145
2016-01-23T15:13:26.000
database_errors
dba.stackexchange.com
34,217
Can I keep the Groovy power assert and still have a custom message printed?
I use Katalon Studio for my test automation. It comes with an in-built script editor ( Groovy ). So, I can use Groovy's power assert that gives me a nice and detailed output message when the assert fails. However, some other non-technical (or less-technical) staff would like to run automated tests themselves. And their...
This was answered here . In short: It is possible to add the message as a String to an assertion: [CODE] Since a non-empty String is truthy in Groovy, the assertion will only fail –and produce output– if the expression is falsey + you'll get power assertion output from it.
0
0
276
2018-06-13T09:44:22.277
data_quality
sqa.stackexchange.com
188,876
How to verify the users connected and how many requests they are doing on MySQL?
How can I check on my MySQL server the follow: what accounts have an open connection to the mysql-server ? how often they request a new connection ? how many requests they usually do per connection ? It would be nice if I could aswell identify the codes that are making the calls aswell like, let's say: /home/domainX/pu...
what accounts have an open connection to the mysql-server ? mysqladmin processlist how often they request a new connection ? Not sure - try the General Query log - but I suspect it may not record connections - only queries how many requests they usually do per connection ? See above. It would be nice if I could aswell ...
1
2
272
2010-10-08T03:54:53.960
database_errors
serverfault.com
769,304
Running on two servers vs. one with more memory?
I currently have one small VPS which I am using to host a Wordpress site (Nginx,PHP5,MariaDB). I have started to run into some memory issues (DB crashes) indicating it's probably time to move to a larger VPS. I have two options: I can upgrade the current VPS doubling it's memory. I can keep the current VPS, add a secon...
The exact answer will depend on the workload. Performance If you get another VPS with the same specs as the first, you will have twice the memory, twice the CPU, twice the disk, and twice the network. If you are able to utilize all those resources, you may get better performance from two VPS than doubling just the memo...
-2
2
51
2016-04-10T12:48:19.253
database_errors
serverfault.com
180,796
SSRS 2008: Unable to restore encryption key
I have migrated SQL server 2005 database to sql server 2008 using side by side upgrade. I have copied Reportserver and reportservertempdb database across and configured SQl server Reporting services 2008 to use this new database. I am not able to restore SSRS key over to new SSRS 2008 server. The key restore reports: [...
Late reply, but I just ran into this issue with moving SSRS 2008 R2 to a new server. Had the same problem as described above, but going through the Database and Credentials wizards fixed it for me, even though I made no changes and everything was displayed correctly. Go to Database -> Change Credentials/Change Database...
2
4
11,076
2010-09-14T01:58:43.427
database_errors
serverfault.com
423,206
Differences running a program from C:\Windows vs. C:\Windows\system32
Calling a program in windows prompt by absolute path from [CODE] directory is working, but calling this program from [CODE] gives me errors. [CODE] --> OK [CODE] --> Terminates without doing it's task The program reads a configuration file from the current directory. The configuration file exists in both (Windows and S...
I assume you are on a 64-bit OS, and [CODE] is a 32-bit program. If that is true, put the configuration file into the [CODE] directory. This is what appears to a 32-bit process as [CODE] . Due to the way Windows starts processes, they do not directly inherit their working directory, but perform the equivalent of a [COD...
2
4
469
2012-08-31T10:07:45.320
infrastructure
serverfault.com
794,800
Need to make sure about chkdsk issue
As you can see, i ran chkdsk /r on hard drive which got some bad sectors and this is screenshot for last moment before i stopped chkdsk. i canceled chkdsk after ran some minutes because i heard run chkdsk /r on hard drive with bad sectors can lose data. So according to this chkdsk prompt window screenshot, was that pos...
Your data is as good as it can be in the presence of bad sectors. That is, if some bad sectors have stored data of some of your files, then that part of your file content which is in those bad sectors is lost. There is no effect on the chkdsk process on those bad sectors. The fact that chkdsk replaces references to tho...
-4
0
648
2016-08-04T09:33:43.517
data_quality
serverfault.com
106,337
Execution plan has TOP operator for query without TOP or ORDER BY
I have product sales by month temporary table.(subset of much larger historical table) I'm running query to find new product not previously sold in the previous months for a specified 6 month range. So take January as base, in Feb show me all new product sold that wasn't in Jan sales. In March all new product not sold ...
[CODE] can introduce a [CODE] (as can [CODE] in some cases). This is because it only cares about the fact that at least one row exists. This is called short circuiting, and you want this - it is much more likely to speed up your query than slow it down. And I'd be really surprised if the [CODE] didn't show up in the pl...
4
5
424
2015-07-08T14:23:01.673
database_errors
dba.stackexchange.com
84,738
Estimate the location of an object in a field using computer vision and math
I'm trying to see how to detect the location of a soccer ball in the field using the live camera. What are some ways to achieve this? At this point I'm more interested in ideas and thoughts and not really code. 1- Assuming we have a fixed camera with a wide shot. How to find the ball location on the actuall field? It's...
Your problem is focused on the object detection perspective. For a intro into the topic with some code you could look into this - https://medium.com/analytics-vidhya/detecting-objects-on-ip-camera-video-with-tensorflow-and-opencv-e2c25297a75a . General object detection is quite easy for the second picture but for the f...
0
1
172
2020-10-31T04:44:45.077
data_quality
datascience.stackexchange.com