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 |
|---|---|---|---|---|---|---|---|---|---|---|
564,803 | Powershell script runs in an infinite loop when executed a certain way | I'm using the Exec Powershell provider for Puppet to run some powershell scripts. I'm having an issue with the way it executes my script. The method of execution causes the script to run over, and over. I'm forced to kill the process myself, but the script itself seems to run normally. I've been able to put together a ... | Powershell seems to be sensitive to what it receives as standard input (using [CODE] With the few tests I did I received different behavior according to the encoding, whitespace and characters used. May be just the way cmd redirects input. You may also wish to post your issue to the powershell puppet project in github.... | 2 | 2 | 3,227 | 2014-01-03T10:07:48.637 | pipeline_ops | serverfault.com | |
261,406 | How do I get Busybox Linux/ESXi 4U1 to recognized expanded RAID 5 disk array? | I'm in the process of upgrading a pair of physical servers to 3 virtual machines. The 2 physical boxes (HP DL380 G5 with Smart Array P400 disk controller) will run VMware ESXi 4 update 1. Each physical machine has 8 72GB drives originally configured as follows: Disk 1 and 2, RAID 1 (mirror), operating system Disks 3 - ... | Basically you shouldn't have used the two 'new' disks to expand the existing logical drive, VMFS3 doesn't usually work that way, given you have a (pretty capable) P400 adapter you should have just added them new disks to the existing array but then created a new logical disk from the unused space, still with R5 (I know... | 0 | 2 | 874 | 2011-04-19T19:07:26.857 | infrastructure | serverfault.com | |
371,053 | PostgreSQL: performance descrease due to index bloatper | I'm running a PgSQL 8.1 on a CentOS 4.4 system (not upgradable unfortunately). There's a Java app running on top of the PgSQL daemon and we got to reindex the database every 2 months or so. Also important: the database isn't growing. It looks like the bloat is now coming faster than before and this tends to increase. M... | Unfortunately if you have an active database (one with lots of inserts/updates/deletes) you will experience index bloat -- It's just a fact of database life. The best you can do is hope to slow the bloat down to the point where your reindex intervals are reasonable. The best advice I can give you in that regard is to u... | 1 | 2 | 1,820 | 2012-03-19T09:24:15.053 | database_errors | serverfault.com | |
350,796 | Dedicated method vs method with parameter | Suppose we've a [CODE] which tell us if user has some privileges to some action or not. We've quite a lot of them(dozen, maybe more). I see two ways to implement checks for a user, like a: Dedicated method: [CODE] Method with a parameter: [CODE] (where [CODE] is a class with a bunch of static fields for each permission... | Sometimes, the fact that you have this choice to make is itself a smell. It tells you that perhaps you are missing an abstraction, or that behavior is not sitting in the proper place. That may or may not be true in your particular case, so I'll address your question directly. The preferred choice depends on what the ca... | 1 | 0 | 424 | 2017-06-13T18:48:52.660 | data_quality | softwareengineering.stackexchange.com | |
224,726 | Postgresql: A bit confused on listing all roles in my system | I am just getting into PostgreSQL. I am ultimately interested in using PostGIS but thought it would pay off in the long run to get thoroughly familiar with the client/server authentication systems and also some general database management concepts through the command line instead of pgadmin GUI. Going through the Postg... | If you want to find out, what exactly the "backslash commands" do, just start [CODE] with the option [CODE] (or [CODE] ). If you do that, you will see that [CODE] uses the following query: [CODE] So [CODE] simply filters out all roles where the name starts with [CODE] , because role names starting with [CODE] are reser... | 0 | 4 | 3,919 | 2018-12-12T07:14:21.847 | api_errors | dba.stackexchange.com | |
656,226 | CPU Affinity setting not sticking | I'm attempting to set the affinity of mysql (latest Percona Server) on a 4vCpu VPS virtualized with OpenVZ and running CentOS 6.x. The command I'm running is [CODE] . I've also tried [CODE] instead. The output is: [CODE] So, it does not seem to be 'sticking'. It can be confirmed by running taskset again to find the cpu... | CPU affinity masks are ignored inside OpenVZ containers . You will not be able to get this to "work". In RHEL5-based kernels we had the notion of virtual cpus: tasks were scheduled on vcpus while the vcpus were somehow distributed among physical cpus. The sched_setaffinity syscall could be used to bind tasks to vcpus t... | 4 | 10 | 1,698 | 2015-01-04T19:48:20.233 | database_errors | serverfault.com | |
588,495 | What is causing the Collateral damage when deleting old profiles? | [CODE] That's the script. It detects and deletes domain profiles (Domain is [CODE] ) on systems that haven't logged into the system in over 14 days, and it works . However, I started receiving complaints that the script is deleting local accounts, one local account in particular. Assuming that was impossible (I have pe... | Not quite sure how this would be getting locals... unless the -match "EXP\\" is somehow not behaving as expected. Do the workstations contain "EXP" in the name? Is it possible these local accounts are used to make local logons and remain logged on for more than 14 days? Your 14 day window may be a little too aggressive... | 3 | 2 | 398 | 2014-04-11T20:39:32.623 | infrastructure | serverfault.com | |
192,412 | OS X Client & Ubuntu Server - Best way for client to access files on server? | I've got a local development web server running Ubuntu. I also have an iMac running OS X 10.6 which I use a client and is my development machine. I'm currently have Samba server installed on my Ubuntu server. I have shares setup for all the website directories. I then use my Mac and Coda to edit the files via their sha... | Netatalk is your answer. It can take some time to get to work, because of the encrypted authentication required by newer versions of OS X. It is doable though, and I have done it twice. From my own notes on this - might be a bit messy: afpd.conf must contain [CODE] - the uams_dhx2_passwd module is important, to allow t... | 0 | 1 | 1,473 | 2010-10-19T09:52:19.403 | infrastructure | serverfault.com | |
1,076,374 | Is 'Max Cpu' at 100% normal? | Below are two images from our Azure 'App Service Plan', which hosts our application. We recently tried scaling up, but it did not solve the issue seen below. Our 'Max CPU' peaks throughout the day, everyday..but this is the MAX aggregation. These are transient spikes. Meanwhile, our AVG aggregation of cpu percentage is... | It's aggregation rule, not the actual usage. When metrics are collected, they have (for CPU) a single metric: current CPU load. If metrics are collected 6 times a minute, there are 6 values. When large interval is shown, it's usually does not show all data, but perform aggregation. F.e. if aggregation is down to 10-min... | 1 | 3 | 1,604 | 2021-09-02T03:15:05.200 | infrastructure | serverfault.com | |
242,711 | Strategies for Database Schema Redesign on Un-Normalized Group of Order Tables in Inventory System | Being my first database-driven and SQL powered program, I'd created this more or less on-the-fly, learning as I go.. trying to be cautious- but more or less created with the intent of simply working..little foresight into longevity, stability, dependability, organization -- all the rest. Case in point is an eCommerce s... | An "order" is composed of multiple "items", yes? Well, don't mix the two things in a single table. Similarly [CODE] seems to be a mashup of [CODE] , [CODE] , [CODE] and [CODE] . In general, do not have multiple 'identical' tables. I am guessing that is what is happening for [CODE] [CODE] is limited to only 9999.99, yet... | 0 | 1 | 157 | 2019-07-12T04:04:01.313 | data_quality | dba.stackexchange.com | |
402,620 | For Evolutionary Database Tools like Flyway or LiquidBase, it is better to integrate the tool or left it as a stand alone step in the CI process? | Although I believe my question is language and DB agnostic, I will provide the specifics technologies in this case study because it might help understanding my question (sorry for my English). It's a Java-Spring application to be hosted by several Tomcats with one central postgresql DB whose schema is versioned by migr... | This question boils down to how to handle failures in db and application upgrades, and which one should be done first, in a situation where there are lots of application instances and one shared DB. If it is critical to keep the downtimes as small as possible, I would try to split the deployment into the following step... | 3 | 3 | 251 | 2019-12-17T18:40:13.333 | database_errors | softwareengineering.stackexchange.com | |
5,895 | How to update nodejs on Jenkins master node? | I am in the middle of trying to implement a build/deploy job in Jenkins by which the latest version of source code is pulled from git, built and then deployed to GCP. So far I am able to retrieve the lastest code from GIT but have run into issues when tyring to build. The application being built/deployed is an Angular ... | I would have a look at the Tool Auto-Installation which allows Jenkins to install the tooling you need. Lets you configure tools so that agents will install them on demand whenever running a job that needs them. This could be especially useful when running a large farm of agents in a cloud which all start with a minima... | 1 | 1 | 8,710 | 2019-01-06T14:00:15.537 | pipeline_ops | devops.stackexchange.com | |
337,664 | Number equality / abstraction from precision and representation | I try to have find solution to get away from these heavy problems of number comparisons in Java... at least for numbers in a certain range with a certain precision with certain representation error. The task is to implement an equality check for numbers that are implementing the Number-interface of the java.lang packag... | It's not possible to normalize all Numbers to a binary floating point value. Numbers are a more complicated issue than you seem to recognize. It's not only about "Java having heavy problems", although handling numbers in Java is cumbersome. There's a variety of fundamentally different types of numbers: integers, decima... | 1 | 1 | 170 | 2016-12-06T22:20:43.997 | api_errors | softwareengineering.stackexchange.com | |
444,166 | Connecting to SQL server over the internet | One of my clients has a db that contains their data (this server also host an ASP.NET webshop) and they had me write a program for their client which with they can query their db. My problem is that i was advised not to make the SQL server accessible directly through the internet? What would be the standard practice? S... | The standard practice is to not do it. Either use a VPN / DirectAccess, or use a web service interface. | 3 | 4 | 166 | 2012-10-31T19:24:55.923 | database_errors | serverfault.com | |
988,206 | Listed btrfs mount options are not expected how I did | In my /etc/fstab: [CODE] The output of "mount" is: [CODE] I do not expect the option "autodefrag" and I am missing the option "nodatacow". Is there another possability to find out the active options? OS: debian buster with kernel 4.19.0-6-amd64 and 5.2.0-0.bpo.3-amd64 | Better than mounting with attributes: use the attributes of a subdirectory: [CODE] see: http://man7.org/linux/man-pages/man1/chattr.1.html If the 'C' flag is set on a directory, it will have no effect on the directory, but new files created in that directory will have the No_COW attribute set. This attribute can be ret... | 0 | 0 | 173 | 2019-10-16T08:58:21.297 | infrastructure | serverfault.com | |
101,300 | Unit testing vs Integration Testing | What is the difference between unit testing and integration testing when it come to web development (where 90-95% of the code relies on a database)? One thing I here all the time is that unit testing should not deal with databases and integration testing should. The issue I have with this is that to me that means the o... | Integration testing is about testing the integration points between 2 or more systems, this could be a database, it could be a web service.. whatever it is, it is interaction based, i.e. What happened to my component when it calls a stored proc that does xy and z? Has a web service changed its interface? Unit testing d... | 10 | 7 | 4,722 | 2011-08-15T20:54:03.040 | api_errors | softwareengineering.stackexchange.com | |
133,567 | psql: FATAL: password authentication failed for user "GuardDog_02" | In postgresql 9.5.1, I created a user called GuardDog_02. I gave it a password. And I gave it permissions to create db and user: [CODE] Then under the GuardDog_02 system user (Mac OSX): [CODE] I updated password just to make sure I typed it right: [CODE] Still it says password authentication fails. I checked the pg_hba... | When issuing [CODE] the exact user name created is [CODE] because of SQL case folding. You may check that with [CODE] in psql. But according to that error message: psql: FATAL: password authentication failed for user "GuardDog_02" the username you're trying to log in with is [CODE] (G,D in capital letters), which does ... | 1 | 5 | 10,746 | 2016-03-28T17:49:34.283 | database_errors | dba.stackexchange.com | |
230,243 | Make a DBMS-enforced multi-column "UNIQUE" constraint, with a "match all" wildcard | Well I wonder if I can do the following on database level (instead of server level). We are using PostgreSQL as the SQL flavour. I have multiple columns. Now I wish to make sure each entry into the database has a unique column. Normally this would be a simple [CODE] However in our application "NULL" means not "no data"... | I suggest you fix your design. Using [CODE] as a wildcard is not the best in my opinion. Splitting the table into 2 or 3 so the wildcard information is stored in separate tables would be better. If you keep this design, it will need some complex exclusion constraints, besides the [CODE] one: [CODE] Tested in dbfiddle.u... | 3 | 2 | 342 | 2019-02-20T10:29:48.437 | database_errors | dba.stackexchange.com | |
656,666 | Coldfusion JVM heap vs RAM usage | I need help clarifying memory usage on a CentOS server running Coldfusion/Apache. I've got a script that reads a file into memory and process it line by line, inserts into DB and deletes the file. Not the best process, working on it, but it'll have to do for now. When the file is read it takes up loads of memory, it wa... | Your heap settings configure 4gigs not 2 - that's what the Xms4096m -Xmx4096m are telling you. Perm size adds another 200 megs. your New size (the amount that young gen grabs onto in a single operation) is very high - usually this number is between 64m and 256m - giving generation space to roam up and down the young he... | 2 | 2 | 2,849 | 2015-01-06T15:55:15.910 | infrastructure | serverfault.com | |
162,081 | When 3rd NF is not the best solution? (Performance) | I have 3 tables: [CODE] The problem that I have is that I need to allow end-user to import data via web page into the database and at the present moment due to: INLINE FILE (MySQL) Large Data files 500MB+ I am having to import measurements and records first which takes 50% of the the total parsing (import) time; After ... | It is possible, even inside a [CODE] statement to convert [CODE] to a MySQL [CODE] (or [CODE] or [CODE] ); there are some good examples in the docs. But what if there is a mal-formed date; what do you want done then? In that case it may be better to throw the data into a [CODE] ; move the valid rows to the target table... | -1 | 1 | 159 | 2017-01-24T15:31:55.303 | database_errors | dba.stackexchange.com | |
457,118 | How can I get the real Emailaddress of a recipient? | a user in out Company has 2 mail-addresses on one Exchange-Mailbox. e.g test@... and test1@... the Primary SMTP-address off the Mailbox is test@. If I send a message to test1@, load it using EWS and parse through the TORecipients-Collection there is exactly one emailadress. But the mailaddress EWS gives to me is test@.... | You might be able to get it via EWS using the InternetMessageHeaders property... But I have an easier solution: Create a new distribution-group, and set it's smtp address to you're boss's second address. Make him the only member of the group. Messages sent to that dist-group will be delivered to your boss, but the TO: ... | 1 | 0 | 296 | 2012-12-11T16:53:52.970 | infrastructure | serverfault.com | |
437,551 | creating proper vpn tunnel, when both LANs have the same addressing | I was following this tutorial http://wiki.debian.org/OpenVPN#TLS-enabled_VPN and this one http://users.telenet.be/mydotcom/howto/linux/openvpn.htm to create openvpn connection to my remote LAN. But both examples assumed that both LANs have different addresses (ie 192.168.10.0/24 and 192.168.20.0/24, check out this imag... | You're sunk. All the machines are using the same subnet. How do you propose they would be able to distinguish local from remote hosts? Your only option here would perhaps be some form or port forwarding from the VPN hosts at each site. This would work for a few services, but would be a nightmare to support long term. Y... | 4 | 2 | 16,547 | 2012-10-11T23:11:46.783 | infrastructure | serverfault.com | |
295,311 | Test connection failed because of an error in initializing provider. DBNETLIB ConnectionOpen SecDoClientHandshake SSL security error | I'm running all Windows 2016 Servers. I've got MS SQL 2016 installed on one. For whatever reason, we cannot connect to the SQL Server unless we enable TLS 1.0 which is obviously not cool. I found this: https://github.com/MicrosoftDocs/windowsserverdocs/issues/2783 which talks about how TLS 1.2 should be natively enable... | The built-in Windows drivers for SQL Server didn't get TLS 1.2 support until Windows Server 2019, see KB4580390 . On older Windows you'll have to install newer SQL Server ODBC or OleDB drivers that support TLS 1.2. | 0 | 1 | 12,055 | 2021-07-06T17:01:55.000 | database_errors | dba.stackexchange.com | |
487,886 | My php site cannot connect to SQL Database - SqlExpress2012 | Im quite new to SQL Express 2012, but have just installed it on my server 2008 r2. Im trying to install a CMS called joomla, which I' ve done many times before both on SQL community server and hosted solutions. I can connect to sql server management studio, using windows authetication and SQL authentication with create... | Make sure SQL Server Express is configured to accept remote connections, and verify the port number in use. See: http://blogs.msdn.com/b/sqlexpress/archive/2005/05/05/415084.aspx Also, make sure SQL Express is configured to allow SQL Server authentication (not just Windows authentication), and that the SQL Server accou... | 1 | 1 | 1,376 | 2013-03-14T18:05:13.667 | database_errors | serverfault.com | |
339,200 | haproxy as load-balancer and nginx as webserver? | EDIT: I'm interested in high availability, performance server setup. I read a lot of articles about haproxy vs. nginx vs. apache etc. and this was my conclusion: haproxy is better load-balancer than nginx nginx is better web server than apache So my question is that which setup is better? Using haproxy as load-balancer... | Haproxy and Nginx are not the same beasts : haproxy only deals with the network and never touches the filesystem . It will never serve static content for you. On the other hand, it will perform an order of magnitude higher than any full fledged HTTP server like Nginx and Apache. Haproxy is also a sophisticated load bal... | 6 | 8 | 7,085 | 2011-12-08T23:28:15.943 | database_errors | serverfault.com | |
259,076 | nginx rewrite on specific files | I have a small issue with redirecting two files from location A to location B using nginx. Those files were in a folder folderA and now I want them to be served from folderB. Unfortunately some users know the direct URL so I have to a) redirect folderA to folderB and then do the same for the relevant files. I am using ... | You can try this: [CODE] If it doesn't work, the error log can be of help here. Also remember that the [CODE] line uses [CODE] that includes the folder name. So the [CODE] in the case of [CODE] is [CODE] . | 2 | 2 | 3,742 | 2011-04-13T04:06:31.820 | infrastructure | serverfault.com | |
955,875 | Use of gzip with multiple, sequential nginx proxies | Consider the following server setup on a network: In this example, both of the proxy servers are Nginx servers. If the aim is to reduce load time for the client, should compression be used by the Nginx servers (using the [CODE] directive) at point A, or point B, or both? Is there any theoretical way to determine this w... | Assuming that you're really talking a data pipeline, if you gzip sooner rather than later, the rest of the path just gets to move the more compact data around. If you gzip at both places, the later point should see that the traffic is already compressed and not do it again. But if you have compression turned on at both... | 0 | 0 | 552 | 2019-02-26T23:01:44.260 | infrastructure | serverfault.com | |
312,680 | Storing column for data that doesn't exist for majority of rows | I'm using mariadb. I have a single table that keeps track of [CODE] and [CODE] for a few different sites. I.e. [CODE] [CODE] will exist for ALL sites but [CODE] only exists for [CODE] . Also, SITE3 will be a minority of rows. So does it make sense to arrange the data this way on one table? I'd like to query ALL rows...... | I recommend storing NULL in the [CODE] column on rows where it is inapplicable because the type doesn't need it. NULL is different from an integer 0. InnoDB doesn't store a value in the row for a NULL. So it's pretty low overhead to leave the column NULL on the rows that don't need it. There's a bit stored in the row h... | 3 | 2 | 113 | 2022-05-27T19:16:46.253 | database_errors | dba.stackexchange.com | |
5,865 | Using the name of a table contained in a column of another table? | I have a table called [CODE] with varchar columns named [CODE] and [CODE] , where [CODE] contains a table name and [CODE] contains a key value for the source table. Is it possible in a query to refer to the source table's row assuming I know the name of the key column that matches the value in [CODE] ? Sample: [CODE] T... | The only way to do this is to query SourceID in to a variable and then query the source table. At that point, you're better off pulling both into variablesm like this: [CODE] You want the SourceID to be a string because otherwise you'd need to convert it to one anyway. | 3 | 4 | 11,083 | 2011-09-16T15:06:19.073 | data_quality | dba.stackexchange.com | |
135,544 | Constraint for a unique column if other column has same value | I'm wondering if it's possible to have a column be unique for each value of another column in MySQL. What I'm wanting to have is the same functionality as what a [CODE] would do. Here's the table: [CODE] The data would be similar to this: [CODE] The following would work: [CODE] The following would not work (as there's ... | If I've understood you correctly, what you want is something like this: [CODE] The [CODE] field is the [CODE] and its value is taken care of by the server. A [CODE] on [CODE] ensures no duplicates are allowed - and [CODE] ensures (hopefully) meaningful values. [CODE] Check your table: [CODE] A subsequent attempt to [CO... | 3 | 5 | 4,141 | 2016-04-17T06:29:46.773 | data_quality | dba.stackexchange.com | |
340,680 | More than 8 WAN aliases on routers? | We have a Draytek Vigor 2820 in our office and we have a few servers running websites and email applications. These servers each have their own public ip using WAN aliases that are mapped to their local IP. I am looking to extend our IP block (from our ISP) from 5 static IP addresses to 15. The problem is, I can't find... | I've never heard of Draytek. If you get a midrange router from a major vendor like Cisco, Juniper, Extreme, etc, you shouldn't run into these asinine limitations. You get what you pay for. | 1 | 3 | 542 | 2011-12-13T23:02:27.537 | api_errors | serverfault.com | |
1,035,193 | Apache2 main domain redirecting to sub-domain when port is used on main domain | All of my http > https redirects are working perfectly fine. I have setup a separate sub-domain and port to use with PHPMyAdmin to access a MySQL DB so it is less likely to get be scanned by bots etc. The examples below are very demonstration purposes only. The problem I have is if I enter the port used on the [CODE] s... | personally, I would favour a solution using either a firewall, or ssh port forwarding and localhost, to expose the phpmyadmin service in a secure manner to trusted hosts, and definitely use decent authentication rather than "obscurity security". However to try to answer the question at hand... Because you only have one... | 0 | 0 | 1,690 | 2020-09-24T14:50:45.360 | database_errors | serverfault.com | |
68,667 | Avoid becomming a "Theoretician" programmer | I have found this article in several posts on SO. I find myself falling into the 6th archetype; the "Theoretician". It defines the "Theoretician" as: The Theoretician knows everything there is to know about programming. He or she can spend four hours lecturing about the history of an obscure programming language or pro... | Being a Theoretician by nature, myself, I can tell you that working in an Agile shop will quickly and decisively cure all such tendencies. In particular, an eXtreme Programming operation, with pair programming (ideally rotating frequently), test-driven development, time boxing and bounded sprints, immediately lays bare... | 28 | 21 | 1,677 | 2011-04-15T18:16:40.973 | api_errors | softwareengineering.stackexchange.com | |
283,055 | Apache2 conditional: If local image not found, look in stage server? | I have a stage and dev server. I periodically pull the database from stage to local, but not the images due to lack of write permissions on stage. I know that you can write rewrite conditions for pulling all images from a remote location, but is there any way to tell Apache to first look on local, and if not found, the... | You can use the [CODE] flag in a [CODE] statement to make a rewriterule conditional on whether or not the file exists locally...and then use a proxy or redirect rule to actually make the image available. This does it using a proxy rule: [CODE] This is not actually a tested configuration, but should hopefully point you ... | 0 | 3 | 65 | 2011-06-22T15:20:50.863 | infrastructure | serverfault.com | |
125,119 | ERROR 1044 (42000): Access denied for user 'globacom'@'localhost' to database 'avi_globacomglobacom_data4.sql' | I had created the database with the name globacom [CODE] and grant all the permissions as [CODE] after this I have looged in using this credentials [CODE] when I import the .sql file using this [CODE] I am getting an error as [CODE] please anyone can help me. | You need to use forward slashes for paths, even on Windows. The [CODE] command line is interpreting the sequence [CODE] as a [CODE] command and things blow up. (This quite visible in the error message: [CODE] .) So try: [CODE] Or don't use [CODE] , but shell/cmd redirection instead: [CODE] depending on what's most prac... | 0 | 1 | 2,623 | 2016-01-04T11:21:55.573 | warehouse_errors | dba.stackexchange.com | |
867,898 | Correct place to store key pairs for SSH authentication with VPS (Cygwin and Linux) | I am using Cygwin on windows 10 to try and ssh into my Linux server for the first time. I have a public and private key pair called [CODE] and [CODE] in [CODE] on my local computer. Using WHM I have imported the key pair with 'manage roots SSH keys' and authorized the public_key. The [CODE] @ . . I am trying to log int... | If you want to use a private key called [CODE] in the [CODE] directory, you need to pass [CODE] to your SSH client. (The keys it will try by default all start with [CODE] ) (On Windows, PuTTY might be easier to deal with than OpenSSH under Cygwin...) | 0 | 0 | 4,087 | 2017-08-10T08:52:03.547 | api_errors | serverfault.com | |
421,968 | MySQL too many connections during normal conditions (Percona, InnoDB) | We're getting too many connections errors in normal conditions, so I'm assuming it's a configuration issue. Four webservers, not using persistant connections partly because that triggers to the too many connections error too quickly. See more about PHP and persistant connections at PHP/mySQL: how to debug a 'too many c... | We have a separate database we use for sessions which was configured to use persistant connections from PHP, and that's where the error message was coming from. Turning off persistant connections may turn out to be the answer after all. The above comes from not being able to find anything unusually bad with the configu... | 0 | 1 | 3,223 | 2012-08-28T12:26:20.330 | database_errors | serverfault.com | |
967,643 | Allowing exceptions (whitelist) through Google Cloud Platform IAP | My GCP project has an instance running a Jenkins server behind an IAP -protected load balancer. Adding the IAP protection has caused me 2 related issues that I didn't manage to resolve (and I guess both could be resolved in a similar manner): I used to have a physical Jenkins slave (that must be physical as it's connec... | So the top answer here is basically what you're after. I have a separate small VM with an Nginx Reverse Proxy that is solely used to handle webhooks. It routes to the same Jenkins Backend as my Google IAP load balancer. I'm using GitHub for my webhooks but I imagine it probably works similar for Bitbucket. Actually, I ... | 3 | 1 | 1,808 | 2019-05-16T16:52:41.560 | pipeline_ops | serverfault.com | |
327,584 | Execute Permission Denied on Stored Procedure using Microsoft JDBC Driver and Windows Authentication | I have a Microsoft SQL Server database that I use Stored Procedures to read/write data to through a Integration Engine in this case InterSystem IRIS. Originally I was using a local server user to do the execution, but for security purposes it was requested that I start using an Active Directory/Windows Authentication u... | First of all try to reproduce the problem. Run SSMS as different user (your service account) or start it with runas utility If you got the same error - just grant permissions If you cannot reproduce it, start extended events or profiling your session to figure out what account actually connected. | 0 | 0 | 258 | 2023-05-26T13:34:36.183 | database_errors | dba.stackexchange.com | |
736,158 | Necessary to delete computer account from AD before rejoining to the domain? | What is actually stored within the computer account in AD? There always seems to be issues that crop up once and awhile where leaving and rejoining the domain seems to fix them. Up to this point i've been removing from the domain, deleting the computer account in AD, and then rejoining. Is deleting the computer account... | No, resetting the computer account should accomplish the same end result. | 1 | 1 | 3,329 | 2015-11-13T15:01:06.997 | infrastructure | serverfault.com | |
193,916 | Two user folders under documents and settings | Currently I have a terminal server setup on windows 2003 server. Recently I have had 2-3 users login and it creates a new user for them under documents and settings that has the domain suffixed. I tried to delete the old user directory (without the domain suffix), but it says ntuser.dat is in use. Does anyone know why ... | It creates a new one when it can't access the old one - if the permissions are wrong, for instance, and if it can't make a new one with the same name then it adds .DOMAIN to the end. The old ones are almost always in use because of Windows keeping the user's registry settings loaded, and a reboot is needed to clear the... | 0 | 2 | 939 | 2010-10-22T16:44:01.343 | data_quality | serverfault.com | |
219,819 | How to queue work orders by date and priority? | In my organization I work on orders based on date, so earliest work orders first. We also have an option for order to be marked "priority" in which case those orders are done first but not always. I've asked my boss some questions and I couldn't get answer that made sense... If one order has today's date, and another o... | As the priority marker doesn't always shift the items to the very front of the queue, you first need to find out by how many days the 'effective due date' shifts for priority items (my guess is that this would be somewhere between 2 and 5 days). Once you have that information, you can have a class with three properties... | 1 | 2 | 919 | 2013-11-29T01:28:21.130 | api_errors | softwareengineering.stackexchange.com | |
730,199 | Rsync with ssh and root not working after change hosts IP | We have a server that backup multiples servers. The backups server is located in the office and all other server in the cloud. We have moved all the server to a new IP, and from this moment the backups stopped. . In the hosts we have authorized the new IP in the rsync.conf (hosts allow = new IP ) and also in ~/.ssh/nan... | We discovered the problem! We make Rsync with ssh and root. It seems that the .bachrc in the host server has an echo, and that's what gave failures (after server migration to a new server with new OS installation): rsync: server sent "****************this is the echo**********************" rather than greeting rsync er... | 2 | 0 | 4,111 | 2015-10-20T12:13:02.833 | database_errors | serverfault.com | |
237,247 | Possible make mysql faster | Process 3 Million rows data for every 5 minutes. Data flow: LoadData from network to tmp table. Do some kind of group up and save to ~10 different table. Max 7 session running for saving data to different table at the same time. What I tired. Create 100GB memory disk with /etc/fstab. [tmpfs /mnt/ramDisk tmpfs size=100G... | For Mysql memory engine is fixed length 8.0 no longer converts [CODE] to [CODE] Have you shrunken all the datatypes as much as practical? Have you gotten rid of redundant/unnecessary indexes? What steps are happening in the ETL process? Is the ingestion single-threaded or multi-threaded? This has some tips on such. Cre... | 1 | 0 | 706 | 2019-05-02T19:24:42.090 | database_errors | dba.stackexchange.com | |
194,790 | Replicating content between USA and Europe webservers | I am making a website with dynamic content including users registering and updating content. The challenge is that the users both exist in USA and Europe. The way I understand it, is that if I got a webserver in Europe, USA users will probably get at slower experience than the users in Europe. I expect the intial visit... | If you have the cash, content delivery networks (CDN) such as Akamai can do that for you. | 1 | 1 | 156 | 2010-10-26T10:23:47.600 | infrastructure | serverfault.com | |
201,655 | Cyclical / rhythmic disk I/O statistics: (activity increasing monotonically) | I have got a unique problem with one of my servers. The disk I/O statistic is consistently increasing for last couple of weeks. See this graph from Munin: From Linode's dashboard, I see a more fine-grained picture of disk I/O. Here is the cyclical / rhythmic graph (a day's interval). But do note that even though it app... | Wild shot in the dark, since I have no idea what your server is doing: Is your server a web server? Perhaps it has a frequently visited page which logs accesses to regular text file (or, perhaps, SQLite backend?) and a PHP script parses this file during every page load & records to visit to this file? Then this file gr... | 1 | 1 | 283 | 2010-11-14T09:03:47.207 | database_errors | serverfault.com | |
82,305 | Please help me decide which ms cert I should get and when | I'm looking to get some training and certifications but I'm having a bit of a difficult time deciding on which cert(s) to get and when. Right now my company is running windows server 2k3 and exchange 2k3, so I've been studying and practicing (with a home server) in that environment, but there's 2 problems with this: Th... | Many places still have a random Windows 2000 server still around. Getting your 2003 MCSE isn't going to make you look horribly out of date. Once you get your MCSE on 2003 there is an upgrade path to 2008. http://www.microsoft.com/learning/en/us/certification/mcse.aspx#tab4 Getting a more advanced degree is always an op... | 0 | 1 | 133 | 2009-11-06T18:35:40.537 | infrastructure | serverfault.com | |
389,832 | CentOS 6.2 Installation issue: insufficient memory to config kdump | I have a problem running CentOS after fresh installation of v6.2. It showed me "insufficient memory to config kdump" error (I have Please help me solve this. | When I did a fresh install of CentOS 6.2, I was asked to enable kdump at the default 128kb. I checked the box. I have tried it with the immediate restart and without it. Either way, on the next boot, if I escape the GUI splash screen or boot at runlevel 3, I get a [CODE] for kdump, but everything seems to work fine. Ov... | 1 | 1 | 3,977 | 2012-05-16T21:35:49.207 | infrastructure | serverfault.com | |
608,109 | Show a 503 error page if server unavailable | I've searched through google, stackoverflow and serverfault but I'm not quite sure how to phrase what I'm looking for, sorry if this is a duplicate (it probably is)! What I would like to know is if its possible to do the following: I currently have access to two different servers (droplets) with Digital Ocean under two... | You can't do it without an additional device. You need to have something upstream which is fielding the requests and passing them on to the relevant servers. When it detects that something has gone away then it returns the 503. | 0 | 4 | 2,067 | 2014-06-26T12:29:18.347 | database_errors | serverfault.com | |
885,786 | AWS EC2: How-to recover data from a failed linux instance having a logic volume comprising of multiple storage volumes? | My question is related to AWS EC2 platform wherein I have a Linux instance with one root volume and data lvm volume (unencrypted and created using lvcreate & of file system XFS) comprised of 4 volumes. Now, I have created snapshots for individual volumes but I was wondering if and how it would be possible to see its da... | Yes, you will need to restore each snapshot to a new EBS volume, and then attach the root and data instances to a new EC2 instance. The instance will boot with the root volume from the snapshot, and should be able to reassemble the disks into your working volume. | 2 | 2 | 501 | 2017-11-29T16:14:15.780 | infrastructure | serverfault.com | |
52,428 | How do I monitor PostgreSQL WAL shipping if I'm not using streaming replication? | We have a fairly simple setup to replicate from our on-premise master PostgreSQL database to our presentation tier in AWS. We're using WAL shipping using the [CODE] setting. Basically the setup looks like this: [CODE] This setup seems to generally be fairly robust, but I haven't come up with a good way to detect failur... | Here are a few ways: Compare [CODE] on the primary with [CODE] on the standby. That will give you the lag in bytes, which might not be very useful for alerting, but it can be useful to chart it. Monitor [CODE] on the standby against the current time. Have a cron job on the primary periodically modify a value and then c... | 7 | 5 | 1,384 | 2013-10-29T16:33:24.157 | database_errors | dba.stackexchange.com | |
303,376 | PostgreSQL INSERT INTO 4 million rows takes forever | I use Postgres 14.1 on Windows 10 for development and I have little experience with Postgres. Recently, I wrote an [CODE] query to copy records from one table to another. The source table has less than 4000K records. The problem is that the query takes forever to run in [CODE] and hits timeouts in my app, no matter how... | If [CODE] is among the columns to be inserted, the best solution would be to use [CODE] : [CODE] That requires a unique constraint on [CODE] . | 2 | 1 | 2,691 | 2021-12-01T17:07:01.193 | data_quality | dba.stackexchange.com | |
595,060 | sharepoint 2013 upgrade From wss 3.0 | I am in the middle of a TFS2010 with WSS3.0 upgrade to TFS2013 update2 with Sharepoint2013 SP1. I have successfully upgraded the content databases from WSS3.0 to Sharepoint foundation 2010. But in the Process Microsoft support fiddled around with some of the errors going from Sharepoint 2010 to Sharepoint 2013 now as I... | I had to rebuild each of the web applications | 1 | 0 | 237 | 2014-05-14T13:52:30.487 | infrastructure | serverfault.com | |
202,784 | Avoiding the Anaemic Domain - How to decide what single responsibility a class has | Even after reading a bunch I'm still falling into the same trap. I have a class, usually an enity. I need to implement more than one, similar operations on this type. It feels wrong to (seemingly arbitrarily) choose one of these operations to belong inside the entity and push the others out to a separate class; I end u... | Since we're talking about SRP, I think it's a good idea to dissect exactly what a responsibility can mean in the context of an entity. To me their responsibilities come in 2 kinds : Primary responsibilities of an Entity Identifying itself Composing itself with objects given to it (adding sub-entities/value objects etc.... | 5 | 5 | 1,204 | 2013-06-26T09:26:22.053 | data_quality | softwareengineering.stackexchange.com | |
154,615 | Are unit tests really used as documentation? | I cannot count the number of times I read statements in the vein of 'unit tests are a very important source of documentation of the code under test'. I do not deny they are true. But personally I haven't found myself using them as documentation, ever. For the typical frameworks I use, the method declarations document t... | They're NOT an ABSOLUTE Reference Documentation Note that a lot of the following applies to comments as well, as they can get out of sync with the code, like tests (though it's less enforceable). So in the end, the best way to understand code is to have readable working code . If at all possible and not writing hard-wi... | 32 | 30 | 9,572 | 2012-06-28T07:32:23.203 | data_quality | softwareengineering.stackexchange.com | |
14,441 | Full Outer Join in MS Access | I have two staff lists: [CODE] and [CODE] And I need the following output: [CODE] Notice that the staff IDs from List A and List B have been merged into a single, non-repeating list, and that I have merged the two supervisor details which may not match between the two lists. Query doesn't have to be nice. I have ~8000 ... | The last time I played with Access was when 2003 was the hot new thing, so this may not be entirely accurate to every detail. However, what you need to do is go to the query designer, change the view to "SQL" (i.e. raw text entry) and then you want to [CODE] your two left-join queries together, e.g. [CODE] | 11 | 10 | 40,577 | 2012-03-06T00:52:23.680 | warehouse_errors | dba.stackexchange.com | |
178,019 | Why does this loopback device creation malfunction? | The stackoverflow people thought this was more appropriate here, I put it there as it is part of a program but I can see their POV, so here it is: At the bottom of the code you can see it failing. In fact, I'll put it here at the start too because it is the problem I need to solve: [CODE] I don't understand why the dev... | From the first sight sizelimit variable is calculated incorrectly, thus target read-only loop device exceeds the size of /dev/sdb2 device. The result of [CODE] is 78001344 and it should be used during loop device creation to resolve the issue. | 1 | 1 | 1,545 | 2010-09-04T06:42:14.153 | infrastructure | serverfault.com | |
41,124 | Windows explorer (filename) string corruption when using remote desktop? | Has anyone else experienced this problem? While browsing folders in explorer over a remote desktop connection, sometimes the file name strings will get corrupted, so they display incorrectly in windows explorer. Remote desktop (or terminal services) must have some kind of graphical cache for strings, which is being cor... | I've absolutely seen what you're describing in RDP sessions to Windows Server 2003 machines. I've been unable to repro the bug and I've probably only seen it 20 - 30 times (out of thousands of RDP sessions), but I've definitely seen it. I've seen this both in a window and full-screen. I've almost always used the "Low-s... | 5 | 1 | 3,499 | 2009-07-15T16:43:03.633 | data_quality | serverfault.com | |
268,013 | How to make max-heap stable with counter and account for counter overflow? | Generally I need size-efficient data structure similar to [CODE] but stable (preserving order of insertion). By adding just 4 bytes to the object I could have 1 byte serving as priority and 3 bytes as counter to keep the order of insertion. Closest competitor - [CODE] - would add an overhead of 5 bytes (in practice 8 d... | I don't think there's any good way to fix your overflow problem with the constraints given. Renumbering your heap periodically means a stop-the-world housekeeping operation, which I reckon needs O(n log n) time without extra allocation, or perhaps O(n) time with O(n) temporary space. Note that if O(n log n) stop-the-wo... | 3 | 2 | 887 | 2015-01-04T16:45:27.573 | pipeline_ops | softwareengineering.stackexchange.com | |
187,836 | How to document events? | Code documentation is usually related to a piece of code, be it small (method-level) or larger (class- or namespace-level). However, it is always about the inputs and the outputs of that piece of code, possibly describing its behavior and caveats. It doesn't make much sense to document events fired by a class in the me... | It belongs in side documentation, which is usually called a reference . Such documentation, as you outlined it, doesn't belong to the class/method documentation, so the best place is to have dedicated documentation for them. For exemple, take a look at how Symfony2 documents its exposed internal events: http://symfony.... | 6 | 2 | 2,425 | 2013-02-21T09:42:54.690 | data_quality | softwareengineering.stackexchange.com | |
42,993 | Mysql settings for query_cache_min_res_unit | What is the best setting for [CODE] for these results: [CODE] Do I need to change any other settings? My website creates very large results. This is the current setting: [CODE] Info on the mysql dev website If most of your queries have large results (check the [CODE] and [CODE] status variables), you can increase perfo... | Observations Your question says you have 426870 for [CODE] . Since each block is 1K, blocks are aligned to the nearest multiple of 1024. Thus, your query cache has about 417M. If you divide [CODE] (7128902) by [CODE] (49557287), this shows that about 14.4% (1 out of 7) of your queries could not be cached. ( [CODE] (426... | 2 | 2 | 4,360 | 2013-05-24T13:08:14.147 | database_errors | dba.stackexchange.com | |
27,832 | Query Optimizing Request | I am very sorry if this question is structured in not a very helpful manner or the question itself is not a very good one! I need to [CODE] a [CODE] [CODE] call [CODE] every 10 minutes based on information from another [CODE] call [CODE] I have nearly 60000 records in [CODE] and more than 10000 records in [CODE] I wrot... | I am not sure your logic behind those joins but some part of the query can be optimised as; (for ex; [CODE] of your first [CODE] does not make sense at all as [CODE] 18`) EDIT: Sub query brought back in with some optimisations. Syntax looks alright now. [CODE] | 0 | 2 | 72 | 2012-10-27T10:48:09.323 | database_errors | dba.stackexchange.com | |
415,562 | Windows Disk Management tells me "Disk is not initialized." What does that mean? | I have a disk I need to recover, but the problem is that when I connect it via USB to my Windows, machine, Disk Management tells me [CODE] . When I try to initialize the disk, either in [CODE] or [CODE] format, I get an [CODE] error. First, how can I reinitialize the disk, and second, how do I recover the data I need? | Well, "Initializing" your disk is going to format it. So you probably don't want to do that. What you want to do is restore from the backups you took. But since you don't have backups, your options are trying to get a block-level copy of the disk, if you can, and then pulling your hair out to recover data from that, or... | -3 | 2 | 206 | 2012-08-08T15:09:04.383 | infrastructure | serverfault.com | |
189,144 | What is the correct method to pass range of dates to a SQL Server 2016 temporal table query where you need a set returned for each day? | I have a SQL Server 2016 temporal table query that I’m having a hard time figuring out an efficient way to write. Let’s say I have a temporal table called [Users] that each day has the total body of users in a group. Each day users can have a status of ('A', 'B', 'C', 'Y', 'Z') If you wanted to select the current versi... | While [CODE] allows the use of literals and variables, it apparently does not allow you to use a correlated query to pass in different dates from something like a date dimension table. With that in mind, here is a solution that uses a multi-statement Table-Valued User-Defined Function (TVF). It takes in a StartDate and... | 2 | 0 | 1,153 | 2017-10-23T21:06:15.120 | database_errors | dba.stackexchange.com | |
272,011 | Reinstall file from RPM? | So I need to install the original /etc/pam.d/system-auth-ac file from the authconfig RPM. I attempted to do so by "reinstalling" the authconfig package/rpm like so: [CODE] The files are not re-installed though. What needs to be done to get yum to reinstall the files? UPDATE: Did an strace on the yum install and it appe... | Try this: [CODE] EDIT: Try this: [CODE] | 2 | 3 | 1,665 | 2011-05-20T17:59:51.453 | infrastructure | serverfault.com | |
255,446 | How can I simplify the following Access Control system design? | I couldn't find a better title for this... I am trying to create an Access Control for my application and I am having serious trouble with building not an insane system, mainly for performance as this system will reside in an SQL database and will be used excessively throughout the app (every query will be using it for... | ACLs (also sometimes known as IBAC or Identity-based access control) and RBAC (role-based access control) are not enough as you found out through your use case. The reason is: you are using additional metadata or attributes. Attributes are simply key-value pairs for instance the ownership of a photo, the nature of the ... | 1 | 1 | 740 | 2014-09-05T07:25:34.523 | api_errors | softwareengineering.stackexchange.com | |
1,122,671 | Grafana "Data source connected, but no labels received. Verify that Loki and Promtail is configured properly." | I'm trying to install loki so that I can read logs on Grafana, but I keep receiving [CODE] (nothing from the logs). I'm using docker images for each service (grafana, loki, promtail) on a Raspberry Pi 4 8Gb. Each service are working properly. I can connect to Grafana ( [CODE] ) and see node_exporter data. I can connect... | I forgot to add the journal/syslogs volumes. In fact, everything was working, but promtail had no data to send. Make sure to read the [CODE] file (located by promtail's config). | 0 | 0 | 7,749 | 2023-02-12T13:31:02.797 | bi_errors | serverfault.com | |
322,159 | Grouping results belonging to the same product number into the same record | I have a very long query that I have shortened and anonymized so the problem becomes clearer. Here is an approximation of my query: [CODE] " Current Output ": ProductNumber anotherInfo label_a label_b label_c 10001 (correct result) example1 10001 (corrrect result) example4 10001 (correct result) example6 10002 (correct... | You need to apply aggregation in the subquery to have a full pivot: [CODE] aggregate function will allow you to get the only non-null value " productNumber " in the [CODE] clause will allow you to do it for each distinct productNumber. [CODE] | 1 | 1 | 32 | 2023-01-16T16:52:17.377 | database_errors | dba.stackexchange.com | |
725,476 | Create an Ovirt cluster Node first, Engine later | this is the current state in my company - non relevant details omitted: we have a production server which hosts a CRM in a VM using virtualbox. Let call this server "SMALL" as it is a small tower server. I can not switch off such a server until I've migrated/rebuilt the VM in a new server. We have no experience with vi... | If you can afford downtime, why not simply backup the VM, install oVirt and restore the VM into an oVirt based VM? Also, if the "small" box is going to be the engine, you can simply install the engine on it while the original VM runs in vbox, attach the "big" box as a host, and then move the VM into oVirt. Another opti... | 1 | 1 | 1,096 | 2015-09-29T08:39:25.300 | infrastructure | serverfault.com | |
753,876 | Ending Session when user disconnects from RDP Server Windows 2008 | I'd like to start by saying that I am by no means a server administrator of any kind. Basically I know the most about computers so now I get to figure this out. Our company has a RDP server that 5 users connect to remotely. It is not a Domain Controller (No Active Directory). My problem is when users disconnect from th... | When you go to Event Viewer and navigate to: [CODE] -> [CODE] -> [CODE] -> [CODE] and open [CODE] you will find event 24 in Microsoft-Windows-TerminalServices-LocalSessionManager which will state [CODE] We can use this as a trigger to a delayd task in task scheduler to run a script that resets all disconnected users an... | 3 | 1 | 2,248 | 2016-02-03T23:54:48.633 | infrastructure | serverfault.com | |
16,615 | Sql Server Resource Governor - track IO | I know I can use the performance counters to track Resource Governor CPU and Memory Usage. Is it possibly to track the I/O usage for each work load group? I haven't seen anything specific or any recommended practices. | Resource Governor does not manage I/O, it is just system resources for CPU and Memory. Therefore, I don't believe there would be any way to get I/O per workload group. Quote from BOL on Resource Governor : Resource Governor enables you to specify limits on the amount of CPU and memory that incoming application requests... | 1 | 5 | 158 | 2012-04-17T13:32:12.787 | database_errors | dba.stackexchange.com | |
200,941 | Recommendation of Data Recovery Company | Have a customer that temporarily moved his work to a 2.5" WD Passport drive without a problem. Long story short drive no longer mounts on any computer. Issue is that he has a current project there. Windows does not mount drive and OS X says "The disk you inserted was not readable by this computer." Any recommendation o... | We just used Secure Data Recovery to recover our Exchange Database when 2 out of 3 drives in our RAID5 array failed overnight and our backup was worthless. It was expensive, and took a few days, but they successfully recovered all our data with no Exchange corruption. So that was awesome. They did require a wire transf... | 0 | 1 | 228 | 2010-11-11T21:59:07.540 | infrastructure | serverfault.com | |
161,870 | /dev/disk/by-uuid not showing all disks | I am working with local storage repositories on an installation of XenServer and I am trying to use the UUID to delete a SR made in error. When I look at the disks by-id here is the output: [CODE] However, when I look at the disks by-uuid, it does not show /dev/sdb or /dev/sdc: [CODE] Why is this happening? Do I have t... | Are there file systems created on those partitions on sdc & sdb? Disks don't have UUID values, file systems do. For example: [CODE] Swap can also have a UUID: [CODE] Have you created valid File Systems on those partitions? | 4 | 2 | 11,071 | 2010-07-19T15:49:53.650 | infrastructure | serverfault.com | |
297,923 | How to store a table with 1000+ columns, which are mostly null | Today I have to restart a projet and due to a specificity of the business (real estate), I will have to store a table for house/apartment/hangar/wahetever. But a single row can contain more than 1000 criteria, and thus, columns (does it have a pool? a fireplace? an helipad, an underground bunker? etc... But as you can ... | But a single row can contain more than 1000 criteria No, you are predicating your data design on a flawed relational model. Putting the cart before the horse. The tail is wagging the dog. I think you mean that a single entity can have 1000 attributes. In such a scenario, and particularly when most are null, the best so... | 0 | 6 | 375 | 2021-08-11T19:16:49.990 | database_errors | dba.stackexchange.com | |
211,145 | Link DAX OpenQuery Output to SQL Server Temp Table | I want to record measures from a Tabular model, as KPIs, and store the values in a table in SQL Server. I have created a linked server from my SQL Server instance to my SSAS instance. I have written a stored procedure to execute the DAX code via [CODE] , with the intention of storing these in a temp table, before loadi... | If a column name has brackets, you need to escape them. You can see how if you use function [CODE] . [CODE] Note the extra closing brackets. You should try adding an extra pair of enclosing brackets together with an additional closing one for your column names that include brackets. Assuming that your problem is [CODE]... | 0 | 1 | 986 | 2018-07-02T14:14:44.933 | database_errors | dba.stackexchange.com | |
385,200 | Should BDD/Gherkin be used only for user visible behaviour? | We're a small team of 3 senior and 1 junior developers and I've been tasked with introducing BDD within our development process. To say there's a lot of confusion about BDD is an understatement and it's appearing within the team after I created some scenarios for user based behaviour. My understanding of BDD is that it... | BDD as a practice goes beyond just "feature files in gherkin syntax". The big thing that it drives towards is having a shared language between developers and users. Another benefit tends to be that, as more steps are defined (complete with the binding code between the feature and the application code), new feature desc... | 1 | 2 | 212 | 2019-01-09T16:07:24.140 | api_errors | softwareengineering.stackexchange.com | |
648,180 | How to block cslisnter on centos 6.5? | I have a centos 6.5 machine running a java server socket on port 9000. All these while it have been running well and suddenly when I tried to start it using this command java myService nothing seems to work. Below are some commands I tried to find why its not running. [CODE] Also I run this command to find below result... | Under Linux/Unix generally only one application at a time can access a TCP port. If you have something listening on say port 9000, then try to run something else on that, the second application will refuse to start up. In your case, you need to identify first, what the application is that's listening. Before I start li... | -2 | 0 | 1,051 | 2014-12-01T10:40:11.810 | infrastructure | serverfault.com | |
154,225 | Standards & compliances for secure web application development? | I am working with developers right now that write code the way they want and when i tell them to do it other way they respond that its just matter of preference how to do it and they have their way and i have mine. I am not talking about the formatting of code, but rather of way site is organized in classes and the way... | There are wide variety of these standards and each BIG Player in software business has it's own guidelines. The approach and methodology on application security may vary or have common aspects depending on chosen development platform. As a good solid start you may look at the following articles for thought: WEB ARCHITE... | 0 | 2 | 1,441 | 2012-06-26T00:21:53.597 | database_errors | softwareengineering.stackexchange.com | |
300,242 | Dovecot error ChgrpNoPerm | Today I installed Dovecot from source and after configuration and some testing I got error ChgrpNoPerm, which is described here . After reading and misunderstanding I recursively chmod-ed /var/spool/mail/ (mail directory) to 777 and I haven't got any error anymore. Was chmod-ing directory bad solution? Here is my confi... | Actually the correct permission on /var/spool/mail is: 1777 owner: root group: root The addition of the sticky bit on the mail directory prevents users from deleting each others mailbox. | 0 | 1 | 225 | 2011-08-11T19:53:37.517 | infrastructure | serverfault.com | |
1,027,280 | VSS backup acess is denied WinServ2016 | On my windows server 2016 I userd disk2vhd for backups, but for some reason last backups that disk2vhd created in last time was invalid. Disks works ok and whole system too. So I want to make backups with VSS, I created vss snapshot mounted it as disk S: and tried to copy files from it via xcopy /E /H /R robocopy /xj /... | I still don't know why my cmd can't get access. Workaround that I found is use any other app like total commander, Salamander, 7zipFM,Cygwin with elevated rights and it works ok. UPD: Also if you want even more ritghts you can use PsTools psexec.exe -s -i cmd.exe and you'll get Local SYSTEM user account rights. BTW: on... | 0 | 1 | 178 | 2020-07-30T06:58:59.480 | database_errors | serverfault.com | |
968,253 | vmware ovftool: cURL error: couldn't connect to server | Using vmware's ovftool to export/backup virtual machines from an ESXi 6.7 host fails with error [CODE] , even if the specified password and the FQDN/IP of the server is correct and has no typos. The command I used was [CODE] | Simply use [CODE] followed by the hexadecimal value of the corresponding ASCII special characters. A full list of hex values as a substitute for ASCII characters can be found in a Cisco appendix: ASCII Character Set and Hexadecimal Values Example: A password like [CODE] needs to be converted into [CODE] before insertin... | 1 | 1 | 4,711 | 2019-05-21T16:30:19.893 | database_errors | serverfault.com | |
238,039 | MySQL: columns with mixed character encodings, and finding columns which have multibyte data | I have some rather large CSV files that I am loading into my MySQL 5.7 database. The files are several gigabytes in size, several million lines long, and have large column widths that must be used in joins (sometimes as long as ~500 characters). The data is all standard English characters, and most of the columns can f... | The data size is not 4x. English text, even in utf8mb4, takes only one byte per character. Trademark(etc) symbols are multi-byte. Then ones you mentioned are only 2 bytes. Emoji and some Chinese is where 4 bytes become necessary. Don't create indexes on large columns. Don't create indexes until you have the queries -- ... | 0 | 1 | 586 | 2019-05-13T16:25:37.433 | database_errors | dba.stackexchange.com | |
111,701 | CommunicationException when shutting down JBoss 4.2.2 | I have deployed an application using JBoss 4.2.2 on a 64-bit RHEL5 server. Since there are other JBoss servers, I had to change some port configurations so that there would be no conflicts when starting the server. So right now I'm using ports-01 from the sample-bindings.xml file that came in the docs/examples/binding-... | Shutdown.sh launches a separate java program that sends a JMX request to the jboss server process. It doesn't reference any configuration files to discover the new port, it just assumes the defaults. (how could it? you're not passing it your configuration directory) So to connect to your jboss server running on the non... | 1 | 0 | 2,623 | 2010-02-10T21:26:47.180 | dbt_errors | serverfault.com | |
162,077 | Old dell workstations need to have XP reinstalled but there are no restore disks; Besides ordering restore disk what is the best option? | All of the workstations are XP Pro oem from Dell. I need to reinstall XP and all I have access to are the MSDN copies of XP. I found a page on Dell's website where they would send you a free copy of a reinstall disk for what ever system. I tried to do that but I just got an email saying the system is too old (~5 years)... | Windows XP has three kinds of product keys: OEM product keys, which will activate once, and are tied to specific hardware, Retail product keys, which come from discs bought in stores or purchased online, and Volume License product keys, which large businesses use to activate their machines. Since Dell preinstalled Wind... | 1 | 5 | 1,682 | 2010-07-20T05:17:32.770 | database_errors | serverfault.com | |
190,186 | Troubleshooting SQL connectivity issues after database migration | We have a just completed a migration from SQL 2000 to SQL 2008 R2 and have started to intermittently receive SqlExceptions with the following two error messages: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - The semaphore timeout period has expired.) A ... | We have tracked down and fixed this issue in our environment. The description as I understand it is below (please excuse potential inaccuracies below; This is the way I (as a software developer) understand the descriptions given to me by our Network Administrator (who also was working with our hosting company). The cau... | 6 | 4 | 16,441 | 2010-10-12T17:36:40.880 | hadoop_errors | serverfault.com | |
919,538 | Do not start guest after virt-install | I like to set up a new guest but do not want to start it immediately. I use [CODE] with these options: [CODE] But [CODE] will always start the VM. I can not find any option in the man page to disable the automatic start. I would rather not call [CODE] right after the install, although the VM will probably not be booted... | The [CODE] option to virt-install might get closer to what you want. You could then feed the XML it prints into the [CODE] command to create, but not start, the guest. Alternatively checkout the [CODE] tool which is simply a friendly way to build up an XML document from args like those you'd give to virt-install | 2 | 6 | 7,100 | 2018-07-05T07:16:22.420 | infrastructure | serverfault.com | |
718,877 | How can I set up sendmail to use CRAM-MD5 authentication? | I have sendmail running on a RedHat 7.1 machine. I want to configure it to authenticate using either PLAIN or CRAM-MD5. I have it working with PLAIN (so I know the client works, I have the username/password correct, etc.) but CRAM-MD5 always returns "535 5.7.0 authentication failed". For testing I'm using a simple pyth... | According to the sasl sysadmin doc , [CODE] However, some vendors may change the location of things at compile time, so [CODE] on the sasl binaries or [CODE] may be necessary to reveal where exactly [CODE] is looking. | 2 | 3 | 2,625 | 2015-09-03T15:28:14.767 | api_errors | serverfault.com | |
534,407 | Mysql 5.5 crash on Debian 6 - won't start because of corruption | After a server crash my mysql dB crashes. During startup it produces 36,000 lines in syslog, and I have no idea how to repair this. I had master slave replication setup , but I have no idea what to do with the slave. The databases contain email server records and no one can use Email anymore. The versions are : [CODE] ... | It looks like the tables have serious corruption. At this point, you'd need to restore them from backup or import the dumps that you were able to get. You do have backups, right? | 0 | 0 | 191 | 2013-08-28T10:00:42.677 | data_quality | serverfault.com | |
516,244 | Shorewall blacklist not working | We are getting dictionary attacks to our SQL server, So I wanted to block some of the IP's using shorewall blacklist. I mentioned the IP in /etc/shorewall/blacklist as [CODE] did not work, So I tried again like below but again it's not working [CODE] I have this configuration BLACKLIST_DISPOSITION=DROP, and I am using ... | Typically, a better strategy in this case is to be proactive. There is very rarely a case under which it is necessary to expose a SQL server to the entire public Internet; consider using a VPN or a firewall to restrict access to only those hosts (or networks) that have some reason to be connecting to it. If the host or... | 0 | 3 | 1,852 | 2013-06-17T06:23:04.833 | database_errors | serverfault.com | |
181,543 | Why does SQL Server not do compound column statistics histograms? | SQL Server has a thing called "multi-column statistics", but it's not what one think it would mean. Let's take a look at the following sample table: [CODE] With that, two statistics are being created on the two indexes we have: Stats for BadIndex: [CODE] Stats for clustered index: [CODE] (I've populated the table with ... | Background The current SQL Server model only uses single-column histograms and multi-column density information. Single column histograms are used to estimate selectivity for suitable predicates e.g. [CODE] or [CODE] . A query with multiple predicates simply combines the individual selectivities (with assumptions) to p... | 12 | 11 | 1,869 | 2017-07-23T10:46:02.723 | hadoop_errors | dba.stackexchange.com | |
630,693 | How does CoreOS migrate Docker containers, when Docker volumes are in use? | I'm just learning how to use CoreOS and already ran into the first problem that really keeps bothering me: When using fleetctl to start and manage units, I learned that a unit is moved automatically to another machine, when the machine chosen to run the unit reboots or becomes unreachable to the cluster for another rea... | I guess for now it's your responsibility to make sure data is available. You might want to check https://github.com/ClusterHQ/flocker which is specifically designed to take care to take data along with docker containers. I think it relies on ZFS features which may rule out its usage on CoreOS. The only alternative I co... | 2 | 3 | 2,678 | 2014-09-23T20:22:08.280 | pipeline_ops | serverfault.com | |
202,274 | dbatools, DbcCheck LastBackup | Last week I started testing [CODE] on my test system. I found one strange thing, and I have no idea what is the problem, last fullbackup is few hours old, but dbccheck print an error. Following you can see my steps: installation dba checks based on the blog from chrissy lemaire (thank you chrissy,for that great job) ch... | I am going to assume that this database ( AdminDB ) is newly created and newly backed up? There was an issue created for this as new databases were failing these tests. https://github.com/sqlcollaborative/dbachecks/issues/207 A new configuration was created " policy.backup.newdbgraceperiod " (defaulting to value 0 for ... | 1 | 2 | 306 | 2018-03-26T12:56:35.880 | database_errors | dba.stackexchange.com | |
150,330 | Set origin for forwarder based on virtual domain in Postfix | I currently have a machine set up to operate with two domains. The main name uses the standard Unix-user delivery, and the second domain is entirely virtual (using [CODE] and [CODE] ), with the second domain only forwarding mail. However, when mail is forwarded, it still appears to be delivered by the host of the prima... | It is generally not a good idea to fake the hostname. What's your problem with having the client name at something different than the email sender domain? Normally it's totally fine to let the hostname at the primary IP address/DNS name. If you really know what you're doing then read ahead. Otherwise let it the way it ... | 2 | 1 | 336 | 2010-06-11T05:34:41.333 | infrastructure | serverfault.com | |
189,840 | Help with OpenVPN setup on Windows Server 2003 | Just wondering if someone can assist me further with the set-up of OpenVPN on my Windows Server 2003. I have configured Win Server as per the following guide: http://tinyurl.com/kxusv and I'm now at the stage of Creating the config files. I have a few questions that I need some assistance with. My server IP is 192.168.... | For the line [CODE] you should use the Public IP address of your internet connection (assuming you want users from the internet to access your internal netwokr) you can get this ip address in this page: http:// www.whatismyip.com/, this will give you the IP address you are using to access the internet. I dont know your... | -1 | 0 | 2,642 | 2010-10-11T18:16:29.893 | infrastructure | serverfault.com | |
23,258 | Customer's IP Listed on RBL - What steps do you use to prevent black listing? | Customer called saying their e-mail was bouncing from particular vendors. Investigated it and identified they were listed on more than one RBL/CBL. Restricted firewall to only allow traffic on port 25 from mail server. Then requested removals from RBLs/CBLs. My question is two-fold: 1) I cannot determine the original c... | To prevent being blacklisted in the future, allow only authorized SMTP servers on the Customer's network to send email (which, I believe, you've already done with the "Restricted firewall..." bit), be sure you're not an open relay, and encourage the Customer not to send unsolicited commercial emails that could be consi... | 4 | 3 | 1,300 | 2009-06-10T11:36:09.833 | infrastructure | serverfault.com | |
1,001,839 | MySQL shutting down on ~ same time and is not starting. Brute Force Attack? Or what? | my portal started to shutting down (1 time a day) and it happening over a week now and i do not know were could issue be. .. MySQL is shutting down on about the same time and is not starting after that. I see on mysql error logs multiple connection denied to multiple users from multiple IP's: [CODE] First i get multipl... | It is a bad practice to have sshd and/or MySQL publicly accessible. Configure your firewall so that the services are accessible only from the sources that need to touch them. This will be a good starting point. Most probably your web application is running on the same host as the MySQL daemon and if this is the case th... | 1 | 1 | 2,041 | 2020-02-05T07:09:52.333 | database_errors | serverfault.com | |
413,482 | pipe Certificate Signing Request into opennsl x509 command | In the openssl docs it states (at http://www.openssl.org/docs/apps/x509.html#INPUT_OUTPUT_AND_GENERAL_PURPOS ) that the '-in' option specifies the input filename to read a certificate from or standard input if this option is not specified. I am trying to figure out how to sign a CSR (using a private CA) using [CODE] to... | Erm, you're not providing the CSR on stdin, you're specifying it as a parameter. To provide it from stdin you either need to redirect it from a file, or pipe it from another command. For example: [CODE] Or, if the CSR is stored in csr.pem: [CODE] | 3 | 5 | 8,191 | 2012-08-02T00:13:59.400 | infrastructure | serverfault.com | |
354,470 | Why are outdated packages installed by yum on CentOS? (specifically PHP 5.1) How to fix? | I'm working on a fresh CentOS server and am extremely annoyed to find out that yum does not work as smoothly and brilliantly as "apt-get install" does on Ubuntu. Installing a LAMP stack, I ran the following: [CODE] Furthermore: [CODE] Now running: [CODE] ...shows that I have all kinds of php 5.1.6 packages installed an... | CentOS is a DERIVATIVE of the very conservative Red Hat Enterprise Linux, so package updates will generally be delayed even further than RHEL. Packages in either distribution are going to be a little older. If you're running CentOS 5, you ought to try CentOS 6 to see if it suits your needs. If you need something a litt... | 16 | 12 | 21,414 | 2012-01-28T01:29:57.007 | database_errors | serverfault.com | |
574,506 | How long/how hard should I stress test CPU and memory before declaring it OK? | One of our Dell PowerEdge LCDs was showing "CPU 2 machine check error", but I couldn't find anything in the logs regarding MCE or "Hardware Error." I cleared the message, but I wanted to run the machine through some heavy stuff to see if I could make it stumble again. I utilized an infinite loop bash script executed 64... | If the server is under warranty, have the vendor replace the part. If the server is not under warranty and the part cannot be replaced, the end-all-answer will be subjective. Is this a server that CANNOT fail (ie: running life support, handling real time financial transactions)? Or is this just a web server for a puppy... | 1 | 4 | 783 | 2014-02-10T16:18:01.897 | infrastructure | serverfault.com | |
985,342 | GKE Regional Cluster creation machine types for Northamerica-Northeast1 do not match documentation | When reading the documentation here , you can read that only [CODE] machine types are available in Montreal. However, from the GKE cluster creation form, when selecting a [CODE] cluster, the machine types include [CODE] , [CODE] and [CODE] . Is this a bug? Are those really available in Regional clusters? | Indeed, when selecting Regional clusters, all machine types are listed instead of only those available to you. You'll get an error when trying to create that cluster. | 0 | 1 | 46 | 2019-09-23T20:47:58.787 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.