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
982,704
Office365: Error trying to create Inbox Rule via PowerShell
In our Office365 environment I'm trying to programmatically create rules that will move incoming messages based on the distribution list they were received as. However, while prototyping, the following command consistently creates an error: [CODE] The error is: WARNING: An unexpected error has occurred and a Watson dum...
I finally managed to script the rule creation. Apparently, the admin user account that is running the script has to...: have a mailbox of their own (=> requires an Office365 license, particularly an Exchange Online license) have full access permission on the target mailbox As far as I was able to tell, it is also neces...
1
1
2,227
2019-09-10T15:00:27.457
infrastructure
serverfault.com
852,782
Ping works but TCP doesn't in a bit of an unusual topology
I'll first say that I didn't design this network from the get go, so the topology came as a surprise even to me. There are two subnets (one is our companys and one is our clients) which reside in the same physical location, and because of that the networks are separated by VLAN:s. However, in addition to this both us a...
Your network is working as expected. Lets draw it: This is a simplification I'm sure, but has enough information here to show the problem and the various fixes (and their drawbacks) Assumptions Each device uses the LAN's firewall IP as its default gateway. DNS is not important All netmasks are /24 in this example The t...
3
8
9,998
2017-05-29T10:13:36.497
infrastructure
serverfault.com
301,649
rsync --files-from specifies folders but does not copy files, recursive does not fix it
I've just recently revisited a script that I maintained a few years back and trying to get it to work on a new server. It basically runs the following [CODE] dirlist.txt is a plain text file that contains directories with files I want synced relative to [CODE] [CODE] and excludelist.txt is a plain text file that contai...
I had a similar problem a while ago. My solution was to opt for the filter rule as follows: rsync --archive -r --filter="merge fromfile" --dry-run [CODE] This excludes any sub directories named ppc, any top level directories el2, el3, el4, includes el5 and excludes everything else.
0
0
2,345
2011-08-16T14:46:09.160
infrastructure
serverfault.com
459,779
Warn users that the server is under maintenance
From time to time, an OpenERP production server needs some maintenance: upgrading a few modules, probably having a server restart. My issue is, I would like to have a way to stop regular users to access the server. For example, by returning to them a "under maintenance" message. What would be the best solution for this...
If the server is rebooting, usually you'll need some kind of failover IP or at least a caching proxy in front of the application server (in this case, OpenERP) to tell the user that it's down. Otherwise, while the server is offline, you'll just get a generic browser error message returned to the client, like "server no...
2
2
1,049
2012-12-20T11:17:51.087
infrastructure
serverfault.com
724,114
Attempting to initialize AWS EB, getting 'signature not yet current error'
I'm on my local machine. I'm a dev guy with no idea about ops. After selecting [CODE] for my region after running [CODE] on the command line, I get this: [CODE] I've looked around for answers and it appears it's a time zone issue experienced by others after their applications are already deployed and they solved the pr...
Your problem is not a timezone issue. If it was a timezone issue, then the time difference would be in increments of hours rather than minutes. Your system clock is 5 minutes, 52 seconds ahead of Amazon's clock, which is greater than the variance allowed by Amazon's signature algorithm (5 minutes). Compare your system ...
1
5
4,377
2015-09-22T20:07:16.633
infrastructure
serverfault.com
510,365
TCP Congestion Window on Windows Server 2003
After reading this blog post by Ben Strong, I started looking on the internet for information on how the Initial Window size could be manipulated on Microsoft Windows Server 2003 (R2, 64bit in case it matters). Turns out that there is some information on tuning TCP/IP for Windows, but I couldn't find anything that woul...
Be aware that there are typically two windows with TCP: The receive window (receiver controlled flow control) and the congestion window (sender controlled flow control). In this case, he is talking about the initial congestion window (often called initcwnd in the case of Linux.) At least in 2008 R2 with a hotfix this c...
3
3
526
2013-05-23T19:13:02.837
infrastructure
serverfault.com
577,185
Odd TCP termination sequence
While troubleshooting another thing, I've noticed an odd pattern of TCP closes. Packets: http://www.cloudshark.org/captures/7590ec4e6bef What's happening is that the last few packets of the close sequence are getting retransmitted for some odd reason. The pattern is in the cloudshark link, but for posterity here is a s...
Note that the PSH/ACK packet in frame #2 of your capture is carrying 37 bytes of data. It is not a response to the FIN request from 10.232.16.133. The response follows in frame #3, the ACK to that is in frame #5. What seems to be happening now is that this last ACK does not make it to the destination, so the FIN/ACK se...
5
5
502
2014-02-20T20:43:01.853
infrastructure
serverfault.com
283,075
how to get the difference between 2 tables in 2 different schema's in Oracle?
I am using Oracle 11G. I have a table called Tickets in the schema called ' tickets1 " I have the same table structure in another schema called ' tickets2 ' I want to find out What data is the same in both tables? What data is different? [CODE]
To mustaccio's point, there's nothing particular about a schema that prevents you from querying objects from different schemas within the same query (putting privileges aside - since that's a function of security, not a unique feature of schemas). So you can use a [CODE] between the two tables across schemas with an ap...
0
1
1,863
2021-01-12T15:23:55.490
database_errors
dba.stackexchange.com
1,043,300
vsftpd Authenticating FTP server against Windows AD server not working Ubuntu
I'm trying to authenticate vsftpd on an Ubuntu server against my Active directory server. I have joined the domain successfully following this article: https://nerdonthestreet.com/wiki?find=Authenticate+Ubuntu+19.04+against+Active+Directory I can login normally to the linux system. I then installed vsftpd on my Ubuntu ...
change these lines in [CODE] anonymous_enable=YES #secure_chroot_dir=/var/run/vsftpd/empty add these lines: userlist_enable=NO tcp_wrappers=NO session_support=YES add these lines to [CODE] auth required pam_env.so auth sufficient pam_sss.so account sufficient pam_sss.so session required pam_loginuid.so then restart the...
0
0
975
2020-11-20T07:10:06.137
infrastructure
serverfault.com
40,166
Skewed two class data set
Is there any theory on the influence of skew in the data set on the performance of binary classifiers? At work, we are doing abuse detection, the negative population is regular logins, and the positive population is attack logins (account take over = ATO). However, the frequency of ATO logins is 1/50,000 or less. So, w...
It is typically called a class imbalance issue, where the occurrence of a label happens so infrequently that makes predictions unreliable. For instance, if I know Vancouver, Canada rains 85% of the time in winter, I would simply predict that it is raining when it is winter + vancouver. You don't want your algorithm to ...
0
1
131
2018-10-24T16:09:23.020
data_quality
datascience.stackexchange.com
70,184
What are my options? - Separating out the UI
I'm working on a project where the everything is driven from the a .dll on the server. The UI and the business rules are all on this .dll This makes it pretty difficult to debug. My question is, I would like to present alternatives to allowing the users to the ability to still create customized screens without the UI a...
The most obvious answer is Model-View-Controller , one of the best known approaches to isolate domain (business) knowledge from the user interface. Essentially this pulls apart three main parts of a typical application: The Model, which represents the domain/business. The View, which represents the user interface. The ...
2
1
108
2011-04-21T13:00:04.160
api_errors
softwareengineering.stackexchange.com
205,203
How to secure a VM while allowing customer RDS (or equivalent) access to its desktop
We have a Windows Client/(SQL-)Server application which is normally installed at the customer's premises. We now need to provide a hosted solution, and browser-based isn't feasible in the short term. We're considering hosting the database ourselves, and also hosting the client in a VM. We can set all this up easily eno...
There's only a limit on RDP connections if you don't buy any more licenses. What hypervisor are you using? VMWare's ESX/i products have a web-based console system built in.
1
1
93
2010-11-23T16:15:00.140
infrastructure
serverfault.com
180,322
How do you map a virtual drive letter to a net work path on Windows
There are two computers PC1, PC2, there is a fold named: D:\Soft in PC1, and I want to use just one copy of soft. so I used psubst to create a virtual driver D: in PC2 like below, and it works very well until I restart the PC2, the problem is that if I restart the PC2, the virtual driver D: will disappear. psubst D: \P...
I don't know that command, I always used "net use": [CODE] After reboot the drive must still exist, but connection might not be done unless you try open it and enter password manually. This may need to be done every boot.
0
2
1,399
2010-09-12T09:28:13.460
infrastructure
serverfault.com
837,901
Issue serving multiple SSL certs via nginx
I've got two domains both with SSL certs on one nginx instance. I'm trying to redirect http to https and removing www hostname on both domains i.e. http://www.site1.com redirects to https://site1.com What I've got at the moment, http://site1.com redirects fine and issues the correct cert, however http://www.site1.com i...
You do not have certificates defined for the [CODE] and [CODE] server blocks so [CODE] is probably using whichever certificate was loaded first in the configuration. Your certificates are presumably defined in the [CODE] and [CODE] files. Assuming that your certificates are valid for the [CODE] variant of the domain na...
1
3
3,131
2017-03-13T08:54:17.537
api_errors
serverfault.com
340,080
How to do efficient code review during release fever?
The deadline for a release is tomorrow, your collegue finally finished his task that's crucial for this release, project manager is standing over your shoulder and presses you to finally make a build and you notice a flaw in your collegue's code during review. Not a critical one, but something you wouldn't let go if it...
The answer here is to communicate. Tell the technical/team lead about the issue Talk to QA about the potential impact Tell project management (who is right behind you) that there might be an issue that causes the release to be delayed, and you will get back with them ASAP (in a matter of minutes or hours) Evaluate whet...
18
17
963
2017-01-12T16:59:15.550
api_errors
softwareengineering.stackexchange.com
8,192
How do you monitor and alert on thrashing containers?
Are there any proposed best practices for how to monitor for thrashing containers? We're in a situation where we have containers that might try to come up and will crash -> restart a few dozen times without anyone noticing. However, it's "normal" for containers to be so ephemeral, so tracking this sort of anomaly seems...
Regardless if containers are ephemeral or not, there's two things you could consider not normal : Non-zero exit codes Restart count > 0 at the orchestration layer How you can alert on those metrics will vary wildly between orchestration layers, providers and monitoring tool. I'll keep the discussion about the principle...
7
3
725
2019-05-21T16:19:10.313
data_quality
devops.stackexchange.com
948,853
SquirrelMail doesn't send or receive any mail
I just tried to set up a mail server on my Ubutnu 14.04. The goal is to be able to send mails from info@mydomain.com and receive mails sent to the same adress. Now I followed this tutorial to install Postfix, Dovecot and SquirrelMail. I followed the tutorial and everything worked fine. Additionally, I added my [CODE] -...
You have (at least) two distinct issues here: First, you can't receive mail with the error [CODE] . This means that Postfix is not configured to receive mail for your domain name. To fix the problem you will need to reconfigure Postfix, e.g. with [CODE] and give it the correct domain name. It appears that Postfix was s...
1
2
1,400
2019-01-13T16:43:02.887
infrastructure
serverfault.com
1,085,907
Change IP address from 192.x.y.z to 10.u.v.w for whole network with Powershell
Out Network moves from 192.x.y.z to 10.u.v.w and I don't want to readdress 250 Computers by hand. My idea is to use a powershell script (test for a single pc): [CODE] If all NICs got it's new IP, remove the old IP with [CODE] . Currently, the [CODE] does not work as expected, but my main question is: Am I on the right ...
You should use DHCP to provision the IP addresses for your network. All computers then have DHCP enabled, and they get the correct IP address from the DHCP server.
-1
6
201
2021-12-10T08:23:28.520
infrastructure
serverfault.com
309,831
Secure authentication using JWT
I read about JWT and how they can provide secure authentication for calling api routes over http. I naively implemented it and here is how it goes : a client posts username and password to a login route the server checks if the credentials are ok, creates the token and sends it back the client keeps the token and adds ...
What I am missing here ? "s". You need to be using http s , which is end-to-end encrypted, not "raw" http.
1
3
152
2016-02-11T09:13:59.477
api_errors
softwareengineering.stackexchange.com
441,868
Is it okay to open separate database connections in each method or is there a better way to do it?
I have a static class in my code that has two methods that store different data in a SQL database when they are called. In each of the methods I open a connection to the database. Is this the proper way to do it or is there a better way to do it? My Code [CODE]
In dot net the connection class uses a connection pool under the hood to reuse a single network connection to the db. You should structure your code as per the example: [CODE] https://learn.microsoft.com/nl-nl/dotnet/api/system.data.sqlclient.sqlconnection?view=dotnet-plat-ext-6.0 Also, here is an example of parameteri...
0
2
960
2022-10-25T17:31:17.923
api_errors
softwareengineering.stackexchange.com
151,375
Are Intel compilers really better than the Microsoft ones?
Years ago, I was surprised when I discovered that Intel sells Visual Studio compatible compilers. I tried it in particular for C/C++ as well as fantastic diagnostic tools. But the code was simply not that computationally intensive to notice the difference. The only impression was: did Intel really do it for me just now...
WARNING: Answer based on own experience - YMMV If the code is really computationally expensive, yes, definitely . I have seen an improvement of over 20x times with the former Intel C++ Compiler (now Intel Studio if I recall correctly) vs the standard Microsoft Visual C++ Compiler. It's true the code was very far from p...
57
58
44,701
2012-06-03T12:01:54.783
spark_errors
softwareengineering.stackexchange.com
112,306
Query to remove duplicate calculated values
I have a client running SQL Server 2008 R2 SP1, and I can't seem to write a query that has distinct calculated values. I could change the schema to store the value being calculated, but I was curious if there was a way to do this from within a query without modifying schema (for scenarios where client schema modificati...
Converting my comment as answer ( SQLFiddle ): [CODE] The above will result : ( click here to enlarge ) Note: As Aaron commented, you should remove CityID if not required in output list.
1
0
107
2015-08-26T18:27:38.623
data_quality
dba.stackexchange.com
257,669
Recovery strategy for Master-Master replication
I have implemented a HA solution for mysql based on master-master replication. There is a mechanism on the front end part which guarantees that only one db will be read/written to at a given time (i.e. we only use replication for HA). I have confirmed replication works as expected, but I am wondering about failure scen...
There are two basic approaches to this problem that I am aware of. First, if you are running InnoDB instead of Myisam, then you can do the backup in a transaction (--single-transaction --lock-tables=FALSE), which combined with --flush-logs (not required but nice) and --master-data will give you a consistent backup with...
8
2
3,682
2011-04-09T08:43:46.860
database_errors
serverfault.com
1,146,171
How to gather application logs which are generating in custom path using EFK
I created the elasticsearch and kibina setup which is running outside the kubernetes cluster and i am using fluentd to gather kubernetes logs and to send data to elasticsearch. I am running fluentd as a deamonset in kubernetes. [CODE] But with this code i am able to gather only kubernetes node level logs, I want to gat...
You can customize your DaemonSet configuration to include FluentD configuration that tail specific log paths on the host node. This involves editing the FluentD configuration to include specific path patterns you want to monitor and setting up hostPath volume mounts for those paths in the DaemonSet YAML. [CODE]
0
0
44
2023-10-19T11:25:09.480
pipeline_ops
serverfault.com
280,004
How to index range condition and ordering by a different colum?
I use PostgreSQL and i have a table like this: [CODE] I'd like to get the user's "biggest transactions" for the past N days with a query like this: [CODE] The user can choose the number of days and the limit he is interested in. The query plan is like this: [CODE] So postgres gets all rows which match the user_id and t...
No, you can't do that with any of the core index types. You might be able to use the RUM extension , but last time I tried something like this with it I couldn't get it to work for this purpose. Once you have enough data that you actually need improvement (sorting two rows is not laborious, as you note), you might get ...
1
4
253
2020-11-20T02:52:30.823
database_errors
dba.stackexchange.com
804,408
2 Reserved IP's for a VM in Azure
I am trying to assign to a second Reserved IP to a Cloud Service in Azure using: Set-AzureReservedIPAssociation -ReservedIPName somereservedipname -ServiceName someservicename but i get this error message: Set-AzureReservedIPAssociation : BadRequest: The deployment with name 'somename' already has a reserved Ip 'someip...
Finally got it! So Set-AzureReservedIPAssociation doesn't seem to work but you can use: Add-AzureVirtualIP then associate it to an endpoint using: Get-AzureVM -ServiceName myService -Name myVM1 | Add-AzureEndpoint -Name myEndpoint -Protocol tcp -LocalPort 8080 -PublicPort 80 -VirtualIPName Vip2 | Update-AzureVM and fin...
0
0
115
2016-09-21T09:05:13.613
pipeline_ops
serverfault.com
123,907
Prediction intervals for future timestamps - out-of-sample
I've created a model for out-of-sample forecasting that uses multistep recursive strategy to reduce my problem to regression, the predictions are sufficient but I was wondering if there is any possibility to add something like prediction intervals - I know how to do this using residual based solutions (e.g. RMSFE) only...
We can build a Prediction Intervals (PIs) once we have a set of predictions. Method 1: RMSFE (Root Mean Squared Forecasting Error) RMSFE is similar to RMSE. The only difference is that RMSFE has to be calculated on residual terms from predictions over unseen data (ie. Validation-set or Test-set). Method 2: BCVR (Bootst...
0
0
86
2023-09-29T09:19:50.550
data_quality
datascience.stackexchange.com
1,146,126
Iptables block incoming connections to network interface from subnet
I have a Linux machine that uses Hostapd to serve a WiFi hotspot. I also have a Raspberry Pi that connects to this WiFi hotspot as a DHCP Client. The Linux machine has a Cellular interface and shares this internet connection with the Raspberry Pi, using ipv4 forwarding in the Kernel. Furthermore, the machine has a Wire...
Here's how to do this when using iptables . Drop traffic to the host itself for destination 10.10.0.3: The packet enters from the [CODE] interface, not from the [CODE] interface. The source address doesn't really matter: Device 2 is already identified by the input interface. And just state the destination: [CODE] It's ...
1
3
346
2023-10-18T19:40:42.963
infrastructure
serverfault.com
339,302
exim "temporarily rejected after DATA"
for two days now I always get the following message when receiving or trying to send mails in /exim4/mainlog [CODE] when trying to send mails. Receiving is also not working. Restarting exim didn't help... Does anyone know what could be the problem? Regards
Looks like a permission problem with the exim log file(s) - exim is apparently set up to write own log files (and not log to syslog), but is disallowed to write them by filesystem permissions. It depends on the distribution and your configuration what files and directories are affected. Running [CODE] should help resol...
0
1
5,043
2011-12-09T08:20:02.190
infrastructure
serverfault.com
532,915
Compaq SmartArray 5300 controllers - how to recreate logical volume without data loss?
My company owns an old server Proliant ML370 G2 on which we had all of our web logs. But one disk of the Smart Array 5300 v1.76 crashed, with it the whole server (????). But then on the Smart Array manager, after a reboot, there was no more Logical Volume. So my question is, could I recreate a logical volume, without e...
Nah... this probably won't work. HP Smart Array controllers store the array metadata on the drive. But perhaps during the failure, the logical drive was faulted entirely. A single disk failure should not cause data loss, unless the array was configured in RAID 1. Was this array configured in RAID 0? If so... well, the ...
2
1
478
2013-08-22T11:54:09.330
infrastructure
serverfault.com
29,381
How does SQL Server order results when joins are used?
How does SQL Server figure out the order of the records in the result set of query execution? I am trying to make heads or tails of it but find myself scratching my head. When I change the fields I am selecting the order also changes. When I execute the below SQL with a [CODE] I get the same records but in a much diffe...
Since you haven't told SQL Server how to order the results, it is free to do so in whatever is the most efficient. In this way it will depend on what is the cheapest to sort, and the columns you select will drive that because it in turn depends on the cheapest index(es) to use to get at the information requested by the...
12
21
3,987
2012-11-27T20:38:12.203
database_errors
dba.stackexchange.com
293,697
Can higher order functions ever be pure?
I was thinking about pure functions especially in the context of C++, which of course is not a purely functional language, and was wondering if higher order functions in C++ can ever be considered pure? Take for example [CODE] : it would be very pure except it takes another function, which might not be pure. There seem...
You're right, this is an issue when one wants to reason about purity of functions in a language that permits impure functions. Technically almost all languages allow impurity, but the purely functional ones usually explicitly mark the impure ones in the type system, such that the Haskell function [CODE] does, implicitl...
8
3
1,366
2015-08-14T10:03:34.163
data_quality
softwareengineering.stackexchange.com
11,981
How to authenticate with certificates using sudslibrary in robotframework?
I'm testing soap messages using RobotFramework and sudslibrary. I need to authenticate session with a certificate. Is there a way to do this? I did not find a mentioning of this in the documentation or trough googling, but I guess somebody else has had to run in to same problem.
I will answer my own questions if somebody else stumbles unto this same problem. No, there is no (simple) way for doing this. Sudslibrary is based on suds and that support only Soap 1.1. Soap 1.1 does not support authentication with certification. If possible, publish version of the service you are testing that uses ba...
1
1
964
2015-01-29T10:00:09.347
data_quality
sqa.stackexchange.com
1,030,477
How to work Stun/Turn Server (COturn) Under Aws Network load balancer with TLS
I have just setup a coturn server, it works perfectly fine when using the ip or teh domain without loadbalancer, it was tested using this online tool : [CODE] The problem is when i use a network loadbalancer, rerouting tcp_udp works on port 80, but when trying to use tls for port 443, it doesn't work. I configured the ...
Do not use a load balancer with STUN/TURN servers. You can make the server larger or implement your own "load balancer" by rotating the server IP in your client application. You appear not to understand the fundemantals of what is a load balancer and how STUN/TURN work, especially over HTTPS. TURN is not using HTTP/HTT...
0
1
2,762
2020-08-17T16:58:36.790
infrastructure
serverfault.com
43,924
Most significant server outages in the past decade
What is the most significant server outage/downtime that occurred within the last decade due to performance issues, bottlenecks and scalability problems? Two such examples are the constant problems Twitter has had as soon as it became popular and the Google downtime early in 2009. What other such incidents you are awar...
Northeast Blackout of 2003 The Northeast Blackout of 2003 was a massive widespread power outage that occurred throughout parts of the Northeastern and Midwestern United States and Ontario, Canada on Thursday, August 14, 2003, at approximately 4:15 p.m.Eastern: UTC -5. At the time, it was the second most widespread elec...
7
3
896
2009-07-22T08:01:00.700
infrastructure
serverfault.com
258,558
How to setup a CNAME entry
A third party has asked me to setup a new subdomain and point it too sub.theirdomain.com. Apparently I can do this with a single CNAME record. Although I set it up over 24 hours ago, it doesn't seem to be resolving. Here's the entry I made: [CODE] Does that look OK? The host is Webmasters, and I asked their helpdesk wh...
An HTTP server not found error doesn't mean that the DNS is not working. Try doing the following and see if it resolves correctly. It should say sub.mydomain.com cnames to sub.theirdomain.com [CODE] If it resolves then telnet to port 80 to see if its open. [CODE]
0
2
418
2011-04-12T02:38:12.743
infrastructure
serverfault.com
710,482
Exchange 2010 - how to hide first hop IP from mail headers
My company has an Exchange server which forward outgoing emails to a mailhub, which has a spam filter. (user)----(company's Exchange)----(mailhub with antispam)----(the world) It happens that my users send emails with the company's Exchange using their home DSL connections, which quite frequently are blacklisted by RBL...
In exchange 2010 you can rewrite some headers but not the "received" header. So the answer to your question is "you can't". At least natively with Exchange, maybe a third party program could do it... If Outlook Anywhere is not a option (as suggested by joeqwerty), I would say that you should force home users to pass tr...
0
1
505
2015-08-03T13:10:58.927
infrastructure
serverfault.com
1,095,567
SSH server refuses multiple connections from same client
I have a simple openssh server running in a Alpine Linux 3.15 Docker container, and a client, also running on another Docker container (same version of Alpine of the server) that runs a X server with dwm The client is able to open a graphical application ( [CODE] ) through X11 forwarding from the server to the client d...
The "-d" option of the [CODE] command is used for debugging. It has this effect: Debug mode. The server sends verbose debug output to standard error, and does not put itself in the background. The server also will not fork(2) and will only process one connection. This option is only intended for debugging for the serve...
0
1
299
2022-03-07T15:45:38.740
pipeline_ops
serverfault.com
216,721
Drupal + Lighttpd: enabling clean urls (rewriting)
I'm emulating Ubuntu on my mac, and I use it as a server. I've installed lighttpd + Drupal and the following configuration section requires a domain name in order to make clean urls to work. Since I'm using a local server I don't have a domain name and I was wondering how to make it work given the fact the ip of the lo...
The fastest (quick&dirty) way is to edit your hosts file: http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/ Add: [CODE] Replace 10.10.10.1 with the IP of your Ubuntu instance.
0
0
218
2010-12-28T15:05:16.820
infrastructure
serverfault.com
225,867
Multiline UDF or Stored Procedure for SSIS Data Source
We are creating an SSIS Data source with complex code. I read MultiLine Table Functions are slow. Would utilizing a stored procedure produce any faster results when streaming data from one place to another? Table Valued Function Very Slow
It will always depend on the logic being implemented but I'd consider at least the following items when choosing between the two object types as a SSIS data source... Are you planning to modify data in a permanent table as part of the logic? You may be restricted to using a stored procedure if you need to perform inter...
0
1
136
2018-12-27T17:24:06.817
database_errors
dba.stackexchange.com
3,502
What does "slot 80 for LOB data type node does not exist" error in sql server mean?
When I modify a table in SQL Server 2008 I get the following error: The Database ID 29, Page (1:235225), slot 80 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE Can any one help me?
While normal columns are stored in the actual row record (the structure on disk), LOB columns are stored on a different page, leaving a pointer to that page on the original page. When you scan a table, all the data pages will be scanned, including the pointers to the LOB pages. If the timing is right, and you're runnin...
4
10
6,260
2011-06-27T08:40:30.930
database_errors
dba.stackexchange.com
810,266
Routing with Quagga and OpenVPN
We plan to connect servers in two racks with each other. Let's assume we have 5 servers in each rack, connected with a fast switch. Each server has a 1 GBit Internet uplink. The following might be very stupid, but networking is not my area of expertise, that's why I need your help. We are creating several OpenVPN conne...
In short, you should put all of your interfaces in the same area to get the behavior you desire. Inter-area routing is quite complicated internally and the whole concept of areas exist primarily for the sake of partitioning large routing networks into managed-size ones. This is not your case, if number of routers you g...
1
0
1,282
2016-10-20T15:11:03.953
infrastructure
serverfault.com
405,726
max_binlog_size & log-bin size
I have a problem with full disk [CODE] my.cnf: [CODE] mysql is creating files mysql-bin.xxxxx and my disk is full after several days. How to make mysql to delete old logs ?
In addition to setting [CODE] you can run a command immediately to purge old logs: [CODE] Make sure no slaves are reading from logs you're trying to purge, or you will break replication. See the MySQL Reference Manual: Binary logs
11
10
23,248
2012-07-07T21:05:00.457
database_errors
serverfault.com
437,077
In vertical slice architecture, how can I deal with entities/repositories that are used in multiple slices?
I'm trying to group the components of my system by funtionality. This is the analysis class diagram of my system model. A service class that involves a [CODE] entity might necessarily interact sometimes with [CODE] , [CODE] , or also (to a lesser degree) [CODE] . This also applies with the repository classes of each en...
You are separating data from function. This does not pair well with what you're trying to do. Your class diagram contains only data structures. This is something you'll always have to touch when developing something new, or even when changing features. So changes will not be localized this way. Based on your other post...
4
4
2,454
2022-03-01T21:24:53.463
api_errors
softwareengineering.stackexchange.com
847,090
Unable to install NDES
I have enterprice CA running on a Windows 2008 box. I am trying to configure NDES on a windows server 2012 R2. I followed all the instructions word by word from this blog: http://windowsitpro.com/security/setting-network-device-enrollment-service but it fails with the following error: Failed to install RA certificates....
As stated in Microsoft KB article , this error may occur if the certificate enrollment request is using a recently-created certificate template. When a new template is added to the CA, the HKEY_CURRENT_USER cache is immediately updated but the HKEY_LOCAL_MACHINE cache is not immediately updated. The HKEY_LOCAL_ MACHINE...
0
2
2,779
2017-04-28T08:16:53.447
infrastructure
serverfault.com
882,480
Rudder add new directive shows no parameters
I've upgraded to rudder 4.2.1 and now I can't create new directives because I get [CODE] under Parameters. I see that there has been a change recently that introduced this behavior (see Redmine ). However somehow this always seem to return an empty list in my installation. I can still edit existing directives. Is there...
We just found the problem and are in the process to release a 4.2.2 with a correction. It should be available tomorrow. In the meantime, you can downgrade to 4.2.0 or build the Rudder war from commit:e71e5730a968ada9de2743255edfea6e3f286061 and replace the one in [CODE] and restart Rudder (make a copy of that one in ca...
1
0
71
2017-11-08T15:17:09.540
infrastructure
serverfault.com
528,875
Third-party SSD solutions in ProLiant Gen8 servers
I was wondering if anyone had any specific experience using Intel DC3700 SSDs (or similar) in the HP (DL380p) Gen8 servers? I'm upgrading a set of database servers that use direct-attached storage. Typically, we use HP-branded everything in our server configs, and beyond a few SSD'd desktops (all of which have worked f...
Here's an update to summarize my takeaways from this question. Thanks for the contributions! It's fair to say that the original question presumes an OEM storage solution (HP SSDs in this case) provides a supported or "guaranteed" working solution in terms of component compatibility and system performance. This obviousl...
26
5
66,955
2013-08-05T22:00:30.963
pipeline_ops
serverfault.com
1,062,867
Clarification on certificate bundle vs certificate chain
I'm in need of a clarification about SSL certificates, I have the general picture, but I'm not quite sure about all the moving parts. The specific issue I'm dealing with is about an Active Directory server certificate and an appliance that needs to establish a connection over LDAP. The appliance requires an input to co...
Normally a certificate bundle refers to a bundle of Certificate Authority certificates, like this one https://curl.se/ca/cacert.pem included with cURL. A certificate chain usually means a server certificate and its intermediary certificate chain, all included in the same file or not, depending what options your softwar...
5
2
4,753
2021-05-07T09:35:45.577
api_errors
serverfault.com
380,715
How to Redesign and scale legacy MVC application
I’m working with legacy web app for managing an animal shelter which need to be rearchitected/redesign, so it can scale and be possible to deploy in a central location. Currently it's physically deployed on the servers at customers locations (9 and more waiting till centralizing will be possible). Short description of ...
You probably don't need to change the architecture or technologues used In order to achieve your stated goals. It looks like you have identified the things about your application which are slightly old fashioned and are preposing to change them to new technologies which do the same job. While this can be a good thing t...
0
3
267
2018-10-29T06:34:21.660
bi_errors
softwareengineering.stackexchange.com
191,692
High Availability. HAProxy Nginx application server
Does it make sense to have this architecture where users connect to https://a.com then HAProxy does TCP redirection to one of the servers defined in the cluster, then once that server gets the data (NGINX) it will decrypt the SSL and then pass the request on to an application server (COldFusion) on another machine. So ...
It sounds like you're doing premature optimization. If you already have a load that warrants that architecture, then you should also have facts about CPU load etc from your current servers. So basically the data is going through 3 machines , HaProxy, NGIX and Finally CF. Is Latency a big issue here? Normally, no. Each ...
3
2
683
2010-10-16T19:37:38.923
infrastructure
serverfault.com
591,655
What domain name should appear in a DKIM signature?
I followed these instructions to setup OpenDKIM with Postfix, and it works as advertised. My outgoing mails have the DKIM-Signature header added, for example: [CODE] My question is about the [CODE] parameter above. In cases where one mailserver handles the outgoing mail of multiple virtual domains, should the d= contai...
A [CODE] signature from the sender's domain is most reliable, and may be required by the sender's email policies. With the introduction of [CODE] it is now possible for domains to publish a policy with desired actions for email which does not meet the policy. [CODE] is intended to match the sender from the header, whic...
8
4
6,768
2014-04-27T23:10:09.817
infrastructure
serverfault.com
260,787
What can one do to improve readability of math-oriented code in C#, Java, and similar?
As both a C programmer and a C# programmer, one of the things I don't like about C# is how verbose math functions are. Every time you would have to use a Sin, cosine, or power function for example, you'd have to prepend the Math static class. This leads to very long code when the equation itself is pretty simple. The p...
You could define local functions that call the global static functions. Hopefully the compiler will inline the wrappers, and then the JIT compiler will produce tight assembly code for the actual operations. For example: [CODE] You could also create functions that bundle up common math operations into single operations....
16
14
2,641
2014-10-24T01:32:24.160
api_errors
softwareengineering.stackexchange.com
265,056
Which metrics should a product owner look at?
I am the product owner for an on premise, off-the-shelf, application, which relies on a SQL Server DB. My company outsources DB administration to a bunch of very capable folks, and tickets are issued when something is wrong. (So that I can, for example, escalate with the editor's technical teams). However, improvement ...
I cannot list everything you need to monitor for a database. The biggest factor is 'It Depends'. I am going to list a few articles that might give you a starting point and from there you can adjust. SQL Server Monitoring Tips --I know you are not looking for how to monitor but what to monitor. If you go thru these cate...
2
1
49
2020-04-15T12:17:24.137
database_errors
dba.stackexchange.com
581,413
Enable Apache Virtualhost Site To Only View Over SSL
Viewing site over http and https are both working but prefer to configure it so that ALL visitors ONLY go through the SSL connection so that it always start with http s :// www .example.com - what am I missing? I'm trying to do the following: visit http ://example.com and go to https ://www.example.com visit http ://ww...
looks like your first virtualhost does not meet the minimum requirements for a virtualhost [CODE] so, add a [CODE] at the first virtualhost and see how that goes source: apache.org
0
1
1,058
2014-03-11T21:42:05.313
infrastructure
serverfault.com
126,197
Multilingual sentence generation with Hugging Face
For an application I need to generate some random sentences, i.e. I don't need the output sentences to have any specific link to the prompt other than using the same language. If possible I need this process to be multilingual, i.e. to accept and generate in as many languages as possible. I also need to be able to run ...
There are a few options there: Different models on HuggingFace GPT2 should fit your use case. If performance is really critical, I'd give distilGPT2 a try. They only generate English sentences but you should be able to translate things well using something like T5 . "Manual" generation NLTK provides a way to generate s...
0
1
26
2023-12-28T12:08:54.190
data_quality
datascience.stackexchange.com
174,900
Better performance with (Recompile) option, How?
I've got a query which runs for 1 hour without any query hint, But executes in just 2 seconds flat with the "Recompile" query hint. When I got a look at the actual execution plan produced by both the queries, The query without the "recompile" hint has got more Table scans(It's actually a huge plan, and there were are a...
What's probably going on is that you're running the query with different input values in your parameter. Let's look at this simplified example: [CODE] This query might return zero rows, a single row or millions of rows, depending on the value of [CODE] . The first time you run this query (without [CODE] ), SQL Server g...
0
1
344
2017-05-30T12:04:55.107
database_errors
dba.stackexchange.com
320,548
Problems seen in production due to high replication factor
Has anyone run a fully replicated Cassandra cluster in production? We have a business use case that essentially requires the dataset stored by Cassandra to be fully replicated. This would require us to have a RF of N where N is the size of the cluster. I am wondering if anyone has used this configuration before and the...
Yes, I have. The first cluster that I worked on (Cassandra 0.8 and later 1.1) had 5 nodes in each DC, with a replication factor (RF) of 5 in each. tl;dr; We ran with RF == number of nodes because it was 2012 and we didn't know any better. RF == 3 is the standard, and anyone using more than that should have a really goo...
2
1
144
2022-12-04T17:45:00.003
database_errors
dba.stackexchange.com
864,849
Debian 9: Iptables for Samba and SMTP is nowt working
I am currently trying to open the iptables firewall for Samba, but the configurations which I found on different portal are not working. Without firewall everything is working properly. With the firewall enabled I can not see any errors in the logs except in the nmbd.log. [CODE] All Ports which are needed for samba are...
The following line shown in the error log means the machine could NOT send UDP packet destined to port 137 (dropped by firewall). So, you need to add an ACCEPT rule for UDP to allow this port. [CODE] Similarly, you have an error for UDP port 138. These are NetBios ports. Add rules like these: [CODE]
1
1
2,683
2017-07-24T13:23:59.447
infrastructure
serverfault.com
550,083
Filter the output of a log file
Question I've a log-File which display all console-logs of my website in the range of 10.Oct to 1.Nov, start with the logs of 10.Oct. I need all logs from the range of 25.Oct until today. The problem is that there is a huge exception. Every day I get an IOException over 21 lines and that for 6030 users, so there are ab...
OK, genuinely interesting problem, given that it's got to function at the end of a pipe. There may be easier ways to do this, but I found this one worked (and it uses the sysadmin's Swiss Army Chainsaw , perl): [CODE] Basically, it steps through STDIN one line at a time, looking for the search string (" ^java.io.IOExce...
3
3
8,244
2013-11-01T10:33:11.303
infrastructure
serverfault.com
75,903
Sql Server 2008 Web Licensing / Edition Limitations
Possible Duplicate: Can you help me with my software licensing question? How is Sql Server 2008 Web licensed? When clicking on how to buy on the Microsoft pages it shows only SPLA pricing of $15 per processor per month. Does that mean it's only available from resellers that host it for you? Since the pricing of it is b...
Are you referring to this page: http://www.microsoft.com/sqlserver/2008/en/us/pricing.aspx It does seem that it's only available through volume licensing or SPLA. If you're an established organization, then you should be using volume licensing anyways. You have to have an agreement setup, but it's not difficult to do, ...
1
2
4,463
2009-10-19T13:59:38.760
database_errors
serverfault.com
25,376
Clustering Microsoft versus Linux
Does anybody have experience with both Linux and Windows failover redundancy clusters, and if so which do you prefer for file server and/or web server? For a little background. We set up and adminstered a Microsoft cluster for several years under Windows 2000. The cluster was a pair of web servers with a fairly large (...
I love the Linux HA stuff, and DRBD is now reaching a very high level of awesome. The Windows equivalents have never provided anywhere near the same level of stability and configurability in the situations I've run into them.
3
4
1,974
2009-06-14T01:57:15.277
data_quality
serverfault.com
117,072
A system for distributing SSH public keys
We have many different systems that are managed by several people. We have chosen to use SSH public key authentication to access those systems. This works great, as there is no need to manage or share administrative account passwords, no need to remember passwords to the various systems (only the pass-phrase to your pr...
As already mentioned by pulegium, any generic configuration management software like Puppet , Chef , Bcfg2 or cfengine could accomplish the task. Since the authorized_keys file is not that complicated, you could also use rsync or a (D)SCM like git or hg to manage this file. You have the "master" file on one of your ser...
26
18
32,288
2010-02-26T08:20:01.463
api_errors
serverfault.com
366,235
Ways to share DTO across microservices?
I am designing a system to receive data from various types of sensors, and convert and then persist it to be used by various front-end and analytics services later. I'm trying to design every service to be as independent as possible, but I'm having some trouble. The team has decided on a DTO we would like to use. The o...
My advice? Do not share these DTOs among the applications in any kind of library. Or at least don't do this right now. I know, seems very counter-intuitive. You are duplicating code, right? But this is not a business rule, so you can be more flexible. The service that sends the DTO needs to be rigid in his message cont...
53
68
33,197
2018-02-20T00:29:05.287
airflow_errors
softwareengineering.stackexchange.com
465,646
"zone has no NS records" error while setting up subdomain
I'm following this tutorial: http://groups.drupal.org/node/16862 to setup sub-domain on my ubuntu machine. In step III, I use the same [CODE] as the tutorial except the IP: [CODE] However, when I use [CODE] to check the syntax, I get the error message: [CODE] . Any hints?
I agree with Andrew B, except that for readability purposes I would not recommend using only whitespace there. Use the @ symbol or the fully qualified name of the zone ("mydev.") in that spot to make things significantly more readable. Disk space is no longer expensive and saving a few characters at the expense of havi...
3
6
29,595
2013-01-10T03:57:12.500
infrastructure
serverfault.com
209,028
"Windows Resume Loader" screen is stuck trying to boot up after sleep/hibernation
I can't remember if I put my machine to hibernate or sleep, but I'm going to assume hibernation. The keyboard works just (in BIOS) fine until it gets to the screen it's sitting at now is titled, "Windows Resume Loader": The last attempt to resume the system from its previous location failed. Attempt to resume again? (U...
You can try follwing things. Boot windows with Last Known Good Configuration. Start windows with command promot and run chkdsk utility. that will some resolve disk issue if there is. Still if you face any issue you should start windows in safe mode and and restore windows to earlier date.
0
1
4,899
2010-12-04T02:38:26.520
infrastructure
serverfault.com
128,839
Can sqlite dump database schema in a fixed order?
I am using SQLiteStudio 3.0.7 to dump the database schema regularly for versioning purposes and it seems to change the order of the table definitions at random. This wreaks havoc on the diffs as even a small change like adding one or two additional columns seems to result in wild diffs all over the place. A side by sid...
SQLiteStudio sorts the database objects by type (table, index, trigger, view), but inside each group, sorts them randomly. (If you consider this a bug, report it.) The [CODE] shell dumps tables in the order in which they are stored in the [CODE] table, which is typically the same order in which they were (re)created.
3
2
1,014
2016-02-10T12:55:34.923
warehouse_errors
dba.stackexchange.com
1,117,683
Cronjob "No space left on device" when logging error but there is space
I am trying to troubleshoot some cronjob problems I am having so I wanted to start logging them. [CODE] When I view my log file I am getting some No space left of device errors yet the cronjob runs successfully. I checked my df and df -i to check my storage and inodes and I have plenty of storage. What is causing this ...
I suspect you saved a new file every time that script ran and hit some resource limit other than total file content size. Try [CODE] to look for inode usage. Many filesystems impose a limit not only on the total volume of file contents , but additionally on file metadata entries required to store their names, owner, ti...
0
2
984
2022-12-09T21:00:33.063
infrastructure
serverfault.com
206,388
Storing menu items with user permissions
I'm creating a menu system in PHP and MySQL. I will have several different menus and each menu will have a set of menu items connected to it. On the site, I also have different user permissions, some users can see all menu items and some items are hidden from some users. I'm curious on how I could handle the permission...
I will model it using an ER diagram. A [CODE] is the access granted to a [CODE] on a given [CODE] . A ROLE is a set of pre-defined permissions which is given a name A [CODE] can have many ROLEs granted to it. Having permissions assigned to roles instead of users, makes the administration of permissions much easier. The...
11
18
22,501
2013-07-29T13:21:17.730
data_quality
softwareengineering.stackexchange.com
337,550
Add Flag for Missing Related Record
PersonID Name IncidentID Role MissingOffender 1 Tom 20 Victim 2 Steve 20 Offender 3 Susan 20 Offender 4 John 21 Offender 5 Bill 21 Victim 6 Larry 22 Victim Y 7 Bert 23 Offender I have a table that contains data for various behaviors and the people involved in those incidents. Incidents can have and offender only, but i...
[CODE]
0
1
38
2024-03-07T16:53:38.143
warehouse_errors
dba.stackexchange.com
813,498
Php-Fpm 7 server reached pm.max_children
I am receiving this error message when I run an intensive job in Wordpress: [CODE] Using Php-fpm 7 + Nginx on 2GB RAM Server. When I run: [CODE] Tried to follow this tutorial to determine correct settings that I need. http://bit.ly/2edUbir I can't run this command because it's not supported by Php-fpm 7 apparently. [CO...
To adjust the settings, you’ll need to find your php-fpm.conf or www.conf depending on what version of PHP-FPM you have installed. In my case, I had to edit /etc/php/7.0/fpm/pool.d/www.conf . You’ll want to look for the following settings and make adjustments based on your server specs: [CODE] To get an idea of what to...
14
22
59,237
2016-11-06T23:46:41.763
infrastructure
serverfault.com
358,160
Cisco 4900M trunk to HP ProCurve switch. Will this setup work?
As I previously ran a Cisco only shop I'm not sure if this is going to work. On paper it looks OK, but you never know. Will it work ? Are there special considerations that I need to be concerned about ? I've got the following situation to deal with: Cisco 4900M core-switch in server-room A. HP ProCurve 2810G in the sam...
Yes, this will work. I have a working example of a similar setup in my data center containing Cisco 4900M's and HP ProCurve 2810-24G switches (but with shorter fiber runs). We're fine running trunks/dot1q to the HP switches while using the Cisco's as core switches. There's nothing odd about this configuration.
2
2
490
2012-02-08T20:33:09.320
infrastructure
serverfault.com
295,633
Facing error "cannot fetch plan for SQL_ID" while trying to capture the execution plan
I'm trying to capture the [CODE] of my query on [CODE] as you can see below : [CODE] but I receive this note : [CODE] What am I doing wrong here? I searched here and the answer I got was to [CODE] . Put I can not do this on PL/SQL developer. Thanks in advance.
PL/SQL Developer implicitly executes additional statements in the background. [CODE] returns information from the previously executed statement. It was [CODE] . After executing your SQL, find it in [CODE] , example: [CODE] Once you found your SQL, using information from above: [CODE]
0
1
2,950
2021-07-14T10:49:46.897
database_errors
dba.stackexchange.com
1,089,748
ModSecurity 403, COMODO WAF detects XSS while trying to access phpMyAdmin
I have a copy of phpMyAdmin in one of my server in a subdomain 'pma' and inside a directory in it named 'app' (manual installed from zip archive, not via yum), which I use for DB related management and it was working ok for couple of months. A couple of days ago my local IP got blocked while trying to login there and a...
I think I've found the solution for the issue. The 'log' file I was looking for where the details are is in following file: [CODE]
0
0
473
2022-01-12T04:49:27.027
api_errors
serverfault.com
312,325
SELECT only IS NOT NULL columns with LEFT JOIN
I have a query where i need to select product options from multi tables. [CODE] This works fine. However; i get NULL values Like so Business rule : as follows if any of the columns contains NULL means the whole product variation (column) of that particular option will be NULL. MY QUESTION How i can dynamically remove a...
it's better to use [CODE] instead [CODE] , but if you don't want to change your query, you can add this at the end of your query: [CODE]
2
0
12,367
2022-05-18T23:15:07.173
hadoop_errors
dba.stackexchange.com
231,105
How to manually know the RSA2 key finger print?
When I grep in the etc folder, I get this message: [CODE] Since I am on cygwin, I can't use sudo or something else. Please let me know how to find it out.
[CODE] This command will output just the fingerprint like this: [CODE] -f is for filename -l is to output the fingerprint of the public key file. Output consists of three parts bit length of the key: [CODE] finger print of the key: [CODE] name of the key file: [CODE] I would like to request experts on this matter to po...
1
9
7,933
2011-02-04T12:09:04.497
infrastructure
serverfault.com
529,848
Issues connecting to SQL Server
I'm trying to boot up a sitecore application. Got the source code, set up my local IIS, but for some reason I'm getting the following error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name ...
You've likely got CompanyA.net set as a search suffix on your network adapter. You can verify this by looking at [CODE] . If that's the case, remove it from there and replace it with the correct DNS domain for your current situation.
1
3
298
2013-08-09T11:44:13.337
database_errors
serverfault.com
301,697
Custom Outlook Web App Shared Mailbox
We currently have a large amount of custom mailboxes hosted on Lotus Notes/Domino and have been tasked to migrate these over to our Outlook/Exchange environment. The mailboxes are basic Lotus Notes shared mailbox that a group of users have access to, but the mailboxes functionality has been extended to provide features...
The most sensible one would be to implement the function in Exchange ( the server ) rather than on the client ( Outlook ) if for no other reason then you'd need to make sure the outlook client is running somewhere. This was an object lesson in building exchange extension through client functionality. If they won't let ...
0
1
127
2015-11-04T11:10:27.670
api_errors
softwareengineering.stackexchange.com
12,057
Azure DevOps Pipelines running on incorrect branches
I'm attempting to build different branches with different YAML configuration files in each branch. However, when I commit to a branch that should only trigger 1 pipeline it triggers both. Development YAML: [CODE] Why would the pipelines not be separately triggering they target different branches?
I have solved this issue, it had to do with the path to the pipeline. I created a directory called pipelines/dev and pipelines/prod in the root of my repo. And I pointed either build pipeline to the respective yaml config file. Now it will only build on the commit of the specific branches.
1
1
1,287
2020-07-22T20:57:21.400
pipeline_ops
devops.stackexchange.com
5,085
What I can do to speed up Key Lookup in my Query
I am using SQL2005 and against them I calling query simila to this [CODE] This is query is slow when I take look at Execution plan I see that is Cost of 71 % is taken by Key Lookup. What I can do to seed up this query.
Remove it by making the index covering That is, add an INCLUDE clause to the index so all columns needed are in the index.
5
12
13,443
2011-08-26T14:21:08.300
database_errors
dba.stackexchange.com
94,052
SQL will not shrink a log file even though it is 99% free space, gives 'all logical log files are in use' error
I've got a log file which has grown to 32gig and filled my hard drive. So i've done a transaction log backup, and now when i do "DBCC SQLPERF ( LOGSPACE )" it says that 99% of my log file is empty space which is great: [CODE] Now i want to shrink the file (it should be only a couple of megs!!!), so i do: [CODE] In the ...
Wait for a quiet time and do a transaction log backup and then immediately do the shrink.
4
3
15,390
2009-12-14T04:10:18.997
database_errors
serverfault.com
199,062
Compilation of Etherpad fails in an OpenVZ VE
I’m almost giving up, this will be my last try: I try to compile Etherpad on my OpenVZ server. It’s running a Debian 5.0 as the host system, in the VE I’ve got Ubuntu 10.04. I installed Etherpad in this VE with the instructions from the official Ubuntu Wiki: https://wiki.ubuntu.com/Etherpad . Everything runs fine until...
I would check OpenVZ's /proc/bc/resources to see if there are any failcounts. I've seen Java installation scripts misreport the causes of problems. The "cp" command (called by Java) may be lacking some other resource.
0
0
173
2010-11-07T11:36:32.063
infrastructure
serverfault.com
191,787
inconsistent distinct + order by behavior between mysql 5.6 and 5.7
I use MySQL 5.6 and 5.7 on [CODE] and I have a problem with the following query (which is derived from drupal 7 but have simplified it in order to pinpoint the issue): [CODE] My servers are provisioned with the exact same ansible script which uses the following [CODE] : [CODE] I import my database and then connect to C...
We don't get to say this often but in this case: If this happens, it's a bug. A query that has: [CODE] should apply the [CODE] and [CODE] after the [CODE] - whether it's a [CODE] or not - and return the rows with the highest four [CODE] values in descending order. In the 5.7.20 case, it seems that it doesn't and the [C...
3
3
1,318
2017-11-27T11:21:18.993
database_errors
dba.stackexchange.com
183,563
UPDATE-SELECT Consistency Issue In Read Committed
In Read Committed isolation level, I would expect the following to deadlock since UPDATE statement will mark the row dirty and SELECT should not be able to read the row before transaction is committed or rolled back. But it seems to work without a deadlock. How does this happen? [CODE]
Your SELECT is running in the same process (spid) as your UPDATE, so you can freely select the updated rows - as long as you're in the same process. Here is a classic deadlock example that you can play with: [CODE]
0
2
723
2017-08-15T20:06:53.630
database_errors
dba.stackexchange.com
862,784
Postfix is not sending the mails if Message body and Header is not same
I am using postfix to send an attachment to my mail . The postfix works fine when i used the below command [CODE] But when i changed the command like this [CODE] It is not sending mail but i can see the mail was sent in [CODE] . But i am not receiving anything. Thanks
If you see in your logs that Postfix sends the mail, the problem isn't with your Postfix configuration. Probably the mail just gets silently filtered as SPAM on the receiving MTA. Check junk mail settings and possibly whitelist the sender address. BTW, wouldn't [CODE] look less like a spam than the current message with...
0
0
590
2017-07-18T12:28:12.950
infrastructure
serverfault.com
758,658
OpenDNS: got insecure response; parent indicates it should be secure
I'm using [CODE] on following system: [CODE] and I'm seeing a lot of following errors in my [CODE] : [CODE] How should I deal with it? How do I comply with "parent" by making it "secure"?
OpenDNS doesn't support DNSSEC but your validating resolver server has been configured to forward queries to OpenDNS. The obvious options to resolve this are: Don't forward at all (named is quite capable to handle recursion requests on its own) Forward to DNSSEC capable servers (ie, not OpenDNS) Disable DNSSEC validati...
0
0
4,730
2016-02-20T20:09:13.370
infrastructure
serverfault.com
514,696
django + apache2, each user takes up a lot of memory
I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: [CODE] django_wsgi: [CODE] config file: [CODE] apache2.conf: [CODE] output of top: [CODE] Do I need to optimize my config settings or...
Try lowering the [CODE] down to around 5, and [CODE] to 1. This will reduce the number of apache processes. ~40 MB is normal in Apache. This configuration is optimal for a low memory server: [CODE]
1
0
688
2013-06-10T15:51:28.520
database_errors
serverfault.com
188,908
trigger on 2 tables one to many
Here are two tables : table1 [CODE] table2 [CODE] objectid -> n_sd (1->n). The aim of the trigger is on insert on table2 to do the maths alt_inf = z-prof for objectid = n_sd. [CODE] I have no result nor error message.
In a trigger fired AFTER the insertion it makes no sense to modify the NEW record, as it has been already inserted. Use a BEFORE trigger. [CODE] In the function body you should query only the [CODE] , as the current value of [CODE] is in the NEW record: [CODE]
0
1
1,757
2017-10-20T08:02:02.563
warehouse_errors
dba.stackexchange.com
89,252
Vboxheadless without a command prompt (VirtualBox)
I'm trying to run VirtualBox VM's in the background from a service. I'm having trouble starting a process the way I desire. I'd like to start the virtualbox guest in headless mode as a separate process and show nothing as far as GUI. Here's what I've tried: From command line: start vboxheadless -s "Ubuntu Server" In C#...
Just in case somebody faces the thing again here is what I do for this... [CODE] either put it in a powershell script or type in a powershell console window. You may create a shortcut or an alias etc.
5
6
5,253
2009-11-30T00:47:59.870
infrastructure
serverfault.com
548,727
LXC container can only access host via bridge
I have an LXC container with i686 Ubuntu 12.04 running on a x86_64 Ubuntu 12.04 host. I've set up a bridge using instructions here . However the ping from the container only goes through to the host and not to other machines on the local network. Similarly only the host and not the other machines see the container OS. ...
To resolve the issue you can check the follwong: ip addresses of br0 (host) and eth0 (container) are in the same subnet. ip forwarding is on: cat /proc/sys/net/ipv4/ip_forward traffic is not blocked by iptables. UPD: if the above will not resolve the issue: check arp cache state on container and lan hosts [CODE] debug ...
3
1
4,425
2013-10-25T17:38:24.290
pipeline_ops
serverfault.com
936,199
Error installing Active Directory Certificate Services
I'm trying to install Active Directory Certificate Services on a Windows Server 2016 Standard Core VM where I logged in with the Administrator account. I ran the following Powershell cmdlet: [CODE] The first cmdlet succeeded, but then the second command fails with the following error message: [CODE]
Have you already installed ADDS role (in the same server or another)? There are a few requirements that you need to meet in order to install and configure ADCS in a environment. Also you need an account that is member of both, Enterprise Admins group and Domain Admins group. Please be sure to check this MS docs referen...
1
0
4,501
2018-10-18T16:42:41.990
infrastructure
serverfault.com
394,884
Multitenant setup with master account
I would like to make a SaaS which would be a multitenant system. Development is done in Laravel, which is less important. What I would like to know is how would you handle having a master admin account (for me) with which I could observe number of tenants, subscriptions and their types, permissions and so on? Currently...
What I would like to know is how would you handle having a master admin account (for me) with which I could observe number of tenants, subscriptions and their types, permissions and so on? You can have a separate domain admin.example.com. Also have a list of reserved subdomains which won't be allowed for tenants. Now w...
2
2
192
2019-07-18T21:27:24.717
api_errors
softwareengineering.stackexchange.com
418,314
How can I upgrade Exchange 2007 to Exchange 2010 on the same server?
I've read a few guides that explain how to upgrade Exchange 2007 to Exchange 2010 but the problem for us is that we only have one available server - the one Exchange is currently installed on. We don't have a complicated set up. Just one DC, one Exchange server. Both are running Windows 2003 R2 x64 with SP2. Any recomm...
You can't in-place upgrade to Exchange 2010. You'll have to get additional hardware and migrate.
3
6
1,379
2012-08-16T16:58:26.870
infrastructure
serverfault.com
708,981
HAProxy redirecting
I'm trying to get HAProxy to redirect to the right URI's in case the requested URI is non-www or non-https. The problem I'm encoutering is that it redirects as soon as it hits a line, resulting in multiple redirects. This is my configuration: [CODE] If I would go to http://example.com , it would first redirect me to ht...
If you split out a http frontend it might simplify things [CODE]
1
1
10,253
2015-07-06T12:48:03.960
infrastructure
serverfault.com
808,560
What does "existence failed (20: Not a directory) while logging request" error log on Nginx mean?
At an webserver with Nginx and php-fpm and Roundcube I'm seeing entries like this: [CODE] inside error.log of Nginx. What does this line mean?
You have used an [CODE] directive which contains variables. When you do this, nginx checks for the existence of the document [CODE] when logging each request. The [CODE] must exist and must be a directory. In this case, the error means that you have set the [CODE] to a file, not a directory. To fix the problem, set [CO...
0
3
3,078
2016-10-12T09:27:21.477
infrastructure
serverfault.com
122,280
Clustering: is it common that data just cannot be grouped?
I'm currently in the middle of a clustering project and struggling to get acceptable results, is it commonplace that datasets just can't be clustered? Context: I'm trying to cluster a relatively small dataset (c.10k observations) of mixed datatypes, mainly continuous, some categorical (label encoded). To give you an id...
Could it be a case that this problem cannot be solved with clustering? Or can data always be clustered and I just need to persevere? Well, to understand that you should either visualize the data or known to which distribution they belong. Visualizing should be simpler, for example you can try t-SNE or UMAP to get a fir...
0
1
124
2023-06-21T07:46:16.097
data_quality
datascience.stackexchange.com
951,580
Windows Server 2016 calculating dropped network packet percentage
Running [CODE] gives me output in this fashion [CODE] Now in order to calculate the number of dropped incoming packets, would I need to compute [CODE] / [CODE] ? I've read online that it needs to be computed with [CODE] / [CODE] but that seemed wrong. Link: example 1 example 2 If this is not the correct way, how can I ...
You cannot calculate the number of dropped incoming packets from that result. If the packet is dropped, your system won't receive it. TCP works on an acknowledgement system. When one packet is received, the receiver sends an ACK. The sender then sends another one. If the packet is not received, then the receiving syste...
0
0
639
2019-01-30T22:33:34.380
infrastructure
serverfault.com
289,041
Would current configuration be better as a staging environment and how to determine best practices to enhance production environment
Task: Database Revision Legacy System: LAMP (MySql v5.5) Current System: Node Express MySql v8.023 Data is acquired from 14 sources as .txt files with different delimiters and imported to their own child table. Only SELECT statements are used to query data. Each of the 14 child tables have: Associated data type that ar...
You showed sample data for 3 tables. Is the first column the [CODE] ? Is it unique? Then it is perfectly fine as the PK. In fact, it is probably better than adding a surrogate auto_increment. Yes, Foreign Keys are happy to use [CODE] . But, please, don't blindly use [CODE] ; pick some sensible max. (In a list of 3M cit...
0
0
30
2021-03-31T18:10:07.973
database_errors
dba.stackexchange.com
583,906
CentOS 6.4 64-bit Memory Usage really not adding up
I recently migrated hosting providers and in the process my distribution changed from CentOS 5.9 64-bit to CentOS 6.4 64-bit. Despite having a little more RAM (1 GiB rather than 768 MiB) the new VPS running CentOS 6.4 is always out of memory however. At first I suspected buffers and cache but the values returned by fre...
With OpenVZ, the memory values you get are basically meaningless. The only meaningful values you get are the resident set size of each process. OpenVZ manages physical memory and swap as a system resource across containers. It is generally considered a low-cost, low-performance option, particularly because it gives a v...
0
1
413
2014-03-22T21:31:58.093
infrastructure
serverfault.com
266,497
exclude hacker's code from all files with sed or diff
Possible Duplicate: My server's been hacked EMERGENCY Hello, I need your help urgently as the server has been hacked and I do not have any time to learn of how to remove the hacker's code from all files. I have attached the code which was added to all files. There are many special characters in this code and it's quite...
The advice in the comments is completely correct. You really do need to restore from backup, but if the hacker's code looks EXACTLY like your example above you can try this (make a backup copy of your webroot first.) [CODE] To walk the webroot and all subdirectories you can use find: [CODE] The sed removes everything b...
1
5
373
2011-05-05T03:00:12.927
data_quality
serverfault.com
978,277
Creating a new AD object deletes another object instead
We have a problem with one of our AD: Creating a new object will instead delete another object. In one of the DC, we have this message logged: "There are two or more objects that have the same SID attribute in the SAM database" This AD was recently cloned during a site migration: we cloned the original AD (all machines...
We have fixed the issue but not found the root cause. Many thanks to the folks that tried to help. The root cause of the issue was that one AD server had an invalid RID pool. We attempted to fix it by invalidating the RID pool on that machine but we made two critical mistakes when doing the fix: first, we invalidated t...
0
0
547
2019-08-07T10:45:43.687
infrastructure
serverfault.com