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
217,427
Full Outer Joins Slowing Down Query
I am relatively new to SQL, so I apologize if I ask some basic questions. Our database is setup on Azure, we have automatic indexes turned on. The query I have takes about 6 seconds and gets 2217 rows. As far as I have been able to figure out is that it is my Full Outer Joins that are slowing down my query. I am fine i...
Posting this as an answer per @James Jenkins request Turns out one of the columns from a view was slowing everything down, so I got rid of dsp.DueDate AS DesignSetProcessDueDate and now it runs in less than a second. I was able to find out how that view was getting the information and put it right into my query. Which ...
1
0
2,186
2018-09-12T19:50:54.447
database_errors
dba.stackexchange.com
936,667
RAID 5 array not working after disk replacement?
We have an HP StorageWorks server with HP Smart Array P212. It has 2 SAS array configurations. Logical drive 1 which is a RAID 1 configuration Logical drive 2 which is a RAID 5 configuration One of the drives in the RAID 5 configuration failed last week and was replaced with a new drive of the same model while the mach...
Chkdsk utility must help in order to restore the NTFS partition -> chkdsk X: (drive letter) /f /r If the diskpart already identify partition as RAW, you can use EaseUS to restore the partition and the NTFS should be available.
4
4
255
2018-10-22T20:49:54.750
database_errors
serverfault.com
318,833
Does anyone have a good DI registration pattern?
I've done this so many times but I never end up liking how my code turns out. I'm asking if anyone else has the same problems and can offer solutions or conventions that they've used to make cleaner code. When I build a C# service, I get TopShelf, Log4Net, and Ninject all installed and set up. Inside of my service proj...
so I'd enjoy seeing the different categories of dependencies registered together. Ninject provides the concept of a module to allow you to group related bindings into a single class. https://github.com/ninject/Ninject/wiki/Modules-and-the-Kernel [CODE]
5
5
1,783
2016-05-18T14:34:31.627
api_errors
softwareengineering.stackexchange.com
230,165
Should a support incident be opened for every stack dump, or just ones that cause an outage?
Assuming that the stack dump in question can't be mapped to a know issue, if a stack dump doesn't seem to cause a problem and everything is working afterwards, should a support incident be opened for it? Or should incidents be opened only when it causes an outage or loss of functionality?
It's fairly cut and dry: If you want to actually work on the issue, collect data, uninstall/reinstall, isolate, test, potentially provide more dumps, potentially use things like appverifier and debugdiag or have a valid repro, then by all means open a ticket so it can be looked into and worked on. If you just want to s...
2
3
112
2019-02-19T18:19:44.243
warehouse_errors
dba.stackexchange.com
39,962
What are the steps/action plan to introduce Test Automation in a company?
My colleague and I have been given the task of Piloting Test Automation in our company. We need help deciding on the Action Plan. Some Actions we noted are as below : Design an Architecture of "Test Automation" that would include defining proper naming convention, maintaining source code, maintaining version history an...
Agile Pilot: Automate a test in the simplest way possible Automate another test Repeat and evolve into a robust framework Your plan sounds traditional and will probably result in a lot of research and over-engineering. Start simple and let your tests form around your application and business. Tackle uncertainties as so...
4
9
760
2019-07-12T06:29:58.767
data_quality
sqa.stackexchange.com
77,761
Text classification with Word2Vec on a larger corpus
I am working on a small project and I would like to use the word2vec technique as a text representation method. I need to classify patents but I have only a few of them labelled and to increase the performance of my ML model, I would like to increase the corpus/vocabulary of my model by using a large amount of patents....
Use large amount of un-label data to finetune the BERT based model. You can train BERT in unsupervised manner. Then, use that bert to get embeddings of your input text of label data and train a classifier.
1
0
493
2020-07-15T14:25:43.773
data_quality
datascience.stackexchange.com
1,014,133
DNS is not propagating correctly
I bought a hosting and a domain. The hosting company provide me a Name Server which I put in domain. Know its has been 1 month, the DNS is not propagating correctly across Internet. It is partial is some parts of the world. Here is the screenshot of DNS propagation What is the problem with propagation.
The glue records for the nameservers in use do not match the authoritative records. If we look at the tail end of [CODE] output, this is clearly visible: [CODE] Do note how the glue records for the "nameservers" point to [CODE] , while the authoritative records point to [CODE] . These sets of records must match for thi...
-1
5
646
2020-04-25T15:26:46.270
infrastructure
serverfault.com
1,056,659
Fix a malformed request in Apache
Let's say a particular browser has a bug and sends malformed requests. I would like to detect these browsers by their agent-type. The problem is the browser fails to send a required header. So the trick, I think, would be to 1. Detect the bad browser by http_user_agent and 2. add in the missing header which should fix ...
Your [CODE] directive is close, but not quite right. The condition argument before [CODE] isn't an expression, but optionally either of the words [CODE] or [CODE] . See Header for a (not too clear) explanation. This should work: [CODE] If your version of Apache is to old to allow the condition, you can wrap it in an [C...
0
0
1,215
2021-03-11T03:27:56.913
infrastructure
serverfault.com
852,359
PowerShell - Select(or regex for) words that ends in .story
I am trying to extract from some notes, words that ends in .story. This words are always placed into some links such as [CODE] . The notes may contain multiple links and the format of these notes may vary but there I will always have entries in form of [CODE] . Until now I've used the following expression: [CODE] but n...
[CODE] Sample output: [CODE] The more complex RegEx as in the question does the following: [CODE] is a negated class matching everything but a slash [CODE] the trailing plus means at least one of the previous. [CODE] the enclosing parentheses mark the first (and here only) capture group [CODE] the leading slash and the...
2
1
1,011
2017-05-26T08:18:57.463
infrastructure
serverfault.com
920,551
mounting CIFS just hangs no verbose output
I unmounted our shared drive in order to debug some immutable files and it's not allowing a mount back (even after a reboot and the entry has been there for years in the fstab file). I'm trying to do this manually and have my process flow listed below: To mount the device: [CODE] This simply just hangs an provides no e...
Please see if there are any time differences between your cifs client and server systems. Kerberos pre-authentication uses timestamps. If there is more than a few seconds difference pre-authentication fails.
0
0
3,895
2018-07-11T21:16:54.030
infrastructure
serverfault.com
854,845
IIS Case insensitive Virtual Directory(App) issue
I have an app in IIS whose url is " http://localhost/MAIN ", please note the uppercase virtual directory. When I try to access this url with a lower case app/virtual directory name, like " http://localhost/main " then the app turns the url into " http://localhost/MAIN/Account/Login?ReturnUrl=%2fmain " note the "%2fmain...
have had same problem Change strpos for stripos in function getUrlencodedPrefix located at vendor\symfony\http-foundation\Request.php. We have had issues accessing our laravel application on IIS with fast-cgi. The app url http://server/myApp points to the application public folder and 90% of the time it works, but for ...
0
1
3,168
2017-06-09T11:28:26.617
infrastructure
serverfault.com
109,485
Strange error trying to SSH to a linux router
On one of the customer's locations I have a linux router that has been working fine for the last 500 days, but since yesterday, the internet from the internal network doesn't work and I can't SSH to the router. Pinging the WAN interface works. When I try to SSH to router it just waits. Running SSH in verbose mode yield...
The network problem persisted when we changed the router for a windows machine and connected directly. Clearly the issue is not on our side but on the ISP's. Problem solving has been relayed to them.
2
1
169
2010-02-04T09:17:20.807
api_errors
serverfault.com
69,823
Security Issue with Active Directory
The retard who was on the built-in Administrator login somehow (and this is what I'm guessing being as he is not here and I was not present when this occurred - Supposedly it was an "ACCIDENT") Denied the built-in Administrator account and every other account except for his personal one access to our domain - ie "Examp...
These instructions should help you reset the local administrator, then the domain administrator. You will of course need physical console access to a Domain Controller.
1
1
139
2009-09-30T04:00:01.127
infrastructure
serverfault.com
320,402
Return each product with the earliest instance of its latest change
I'm trying to find the earliest [CODE] date of the latest [CODE] for all [CODE] . I've attached a sample table below: [CODE] So for example, because "Banana" was changed from a vegetable to a fruit in row 9, and hasn't had it's category changed since then, that's the date I'd like to get for that product. In theory, fi...
First we will create a cte with the current category and the previous one. Then we will only return the rows where there was a change, or is the first. Then we get the maximum date grouped by name. This returns the latest change of category. [CODE]
1
0
88
2022-11-30T15:25:35.850
database_errors
dba.stackexchange.com
455,753
Accessing C$ over LAN on Win2008R2 - cannot by hostname but can by IP and FQDN
Having an issue with one of our Win2k8 R2 file servers. Trying to access C$ or the Admin share is giving us an error (see error details that the bottom), however we are able to connect using the server's IP and FQDN. can access [CODE] with domain cred can access [CODE] with domain creds cannot access [CODE] with same d...
I suspect you already have a connection to [CODE] using a different set of credentials from the ones you are trying to use to connect to [CODE] . You cannot connect to multiple shares on the same machine using different credentials. A way around this (which you found) is that you can use the FQDN and the IP address whi...
2
2
1,984
2012-12-06T16:03:47.153
infrastructure
serverfault.com
796,149
I am stuck out of my host server ssh
I have a dedicated server and I wanted to login to ssh and I changed the /etc/ssh/sshd_config file but then I could not login my ssh of server. When I run this command I get; [CODE] I have to login to my ssh and change the config file. But tha's not possible. Please help me . . ..
The server did not accept the ssh key your computer presented, and the server is configured to refuse password logins via ssh. To find out why the server didn't accept the key, requires inspecting the server logs. To regain access to your server, you must use the IPMI console provided by the dedicated server provider. ...
-2
1
823
2016-08-11T04:55:11.870
infrastructure
serverfault.com
211,663
Mysqldump with ansible for database backup
I am trying to backup remote database using ansible and mysqldump. I have installed ansible in my local server.Generated the ssh keys. I also sent the public key to the remote server. Everything is fine in ansible part but can't backup using ansible and [CODE] . I tried this: [CODE] But the backup is being created in h...
I am really sorry to post this one. AS i later realized, this was more of a ansible solutions i was looking for rather than mysqldump. I tried many alternatives and finally this one worked for me. [CODE] What this playbook does is, it on the first part takes the database backup using mysqldump and creates the backup in...
2
2
10,543
2018-07-09T11:59:01.530
database_errors
dba.stackexchange.com
61,453
T-SQL: Complete Database in one table
at a relational data model every logical relation is a single table with values and so on. I know someone who is this too much work and he wants to create only one table which contains all. This could be look like: [CODE] Make it sense to design a database in this kind or should it be "classic"? Thanks for any response...
Congratulations, someone has reinvented EAV (Entity Attribute Value). Please study up on the subject with them. The short form is: one or more EAV tables can be useful in certain specific cases, usually when accompanied by other tables, but you lose most of the benefit of a relational database when you move to them. I ...
0
4
189
2014-03-21T13:37:46.190
warehouse_errors
dba.stackexchange.com
33,106
Validation set performance increased, test set performance decreased
I am training a CNN model for a three-class classification problem. To do this, I'm gradually unfreezing more convolutional blocks of a pre-trained Resnet-18 network. The thing is that after unfreezing a block (let's say block 3, and preceding blocks), the performance on the validation set did improve but the performan...
Don't optimize your model for the test set during development. You shouldn't even consider using your model on the test data until you're done tweaking your it, since the point of the test set is to have a ready example of "unseen" data for your model. The idea with a train/validation/test split is that you could evalu...
0
1
390
2018-06-13T18:50:50.240
data_quality
datascience.stackexchange.com
263,935
Reporting table needs to get refreshed without killing user's read connection to it, any ideas?
I'm investigating a solution that will allow a reporting table to be refreshed that can potentially have users reading from it at a time that it needs to be refreshed. Has anyone implemented a way of doing something like this without needing to kill the user's connection to that table at the time of refresh?
Sure. The simplest thing is to just make sure the reporting users using Row Versioning, either in SNAPSHOT ISOLATION, or by setting the database to READ_COMMITTED_SNAPSHOT. See eg, Snapshot Isolation in SQL Server . Then just make your updates in a transaction. Reporting users will not be blocked, and will continue to ...
3
6
57
2020-03-30T16:42:15.060
warehouse_errors
dba.stackexchange.com
169,501
How to enter the field with 0 experience and a A+ cert?
Possible Duplicate: What a beginner should know/learn for sysadmin job? To explain my situation, right now I am a high school senior with an A+ certification, and am aiming for the Net+ and (maybe) Security+ before the lifetime certification period ends in January, as well as (maybe) a vendor cert. I also have experien...
A lot of people bash college for IT geeks, but you learn a lot in those 4 years, and 99% of it takes place outside the classroom. Colleges are one big business, at their lowest levels. And spending time fighting through the bureaucracy of a college is a hell of a way to prep for the bureaucracy of just about any compan...
7
7
11,939
2010-08-11T20:35:49.783
data_quality
serverfault.com
147,388
Static objects and concurrency in a web application
I'm developing small Java Web Applications on Tomcat server and I'm using MySQL as my database. Up until now I was using a connection singleton for accessing the database but I found out that this will ensure just on connection per Application and there will be problems if multiple users want to access the database in ...
Those are basically solved problems. Just create a new connection every time you need to access the database (or maybe just once per request, if that's easily possible), and use a database API that supports pooled connections. Just make sure you close all connections no matter what, but that's something you should be d...
1
3
1,803
2012-05-05T11:17:49.417
database_errors
softwareengineering.stackexchange.com
80,477
Should I switch to 64bit Ubuntu?
I've been using 32 bit Ubuntu for the last couple of years on my development machine. I generally write web apps in php. I would like to use a 64 bit OS for the obvious reasons but wonder if there are any Got-Ya's that I should know about. For those that are using a 64 bit version of Ubuntu, is it as straight forward a...
Definitely go 64bit. Debian and Ubuntu have good compatibility solutions for 32-bit stuff these days, and since it's they provide free software in a huge repository of applications compiled for your 64-bit version, you're just about in the best place you can be to have optimised software for your 64-bit hardware. Highl...
5
3
524
2009-11-02T11:47:45.530
infrastructure
serverfault.com
144,949
Counting entites based on status in rolling interval
Given the following table: [CODE] I want to query number of entities in time window (grouped by granularity - hours, days, months), specifically number of entities in status before window, number that change into status during window and number that leave status before window ends. My faulty/unoptimized query: [CODE] I...
Get previous status by self join by [CODE] and group by [CODE] : [CODE] This is core. This script is prone to double or triple counting when same status for Entity/User posted several times during an hour. Also one time window treated on its own and not aware of status in previous time interval. If you share example of...
3
3
224
2016-07-26T13:41:47.790
warehouse_errors
dba.stackexchange.com
161,106
Configure Oracle 11.2+ ACL to work with mail server having an internal IP address
I configured a new Oracle 11.2.0.4 database on CentOS 7. I verified that I can send email from the database server 192.168.0.1's linux command line, using an 192.168.0.2 mail server (e.g. mail.example.com) on port 26. The [CODE] file on the database server (192.168.0.1) contains the line [CODE] so the database server c...
Here's what I finally (!) got to work. Simply set [CODE] equal to [CODE] , then add [CODE] to the ACL using, from SQLDeveloper: [CODE] Notice above that I used [CODE] instead of [CODE] because doing it this way also allows UTL_HTTP requests to [CODE] (kill 2 birds with one stone). Also, by not specifying upper and lowe...
1
0
2,298
2017-01-14T22:59:49.053
database_errors
dba.stackexchange.com
717,845
404 when serving static files with docker+nginx+django/angularjs
I'm following the configuration given at this repository. I decided to keep my docker configuration and actual code in separate repositories - I'd clone the code repo using the Dockerfile. I'm using a docker-machine (locally, using the Virtualbox driver) and docker-compose setup. The code repo's directory structure is ...
It would appear that the docker-compose configuration was not correct. The reason nginx threw those 404s was because it had no access to [CODE] . Here is the correct docker-compose config -: [CODE] [CODE] gets the volumes from the django service. And I have exposed [CODE] as a volume. This seems to do the trick. I'm op...
1
0
7,563
2015-08-30T17:22:23.090
pipeline_ops
serverfault.com
615,180
Conveting .htaccess to Ngix rules
I need to convert htaccess file to nginx config. I http://winginx.com/en/htaccess but an error occurred when I update the nginx config file. The htaccess file reads: [CODE] and it was converted to [CODE] now the error is: Failed to save configuration file : Configuration is invalid : nginx: [emerg] unknown “0” variable...
There are two lines that are wrong at least: First: [CODE] Correct one would be: [CODE] In nginx, you reference the captured regexes with $n, where n starts from 1. [CODE] equals to [CODE] redirect. [CODE] is [CODE] redirect. [CODE] Correct one would be: [CODE] Here, [CODE] is the captured regex. In nginx, you don't ne...
0
0
1,063
2014-07-24T13:49:31.610
infrastructure
serverfault.com
461,489
Spanish Characters in Linux Server Bash Shell
I have a database that contains Spanish words in it. It contains words like sueño which have "special characters" in them. The MySQL database collation is set to utf-8-general-ci which supports foreign characters, so the database should be fine. I have a python script that I run in the bash shell and it returns all wor...
Can you show the output of the [CODE] command? example: [CODE] If you change the [CODE] and [CODE] env variables you will be able to display those chars in your terminal. You can do a simple test like this: [CODE] If that works you might want to permanently change your locale to a UTF-8 based one.
2
1
2,135
2012-12-28T17:03:37.297
database_errors
serverfault.com
852,666
SFTP connection fails with: DH GEX group out of range
Hi i am trying to connect to an sftp server but it keeps failing with this error: DH GEX group out of range this is the verbose log... looking around i found that the problem has to do with the key size [CODE] the following solution as suggested here didn't work: -o KexAlgorithms=diffie-hellman-group-exchange-sha1 -o H...
You are connecting with a new OpenSSH that bumped minimal DH group size to 2048 (which is not standard, but there is no reason why the server should not accept that) to some ancient windows implementation ( [CODE] ). That is probably some commercial software, so you should get in touch with your vendor so he will fix i...
2
2
9,569
2017-05-28T12:14:34.303
infrastructure
serverfault.com
102,438
ms sql 2005 server role problem
On one of our sql 2005 servers we are no longer able to give any users server roles (ex. sysadmin). It appears to be successful both through the UI and through code. But when we check in the db and in the UI the role is unchecked and not shown for the user in the master db. Permissions don't seem to be the issue as we ...
But when we check in the db and in the UI the role is unchecked and not shown for the user in the master db. Sysadmin is a serverrole and you need to look at the security tab not under master but outside the databases tree/branch. Or you can use the above query to check as well. SELECT name FROM sys.server_role_members...
1
0
104
2010-01-13T21:36:57.297
infrastructure
serverfault.com
821,726
FCM not loading Properties for configured Hyper-V shares
Have 3 nodes 2 of which are part of a hyper-v cluster. Many moons ago I configured network shares within FCM, for the last few days when attempting to select properties for specific shares it displays the below: I have restarted all nodes. I have confirmed i can PSSession to the server my PC. I have confirmed WinRM can...
All - I raised an issue with Microsoft and after hours of troubleshooting got no where. The good news is I found the problem myself, I have found the solution to the issue myself. It turns out the version of RSAT being offered by Microsoft for windows 10 (WindowsTH-RSAT_WS2016-x64.msu) appears to be have the issue, do ...
2
0
181
2016-12-20T04:03:25.577
infrastructure
serverfault.com
73,545
Is there a difference between RANGE and LIST method for partitioning by consecutive integer values?
I have a table with a [CODE] column that has consecutive values -- [CODE] , [CODE] , and so on. It's a read-heavy MyISAM table, with 25+ million rows for every value of [CODE] and a comparable set inserted in bulk approximately annually. Most of our queries include a [CODE] condition. In a few cases we do a self-join [...
The 2 will be equivalently impossible [CODE] . If you try that, you will get the following error : [CODE] Which is one of the biggest limitations of partitioning. Any unique key must contain the columns of the partitioning function. So either: Drop the primary key (not usually a good idea) Add the year to the primary k...
3
1
2,198
2014-08-08T20:47:19.653
warehouse_errors
dba.stackexchange.com
540,263
How do I backup 50GB+ of files on a linux box to a remote sftp account
How do I backup 50GB+ of files on a linux box to a remote sftp account. My requirements Store several versions of the backups. Encrypted before sent to remote server. Disk and bandwidth efficent, think incremental. Using simple linux commands (preferred support by Busybox on a Synology Diskstation) My solution Currentl...
It seems to me that you're happy with rsnapshot but not with tar. If so, the solution is to replace tar with something that preserves the 'only changes' of rsnapshot. Out of my head, I can thing of two easy options: after rsnapshot, find the differences between the last and previous snapshots to store only those to a t...
0
2
1,684
2013-09-19T17:10:05.037
database_errors
serverfault.com
411,649
Ops in event-driven paradigm
TL;DR event-driven system seems to focus on a highlevel view of the system ("error rate is 0.5%"). How are IT operations supposed to locate and remedy individual issues in such systems? In today's mainstream push towards distributed systems the even-driven architecture is often regarded very well. Among the benefits of...
Tooling You are going to need to get the developers on board with providing you with tools to help aggregate and make a picture out of the data, along with the ability to replay events (or generate new messages to get the system repaired). You are also going to need to push back on the business to get the funds/bandwid...
2
3
112
2020-06-17T22:19:59.780
data_quality
softwareengineering.stackexchange.com
943,373
Is there a Microsoft alternative to WSUS other than SCCM?
WSUS 2016 "allows" 3rd party patches through APIs, but it is buggy. Is there another free alternative built in to say Windows Server 2019?
SCCM isn't an alternative to WSUS. It simply adds an orchestration layer on top. It's still WSUS under the hood. Since MSFT already makes SCCM and WSUS any other service offering would be in competition and that's generally not allowed at MSFT. However, you can look at third party offerings like Novell ZENworks or buil...
0
5
1,632
2018-12-07T20:57:01.513
infrastructure
serverfault.com
618,384
Troubleshooting High TCP Retransmit Rate
I've been attempting to troubleshoot a network issue that presents with very high rate of TCP retransmits. 36 samples (taken with Wireshark 1.10.8 running on 32-bit Windows 7) totaling a little over seven hours, ranging between 2 and 53 minutes each shows retransmits occupying between 43 and 61 percent of the total ing...
Check everything before your network. As in: The satellite link is flaky. Could be anything on the physical level of that side - bad calibration, whatever. As per the Sherlock Holmes Approach that is the only thing left. Packets are lost because they are LOST.
5
1
11,643
2014-08-06T12:56:47.633
infrastructure
serverfault.com
455,301
innodb corrupt tables
Running shared hosting cpanel box with Mysql 5.5. Restoring or packaging (using pkgacct) is giving off some serious database errors, on multiple various users [CODE] I was told by cpanel tech: [CODE] Can someone please explain to me in laymen terms on how to go about repairing these? I'm not sure how to dumb the databa...
First stop the database and backup all mysql files (/var/lib/mysql). Second start the server run on console [CODE] If it's saying is already upgraded run again with force flag [CODE]
0
1
3,078
2012-12-05T13:48:31.543
database_errors
serverfault.com
123,862
Indexed but still slow during query
I have a table that stores REST requests and responses: [CODE] I created 4 indexes representing the 4 queries I usually execute: [CODE] Here is the query: [CODE] I am expecting that it should be fast because it should use the 3rd index that I have created. But it seems it is not and it takes around 1 minute before it r...
first what You need, check explain plan of query: [CODE] It return You information about which indexes from present MySQL will use when run query Than You will check cardinality of the indexes [CODE] it give You idea - which index better to use in this case without information about data, general ideas: - index for cre...
4
1
166
2015-12-16T19:06:03.553
database_errors
dba.stackexchange.com
624,067
Unsupported Storage Connection Detected on HP DL380 Gen8
I'm hoping this is the right place to ask. I recently received a new HL DL380 Gen8 server, on which I want to install Server 2012 R2 via Intelligent Provisioning. According to the specifications, there's no FBWC installed. On POST, the server reports the following error: "HP Dynamic Smart Array B320i RAID Controller 17...
The 12-slot model of this server has a SAS expander installed on the drive backplane. Gen8 ProLiant servers require a healthy FBWC cache module installed in the RAID controller in order to interface with an expander backplane. Your supplier messed up. Despite this, you'd want the FBWC for performance reasons . My recom...
1
1
2,119
2014-08-26T10:58:49.407
infrastructure
serverfault.com
6,577
SQL Server schema intact but every record from every table is gone
We recently set up a new virtual machine running Windows Server 2008 and slapped a copy of SQL server 2005 on it. The server had running and in use without a hitch for about two weeks. The only real maintenance we've done on it is to move the partition the database files resided (done nearly a week ago) and we ran the ...
This happened at my company. Someone re-ran the schema creation scripts from within the application's admin interface--something like an "initialize database" command. These scripts included a series of [CODE] statements to drop and recreate each table and constraint. Since they were designed to wipe a database even if...
7
14
529
2011-10-06T16:41:51.377
database_errors
dba.stackexchange.com
28,809
distinguish users for recommender system
How can you calculate better video recommendations for a SmartTV app which is used by multiple users in a household. I don't know which user is currently watching the video because the account for the app is shared. So the current user might get a recommendation based on video usage of an other user. I was thinking of ...
I was interestedin this problem awhile back ago. I still have this paper and should serve as a good primer. Guess Who Rated Thos Movie:...
2
1
82
2018-03-08T16:44:45.973
data_quality
datascience.stackexchange.com
205,327
Cisco ASA 5505 config for VPN traversal
I've recently installed an ASA 5505 to connect several sites via site-to-site VPN which is working just fine. I also required remote access VPN for users which has also been configured using L2TP/IPSec. However, I'm having trouble with the configuration to allow the remote access users to access systems on any of the s...
This: [CODE] combined with this: [CODE] is allowing only traffic on 10.100.20.0 onto the splitTunnel. So a VPN client tries to connect to one of your other private IPs, and actually gets routed outside the tunnel, to the Internet. Not what you want. Add your other private IPs to the tunnel with: [CODE] for all of your ...
0
1
2,597
2010-11-23T20:10:01.697
infrastructure
serverfault.com
263,726
How to prevent race conditions in a web application?
Consider an e-commerce site, where Alice and Bob are both editing the product listings. Alice is improving descriptions, while Bob is updating prices. They start editing the Acme Wonder Widget at the same time. Bob finishes first and saves the product with the new price. Alice takes a bit longer to update the descripti...
You need to "read your writes", which means before you write down a change, you need to read the record again and check if any changes where made to it since you last read it. You can do this field-by-field (fine-grained) or based on a timestamp (coarse-grained). While you do this check you need an exclusive lock on th...
40
29
35,483
2014-11-25T10:10:05.093
data_quality
softwareengineering.stackexchange.com
111,241
Unable to connect to a remote SQL Server instance 2005 over a VPN
I'm running SQL Server 2005 on two different servers running Win XP. The two servers are in different physical locations and are connected via a dedecated point to point data link in a virtual private network(VPN). Im only able to connect to the remote instance of SQL Server by specifying the IP address on the server n...
I used to have a similar problem at my last place of work. In my situation, it was because even though I was connected to the VPN, it was still using my DNS servers. Because the servers hostnames were only registered on my work place's internal DNS, not the external DNS, it couldn't find the name. The quickest and dirt...
0
1
491
2010-02-09T11:03:44.410
database_errors
serverfault.com
69,507
Can anyone tell me why my web server cannot connect to a DB server?
"Can't connect to MYSQL server" error. The DB is a separate server. http://dpaste.com/99702/ I typed "nc dbserver 3306" and it returned: [XXXXXX] 3306 (mysql) : Connection refused Even in my GRANT options, I specified GRANT ALL TO . %... My friend said that the web server is being prevented from establishing a TCP conn...
111 usually is a generic "socket" connect error, i.e. the packet never made it there . Without more info about how your firewall is set up, it could be caused by: Bad IP address Bad Port number (no service is running at that port) Bad routing setup (rare, but happens) Firewall is absorbing or rejecting the packet. This...
1
0
1,065
2009-09-29T06:07:13.260
database_errors
serverfault.com
124,352
Remotely inserting 3.5m records mysql
I need to remotely insert 3.5 million rows to my amazon rds. Currently my data is in an access database, for which I will use bullzip, access to mysql to create dump files. I have created my schema on the RDS and defined the data types pre-insert (because when you auto upload through the app it defines most cols as var...
It would be convenient to diagnose where is the performance bottleneck in this case. Can you monitor the network throughput / CPU usage / disk usage to see which one is higher while uploading? If it's a network bandwidth problem, make sure you're using compression in server/client protocol, any client should have this ...
0
0
377
2015-12-22T16:11:36.643
database_errors
dba.stackexchange.com
250,817
Perhaps not understanding the OS/X ACL model
Possible Duplicate: Perhaps not understanding the OS X permissions model In the log for the httpd: [CODE] So, the mode is 0777, everyone has access, but the httpd gets 'Permission denied'. Using the finder and GetInfo I see that everyone has full access. What am I missing?
This is probably caused by the directories further up the tree (namely /Users/benson/) not having the execute bit set. Andrew
0
2
135
2011-03-23T13:23:16.317
data_quality
serverfault.com
327,181
Why the second query is so much faster than the first one?
I have a query that look like this: [CODE] The first query is slow, but when I reran it is always faster. I do not see a clear answer when I compare plans. I have a gin trigram index for the customers search text. https://explain.dalibo.com/plan/b11657f576699fa8 And second run https://explain.dalibo.com/plan/g81h74b9g5...
TL/DR: Cold cache . If only the first execution is slow it's typically cold cache. And yours is just such a case. As you can see under IO & Buffers in your image (already made you wonder), the fast query execution has only hits, no reads. Meaning, later executions benefit from the now populated cache. Typically, more R...
0
3
998
2023-05-16T16:26:58.623
database_errors
dba.stackexchange.com
471,886
Keepalived: Highest weight only scheduling
I have a keepalived setup with three servers behind an ip. One is setup as a sorry server and only serves the maintenance pages, the other two are actual app servers. We would like it setup so that traffic only routes to the one server until it goes down and then have the other server take the traffic, until the primar...
From the LVS mailing list [CODE]
0
0
4,101
2013-01-23T22:33:59.400
infrastructure
serverfault.com
297,746
pg_restore: error: could not execute query: ERROR: materialized view "ws1_all_formate" has not been populated
I had this error after the execution of [CODE] : [CODE] Is it a serious error? Do I have to redo the restore operation?
If that's all the feedback you got, just execute on the advice from the error message: [CODE] The way I read it, Postgres could not execute that command as planned, because another materialized view [CODE] had not been populated yet. So the MV at hand (which seems to rely on it) was created, but not populated, yet. But...
1
1
1,302
2021-08-08T10:14:19.530
warehouse_errors
dba.stackexchange.com
329,801
Postgres-15 response time jumps up from 0.5 ms to 100-200 ms once in a while (~ 0.5% of requests are affected)
I have a simple database with one table of ~5 millions rows, another table with ~10 millions rows, couple of other tables have 10th of thousands of rows. There is a constant load without any spikes at around 10-50 inserts per second and around 100 selects. All queries either use Index or Index Only scans. All queries e...
If even [CODE] is randomly slow, that seems more like a system issue than specifically a PostgreSQL issue. Maybe network glitches, or a CPU seize-up (which I've seen on virtual machines sometimes). (I even start thinking its something wrong with how Rails reports slow queries for some edge-cases but maybe I'm just miss...
2
2
850
2023-07-30T13:15:30.663
database_errors
dba.stackexchange.com
364,608
Thick viewmodel results in thin model
How thick should a viewmodel be? For example, should my viewmodel or model handle the actual filtering? For example, let's say I have a Roster object holding a collection of Users which are assigned a type (i.e. full-time, part-time, etc.). Instead of having one large viewmodel to handle the filtering of full-time or p...
I would favor filtering in the Model if you expect that filter method to be used in multiple places in the program, and filtering in the ViewModel if you know that filter is only ever going to be used once, in that particular ViewModel.
2
2
188
2018-01-24T16:11:20.637
api_errors
softwareengineering.stackexchange.com
7,798
How to enable remote connections for SQL Server 2008?
How do I enable remote connections on an SQL Server 2008 installation? I have created a rule in the windows firewall to allow traffic through port 1433, but that does not seem to be enough.
SQL Server Configuration Managaer SQL Server Network Configuration Protocols for MSSQLServer Enable TCP/IP Also in SQL server Mgmt Studio on the server Right click the server Properties Connections Make sure "Allow remote connections to this server" is checked
11
16
34,082
2009-05-13T14:25:45.253
database_errors
serverfault.com
13,763
Unexpected Error Message in RStudio; while using 'twitterR' Package
I'd install an R package [CODE] in my RStudio for accessing Twitter data for a particular handle. But whenever I do try to access the Twitter data it's showing me an unexpected message: [CODE] Any thoughts on that? I tried different parameters, handles and functionalities but still getting the same issue. Here's my cod...
It's because of the whitespace in the parameter for [CODE] . It should be: [CODE]
2
1
2,132
2016-08-30T14:34:59.243
data_quality
datascience.stackexchange.com
224,443
SQL Server Not Consuming all Memory - Insufficient System Memory in Resource Pool 'internal'
I am running SQL Server Standard 2014 with SP3. I am noticing a lot of activity on the log viewer around insufficient system memory in resource pool and memory Broker. I have searched on this error and it was pointing back to SQL 2008 with a KB as a fix. Am I looking at this right that SQL is only using less than 4GB o...
Essentially, the error is saying that there is not enough memory available to Sql Server for it to grow its internal buffers - this generally happens if Windows is having to page a lot or other processes are consuming the memory. You should also remember that just because you tell Sql Server to use a minimum amount of ...
1
3
1,474
2018-12-07T21:21:07.237
database_errors
dba.stackexchange.com
302,587
Speed up MySQL inserts with partitions on MyISAM with unique key
I have a large MyISAM table (~30M rows). At some point I've switched it to fixed row format, so now table takes ~40Gb on disk and 2Gb for indexes. Table has a unique index and there are 100 'insert on duplicate key update' queries per second. As table grows these inserts are becoming slower and slower. I'm not sure, bu...
First of all, concurrent writes are definitely not an option for MyISAM storage. Each of them will lock a whole table (except for reading in some cases). If InnoDB does not suite you well, try TokuDB. But it will be slower compared to MyISAM because of transactional nature of TokuDB (and InnoDB of course) engine (you s...
9
1
2,266
2011-08-18T14:55:26.233
database_errors
serverfault.com
1,118,000
Application slows down (SOMETIMES) at peak times, running on tomcat with a reverse proxy from apache server, deployed on AWS
Just for preface: I'm a software developer and at first no one knew what's going on, so I did some testing and reading, and would like to help my colleagues fix this problem. The issue: The issue is that at peak times, the server becomes so slow that the connection times out in browsers like chrome (after 30 seconds), ...
Your webserver might be choking with too many requests, which in fact emulates the SlowLoris DOS attack, please check my previous answer on the topic.
0
0
442
2022-12-14T11:10:14.547
database_errors
serverfault.com
547,492
Rsyslog stops sending data to remote server after log rotation
In my configuration, I have rsyslog who is in charge of following changes of [CODE] using [CODE] . The content is sent to another remote logging server using TCP. When the log file rotates, rsyslog stops sending data to the remote server. I tried reloading rsyslog, sending a HUP signal and restarting it altogether, but...
The problem was actually coming from logrotate. Basically with my configuration, running unicorn, I don't need to use the [CODE] directive. (which is what causes problems here) USR1 - Reopen all logs owned by the worker process. See Unicorn::Util.reopen_logs for what is considered a log. Log files are not reopened unti...
10
8
11,553
2013-10-21T09:45:58.173
api_errors
serverfault.com
320,233
Is Apache ReverseProxy to Passenger Standalone an acceptable production deployment?
I have the need to deploy Rails 3 apps, using RVM and gemsets, and am expecting “public” traffic (i.e. this is not an internal-only app). I also must use Apache as the public interface to my app. I understand that Passenger Standalone can help accomplish the rails/RVM end, and I have successfully set it up in my develo...
I haven't used that specific setup in production, though I've used Apache's reverse proxy for a lightly loaded site (no a different non-Passenger backend). The only (mild) downside I found to Apache's reverse proxy was that if it detected the backend being down, it would take a short while after the backend was restart...
4
0
679
2011-10-10T17:36:37.197
pipeline_ops
serverfault.com
363,275
Chrome caching 302 redirects
I have a php script with is used to rotate banner images on a site. Under Firefox/IE page refreshes will make another request and a different image will be returned. Under Chrome, the request seems to be cached and only opening the page in a new tab will cause it to actually query the script. I believe this used to wor...
Bug in chrome: http://code.google.com/p/chromium/issues/detail?id=103458
4
8
8,746
2012-02-24T03:41:20.867
infrastructure
serverfault.com
780,195
Dropped packets in all Linux and Unix
I have a problem. I have a motherboard by Supermicro – X11SBA-LN4F. There are 4 ethernet ports. In the first port I connect to the internet. In the second port I connect to my local network. When, I write [CODE] or [CODE] , I can see on my second interface (my local network) dropped packets. This count is incremented [...
Probably what's happening is that you're seeing IPv6 broadcast traffic on your subnet, as per what you posted from a tcpdump output here: [CODE] And as per what you wrote in your question here: Beginning with kernel 2.6.37, it has been changed the meaning of dropped packet count. Before, dropped packets was most likely...
2
2
29,252
2016-06-01T07:26:59.437
infrastructure
serverfault.com
231,422
Apache2 shared server: default webpage
Greetings, I have an apache2 server with 4 domain names point to my server's single IP address. When I type in www.site1.com it serves pages from /home/eamorr/site1/index.php Same for www.site2.com, www.site3.com and www.site4.com However, when I type in to the address bar of a browser without the www , it always redir...
You should add [CODE] right below [CODE] And so on for all your virtual hosts. Like this: [CODE]
-1
0
132
2011-02-04T22:32:59.620
infrastructure
serverfault.com
329,086
Wait for apache2 to shutdown on Ubuntu 10.04
I've almost completed automating the installation and configuration of apache2 across our infrastructure, but am hung up on an intermittent issue where apache does not restart when I ask it to. I'm installing apache via AMT get; copying across files including ports.conf, apache2.conf and the default site; then calling ...
You'll likely need to open up the apache2 init script and find out how it's doing the restart. Older init scripts might stop, sleep, then start. You may need to write in a loop where you sleep, then check to see if it's still running before starting again.
0
0
256
2011-11-08T22:34:03.230
infrastructure
serverfault.com
111,938
Reshape using array_reshape
I'm new to CNN and I was trying to reshape a few images for image recognition but I keep getting an error message which I'm not sure how to fix. [CODE] I get the error message as below. [CODE] ValueError: cannot reshape array of size 784 into shape (28,28,3) Is there something I'm missing?
The error gives you a hint on what the issue is, which is that you cannot reshape an array of 784 items into an array/matrix of shape [CODE] since they don't have the same number of elements. Based on the number of items I am guessing you are using the MNIST dataset, which consists of black and white images instead of ...
0
0
289
2022-06-18T21:04:44.887
data_quality
datascience.stackexchange.com
108,264
Corrupt exchange database - how to restore data from outlook back to exchange
I've had a clients exchange server get shut down abnormally which resulted in a corrupt database I've tried running the ESEUTIL tool in repair mode - after 4 hours or so it says corruption if fixed but then trying to mount the store again still throws an error and running and integrity check against the database says i...
Do you have any backups of the database/logs from before the crash? What ESE/JET errors do you get when you try to mount the database? You'll see these in the application eventvwr. Specific JET errors will point to why the database is not mounting. Then do a search on the error to find out exactly what the error is tal...
3
2
1,536
2010-02-01T11:16:03.367
database_errors
serverfault.com
777,872
home logical volume is not available after reboot
On a server with RHEL 7.2 it gets to emergency mode when rebooting. Looking a bit I found out that what happens is that the /home partition was missing and the reason was LVM: [CODE] In this emergency mode, if I do [CODE] the volume becomes "active" and I can mount it and see the content. The problem is that after rebo...
in you fstab file add the _netdev flag to the device so the boot process waits for the phyiscal volume to become ready, and retries the mount. so [CODE] becomes [CODE] and make sure netfs is running on boot too [CODE] that should do it I hope
0
0
6,189
2016-05-19T21:11:09.763
infrastructure
serverfault.com
1,090,205
Why doesnt creating a sym link from python to python 3 work?
My goal is to make sure that [CODE] refers to [CODE] in my mac terminal. What i have tried so far are the following two attempts 1. Adding an alias in .zshrc [CODE] after re sourcing my [CODE] file this allowed me to type [CODE] and get python3. This does not work for scripts as they specify [CODE] and completely ignor...
check current python version: [CODE] : output [CODE] OR [CODE] check current python3 version: [CODE] : output [CODE] Check where python3 is located: [CODE] : output [CODE] Create your sym link here : [CODE] where /usr/bin/python is the new executable exit terminal + reopen Now check your [CODE] executable is actually r...
2
1
12,032
2022-01-17T00:16:33.433
infrastructure
serverfault.com
143,779
Maximum Attachment Size in database mail
Good Afternoon, I am trying to send an attachment via database mail. [CODE] I am getting the following error. Msg 22050, Level 16, State 1, Line 0 File attachment or query results size exceeds allowable value of 10000000 bytes. When I run this in SSMS, and SAVE-AS csv file, the file is only 9077 KB. What would database...
The file, when sent as an attachment, is converted into 7-bit ASCII , which makes the file a lot bigger than it would normally appear to be. As @M.Ali pointed out in his answer, you can adjust the maximum message size to accommodate your large query. However, what are you sending via email that needs to be so big? Are ...
2
2
5,005
2016-07-13T19:12:58.833
warehouse_errors
dba.stackexchange.com
255,374
EXPDP error ORA-39374 + ORA-13158 Oracle object does not exist
While exporting one of the tables in my db I got the following error : [CODE] After this on the general print out where my export is running I saw [CODE] however the same is not printed in the expdp log.. Also the export command failed to return for almost 8 hours after which I forcefully tried to close it with [CODE] ...
It is recommended to exclude statistics when doing an export. It is better to export the stats in a different way ( [CODE] ) or re-gather once the data is imported. I know it does not solve the root cause, but Oracle actually recommends that you do not export the statistics. Try to do the export again with [CODE] and [...
0
1
823
2019-12-11T04:28:51.303
database_errors
dba.stackexchange.com
441,002
Rotating Iptables logs with logrotate
I'm running CentOS6 and I configured rsyslog to monitor my iptables warning messages and dump them in [CODE] . I went through my [CODE] file and added [CODE] so logrotate would pick up and rotate the logs. The file looks like this: [CODE] However, when I run [CODE] to trigger a force roll, the iptables.log file doesn't...
I believe a more effective solution would be to actually create a specific logrotate instance for iptables instead of adding it directly to your syslog logrotate instance. Do this by: [CODE] Now, configure the logrotation as you'd like, an example would be the following (You may find all options HERE (logrotate.conf) :...
2
4
6,076
2012-10-22T15:33:16.823
infrastructure
serverfault.com
103,910
Mysql replication, one database server process
Possible Duplicate: Mysql replication server both master slave On my development box, I want to experiment with a replication setup. But I don't want to create several mysqld processes (is it even possible?). I figured I have the main database in the process - have this as the master, then in the same process create th...
Yes it is possible. Every time you launch mysql it has to read my.cnf to get the port information, socket, data files, etc. Change the port as well as the socket values. You can use the same binary with just different config files. I had to do a setup like this one time to overcome a 2GB limitation when the client coul...
0
0
119
2010-01-18T05:11:52.680
data_quality
serverfault.com
986,036
SPF and IPv6 fails even if the reverse DNS is created
When sending mails to Gmail I get this error Received-SPF: fail (google.com: domain of test@domain.com does not designate 2a01:4f8:xxx::2 as permitted sender) client-ip=2a01:4f8:xxx::2; When I test the IPv6 [CODE] reverse DNS ( https://network-tools.webwiz.net/reverse-dns.htm ) it maps to the correct host [CODE] SPF re...
Looks like you lack an AAAA record for [CODE] with content [CODE] .
1
4
1,192
2019-09-28T21:46:03.133
infrastructure
serverfault.com
998,715
Migrating certbot/letsencrypt certificate to new server
I have a server out there that supports HTTPS using a certbot/letsencrypt certificate. I am doing a general software upgrade so to minimize risks and downtime, I'm installing new releases on a new server on which I import the live server data for tests. When everything works I'll have the DNS record changed to point to...
By default, Certbot/Letsencrypt stores their configuration files and generated certificates in [CODE] . So you just need to install Certbot into the new server and copy the directory from the old one. Of course you're gonna have to configure the webserver (Apache, Nginx, whatever you're using), pointing to the certific...
4
9
4,716
2020-01-13T13:47:23.730
infrastructure
serverfault.com
1,069,575
docker postgres backup creates an empty file when run as a cron job
I'm trying to create a cronjob that creates db backups every night. My crontab has the job: [CODE] (have it set to go off every min for testing) In backup.sh, I have: [CODE] The file is always empty: [CODE] However, if I run the file on my own and type the command [CODE] , it is not empty: [CODE] I feel like it makes s...
for the command I have in the sh file: [CODE] It is running in interactive mode (-it). If I remove this, everything works (so command is: [CODE]
1
0
1,505
2021-07-14T12:48:45.487
pipeline_ops
serverfault.com
185,380
apache error log for rewrite rule
i am getting following error in apache log File does not exist: D:/wamp/www/script/products, referer: http://localhost/script/products/category/product-123.html whenever following url localhost/script/products/category/product-123.html is parsed through this rewrite rule RewriteRule ^products/([~A-Za-z0-9-"]+)/([~A-Za-...
Try: [CODE]
1
0
311
2010-09-28T12:10:30.223
infrastructure
serverfault.com
321,044
How to efficiently query with a join and a where/order across two tables?
I have two PostgreSQL tables: [CODE] [CODE] (primary key) [CODE] (date) [CODE] (enum) plenty of other columns we don't care about [CODE] [CODE] [CODE] With three indexes on [CODE] : [CODE] [CODE] [CODE] So each content can be in one or more libraries, and [CODE] is the join table. Currently there are 40k [CODE] , 100k ...
Seems odd for captured_at to be in the contents table. Surely when different libraries have the same book, they acquired it at different times? What I would like is to have an index on the filtered and sorted fields that could be used to retrieve directly the 60 final rows. But given the relational structure, an index ...
1
0
60
2022-12-15T18:56:24.173
data_quality
dba.stackexchange.com
362,658
OSX lion server, software update service can't connect to apple
I have a somewhat unique lion server setup, but it's experiencing a couple issues. The main goal is to provide a transparent update server for computers on the network, but to allow them to default back to apple's servers when not in the office (ie, zero client-side changes) in my office network, I have a DNS entry poi...
Well, looking at this kb article , I would think that you could script something client side to adjust where they look for updates? If you look at the unmanaged clients section at the bottom, it gives two commands you can run to have clients look to your server for updates and how to change them back to Apple's. Maybe ...
3
3
1,011
2012-02-22T14:48:04.453
infrastructure
serverfault.com
1,048,861
I have an IP camera that doesn't include a "from" for a status email and need to add it at the MTA
I'm using postfix on this system, and there are four cameras attached. These cameras when sending email don't include a "from" address, and they are rejected by gsuite because of that. I've seen the rewrite rules etc, but they don't cover the situation where the from address doesn't exist. What's the best way to add a ...
I found that this answer had the info I needed: Forcing the from address when postfix relays over smtp I had to make some small changes to the regex I use in this particular case (the empty From header is literally [CODE] ) but otherwise allowed me to get what I needed so I could get the mail out the door. Thanks for y...
0
0
82
2021-01-06T21:22:19.933
infrastructure
serverfault.com
37,317
Is it okay to be generalist?
Possible Duplicate: Is it better to specialize in a single field I like, or expand into other fields to broaden my horizons? I work at a ~50 employee company (UK), where all the technical people do a bit of everything. Specialising in anything for very long (6 months) is discouraged. For example, last week, I built a n...
Being a generalist is great, but in my opinion, discouraging specialization is one of the worst ideas I've ever heard. Why would you want to have everyone do every job well, when you could have everyone do their job exceptionally? Seems like a direct road to an uncompetitive company.
18
8
7,416
2011-01-17T00:32:22.937
data_quality
softwareengineering.stackexchange.com
293,987
Hiding visual relation between two tables with related data
Sorry for sharing a confusing title I have got a requirement to design a DB for a highly sensitive application. There are virtually two set of tables. One is totally demographic information or its a single table. The other set carries the actual set of sensitive data which are spread across multiple tables. So what my ...
I don't believe you'll be able to hide the relation between tables themselves other than obfuscating the names of the related columns (even then, someone with access to the data can always guess how tables relate). Although the relationships aren't explicitly visible on the server either unless you define foreign key r...
0
1
133
2021-06-09T08:04:42.847
warehouse_errors
dba.stackexchange.com
790,706
ICACLS for a remote group on a remote machine
This question concerned a local group. I'm trying to use icacls for a remote group. I've tried this way, but it didn't work : [CODE] Does icacls work for remote groups ?
I'm pretty sure that you'll either need to execute that on the remote server HOST or from a powershell remoting session to HOST. Your local machine doesn't know who HOST\GROUP is. You could probably use the SID, like the accepted answer on the linked question suggested.
0
1
435
2016-07-19T14:33:07.613
infrastructure
serverfault.com
1,118,919
ddrescue only rescued half the drive, how do I salvage the rest?
I have a USB hard drive that appears to have failed. Now I'm trying to transfer as much data as possible to a fresh drive with [CODE] . I ran into the error message [CODE] a few times, with things like this in [CODE] : [CODE] Physically detaching and attaching it again would work for a while, but now it seems stuck at ...
The disk is probably a SATA disk with a USB bridge. Open the enclosure, remove the USB-SATA bridge, and connect it to a SATA controller and repeat your attempt.
0
1
263
2022-12-27T13:50:19.107
infrastructure
serverfault.com
145,616
Problem remotely connecting to MySQL database
Good afternoon everyone. I have 3 servers on 2 different networks, all of which run MySQL. I can use [CODE] from server 1 to server 2 and back without a problem. When I try to use that command from server 3 (which is on a differnet network) to server 1 I get the following:- [CODE] I know the same command works from ser...
There could be multiple reasons for this but to start troubleshooting as it looks like the issue with permissions/grants. 1.Please check and assign proper grants on server 1 : [CODE] All is not compulsory in above query. 2.Double Check Bind parameter in in My.cnf . [CODE] Hope this helps else we can debug further.
0
0
42
2016-08-02T12:27:25.013
database_errors
dba.stackexchange.com
954,107
Is someone able to sniff our corporate emails?
To put the long story short: we discovered someone is able to access some of our "secret" links we do send to our clients over email. The links are highly secured with hashes, extremely difficult to guess them. We do suspect someone is able to sniff our emails sent out from a postfix server. Is this possible? If so, wh...
Nothing is 100% secure on the internet, I've learned that working with the local NSA Cyber Defence team. :) To put it straight: OFC someone can. Option 1: The email got caught In this scenario, simply one of the many gateways got interfered and told to send a copy of your email to the possible attacker. Option 2; Your ...
-1
1
318
2019-02-15T10:51:49.073
infrastructure
serverfault.com
313,166
Columns that can be more than 255 characters but 99% of times will be less than 255 characters. TEXT or VARCHAR(5000)? (performance)
I have two columns that can be long, but 99% of times will be short (less than 255 characters). This means that I can not use VARCHAR(255) because 1% of times I could not save data. I thought to make them TEXT type, but I read here https://stackoverflow.com/questions/44493446/mysql-is-it-a-good-practice-to-use-text-dat...
I expect it will make no difference. InnoDB stores VARCHAR and TEXT almost identically. If the string on a given row is short, the column is stored on the same page with the other columns of that row. If the string is too long to fit on the page, it is stored on extra page(s) as needed. This applies to both VARCHAR and...
0
1
575
2022-06-09T15:40:06.063
api_errors
dba.stackexchange.com
616,661
Percona XtraDB Cluster duplicate keys when server taken out of rotation
I have a three node Percona XtraDB Cluster (5.5) setup. Every night, we shut down MySQL on one randomly selected node in order to take backups of the data directory. When our traffic is reasonably busy, this causes a couple (2-4) error alerts along the lines of [CODE] . Primary key conflict, obviously, except we're usi...
From top of my head I'd say add slave to the mix and have backups done on slave without removing node from cluster. What happens is when you put node back in it does not know how the numbers of primary key advanced on active nodes before it manages to get a new write because it will not be cooling down until it catches...
1
0
694
2014-07-30T16:29:16.573
database_errors
serverfault.com
54,152
How to get e-mail from (failed) cron-jobs in Ubuntu?
I create cron-jobs in Ubuntu by placing the executable in one of [CODE] . There are lots of directories starting with cron: [CODE] I would like to get e-mail from my scripts when: A script fails and gives an exit code of non-zero. The script has something to tell me I have SSMTP installed and working, I send my mail fr...
By default, cron will email the owner of the account under which the crontab is running. The system-wide crontab is in /etc/crontab runs under the user `root' Because root is used widely, I'd recommend adding a root alias to your /etc/aliases file anyways. (run 'newaliases' after) The normal way to structure this is fo...
54
67
121,962
2009-08-14T10:01:28.570
infrastructure
serverfault.com
354,488
How to handle Google Maps locations storage and fetching
I'm developing a google maps application with 50 locations/markers and expecting it to reach about 1000 in a month, each location has a separate database record with properties: [CODE] To avoid problems when scaling the application I have 2 concerns: If the locations can reach up to 1000, is it advisable to fetch all t...
i have implemented your version (1) with openstreetmap (osmdroid) on android with about 16000 locations where the places are selected from database after each zoom/move: (sql pseudocode) [CODE] the trick is that for every zoomlevel no more that 100 locations are visible at a time. For example if you have 100 restaurant...
0
1
70
2017-07-26T09:24:59.063
api_errors
softwareengineering.stackexchange.com
105,954
Snooping-safe Vote tables
I have a table with both [CODE] and [CODE] . They are stored together so each user can only give one vote. However it's also problematic because admins can simply read who voted what. Is there a way to make it so that only the system(minus all humans) and the user knows what was voted by h(im|er)self?
How about encrypting the vote using a key that only the user and/or the system knows? Adding some more information: Use a symmetric encryption so that you can decrypt it. Encrypt outside the database. Do not use database encryption functions if you want to protect it from DB admin because admin has several ways to snoo...
4
0
67
2015-07-04T17:48:39.773
warehouse_errors
dba.stackexchange.com
483,444
How can I replicate performance counter setups in an Azure WorkerRole?
I am trying to collect performance statistics on our Azure application. Up till now, our process has been to set up the roles with RDP enabled, connect, manually set up the performance counters, log out, and then deploy the app to the running roles. Ideally I would like to have this perf config as a startup task in the...
I later found these articles, which describe the process for setting up counters in the role [CODE] method, as well as deploying additional counters to a running deployment using PowerShell. Setting Up Performance Counters In Your Azure Web and Worker Roles Automated Performance Counter Injection in Windows Azure Roles
0
0
109
2013-02-28T15:40:17.000
hadoop_errors
serverfault.com
542,992
nginx node.js & socket.io 504 timeout
Nginx config [CODE] When node.js is working everything is okay, but if node.js not started and I try to load page http://live.domain.com/socket.io/socket.io.js it makes me wait 30 seconds (read_timeout). I want make it so, that if node.js not running I'm getting 404 or 502 error right away without 30 seconds waiting fo...
A flexible solution would be to use [CODE] : [CODE] This way you can additionally control how many failures are tolerated and you can have multiple servers in one upstream.
0
1
4,379
2013-10-01T15:00:52.927
infrastructure
serverfault.com
448,447
Cisco SLM248G Switch Hardware Reset
We have two Cisco SLM248G switches within our environment. After some research, it seems that one is causing a few problems because during heavy loads, it is sending transmissions to our firewall (Cisco RV082), causing it to reset frequently. I figure it might be a voltage issue so we temporarily disconnected it which ...
We had the same issue with a few other Linksys SLM switches in that series. We had to use IE 6 on Windows XP to make it work. I ended up installing a VM with XP just to upgrade the firmware.
1
1
1,207
2012-11-14T01:45:20.287
infrastructure
serverfault.com
461,275
Can't Change message size limit in postfix?
[CODE] Shows: [CODE] This limit was not set in [CODE] so I assume its a default? I added [CODE] to my [CODE] and restarted postfix. But I still get [CODE] from [CODE] . It's not accepting my change. why?
From the [CODE] : [CODE] You have do not use [CODE] parameter in the invocation of [CODE] utility.
5
8
8,141
2012-12-27T21:17:47.437
infrastructure
serverfault.com
323,644
Find duplicate values by joining tables SQL server
Finding the duplicate values in the 'Item_Sales_Detail' table as NULL rows in the 'Sales' and 'Item' tables by joining three tables. 'Sales' table (ID is primary key) ID Invoice Date TotalAmount 10 00000000100001 02/02/2023 2000 20 00000000100002 02/02/2023 1500 30 00000000100003 02/02/2023 18000 'Items' table (Sales_I...
Enumerate each instance of an item and match it against [CODE] . Replace [CODE] and [CODE] with nulls where the number exceeds the quantity: [CODE]
1
1
301
2023-02-16T19:59:32.463
api_errors
dba.stackexchange.com
444,008
Custom #pragma directives
I'm creating a language parser on a microprocessor in C++. For the tables of keywords and commands, rather than maintaining a single curated file (alphabetically sorted, etc), I'd prefer to declare them in the header files for each set of functions (ie, unsorted). Then, I can have the makefile run a program to scan the...
[CODE] directives are completely implementation-defined . That means the language implementation, which you are creating. You can do whatever you like with them. Literally anything. It would be sensible if the first thing in your own custom pragmas was the name of your implementation, like GCC does , so you don't confl...
0
6
421
2023-02-16T18:02:02.830
api_errors
softwareengineering.stackexchange.com
1,054,996
Routing traffic from a bridge interface (with IP assigned) to another network on a different local interface
I'm on Ubuntu 20.04 and am running virtual machines (KVM) locally that are attached to a bridge interface on the host. The bridge (and all VMs attached to it) are getting their IPs via DHCP from a DSL/router on the same network. The bridged interface on the VM host looks like this: [CODE] I've enabled IP forwarding on ...
After ignoring the problem for a long time (I found another workaround) I finally forced myself to have a go at this one again. Turns out the fix was surprisingly simple: Just enabling masquerading on the tun0 interface did the trick. [CODE] This obviously only works correctly if you have enabled routing on the VM host...
1
1
3,473
2021-02-25T09:28:46.803
infrastructure
serverfault.com
383,334
Postfix and Send mail from Virtual Host
I currently use postfix to send mail using [CODE] addresses, mail reception for this domain are handled directly by my provider (OVH). So far so good mails are sent using DKIM no problem. However I got to change my domain name to [CODE] . So I bought [CODE] and redirected it to the same server as [CODE] . The problem i...
By using a sender address that contains domain2.com, of course.
1
1
618
2012-04-26T09:25:21.477
infrastructure
serverfault.com
179,572
Sonicwall vpn user cannot be accessed by VPN tunnel
I have a user accessing a Sonicwall NSA 2400 via vpn (Site A). This Sonicwall has a VPN tunnel to another site (Site B). The user can ping servers at Site B, and access websites located on them, etc. People on the physical LAN at Site A can ping and telnet to the vpn user. However, the problem is that the servers locat...
There are a number of possible reasons for this. Routing If the Sonicwall performs SNAT for any traffic going from Site A to Site B (possibly due to overlapping subnets), then traffic from the vpn user towards the servers at B will work and the reverse will also work, because the original address has been replaced by t...
1
2
3,198
2010-09-09T15:06:03.907
infrastructure
serverfault.com
265,644
SQL Server evaluates where condition before or during the run?
I have a Stored Procedured that looks similar to this: [CODE] Basically as you can see all the parameters they work as filters. Lets say that I send only the @first_name parameter the performance will be the same as checking the parameters once and then running the following query: [CODE] Or for each row sql will evalu...
As your procedure is written, you cannot pass only the @first_name parameter, since the other parameters has no default value. But I assume you meant them to have NULL as default, or that you will pass NULL for them. There is nothing special about NULL. SQL Server will create a plan based on the values for the paramete...
1
1
79
2020-04-23T06:43:19.557
database_errors
dba.stackexchange.com
762,921
QOS with iptables and tc with unstable WAN
I have a router/gateway under Linux, I want to add some QoS to reserve bandwidth for a specific flow. This can be done with iptables/netfilter and tc, but all examples start from the fact that you know in advance the total bandwidth available. Problem is, my WAN is a moving 3G connection, with variable performances. On...
You should be able to reach your goal with hfsc scheduler. You will have the ability to reserve a part of the bandwidth and give low latency guaranty with "real time", the other classes will proportionnally fill the rest of the bandwidth with "linkshare". It is important here to use real time and not linkshare, because...
2
1
5,723
2016-03-10T15:14:14.873
infrastructure
serverfault.com