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
3,438
Fundamental classification- discrepancies
Is there any trusted, verified and regarder classification of testing? The discrepancies I talk about are like: Functional testing =testing against documentation/requirements to verify functions of the SW This is obviously not true as non-functional requirements can be also stated like performance requirements etc and ...
For the actual question you asked - I don't know of any good source of testing definitions or classifications. When in doubt, ask the speaker what he or she means. If the definition given doesn't seem to match the obvious definition, question it - although not necessarily to the speaker (especially if that person is yo...
1
3
80
2012-07-10T20:27:13.197
data_quality
sqa.stackexchange.com
84,854
Create a new table oracle
Hello I recently changed companies and the databases as well. Having worked with postgres so far, oracle is still fuzzy to me, so here I am stuck with creating a table. This is my SQL attempt : [CODE] Hardly descriptive error shows up : [CODE] Even found an article suggesting this approach : http://oracle-base.com/arti...
You are, as per your tag, not using Oracle 12c. The syntax [CODE] is only valid from 12c onwards, so you get an error. On Oracle 11 and prior, you want to use an insert trigger to apply the sequence's [CODE] to the primary key: [CODE]
0
2
1,304
2014-12-11T02:29:24.143
database_errors
dba.stackexchange.com
421,770
Detach Disk from deleted virtual machine
I had an Virtual Machine running in Azure for a couple of weeks and suddenly it stopped responding. I shut it down and tried to restart it but that failed saying the VM faulted. I then deleted the VM which leaves the VHD file intact on my storage account. I was intending to try recreating a new VM using thie VHD from t...
When you delete a Virtual Machine the VHD is still in lease so you would need to break the lease first so you can reuse the VHD. Please follow the article below to release the lease first and the reuse the VHD: Error deleting VHD: There is currently a lease on the blob and no lease ID was specified in the request IF yo...
4
2
2,199
2012-08-27T15:16:58.217
infrastructure
serverfault.com
312,637
Immediate partial results with mysql command line client
I have a table with 100 million rows. I want to process one row at a time in no particular order. I don't want to load all the data into memory at once, and I want immediate partial results. To eliminate potential problems with the ORM framework I'm using, I thought I would test my ability to get immediate partial resu...
Invoke the MySQL client with the [CODE] option. See https://dev.mysql.com/doc/refman/8.0/en/mysql-command-options.html#option_mysql_quick --quick, -q Do not cache each query result, print each row as it is received. This may slow down the server if the output is suspended. With this option, mysql does not use the histo...
1
1
35
2022-05-26T21:25:01.740
database_errors
dba.stackexchange.com
291,136
Best way to store correlation data for searches
This is a long post where I outline a problem I faced recently and the steps I went to solving it. I ask for feedback on the solution I came up with and for recommendations for improvements. Using an FP-growth algorithm in pyspark I created a dataset of correlated keywords for cities around the US, this would look some...
There are (at least) two ways of doing this, but only one will be shown here (see edits for old version of query): N correlated keywords (where N is arbitrary). I constructed a table as follows (complete DDL and DML are at the bottom of this post and also on the fiddles - PostgreSQL & MySQL ): [CODE] and it's populated...
1
0
435
2021-05-06T20:26:53.047
database_errors
dba.stackexchange.com
308,365
no network or disk devices in Arch Linux Xen guest during installation
I'm trying to install Arch Linux under Xen as domU (Guest) from Arch Linux official 2011.08 x64 Core iso image. My web hosting offers a SolusVM control panel with ability to install custom ISOs, so I have full control over guest, but not over host. I can install from 2011.08 i686 Core iso image - it's x64 flavor that f...
It looks like there may be additional steps need as detailed in the following: https://wiki.archlinux.org/index.php/Xen#Arch_as_Xen_guest_.28PV_mode.29 The key may be in the PV mode with Xen.
0
0
812
2011-09-05T18:03:40.290
infrastructure
serverfault.com
777,802
Telnet times out on local machine but works externally
Im trying to get inbound mail working with postfix. Nothing is showing up, even in the maillog. Outbound works perfectly, but inbound doesnt. If i use telnet from an external server over port 25, i get a 200 status and it works. When i perform it from the local machine it times out. I have nothing that gets written to ...
You have two different problems. One is that telnet 25 from local machine times out. That's probably a local firewall problem, or a NAT problem. The second is that you're not receiving mail, with nothing in the logs, even though telnet 25 from an external machine "works". You do get something in the logs when you do th...
-3
0
81
2016-05-19T15:42:46.907
infrastructure
serverfault.com
191,971
How to work out a complex, untested scope?
The scope: it is part of a big ERP system which provides specific calculations. One can think of it as a salary calculation module in a CRM. Yet this is way beyond that in both complexity and integration points. Thus, there are a lot of technological debt, but not unmaintanable one. There some some unit/integration tes...
You need to find the "guiding principles" behind the scope. [CODE] has an infinite number of solutions, but it's still a bounded equation. It's a matter of finding sufficient test cases where you and the customer are satisfied that [CODE] is fulfilled. Obviously, you don't need a test for every possible output value. W...
0
2
227
2013-03-26T10:23:20.857
data_quality
softwareengineering.stackexchange.com
495,015
Choosing linux server for mysql - memory clock speed
I have a Linux Mysql server cluster where master and slaves are overloaded by a combination of read/write i/o and by [CODE] queries load. We purchased FusionIO cards to replace the hard drives. My question is whether to upgrade the servers themselves, or just replace the hard drives by FusionIO cards in the existing se...
New servers > FusionIO on old servers... Memory bus speed is probably not your bottleneck. The Intel 5300-series CPUs are four generations behind the currently-available CPUs. Architectural differences as well a two MAJOR shifts in CPU technology (going from Harpertown to Nehalem and later, Westmere to Sandy Bridge) wo...
-1
0
180
2013-04-01T02:14:51.830
database_errors
serverfault.com
111,192
Key issues reading from memcache pool on ubuntu / solaris
Our environment consists of 6 memcached servers running on Solaris 10 boxes and application code running on a mix of Solaris and Ubuntu servers. We are running into issues accessing data set on one operating system and accessed from the other. The only instance where the keys can be accessed from either OS is when we o...
I know that it's probably cliche - but have you considered upgrading to the latest version (1.4.4) to see if there was possibly a bug fix that resolves this issue for you? I haven't read through all the notes. I can tell you, however between 1.2.6 and 1.4.4 there have been a LOT of bug fixes - we just recently went to ...
0
1
323
2010-02-09T16:32:52.170
infrastructure
serverfault.com
268,834
Does Active Directory Forest require another physical server?
We currently have physically separate domain controllers dc1.country1.company.com dc2.country1.company.com dc1.country2.company.com dc2.country2.company.com altogether 4 machines. Now, there are many permission issues but since I am not good at AD at all, I can only suspect that these 2 domains are actually not aware t...
If your forest root domain is actually "company.com" then those domains would be in the same forrest. In that scenario your root would be "company.com" and then you would have two child-domains of "country1" & "country2." If it is not then they would be in two separate forests. Forest one would be "country1.company.com...
3
6
422
2011-05-12T02:21:14.727
infrastructure
serverfault.com
218,583
How can you create a ROLE which isn't allowed to do anything?
I want to create a role which by default isn't allowed to do anything. It has basically zero permissions. Starting from such role, I want to grant the minimal set of permissions. How can you make a role without any kind of permissions?
Just use [CODE] Be aware of default privileges ( https://www.postgresql.org/docs/current/static/sql-alterdefaultprivileges.html ).
1
1
59
2018-09-26T08:21:06.103
warehouse_errors
dba.stackexchange.com
163,832
Configure oracle in debian testing
I have installed oracle10 in debian, in the web ui i can use the database, but this doesn't work with sqlplus, where i can configure this? updated: when i run sqlplus in command line, ask me for login and password, i digit the same of web interface and i get this error: ORA-12162: TNS:net service name is incorrectly sp...
This error usually indicates ORACLE_SID is incorrectly or not set. Make sure your environment variables ORACLE_HOME (directory where you installed Oracle) and ORACLE_SID (database instance) are defined and exported, e.g.: [CODE] EDIT: Can you connect through a listener? In other words, assuming your instance is defined...
0
0
319
2010-07-25T05:52:43.813
database_errors
serverfault.com
220,203
mod_rewrite not working for subdomain in Apache2
I'm having some trouble with mod_rewrite. So I'm implementing it through .htaccess, and I can get it working on my main vhost, domain.com - what I want it to do is rewrite [CODE] to force it to [CODE] , which it does well. I want to have name-based vhosts for the one IP with the following redirects: http://domain.com -...
Do you have an "NameVirtualHost" directive? And are you using them in your vhost configuration? Besides please take a look at this: http://wiki.apache.org/httpd/NameBasedSSLVHosts If both SSL domains are running on the same IP, only one encryption (certificate) will be used and "clients will receive certificate mismatc...
1
0
573
2011-01-08T21:00:04.950
infrastructure
serverfault.com
239,259
Is there a way to delete duplicate from a cell value (value of a given row and column) using Postgresql
In my Postgres db, I have a table with some columns where one column [CODE] has values as follows: [CODE] My expected output should be like this: [CODE] Is there a simple [CODE] postgresql to do this task?
Assuming [CODE] is an array: [CODE]
0
1
44
2019-05-28T22:57:31.523
database_errors
dba.stackexchange.com
588,707
Emails won't download to Outlook (dovecot, postfix, debian)
I finally managed to set up dovecot and postfix to the point where I can connect to my server with Outlook to send emails. Receiving emails works too, but I can not download them to my mail client: Emails are saved in /home/USERNAME/Maildir/new and I can access them via SSH. But they are not getting downloaded into Out...
Receiving email from IMAP is independent of the ability to send email which uses a separate SMTP service. Please remove postfix from the tags as it is irrelevant in this case. Dovecot will require an encrypted connection before it will allow a login. You can generate a self-signed certificate and add it as the SSL key ...
0
0
4,548
2014-04-13T13:13:12.660
infrastructure
serverfault.com
146,188
How to make dataguard switchover seamlessly
In my Dataguard configuration on a 12c environment, when I perform a switchover from primary ( [CODE] ) to standby ( [CODE] ) and then try to sqlplus in with [CODE] , I receive the " [CODE] " error instead of being able to connect to the new primary(bar). Now, I know that this is because the connection is still pointin...
Starting with 11.2, you do not need to create the trigger, you can define a role based service with Grid Infrastructure. [CODE] : [CODE] [CODE] : [CODE] If you do not use Grid Infrastructure, well, just use the trigger. Your virtual service was misconfigured, that is why you received [CODE] . You should not update the ...
2
7
3,370
2016-08-08T14:59:53.353
hadoop_errors
dba.stackexchange.com
106,844
Feature scaling on null values
How to handle null values in dataset for performing feature scaling on a particular column? i.e.Should we keep the null value as it is or impute some other value? Is there any tutorial on how to handle null values while feature scaling?
Scaling needs every element to be scaled individually. So You can't do feature scaling when you have null values, Thus you need to preprocess your data & I'm suggesting the following options: delete your rows ( I do not recommend it if your data is small ) replace it with mean or median … a little bit advanced to use l...
0
0
152
2022-01-08T13:01:07.113
data_quality
datascience.stackexchange.com
567,032
Redirect https url
My app is served on [CODE] (I'm forcing https everywhere) and I now want to change to [CODE] . I'm wondering how to properly redirect every [CODE] request to [CODE] . At the moment [CODE] is pointing to the same app and the app is then redirecting to [CODE] (you get a SSL error if you try to access [CODE] though). What...
That's a little bit tricky and you don't have a lot of choices. You could handle the redirect inside the app by pointing both beta/www (and root domain) to the main Heroku application. However, in order to avoid SSL errors, you need to install a certificate that covers both the www and the beta hostnames. Because Herok...
0
2
160
2014-01-13T23:53:41.857
infrastructure
serverfault.com
676,579
apt-get hangs when trying to install Passenger on new Ubuntu 14.04
I setup a completely new Azure Ubuntu 14.04 server. After following the instructions here: https://www.phusionpassenger.com/documentation/Users%20guide%20Standalone.html#install_on_debian_ubuntu On step: [CODE] I get this output: [CODE] I waiting for 30mins to no avail. Tried rebooting and retried doing apt-get update ...
Got this after 25min. [CODE] Retried now and no problem so probably just site that was down.
0
0
345
2015-03-18T23:25:43.180
infrastructure
serverfault.com
318,284
Can I delete MYD-XXXXXX.BAK files in mariaDB?
I've found that most of the hard disk space on the server is due to the database. Currently, the capacity of the database being served as a web accounted for 180GB out of 250GB. Looking at [CODE] , [CODE] file occupied most of the capacity. Assuming there is no problem with the current database, can I delete this file ...
These files are from [CODE] or [CODE] when the [CODE] option is used. As there's no problem with the current database tables, these [CODE] files can be removed.
1
1
229
2022-10-16T14:55:01.193
database_errors
dba.stackexchange.com
184,451
In what meaningful ways does Erlang prevent race conditions in concurrent programming?
Reading about concurrency in Erlang , reminds me of the Akka concurrency toolkit . Both give you tools to prevent or limit race conditions . But you can send links to mutable data to other processes using the Akka toolkit, which is still unsafe. I see Akka as a useful tool, but it does not provide protection against ou...
There are a few things that Erlang does to help with these. Data is immutable, so no data races OTP gen_servers and gen_fsm's provide a very well tested pattern for servers Supervisors allow for recovery from crashes processes are small and cheap Memory is allocated on a per process basis (no GC freezes) the erlang VM ...
11
19
1,698
2013-01-22T13:34:08.617
database_errors
softwareengineering.stackexchange.com
925,854
Yahoo Rejecting Email - dkim=temperror (multiple keys)
Sorry this is long, I wanted to provide all the information I could. We have a web based application that sends emails to people that request information. Just recently Yahoo has been rejecting our messages. We are getting this message from our server when an email is rejected..... : host mx-biz.mail.am0.yahoodns.net[7...
I would like to answer this question myself, but I can't back my points with concrete proof, but I'm going to answer it anyway. 1) I don't think the server has been compromised. Yahoo saying we just started sending 1000s of messages is false. We've been sending messages for over a year. I looked through all of the mail...
0
0
948
2018-08-10T15:42:24.650
api_errors
serverfault.com
208,039
MySQL 5.5 on Windows server is horribly slow
I have had no luck getting MySQL 5.5 to be as fast as 5.1 or MariaDB on the exact same hardware/database/environment under Windows server 2003R2 or 2008R2. My benchmarks from our application: [CODE] The only difference between these runs is the removal of skip-locking and the running of mysql_upgrade.exe to update some...
Take a look at http://bugs.mysql.com/59133 . It could be flushing to disk most of the times (box is 2% busy is a strong hint for it) You might after careful consideration want to set a combination of innodb_support_xa=0 innodb_flush_log_at_trx_commit = 0 # or 2? sync_binlog=0 and see what happens. Once you get your loa...
1
3
8,670
2010-12-01T20:12:36.900
database_errors
serverfault.com
362,806
Adding error handling to a function (which sometimes should throw an error and sometimes use a default value)
I'm trying to add error handling to a function that reads data from a DataSource (which performs all the parsing etc. required). Unfortunately (due to a lack of versioning until now) some of the values that I try to read from the DataSource may fail to parse (because they are malformed or simply missing), resulting int...
I cannot add comments to questions in either spot, where you have asked this question, but I did want to give some input on what you were asking and what appears to have happened in the comments of both sides. You do have a question that can have answers from both sites, but that should be dependent on the question pro...
0
0
231
2017-12-21T16:04:42.813
data_quality
softwareengineering.stackexchange.com
447,630
web-dev: how to restrict access to costly backend API to authenticated clients only
I've created a small prototype browser plugin and am now thinking about making it accessible to the public. This brings up an important question about gatekeeping API access and the right way to deploy a potentially expensive service. The plugin uses Firebase for user authentication and a database. It also needs access...
I recommend going with " Set up a two-hop architecture " option you provided. This approach adds an extra layer of security and control, as the costly machine learning API is not directly exposed to the client. You can implement rate-limiting, logging, or any other security measures at the cloud function level. This ar...
2
1
141
2023-09-18T08:45:05.307
database_errors
softwareengineering.stackexchange.com
337,796
SQLite: How to include an Sqlean define statement in a `.sql` file?
I need to generate an SQL file containing UDF defined with the extension 'define' of Sqlean . Here is a minimum non-working [CODE] file: [CODE] When I do: [CODE] It fails with: [CODE] However, these statements work fine under the default [CODE] shell: [CODE] Surely something is missing from my [CODE] file, but what?
Answering my own question. According to @nbk user, UDF are not part of the database, but of the session. Fortunately, SQLite offers a [CODE] command which can execute a SQL file. So, under the SQLite shell: [CODE] ... works perfectly.
1
1
18
2024-03-18T10:08:12.610
warehouse_errors
dba.stackexchange.com
30,683
Looking for a better way to wait for an element to appear and disappear
I have a working solution, but I am hoping there is a better way. In automating a website, there are many places where a spinner is shown to tell the user that a process is running. The div is added and removed from the DOM as needed; as opposed to a class change or setting display:none. When I first starting automatin...
I don't really see, why you need to wait for the spinner to appear. You should have a certain latency in which the spinner element for sure appears. Therefore my suggestion would be to just wait for this latency time (let's say 200 milliseconds), before you wait for the spinner to disappear (if it's still present). Tha...
2
1
6,489
2017-11-22T19:17:35.133
data_quality
sqa.stackexchange.com
1,015,857
no root access on ubuntu vm azure
I just raised ubuntu on an azure vm and try to run some commands from the same console that includes the azure page panel, for example: [CODE] but I get the following error: [CODE] I don't really have permission to run anything, what could be the problem?
The Cloud Shell UI in the portal is not your VM, this is an admin tool, running in a container that allows you to execute things like Azure CLI in the portal. Sudo is not found there because it is not enabled, you do not have admin access in cloud shell. To connect to your VM you need to SSH to it using the credentials...
0
1
1,623
2020-05-06T01:26:04.480
infrastructure
serverfault.com
253,495
Is it ok to write "extra" unit tests?
My understanding of how TDD should work is that you write a failing test for the next bit of functionality you want to add to a function or object, code until the test passes and then write the next test. Is it ever ok to write tests that pass with the code as is? One example of that happened today. I was writing a fun...
The main reasons for using TDD are to make sure every bit of code you write is at least minimally exercised by the test suite, and that your API is well-usable for the application programmer. Writing an additional test for a case that already passes doesn't increase coverage, and it doesn't change the API any further, ...
6
8
503
2014-08-16T05:26:56.247
api_errors
softwareengineering.stackexchange.com
946,840
Website stopped working - bad flag delimiters error
I've had a website that has worked for a year. I changed the domain name, and the hosting company copied all of the data to the new hosting account. The website worked for a few days. Now, with no changes made, I've got a [CODE] . The error log says: /home/website/public_html/.htaccess: RewriteRule: bad flag delimiters...
[CODE] This would result in the "RewriteRule: bad flag delimiters" error because [CODE] is not a valid flags argument. This is two directives joined together. [CODE] is an entirely separate directive, which you already have on the next line, so it should simply be deleted: [CODE] This is something the hosting company d...
0
2
995
2018-12-28T03:17:19.593
api_errors
serverfault.com
439,329
HAProxy, client timeouts when connecting from JDBC pool
I have a webapp (Tomcat/Hibernate/DBCP 1.4) that runs queries against MySQL, and this works fine for a certain load, say 50 queries a second. When I route the same moderate load through HAProxy (still just using a single database), I get a failure, maybe one for every 500 queries. My app reports: [CODE] Meanwhile the H...
The only way to get more info from haproxy than what you have, would be to use the [CODE] or [CODE] command periodically to watch the state of each tcp connection, though I'm not sure if you would get any more useful information. The [CODE] termination state is the most helpful piece of info you have. What it means exa...
7
7
7,835
2012-10-17T13:07:30.393
api_errors
serverfault.com
776,859
ECP redirects to OWA in Exchange 2013 in coexistence scenario
There is a known problem described here ECP redirects to OWA in Exchange 2013 and here: Exchange admin center in Exchange 2013 . In short If you’re in a coexistence scenario, where you’re running Exchange 2010 and Exchange 2013 in the same organization, and your mailbox is still housed on the Exchange 2010 Mailbox serv...
The only reliable way is to move the mailboxes to Exchange 2013 for everyone who needs to use ECP. Anything else will quickly become an admin nightmare.
0
1
3,785
2016-05-15T06:58:13.530
api_errors
serverfault.com
280,428
Ubuntu 10.10: Email Server
Let's assume I know nothing about mailservers or Linux/Ubuntu. I want to set up a mail server that will easily allow me to add emails with different domains and connect with various email clients via pop/imap. What is the best way to set this up? I believe I have postfix running, but that's as much as I know. :/ I'm a ...
Postfix will allow you to deliver emails to different domains, and to send emails. You should install something like Dovecot or Courier to handle the pop/IMAP. Read the Ubuntu documentation for postfix here . Important things to pay attention to are the type of inbox (maildir vs mbox) and your authentication (Dovecot S...
1
1
304
2011-06-14T19:43:55.280
infrastructure
serverfault.com
411,984
How to handle db password change in a live service
Suppose I have a REST application running on a remote server which connects to a mysql database. Now let's say the password of the db has to be changed. What are the right methods and practices that has to be followed to avoid failure of requests. One solution is to create a new user with same level of permissions as o...
When you are changing the password, with the main concern being maintaining access to the database, here are a few methods: Operate on another database temporarily, if you are only doing reading then you can have a read fail-over Use another user temporarily Similar-- use a MySQL proxy user to have different credential...
2
1
424
2020-06-25T18:47:28.633
database_errors
softwareengineering.stackexchange.com
165,762
No ARP reply on tap0 (KVM bridged networking)
I wanted to assign an external IP address to my KVM guest and went the bridged networking way. Unfortunately the guest has no network connectivity and I don't know why. After investigating it seems that it doesn't get any reply for it's ARP requests. I have one physical interface: eth0, the bridged interface: br0 and t...
Are you running iptables? If so, have you enabled bridge traffic? For example the following is one solution that works on Fedora/Red Hat: iptables -F FORWARD iptables -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT iptables-save > /etc/sysconfig/iptables Have you enabled IPv4 forwarding in sysctl.conf? Again on Fe...
4
3
11,181
2010-07-30T21:45:11.090
infrastructure
serverfault.com
30,664
Load testing MongoDB with JMeter
I'm using JMeter 3.3 to load test MongoDB 3.4. Because I want to simulate 10k near-parallel users I'm using the distributed mode of JMeter on 35 VMs. In addition I follow many of the performance-tips for JMeter include starting it in non-gui-mode using no Listeners, increasing heap-size etc. When I add more slaves to t...
I think 286 threads is kind of very low number given 8 cores and 28 gigabytes of RAM, my expectation is that you can mimic at least 10x more threads in total (> 100 000) Set up monitoring of CPU, RAM, JVM heap , disk and network on a single JMeter machine. You can use JMeter PerfMon Plugin if you don't have other telem...
3
2
1,626
2017-11-22T10:43:33.617
database_errors
sqa.stackexchange.com
147,547
apache http redirects not keeping POST parameters
post parameters are not getting to the server after it goes through an internal redirect on apache. So www.mydomain.com would keep my post parameters, but mydomain.com doesn't. how do I fix this? ServerName mydomain.com Redirect permanent / http://www.mydomain.com/
I don't think you want to redirect in this case. The forms that they are posting from should post directly to www.mydomain.com, not mydomain.com. You can use a ServerAlias in the specification for the www.mydomain.com to include traffic addressed to mydomain.com. You may want to do limited redirects from pages on mydom...
0
0
4,324
2010-06-02T18:33:51.273
infrastructure
serverfault.com
76,035
Delete rows while updating references
Suppose I have a [CODE] table with an id and some other columns. Other tables reference the [CODE] table using [CODE] . for instance: [CODE] Now, what I am trying to do is: Remove duplicate entries from the person table, fixing the references [CODE] references . For instance, using this data: [CODE] Person [CODE] and [...
No, there is no built-in feature for merging one key into another, updating all referencing rows automatically. There could be all kinds of complications you need to resolve. Simple case You need to run [CODE] on all referencing tables and [CODE] on the referenced table. The simple case would look like this: [CODE] But...
6
5
5,328
2014-09-08T20:36:16.670
data_quality
dba.stackexchange.com
190,885
Compression not available on SQL Server Standard? Options?
So as they say, everyday is a school day. Today I learned that my workplace, runs SQL Server Standard edition, where I would have assumed Enterprise was in place. Although in reality shouldn't be surprised! For some context, we have a very large database that houses our warehouse data. As the database has grown to a la...
Since 2016sp1 all the compression features have been available in all editions, though that may not help you at all as upgrading your production environments (I'm assuming they run 2014 or earlier?) isn't something to just do on a whim. I then went to compress the tables I had deleted data from If you are deleting the ...
2
4
6,668
2017-11-14T14:36:45.357
hadoop_errors
dba.stackexchange.com
476,098
Zimbra: Run Network Edition and Open Source together
A customer wants to have approximately 15% of users on Zimbra Network Edition (paid version) and balance on the open source edition. Is this possible? If so what are the steps we need to take? I have heard of solutions where a few users are on Exchange and balance on the Linux Server running Postfix. Is such a similar ...
with a separated directory server, you can have two zimbra hosts, one running NE and another OSE, both authenticating to the central directory. You will require at least two servers of course.
0
0
309
2013-02-06T16:16:39.887
infrastructure
serverfault.com
107,584
PostgreSQL - what do tms and mt mean in a SELECT query?
I'm trying to see if I can optimize the following query which was written by my predecessor: [CODE] and I can't find any reference to the [CODE] listed in the very beginning. The query seems to run if I remove it so I can't figure out exactly why it's there. Further, later in the query in the [CODE] line, there is [COD...
They are table aliases. See, later in the query: [CODE] this is an alias , declaring that you intend to reference the table [CODE] as [CODE] in the query. Aliases are useful for abbreviation and for when you want to reference one table multiple times in a query.
-3
2
217
2015-07-21T03:04:10.060
database_errors
dba.stackexchange.com
825,682
SSL not working with Apache on Windows
I are using a product from a vendor that has to use Apache on Windows. We have our own CA. For naming purposes: AppServer - Server2012r2 - Apache 2.4 OldCertsha1 - Server2012r2 NewCertsha2 - Server2012r2 I created the CSR on the AppServer using the two commands below. [CODE] Thats all goes fine [CODE] Then on the CA se...
First, Apache will always use base64, file extensions are irrelevant (pem,crt,cer). Second, you cannot issue a certificate for longer than the certificate authority. 10 years is a bit much, I wouldn't be surprised to see browsers begin to mark them as insecure. If you still have the issued certs, you can validate them ...
15
11
8,346
2017-01-11T20:11:11.100
infrastructure
serverfault.com
874,493
What might cause ERR_CONNECTION_CLOSED on a mobile network but not WiFi?
A small number of our users are unable to access our website via a mobile connection, but can on WiFi. It seems to only affect Android, regardless of the browser type, and the same customers can access the site via a different Android. It's only on a mobile connection, but works on WiFi on the same device. It's not sim...
The most likely explanation is that something is messed up in the mobile carrier's network. You first need to test through different mobile carriers to see if you are able to reproduce the problem on more than one. My guess is that if you try through a few different carriers you will also find one where it works. You s...
0
1
2,836
2017-09-19T18:13:53.973
infrastructure
serverfault.com
53,116
Howto setup Cobbler with PXE if you can't change the dhcp server?
In the past I've setup a PXE server several times by making the normal dhcp server return everything needed for network booting: both the regular ip config AND bootinfo in a single dhcp setup. That way it is easy to do . According to the documentation i've read it ( wikipedia has a nice summary ) should be possible to ...
What we do, is mount an ISO file we made, boot a kernel and initrd from that and have it load a kickstart from a central location. This kickstart file then point to a repository with RPM files, which could be your cobbler server. I haven't got much experience with Cobbler (sadly), but maybe this is an option for you?
18
3
18,160
2009-08-12T08:22:52.680
infrastructure
serverfault.com
327,932
RDP Access Is Mistakenly Restricted via Firewall Any Way To Connect Again?
I was trying to add an ip address to windows firewall for remote desktop connection but I don't know why now I can't access to server via rdp even from old ips. I have administrator user and password of the remote machine. Is there any way to connect again via rdp? Server is Windows Server 2008 R2 Web Edition Edit: Als...
If you can do remote registry, remote service console or psexec to the box you can shut down the windows firewall and / or update the rules to allow yourself back in. My preferred method is with psexec. Assuming you can psexec the command should be: [CODE] EDIT - these are depreciated under Server 2008 but they should ...
1
5
507
2011-11-04T19:46:54.543
infrastructure
serverfault.com
21,800
Q-learning with a state-action-state reward structure and a Q-matrix with states as rows and actions as columns
I have set up a Q-learning problem in R, and would like some help with the theoretical correctness of my approach in framing the problem. Problem structure For this problem, the environment consists of 10 possible states. When in each state, the agent has 11 potential actions which it can choose from (these actions are...
There is a problem in your definition of the problem. [CODE] is the expected utility of taking action [CODE] in state [CODE] and following the optimal policy afterwards. The expected utility of a certain state (based on your definition) is different after taking 1, 2 or 9 steps. That means that the reward of being in s...
1
2
592
2017-07-29T14:23:37.060
data_quality
datascience.stackexchange.com
56,014
Facing this issue while predicting "CountVectorizer - Vocabulary wasn't fitted"
[CODE] I have created a Pipeline as shown below [CODE] while predicting the test dataset, im facing this issue. [CODE] ERROR : sklearn.exceptions.NotFittedError: CountVectorizer - Vocabulary wasn't fitted. Can anyone help ?
You have to give your training set to the model to be trained [CODE] I don't see any training dataset here. you have to fit the [CODE] to your data set.
0
1
3,704
2019-07-19T14:31:04.280
pipeline_ops
datascience.stackexchange.com
318,705
Is there an elegant way to check unique constraints on domain object attributes without moving business logic into service layer?
I have been adapting domain-driven design for about 8 years now and even after all these years, there is still one thing, that has been bugging me. That is checking for a unique record in data storage against a domain object. In September 2013 Martin Fowler mentioned the TellDon'tAsk principle , which, if possible, sho...
Considering domain layer is persistence ignorant and has no idea how to retrieve the data but only how to do operations on them, it cannot really touch the repositories itself. I would disagree with this part. Especially the last sentence. While it is true that domain should be persistence ignorant, it does know that t...
22
12
10,708
2016-05-17T12:18:08.963
data_quality
softwareengineering.stackexchange.com
167,031
Does AWS RDS support MEMORY storage engine?
Title says it all. Strangely can't find a result on this.
Yes, it does. How come ? Run this query in the RDS Instance: [CODE] Since [CODE] says [CODE] , the answer is Yes. You could also run [CODE] and see all engines supported or not in RDS.
12
7
4,997
2017-03-13T14:36:48.220
warehouse_errors
dba.stackexchange.com
125,077
Select random rows up to a limit
[CODE] That is my current query, What I am trying to do is select random rows for which I have the * in my query, so I am trying to get the psbin (which is a column in my table) it is a int and I want the psbin of all these rows combined not to go over 250k. Create table statement is: [CODE]
If I understand you correctly you want to add up psbin values up to 250.000 from random rows [CODE]
2
4
177
2016-01-03T16:40:01.983
warehouse_errors
dba.stackexchange.com
443,510
How to stop deferred emails
I have a Postfix mail gateway. At the same time, every other host is set to use this gateway as the relay. We have some automated outgoing emails sent from some hosts. I believe the gateway tries to send a deferred status back to the system started this. But that system is a null client, which sends but not receive any...
"Deferred" means that Postfix tried to deliver the message but failed (in this case because the MX server rejected the SMTP connection), and so it is going to wait a while and try to deliver it later. Postfix isn't sending a status report, it is simply trying to deliver a message which it was asked to deliver. That mes...
1
2
18,030
2012-10-29T21:37:17.970
api_errors
serverfault.com
301,364
How do I ensure that a member server DNS client (dnscache) is not initialized until its hyper-v domain controller has started?
I have a laptop configured in the following manner: Laptop is Server 2008 R2 member server running Hyper-V connected to the internet via a Wireless adapter One virtual machine is a Server Core 2008 R2 configured to run as a Domain Controller and DNS server; it has a single virtual NIC that is internal to the machine Th...
I think I may have found it . I added a dependency for the dnscache service to the Hyper-V service (vmms) via registry. It works on 1 reboot. Will wait a couple of days before calling it a success. Update Works like a champ. Startup time is even a lot quicker (I guess since boot-up AD connectivity isn't timing out). Up...
1
1
525
2011-08-15T20:46:26.990
infrastructure
serverfault.com
462,571
Live migrate possible among different version XenServers in one pool, with shared storage
We have a pool of 3 XenServers, with version 5.6 SP2, which needed to be migrated to latest version (6.1). the upgrade of pool master is complete and now the pool has one server with version 6.1 and other two servers with version 5.6 SP2. to avoid any downtime, we want to move (migrate) our Virtual machines from the ol...
Live migration between 5.6 and 6.x pools is not working. I think, the best (and only ?) option would be to create a snapshot of the 5.6 VM's and export it. Then import the VM on the new (6.x) pool.By creating a snapshot you can avoid downtime.
1
1
1,037
2013-01-03T12:45:38.880
infrastructure
serverfault.com
215,387
error when creating a view with CTE
When running the CTE below, it fetchs me the data I want. [CODE] However when I'm trying to create a view on it like below [CODE] It gives me the following error ERROR: The column « Site » has been specified more than once ********** Error ********** ERROR: The column « Site » has been specified more than once WSQL Sta...
There are two possible solutions Do a [CODE] join like below [CODE] However as I'm retrieving datas from 5 years ago, it takes more than 5 minutes if I'm using a [CODE] . The best way is to call each columns separately like below and be sure to name the origin of the column, here a for [CODE] and [CODE] . [CODE] This w...
3
2
1,235
2018-08-20T13:38:30.110
warehouse_errors
dba.stackexchange.com
510,121
configuring two domains in same server
I am trying to configure two domains in same server, but i am getting with " the first has precedence, perhaps you need a NameVirtualHost directive" Below is my Apache2 config file [CODE] Any help will be much appreciated. Kind regards Karthick
The Apache documentation for Name Based Virtual Hosting is excellent, you should take a moment to read through it. the first has precedence, perhaps you need a NameVirtualHost directive You need to supply a [CODE] directive [CODE] should do the trick.
-6
13
102
2013-05-23T06:23:20.663
infrastructure
serverfault.com
482,509
ssh: Connection refused when access remotely
I recently installed ssh server openssh-server in my fedora 16. I added my friend user account to my sshuser list. When my friend tried to connect my server computer via ssh using following command ssh sudip@192.168.1.123 then it shows following error [CODE] but when i tried locally from my machine the server was conne...
You can use ssh -vvv user@192.x.x.x to get debug info on the connection. If -vvv is too much info you can use -vv or -v for less detailed debug info. On the remote server, you should be able to see some info in /var/log/message or /var/log/syslog also. A combo of those 2 things should point you in the right direction.
4
2
19,438
2013-02-26T07:51:39.940
api_errors
serverfault.com
377,246
MVC / MVVM principles
I'm currently working on updating some old projects (inherited stuff) and I keep running into various small issues with the architecture. Namely monolithic classes too tightly coupled. One example currently is a giant "results" object that looks something like: [CODE] Some of these are fairly deep, and some medium to l...
It's best to always consider SOLID principles. Because it makes your code simpler and easier to maintain. As I understand, the Person and FavoriteThing classes are both your domain and data entities and are also exposed to the Presentation. I think that's the first design smell here. We need different objects to repres...
-1
0
301
2018-08-21T21:27:26.357
api_errors
softwareengineering.stackexchange.com
163,912
Getty flooding syslog after kernel upgrade with "cannot open as standard input"
I just updated my kernel on an Ubuntu 9.10 system from 2.6.32.1 to 2.6.33.5 , and everything seemed to go well, except now my system log is getting flooded with errors from getty: [CODE] Any idea what is causing this and how to get it to stop? I realize its not a critical issue, but it's still annoying that it's consta...
I had this same issue with a Rackspace-hosted server that I recently upgraded to Ubuntu 12.04 LTS. My /var/log/auth.log file was getting flooded with [CODE] All I did was remove (after backing up) the following files: [CODE] After I rebooted the problem was solved. No more noise in the log file and the Rackspace consol...
3
2
7,158
2010-07-25T16:15:30.537
infrastructure
serverfault.com
171,665
What's a more natural column name for Tables whose name share a column name?
I have a database that's used by an ASP.NET MVC project through EntityFramework. Currently there are some tables that have columns with the same name, i.e. [CODE] but once EF goes through its thing it changes the HairColor property to HairColor1 because classes can not have properties which share its name. So my questi...
Personally, I usually like my column names to be meaningful, as it makes it easier to follow in queries. I can see Scotts Hodgin's point, certainly, but you could end up with a query that looks like: [CODE] Of course, good table names or aliases can ameliorate my complaint (even in my example, you can take a stab at wh...
0
2
54
2017-04-21T16:36:47.037
warehouse_errors
dba.stackexchange.com
1,093,123
HAproxy finds no backend when different port is used
I have two backends that are the same server running two of the same Docker image, but each with a different port. That is, on the backend server, the only different between the two is the port mapping. My load balancer (HAProxy) is a separate physical machine at 10.0.0.2. [CODE] When I sudo systemctl restart haproxy i...
In a nutshell, the issue is that you cannot just randomly pick a port to use for your backend. Here, 8000 is already added to soundd_port_t, which is a group that haproxy isn't in. So, "sudo semanage port --add --type http_port_t --proto tcp 8000" does not accomplish what was intended here. It actually fails to do what...
0
0
1,226
2022-02-09T06:21:29.977
pipeline_ops
serverfault.com
870,445
Apache 2.4 restrict access
I got the following directories in my /var/www/htdocs: [CODE] I would like to achieve this: access to / for everyone access to /test123/test.htm + /test456/test.htm + /test789/test.htm for the ip-address 192.168.1.10 no access to all cache-directorys So I got the following apache 2.4 configuration, but it is not workin...
Quotes from the documentation : [CODE] [...] is processed in the order shortest directory component to longest. For example, [CODE] will be processed before [CODE] . If multiple [CODE] sections apply to the same directory they are processed in the configuration file order. This makes your case a little difficult. From ...
0
0
2,521
2017-08-25T12:36:22.687
infrastructure
serverfault.com
1,107,787
Mail is not getting through to gmail
I have a self hosted mail server on a VPS. When sending mail through an application, most of my mail is getting rejected by google. Google is giving following message about the mail. [CODE] But both of my forward DNS and reverse DNS looks okay. [CODE] Can anyone help me out what could be the problem? Note: When using t...
As you can see from Google’s diagnostic, you are using IPv6 to send the mail. Using [CODE] to look for your AAAA records, I’m not getting any addresses. This might well be the problem. Set up the necessary AAAA record (IP address 2a02:c206:2061:6136::1) or configure your MTA to use IPv4 only. Also: your SPF record, too...
6
11
1,904
2022-08-09T15:11:47.147
infrastructure
serverfault.com
136,765
Script to Delete Tables With A Prefix
I am running SQL Serve 2008 and we have a few test tables that were obviously used for testing. The prefix of the tables are Test_, my question is, will this script delete all tables with the prefix of Test_ on the database I execute it on? [CODE]
will this script delete all tables with the prefix of Test_ on the database I execute it on? Yes, it will [CODE] tables. DELETE is normally used with deletion of data. Your script will physically drop the tables. Also, please dont use [CODE] and there is no need for a cursor. Your script can easily be written using dyn...
0
2
1,174
2016-04-27T18:21:18.217
warehouse_errors
dba.stackexchange.com
54,742
Start SQL 2000 without loading all databases?
Is there a way to start a SQL 2000 instance without loading one specific database? We've got a database that is crashing the server at a certain point during the db recovery process, and we're going to try to recover from backup. But we can't start the restore when the instance keeps restarting itself. (If you're curio...
stop sql server rename data & log files of the db with the issues start sql server The db will be marked 'suspect' when you start, but at least it wont be trying to rollback. From there you can drop the database & do a restore
2
6
344
2009-08-16T16:52:17.263
database_errors
serverfault.com
404,486
Adding Facebook IPv6 to Centos, getting CurlException 7
I'm correctly get following error. After searching about this issue, correct me if i'm wrong, I believe that adding/configuring IPv6 should solve the problem. [CODE] The problem is I dont know the right way to add it. There seems to have may methods. http://tldp.org/HOWTO/Linux+IPv6-HOWTO/x1035.html#AEN1044 https://uni...
I'm assuming that you don't actually have IPv6 connectivity, in which case you probably want to disable IPv6 .
1
0
747
2012-07-03T17:58:26.050
infrastructure
serverfault.com
127,862
Slow git clone and fetch
I setuped gitosis on a linux server following this tutorial: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way We are using git on our windows machines with TortoiseGit and msysgit. Pushing changes to the server is pretty fast, but when we want to clone or fetch changes from the remote serv...
Like you were able to identify, this is a client issue, not the server fault . If you want, you can configure TortoiseGit to use Putty's plink instead of its custom implementation. Then you can customize the default settings using Putty. In Putty "Default Settings", enable the following: SSH -> Auth: "Allow agent forwa...
3
2
6,033
2010-03-30T21:02:07.823
infrastructure
serverfault.com
166,843
What index to use with lots of duplicate values?
Let's make a few assumptions: I have table that looks like this: [CODE] Facts about my set: Size of the whole table is ~ 10 10 rows. I have ~ 100k rows with value [CODE] in column [CODE] , similar for other values (e.g. [CODE] ). That means ~ 100k distinct values in column 'a'. Most of my queries will read all or most ...
BTree My issue here is that the BTree index will be huge since afaict it will store duplicate values (it has too, since it can't assume the table is physically sorted). If the BTree is huge I end up having to read both the index and the parts of the table that the index points too... Not necessarily — Having a btree in...
21
19
14,863
2017-03-10T15:24:01.963
data_quality
dba.stackexchange.com
671,540
Nginx Configuration
I am trying to setup nginx web server for my web application. Below are the URL's I want [CODE] I am able to get /var/www/html to server me proper php file for example.com, but the other two I am not able to get them working. My application is built on yii and I have used this as my base https://github.com/clevertech/Y...
1 request = 1 location You will need to duplicate your regex location so one is found per prefix location you have. That is the most efficient way of doing it. Do not be frightened of copy-pasting! those few extra bytes in configuration will make nginx configuration more readable, scalable and running more efficiently....
0
0
227
2015-02-26T08:50:51.973
infrastructure
serverfault.com
115,400
pg_restore not restoring sequences
I'm transferring all of the databases on my old postgres server to a new server. To do this I'm using pg_dumpall and then pg_restore. However, it appears that no sequences have been dumped. This is not the first time I've run into this problem. I've seen the same problem when backing up individual databases using pg_du...
I find that when I use the "-Fc" option to pg_dump, I do get SQL statements to create sequences in the resulting dump file. [CODE] This is with old (8.4.20) PostgreSQL; I would hope that this behavior is unchanged in later versions. I was using the custom-formatted dump because, like the many people you encountered in ...
6
3
10,735
2015-09-17T21:18:13.537
database_errors
dba.stackexchange.com
695,743
znapzend cannot receive new filesystem stream: dataset is busy
have 2 test system running last Nexenta 4.0.3-FP4community .Master and slave , mbuffer installed on both,ssh trust is ok between hosts when running znapzend on master replication snapshot did not ship to slave system,here my znapzend znapzend debug log: could you please somebody explain where is problem? [CODE]
I found answer myself, when destitaion zvol shared(lun mapping) this error occurs, after unsharing destination zvol,znapzend working since yesterday.
2
2
1,483
2015-06-01T08:06:14.237
database_errors
serverfault.com
674,787
Viewing NxN network traffic in a distributed system
I have a Hadoop cluster set up, and I would like to view the network usage between all nodes in this cluster, i.e. if I have N nodes, I want to see NxN network connections so that I can view all traffic between all nodes. I am running the cluster on a Linux system, how can I do this?
ntop-ng combined with an s-flow or netflow connector from your switches. This is not a free solution if you're a commercial entity, and if you want extra analysis then it's even more not-free. E.g. below is my top-talkers at the instant that the screenshot was taken: There's plenty of other information you can get from...
1
1
79
2015-03-12T02:15:24.483
hadoop_errors
serverfault.com
452,382
Understanding connection tracking in iptables
I'm after some clarification of the state/connection tracking in iptables. What is the difference between these two rules? iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT Both appear to load the nf_conntrack module when either -...
The first question is what is conntrack . This is the website for conntrack-tools . With that in mind what does state do? The State Match The most useful match criterion is supplied by the [CODE] ip_conntrack' module. This is highly recommended. Specifying [CODE] --state' option, which is a comma-separated list of stat...
7
2
12,726
2012-11-26T22:59:31.650
infrastructure
serverfault.com
795,884
How can Jenkins on Linux do builds to Windows servers securely without A.D.?
I am running Jenkins 1.6 on CentOS 7.2. I have several Windows 2012 servers without A.D. I connect to the Windows machines with local credentials. I have configured a development environment with Python and WinRM on the Linux server. For production my configuration will not work because WinRM is not encrypted. How do I...
You can configure each Windows server to be a Jenkins node (aka "slave" or "agent"). Then use a pipeline job to control the flow of which commands runs on which node (using node{} blocks). This will eliminate the need for WinRM, SSH or other remote execution methods. Securing the Jenkins node-to-master communications c...
0
1
4,346
2016-08-09T21:56:54.430
api_errors
serverfault.com
30,448
How do I fix SQL Server assembly optimization errors and memory exhaustion?
The .NET Runtime Optimization Service ( [CODE] ) keeps consuming all my workstation's memory since I installed SQL Server 2012 Service Pack 1. It consumes about 1.6 GB of memory before exhausting all available memory: I can kill the process, but it happens again when I restart my computer or wait long enough. Techdows ...
This problem is described on Connect (see msiexec.exe processes keep running after installation of SQL Server 2012 SP1 ) and a hotfix is available at KB2793634 . There are work-arounds listed on the Connect post and this blog if you are unable to install the hotfix immediately. I chose to setup 2 scripts. 1st script ru...
9
9
5,797
2012-12-14T15:28:21.450
database_errors
dba.stackexchange.com
594,241
How to get the number of current connections to an external web service
My application makes many requests in a day to a webservice (say 172.20.20.20:11111) on a different server. I would like to know how I can count the number of connections that are established (the number of current connections to the external webservice)
You can run [CODE] netstat shows the established TCP sessions. First grep filters the server / port combinations, the second filters established sessions, and finally wc is used to count the number of connections.
-2
0
396
2014-05-10T01:55:38.007
infrastructure
serverfault.com
438,559
Best practices to deal with realtime data in REST API, Postgres and Redis
Overview Today we have a monolithic service that deals with realtime time data. The monolithic are composed by follow stack: Django + AuroraDB Cluster (Postgres AWS) + Varnish cache and cloudfront at the edge. This service is fed by a third part data provider, which in peak times, provider 5k message/minute, with this,...
We had the same doubt, I think this info could help 6 months later too, I found this information useful in some cases, because generally the software catalog is a ' centralized tool ' that keeps track of ownership and metadata for all the software built by an organization, so about your case it could serve using ' Even...
0
1
247
2022-05-11T15:02:34.257
api_errors
softwareengineering.stackexchange.com
69,756
How to run smbpasswd as root on AIX?
I have Hitachi ID Password Manager (formerly p-synch) set up to change the password on (among other systems) an aix 6.1 server running samba. p-synch has the capability of executing additional commands by configuring "chat script" in the conf file. But p-sync does not send the old password and runs the script as the "p...
Sudo is by far the best solution for this, and if I recall from my days working in their support department, the documentation might actually call for that when you are using the legacy unix listener. You could probably hack around it by changing the service account it uses to root, but that is a bit ugly, and running ...
1
0
1,269
2009-09-29T21:22:12.770
infrastructure
serverfault.com
871,093
Cannot power on new VM's on Host3 since bringing under vCSA6 management. Error: Device 'Bootstrap' is not available
We have three ESXi hosts, like so: Host1 - ESXi 5.1 Host2 - ESXi 5.5 (vCenter Server Appliance 6.0 lives here) Host3 - ESXi 6.0 I deployed vCSA 6.0 about two weeks ago and now we cannot power-on newly created VM's on Host3. Host 1 and 2 seem to remain uneffected by this issue. The error I get when trying to power-on a ...
I've seen this issue before. Try rebooting the host and see if that resolves the issue.
0
1
4,270
2017-08-29T17:06:37.077
infrastructure
serverfault.com
471,431
Debugging issue with find command on linux
I am running JBoss EAP6 on two servers and I am trying to get CAS working. It works on node 1 great but on node 2 I am getting a error: [CODE] If I run the following on node 1: find / -name log4j-over-slf4j.jar 2>errors.txt I get this output: [CODE] But if I run it on node 2 I get the following: [CODE] if I run: find /...
Maybe (I cannot be sure in this case as there can be other causes) the two servers have different locale setting, which can affect sort order. To check system locale setting, run [CODE] . PS: Maybe comment from Gus above is more accurate. However I cannot find additional documentation to support either case.
1
0
195
2013-01-22T16:22:54.370
infrastructure
serverfault.com
398,539
Concerning memory usage statistics on debian squeeze
So I have a server, and I'm being reported different/strage memory from several locations and I'm having trouble understanding what it all means. Take this for example: [CODE] You'll see that I have 16G of ram, and its showing that nearly 14G of that is being used, but its not. Now I'm not blind, I see that it says "ca...
Cached is the filesystem. It does this so that the most frequently accessed files are in memory. That way, it doesn't have to go all the way out to disk and back - making it more efficient. Don't worry, though, when your system needs actual real memory for something it'll swap the space out of cache.
-1
2
818
2012-06-14T01:23:37.490
infrastructure
serverfault.com
639,338
Running own DNS in intranet, how to reach outside DNS from clients
The Scenario: I am creating a Network for 8 Windows 7 Workstations running in a Student Laboratory. They are supposed to browse the internet, but not to be reached from outside their intranet. To achieve this, i run an Ubuntu 14.04 server with 2 NIC's. One NIC (em1) is connected to our department VLAN, i.e. the interne...
Install your Windows domain as usual and point the clients to the Windows domain's DNS server, and set the department's DNS servers as forwarders in the Windows DNS server. The manual to do that: http://technet.microsoft.com/en-us/library/cc754941.aspx
3
2
899
2014-10-24T09:12:37.470
infrastructure
serverfault.com
79,763
Certain VMware guests run slowly unless I feed them extra I/O interrupts
Running ESX server 3 on four identical 4-CPU hosts, guests on Fibre SAN VMFS. Guest OS is Fedora 10. Cloned it to create web, jboss, mysql, and memcached templates. Cloned each template into four guests, one for each server. Out of these 16 guests, one jboss and one mysql guest run so slowly as to be unusable. By "slow...
One of the other guests on the same host improperly had the CPU affinity bits checked for all cores on the host. Removing the affinity settings restored normal operation. There's five of us working on those hosts, I should have checked the configs myself before posting. EDIT: I can't accept my answer and close the ques...
1
3
951
2009-10-30T02:01:57.507
database_errors
serverfault.com
171,827
How can I find my Oracle 10g server version?
I don't have physical access to my Oracle server but I can run some sql command from Toad. Is there a way I can find wich version the server is running, like 10.2.3.1. I know it's 10g but I'd like to know wich patchs and maybe more (memory used, buffers, etc.)
[CODE] More here: http://www.adp-gmbh.ch/ora/misc/dynamic_performance_views.html
4
7
6,786
2010-08-18T13:14:47.047
database_errors
serverfault.com
128,724
Speeding up insert in SQL Server
I have a stored procedure which inserts some records in a few tables. In couple of tables at least , the inserted records number 10000+. Not more than 15K though. Takes [CODE] for this procedure to complete. Also same procedure can be called from multiple user sessions which results in some sessions waiting for 20 mins...
Without more detail about the procedure [1] and the table it is inserting into we can't offer any specific help. Some general advice though: If you are inserting the rows individually, try to arrange them so that they are inserted in large blocks, all at once if possible. Confirm that the procedure is in fact being slo...
4
8
12,841
2016-02-09T13:29:14.123
database_errors
dba.stackexchange.com
593,359
Can I run elasticsearch on a single server?
I use elasticsearch as part of a Logstash stack, in which all of the components of the stack are installed on the same server. The purpose of this is to expose application logs to developers for debug purposes. I don't need to keep the indices created. I have a cron job that removes indices that are older than 7 days. ...
I've discovered after much suffering that the best way to run elasticsearch on a single server is to change the default setting of: [CODE] to [CODE] If there are 0 replicas, elasticsearch will never try to assign shards to any other "replica" then itself, thereby removing the issue of unassigned shards and corrupted in...
2
3
2,155
2014-05-06T11:07:48.293
database_errors
serverfault.com
12,638
Removing a server from a broken Failover Cluster in WS08?
I'm setting up a test environment with Failover Cluster with 2 WS08 "members" in the cluster, however upon renaming one of the servers' hostname it seems to have broken entirely, so I deleted the cluster by force starting it and then destroying it, but when I try to create a new one it still says one server is part of ...
for future reference, you could have tried to run [CODE] then deleted any values from [CODE]
3
1
8,929
2009-05-27T08:49:59.337
database_errors
serverfault.com
359,389
APC minimal shm size
What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a Wordpress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there any way of telling APC to use "normal" memory instead of shared one (I've got plenty of ram...) My current apc.ini looks ...
Found the solution myself: By default apc now uses mmap for shared memory. In theory, mmap should not be bound to the maximum shm size by the kernel, but it seems it is, at least in shared server environments like virtuozzo. Also mmap ignores [CODE] because it won't create multiple anonymous files to map into memory wi...
1
0
1,364
2012-02-12T21:50:12.197
infrastructure
serverfault.com
709,374
Local Security Policy/Windows Update rights issues Server 2012 R2
I have a 2012 R2 server that is a domain member. It is basically test web server. I have been having problems getting to run windows updates. Some will not install no matter what fixes I apply. Tried ALL (I think) of the DISM and SFC /Scannow options and chkdsk, etc. The Store was corrupt but repairable. But no repair ...
It seems that there was a corrupt update. The fresh reload corrected the installation and all features are now functioning properly.
1
0
653
2015-07-29T12:51:37.430
data_quality
serverfault.com
133,075
Compare Past Records to Most Recent Record
Is it possible to structure a single query that would return a 0 or 1 (true/false) by comparing first record to previous records? Sample records in table: [CODE] I need to evaluate the most recent record by ProductID. In the example above the last record (on 20160322) has a LevelCode of 2. It needs to be compared to th...
One way would be using CROSS APPLY. If you identify the most recent record for each product in the first table and then pass the criteria into the cross apply. [CODE] Alternatively, look into the windowing functions. You can do a great deal with them that may be more efficient.
1
1
316
2016-03-23T01:54:44.760
warehouse_errors
dba.stackexchange.com
92,023
How to remove the duplicate records from primary filegroup after partitioning?
Basically, our database is created based on primary filegroup alone. Now, I have done partitioning for a large table which was approx 25 GB. The partitioning was done on secondary filegroups which has data files located at different drives for performance optimization. Now when I look into the database it looks like th...
Once SQL Server acquires disk space from the operating system and allocates it to a database it will not voluntarily give it back. It takes time and effort to allocate this space so it is more efficient for the database to hang onto it once it has acquired it. If you genuinely have moved the data and not copied it (you...
0
2
159
2015-02-16T06:25:34.323
data_quality
dba.stackexchange.com
947,015
how to get kubernetes to mount ext4 volumes over iscsi in journaled mode instead of ordered
I'm running kubernetes on Ubuntu 18.04.1, running some of my pods with mounts via ISCSI. I've noticed recently (maybe due to improperly unmounting the iscsi volume or for other reasons) that at least one of the iscsi extents (ext4 fs) is sometimes corrupt. In an effort to try and fix this, I'd like to change the mount ...
I haven't tested it, but based on the ISCSI examples and code in PR Implement support for mount options in PVs #41906 I can guess that mount options are just added to plugin mount command, so the YAML should be like this: [CODE]
3
2
1,353
2018-12-29T20:33:23.150
data_quality
serverfault.com
332,855
Postgresql near real-time
Before asking the question I will update you on the situation I face. I have physical tables in postgresql that are continuously updated by various external flows (.NET, Java, etc...), at the moment there are some ETL functions written in plpqsql, scheduled every morning at 6:00, which have the purpose to take all the ...
So what should I do? The customer no longer wants to wait a day for updated data. While Laurenz is right that the term " real-time data warehouse " is a bit of an oxymoron, I disagree that the answer to the problem is " they have to wait ". The first thing you should do is analyze how long the process currently takes. ...
1
0
61
2023-11-07T08:02:25.020
warehouse_errors
dba.stackexchange.com
1,110,089
MYSQL: Upgrade is not supported after a crash or shutdown with innodb_fast_shutdown = 2
I have a mysql server running in a docker container. I tried to upgrade the database from version 8.0.29 to version 8.0.30. However, when starting, the following error occurred: [CODE] Then I tried to start again in version 8.0.29, but that no longer works either - error message is: [CODE] Any ideas how I can solve the...
First take a backup of your mysql data directory. Then delete the files ib_logfile*. When you start mysql, it will create new, empty log files. Also, running with [CODE] is a bad idea. Change it to 1. You will still be able to shut down quickly, but mysql will do the minimum possible to get your files in to a consisten...
6
7
19,460
2022-09-06T13:57:54.097
database_errors
serverfault.com
489,854
Configuring VPS running OpenPanel for hosting with external nameservers
I have a VPS running Debian 6.0 and OpenPanel. With all the regulars already running(mysql, apache, php, etc) Now, i ran into the problem with domains and DNS. Im not really an expert in that area so pardon my ignorance. We have couple of domains at Domainsite. They are providing their own nameservers. So i added A rec...
You can configure the DNS in your panel to anything you like (normally, there should also be an option to disable it). It won't ever be queried, as the authoritative nameservers for your domain are stored at your registrar, and these ones will be queried by a client trying to open your website. DNS is not needed intern...
0
0
310
2013-03-20T22:15:25.220
database_errors
serverfault.com
5,032
Issue with SQL Server 2008 replication
I'm doing merge replication between two SQL Server 2008 machine.But,when I attempt to do any modification on system,I got the following error. [CODE]
Filters The simple answer is to use VIEWS for all your replication filters. That way, you can easily modify your filters without having to drop and re-subscribe all subscribers. That is golden rule no. 1 DDL If you modify any tables that are used in merge replication, you have to allow the DDL to apply down to the subs...
2
2
1,157
2011-08-25T14:31:03.037
database_errors
dba.stackexchange.com
382,438
Handling multiple game modes with a game controller
I have a basic GameController with a finite state machine to handle game logic. I'm adding game modes and coming across problems cleanly implementing them. The core functionality of the game stays the same--Physics, input handling, level creation--but I have many places where I need an if/else block because functionali...
There are certain aspects of design that have to be tightly coupled. The challenge of course is to do it in such a way that if you change something in one place, it doesn't break something in another place. When you are dealing with choices like this, sometimes you need to take a step back. You can ask yourself questio...
1
0
145
2018-12-04T13:06:14.740
api_errors
softwareengineering.stackexchange.com
1,053,215
Centos 8 folder permissions for nginx and sftp user
I can't figure out how to merge nxginx and sftp user for a folder. So for example I have folder: [CODE] sftp user is: [CODE] john belongs to group: [CODE] scenario with chown nginx:nginx from web interface I can upload files to [CODE] folder. But the issue that when I login through [CODE] it doesn't have rights to uplo...
Both scenarios are incorrect. The only true logical and secure way to run NGINX/PHP-FPM website is by running the website with a separate user (can be your existing SFTP user), and having it own all website files and dirs as in [CODE] for all files and directories. See here for more details. Particularly, the important...
0
0
1,263
2021-02-11T07:44:12.020
infrastructure
serverfault.com
44,851
Using PL/R for clustering geometries
I have a Postgres/PostGIS database of [CODE] points which I'm trying to cluster; meaning I want to group and count them by proximity. I have had first success with the kmeans Postgresql extension , but the algorithm is not optimal for what I require. I want to experiment with more algorithms, and R seems to be the best...
After some experimentation, I got this: [CODE] This window function is called once for each row and returns the cluster id of the record, but it calculates the cluster only once using the DBSCAN algorithm and stores it in a global variable. It is used like: [CODE] Et voilà, a DBSCAN clustering implementation using PL/R...
2
1
1,309
2013-06-19T15:23:35.007
database_errors
dba.stackexchange.com
411,548
Archiving Emails: Multiple Transports in Postfix?
I'm trying to archive incoming mail by routing it to a PHP script (which inserts it into a database) before sending the email to the destination server. If I configure my /etc/postfix/transport as such: [CODE] My email will then be forwarded to the Exchange server (192.168.1.100 for testing) to the appropriate mailbox....
Postfix cannot deliver a message to multiple destinations. You can however use the [CODE] directive to automatically BCC all messages to another address. You still need to configure the transports to deliver messages to the special archive address to your script. [CODE]
0
4
1,486
2012-07-26T18:42:12.593
hadoop_errors
serverfault.com