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
219,397
Postgres Logical Replication For Specific tables
I'm using logical replication to move data from postgres to a search engine via some background process, but I am only concerned with a small set of tables. Is there a way to specify which tables a replication slot is concerned with I have a replication user set up and am able to receive the changes just fine. I've imp...
This is what your output_plugin should do - required second argument to [CODE] function. By itself, the replication slot does nothing at all. It is only needed to prevent postgresql from deleting the old WALs required for logical replication. All the work is done by the logical decoding infrastructure, passing the deco...
0
3
2,921
2018-10-05T19:08:54.080
database_errors
dba.stackexchange.com
435,433
Cannot deploy reports on localhost/reports
I am using Microsoft SQL Server 2008 R2, Sql Server Reporting Services(SSRS) on an xp virtual machine.. I have created a report and am trying to deploy it... but getting this error... [CODE] I went to see my "services".... SQL Server (SQLEXPRESS) is "started", but SQL Server (MSSQLSERVER) is not. When I try to start it...
10048 means "Address already in use." This means that you couldn't start SQL Server, because SQL Server Express was still running. Stop SQL Server Express, then start SQL Server.
1
0
2,000
2012-10-05T18:21:00.047
database_errors
serverfault.com
167,476
Mysql Count(*) incorrect value
Alrighty so I'm trying to setup a procedure to do a count of locations returned from a geosearch. Geo-search for a specific area returns 2640 records (with a limit of 5000, and offset of 0) but the count returns 3179 records. I'm sure I'm messing something up with it. Here's the two procedures: Geo Search [CODE] Search...
Alrighty well I sorted it out. It was indeed the having clause messing things up. Took advice from a similar issue and wrapped the count query in a query to get the count of the results. Should have dug up the solution earlier but searching for "get count in query with having clause" returns thousands of results for Ha...
1
0
1,321
2017-03-17T17:47:40.140
api_errors
dba.stackexchange.com
158,920
High number of page reads and PLE counter, but only when tracing with Profiler
A newly developed and deployed functionality on our production server started running slowly. Although prior tested in a development environment, it was not tested at a workload scale similar to prod. Anyway, the issue I'm facing is that a stored procedure runs in about 13-14 seconds, with a high number of page reads b...
Unfortunately, as is the case with other counters, the definition of 'reads' is not identical across the board. If a plan has calls to UDFs, statistics IO may under-report them (or hide them completely) while profiler still displays them. Regarding the PLE counter, if the server has more than one (physical) NUMA nodes,...
3
4
522
2016-12-22T09:46:51.600
pipeline_ops
dba.stackexchange.com
691,247
How do I disable TLS 1.0 without breaking RDP?
Our credit card processor recently notified us that as of June 30, 2016 we will need to disable TLS 1.0 to remain PCI compliant . I tried to be proactive by disabling TLS 1.0 on our Windows Server 2008 R2 machine, only to find that immediately after reboot I was completely unable to connect to it via Remote Desktop Pro...
Microsoft released the patch for this problem Sep 15, 2015 See https://support.microsoft.com/en-us/kb/3080079
54
21
215,942
2015-05-11T20:15:58.057
database_errors
serverfault.com
328,727
Why are some high severity error message in SQL Server not logged to the Windows Event Log?
We are running SQL Server 2016 enterprise and I was doing some troubleshooting to see why none of my alerts were working (turns out someone had added the -n parameter to the SQL Server startup). During the troubleshooting, I noticed that a number of the built in messages with high severity (>= 18) are not set to log to...
Basically, the value in the is_event_logged column is not to be trusted. I wish that SQL Server would blindly following the values in sys.messages when generating an error. But for instance to get rid of "successful backup" messages in the logs you have to start SQL Server using trace flag 3226 instead of configuring t...
4
10
640
2023-06-28T13:11:56.967
database_errors
dba.stackexchange.com
229,972
error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure(35)
We have online shopping site. When I am going to checkout page i am getting a error like this "error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure(35)" From the apache error log i can see some attempts to connect to api.paypal.com. Here is the part of my apache error log [CODE] When i tried to con...
[CODE] does a better job of explaining what's going on here since it gives whether it's receiving or sending these messages. api.paypal.com is requesting a specific client certificate (this is the [CODE] line curl is printing) and you're sending the wrong (or no) certificate, so your connection fails: [CODE] Googling f...
10
4
84,814
2011-02-02T05:11:09.257
infrastructure
serverfault.com
186,276
start mongod by service mongod start, attempt to create a lock file on a read-only directory /mgodb
I changed [CODE] 's dbpath to [CODE] and then I execute the follow command: [CODE] [CODE] [CODE] Then I run [CODE] , and get errors like: initAndListen: 20 Attempted to create a lock file on a read-only directory: /mgodb I tried to change [CODE] 's User and Group to root, it also get the same error. But I cat run [CODE...
If you look that /etc/mongod.conf, what are values of [CODE] and [CODE] ? It sounds like that system tries to create files to some subdirectory, what don't exists or is not owned by user what is used to start mongod process. You should never start your mongod with root user. And if you have done that, f.ex. when starti...
1
2
6,488
2017-09-19T03:10:04.323
database_errors
dba.stackexchange.com
385,837
TEG-S16Dg doesn't work with some devices?
We just bought two of these gigabit switches from Trendnet. They seem to function except for some laptops (no clear connection - different devices, OSs, chipsets, cables etc) don't work. Desktops seem unaffected, as well as VoIP phones, and other switches. This problem occurred with both switches. I can't imagine this ...
Clients on this switch must have flow control disabled.
0
0
128
2012-05-03T20:19:35.103
infrastructure
serverfault.com
81,941
How to improve performance?
I have installed Windows Server 2008 R2 x64 on a VM in VMWare Workstation. I RDP to this VM/sever via Vista (my host OS) but the performance of the server is a little choppy. It is usable but could be better. My specs: 4GB RAM, Quad Core Pentium 2.4ghz VM settings: 2880mb ram dedicated (max recommended is 2992mb), I ha...
The first thing I would check would be how much is the Host OS paging - I would imagine quite a bit since you have nearly 3/4 of the RAM for the machine allocated to the VM. If the Host OS is paging alot that will thrash the disk, which will slow everything down especially the VM. The only two options at that point wou...
0
1
2,561
2009-11-05T21:31:25.127
database_errors
serverfault.com
136,999
Where is the best place to store code on a Mac?
I've started toying with some Mac development and wonder where the best place to store the code is? Generally on my windows box, I'd store all my code in c:\Code\ On the Mac it's in /Users/Liam/Code/ Will this cause me any issue with permissions when running web code?
Your home directory is a great place to store your code on a Mac/Ubuntu (Linux based system). I would still create sub directories under it as appropriate. I usually organize by project, with a few extra directories for whatever, e.g. [CODE] The other thing I do which is really "big" for me is to create aliases in .bas...
17
19
20,595
2012-02-26T19:21:13.340
api_errors
softwareengineering.stackexchange.com
229,265
Apache / Mongrel / Rails Serving Two SSL Certificates?
Is it possible for Apache (2.0) to serve up two SSL certificates when Mongrel and Rails are involved? Here's the situation... I've got a server with two sites on it: foo.com and bar.com. Both have self-signed SSL certificates (from GoDaddy) and both have their own IP address. Here's the relevant Apache config settings:...
This is embarrassing... The problem was being caused by a badly formed favicon link on the pages. We were linking to https://foo.com/images/favicon.ico when it should instead be https:// secure .foo.com/images/favicon.ico. As I understand it, the problem wasn't affecting MSIE because MSIE ignores favicon links via SSL.
1
1
328
2011-01-31T18:18:15.433
api_errors
serverfault.com
737,183
nfs mount fails due to same file handle
In /etc/exports: [CODE] [CODE] (ext4 filesystem) is mounted in [CODE] command to mount nfs: [CODE] (where HOST is IP of nfs server, NFS_DIR is local mount point on client) The first time, nfs mount success. And then I did unmount. Then I command out the entry in /etc/exports(no nfs export), and do [CODE] . Then I uncom...
It seems that it is the bug in nfs-utils itself. And this bug get fixed in version 1.3.3. I also tried using nfs-utls 1.3.2, but the issue is still there. Using nfs-utils 1.3.3 will fix this issue.
1
1
2,352
2015-11-18T07:19:13.800
infrastructure
serverfault.com
395,700
Stack Switch Failure Check using Nagios
We have a Cisco 2960S series switch which is a stacked switch with multiple physical switches managed as a single unit. A single management IP is assigned to the entire stacked switch. Therefore, if one member of a switch stack fails, the IP address is still pingable. So we need to check whether any one of the individu...
You could try the following nagios check: http://exchange.nagios.org/directory/Plugins/Hardware/Network-Gear/Cisco/Check-cisco-3750-stack-status/details As always, it is best to test that the check does what you want by causing a failure when possible. This check is based on the following oids (Taken from the script it...
4
4
2,204
2012-06-05T13:07:07.080
infrastructure
serverfault.com
324,424
Upgrading PHP 5.2.17 to 5.3
Our server currently runs PHP installed as CGI in Apache on Cent-OS. What are the advantages/possible problems with upgrading from 5.2.17 to 5.3? My dedi host says that it will most likely break my sites, but hasn't given any actual things that could break. Our server is 98% WordPress with a bunch of custom functionali...
I don't agree with the statement that an upgrade will "most likely" break your sites, but it is a very strong possibility. Generally speaking, code that worked on PHP 5.2 will work on 5.3. And while I can't speak for any custom code, as far as Wordpress is concerned you should be on the latest stable version. A list of...
0
1
291
2011-10-24T21:15:33.830
infrastructure
serverfault.com
352,419
ProFTPD - Failed to retrieve directory listing while using TLS
I have problem with my ProFTPD server. When I try to connect to the server using TLS then I get timeout after MLSD command. It only happens whenI use TLS - without it it works perfectly. I checked these logs: proftpd.log - USER xxx: Login successful. tls.log - TLSv1/SSLv3 connection accepted ... Protection set to Priva...
The problem is, that conntrack_ftp module, which on the fly allows ftp data connections to pass through firewall even if they were to be dropped because of rules, cannot analyze the encrypted stream for [CODE] / [CODE] commands. The same applies to not being able to use active mode from behind a firewall/nat with encry...
3
7
11,620
2012-01-22T09:24:19.000
infrastructure
serverfault.com
111,257
Should I use XML for data storage on client side?
I have to create a supplementary program that runs offline on a client machine (normally windows 7 or higher laptop). Of course, I don't want to create a pre-requisite for this program. Since this runs offline, so I can not use a database server either. This application will store about 500-1000 entry per record and a ...
This also depends on what kind of records you want to be stored, whether it is semi-structured data that is best formed using XML, or plain key-value based records. SQL Server Express can store both kinds, but involves an additional install. However, to avoid extra installs, you can check out SQL Server Compact and SQL...
0
1
225
2015-08-17T07:47:09.487
api_errors
dba.stackexchange.com
5,010
SQL Server 2008 R2 reindex job reorganise getting stuck
I am currently experiencing this job getting stuck in my nightly maintenance solution - [CODE] a full reindex of the table works. but I'm using Ola Hallengren's awesome solution as I do on a number of sites that need maintenance solutions. http://ola.hallengren.com/Documentation.html and the job gets stuck in the middl...
Resolved The problem was we had a rogue cron job (unix job) related to our web servers that was using an incorrect login, eventually it took up all 8 CPU’s so the reindex job was simply waiting for some CPU to become available before it could continue (this is why the job failed to timeout)
5
4
2,780
2011-08-23T15:29:28.810
database_errors
dba.stackexchange.com
35,138
Analysis service database security at application level
I have got a SSAS Cube, we have written an windows application which would issue MDX queries to access the data from the cube and show it in the reports . This windows application is a licensed application, meaning only those who have got license from us could be able to run the application and then could be able to ac...
If your users succeed to connect to the cube with their domain users, than the server permission is too lax. The security model of the SSAS is actually build around Windows authentication (using Windows logins). In Management Studio, right click on the SSAS server -> Properties -> Security. You'll see there who is an a...
3
1
135
2013-02-21T05:24:13.223
warehouse_errors
dba.stackexchange.com
775,546
How can I ping devices on Class B network when remote VPN issues Class A network address?
I've been playing with the Sophos UTM Home Edition, and I've noted that SSL VPN connections are issued Class A addresses. Given that the current internal network leases Class B addresses, why can I ping [CODE] from [CODE] and vice versa? Is the UTM managing routing between the two networks internally?
Yes, the UTM does, as every other router, route the packet from one network into the other. But you had to allow that pings will be forwarded by the firewall somewhere.
0
1
185
2016-05-09T00:29:27.740
infrastructure
serverfault.com
637,262
Missing NPN Extension
I'm trying to set up mod_spdy with Apache (mod_spdy-0.9.4.3-r420 and apache2-2.2.22-13+deb7u3 on Debian Wheezy). As far as I can tell, everything is the way it's supposed to be, but I'm getting the "Missing NPN Extension in SSL/TLS Handshake" error from http://spdycheck.org/ . [CODE] just has: (everything else is comme...
I figured out what was wrong. Apache, for some reason, was set to use SSL3 only. Adding TLS v1 (and v1.1, v1.2) made everything work. TLS is required for SPDY to work. I changed my apache config to have [CODE] And that works like a charm. Even better, leave out SSLv3 altogether, as it's known to be insecure: [CODE]
1
0
2,592
2014-10-15T18:24:25.603
infrastructure
serverfault.com
931,808
Kubernetes: detect and auto-update deployment on image update
We're running multiple, globally distributed Kubernetes clusters that need to run the same software. When we release an update to this software (as a Docker image uploaded to a private Docker repo), our current deployment pipeline needs to iterate over a list of known deployments, connect to each cluster and update the...
Sounds like Weave's Flux answers your requirements: https://github.com/weaveworks/flux We have it installed in one of our customer's cluster and it works great. It will watch for changes to your Docker images and perform a redeploment. Kinda exactly how you described it in your question. The project is a bit new so set...
5
3
15,446
2018-09-20T06:37:12.800
pipeline_ops
serverfault.com
351,196
In terms of performance and memory usage, which is better in storing objects: Dictionary or List?
I want to know if it's faster and more efficient to store and access objects in a nested dictionary [CODE] VS [CODE] . Though adding objects in a nested dictionary requires writing more code by checking keys, what could be the other differences that are important to consider? Example: [CODE]
I think neither is the correct answer. I think it'd be best to build data types for these: [CODE]
-4
0
589
2017-06-19T18:14:53.070
api_errors
softwareengineering.stackexchange.com
909,130
Disable OSSEC email for SSH maximum authentication attempts
I try to disable the email notifications for the OSSEC rule 5758. [CODE] In /var/ossec/rules/local_rules.xml I added this custom rule: [CODE] But this rule has no effect.
You need [CODE] Level 0 means ignored/no action taken. It will still scan the file. I have this in my [CODE] . Just change the level to zero. If you want to keep the local changes in a different file then you can this in the local_rules.xml file which is probably a better way to manage this. Basically keep the original...
1
1
398
2018-04-24T07:06:24.540
api_errors
serverfault.com
590,403
How can I set Postfix outgoing port to 465, but keep incoming port to default?
My ISP blocks port 25. So, I cannot connect to my server and send emails. I've tried changing it to 465. And it works! However, after this change, I cannot receive emails anymore. [CODE] The above is my [CODE] file after the 465 change. (notice the first line). I cannot receive emails anymore after this change. Please ...
You won't receive any mails, because the SMTP servers send mails between each other on port 25. ISP's block the outgoing port 25 to stop spam and this is now almost "an industry standard". Port 465 and 587 should be used for client - server connections only, so 99% of SMTP servers which will send mails to your server w...
5
6
28,437
2014-04-21T22:27:19.830
infrastructure
serverfault.com
327,418
Can Apache2 be configured to store a part of the access log on a separate location?
We plan to use a tracking pixel to collect some analytics. It would be very helpful to configure a different policy for storing access logs to this pixel ( http://ourdomain.com/tracking.png?someParameter=123 ) Can Apache be configured to filter and store only the access logs that contain a specific URL pattern on a dif...
You could use mod_setenvif to set an environment variable related to your tracking pixel and then filter the logs using it. something like [CODE] If the tracking pixel is requested then the environment variable gets set and the event gets logged to a different file.
2
4
59
2011-11-03T14:27:29.073
infrastructure
serverfault.com
81,593
MySQL server hangs after approximately 1 month (CentOS)
Hey guys, I've got a web server running Apache/PHP and MySQL (CentOS), and MySQL seems to hang once every month or so. As far as I can tell, there are a few slow queries that are being resolved, but other than that I can't really see any reason why MySQL would hang. I'm having problems determining the problem - nothing...
This isn't really an answer but a suggestion: Install a monitoring tool like Munin with the MySQL plugin and watch usage and memory, CPU, TCP connections, etc. leading up to and at the time of the crash. This has been invaluable to me in similar situations. Installing Munin on CentOS
0
1
718
2009-11-05T05:59:42.250
database_errors
serverfault.com
353,115
Use case, design, and how to append to an immutable object in functional programming
This is not (supposed to be) an opinion question, but it is a newbie question, so if there is just a resource I haven't found that I need to read, point me there :) I am in the design stages of a microservice-based ETL system. One service in particular seems to be a natural candidate for functional programming over oop...
Is this a good use case for functional programming, maybe in Kotlin or Scala (or Python), which are the three languages most used in the application as a whole. Naively, it seems fine. Walking a graph collecting state seems decidedly functional (even better if you could map/reduce the nodes rather than walking the grap...
0
0
223
2017-07-19T19:08:04.253
data_quality
softwareengineering.stackexchange.com
141,419
PostgreSQL: Pass table as argument in function
I am discovering [CODE] in PostgreSQL. I have a [CODE] that some table must respect (interface). For example: [CODE] I can create table using this template with: [CODE] I have seen many options in the API , but I am a little lost. I would like to know if it is possible to assign this type to function [CODE] parameters....
The parameter [CODE] in the MWE (minimal working example) is not referenced anywhere. The identifier [CODE] in the function body has no leading underscore and is interpreted as constant table name independently. But it would not work like this anyway. SQL only allows to parameterize values in DML statements. See: Error...
21
21
59,871
2016-06-16T13:02:17.397
database_errors
dba.stackexchange.com
71,182
In MVC where do you put action methods for views in the shared directory?
I have a website built using a MVC.NET framework with C# that uses some shared views and partial views. In order to display the views properly there is a bit of code that must reside in the controller. Currently I have that logic duplicated between controllers. An example would be an view that takes in an error id and ...
Try to change your viewpoint when you're thinking about this problem. A view doesn't have an action. An action returns a reference to a view. Multiple actions may return references to the same view, or actions may not return a response which isn't related to a view. That's the relevant part of an MVC pattern. In MVC fo...
4
3
9,257
2011-04-25T18:38:40.643
data_quality
softwareengineering.stackexchange.com
1,014,280
Why would Apache log different response sizes for the same url?
I noticed a couple (ostensibly-)harmless log entries, and--I'm admittedly overthinking this by a mile--got curious about Apache2 response sizes. This Ukranian crawler † hit my web daemon, two seconds later requesting a duplicate. Apache2 replied with 41,298 bytes and then 41,244. My question is: Why are the response si...
Try [CODE] or [CODE] to capture the network traffic. Should be easy enough to look at both responses and find the difference. It's probably response headers changing slightly. Some headers vary with clients and time.
1
2
724
2020-04-26T19:51:28.067
data_quality
serverfault.com
854,476
PHP code being displayed in clear text?
Setting up my first ever server from scratch for a migrated Wordpress site. It's been a long journey, but I'm almost at the end of this. This is what I've done so far. Created the GCP micro instance. This tutorial on how to setup the LAMP stack. - https://www.digitalocean.com/community/tutorials/how-to-install-linux-ap...
Fatal error in a Wordpress plugin will indeed cause a site to render a blank page.
2
1
337
2017-06-07T17:36:21.253
database_errors
serverfault.com
491,816
How To Change Dell Bios Settings Remotely?
I recently noticed at a clients that their Dell laptops appear to have SMART disabled in bios by default. I noticed this while swapping out a disk on a desktop which had failed without any warning.. wonder why we didn't get anything. :-) Anyone know how to script bios changes on Dell machines? Is it even possible? This...
What Dell has for this is the Dell Client Configuration Utility, which gives you the option to configure bios changes (either for a single model or multiple models, and whatever doesn't apply to that bios is skipped), and then package it in an msi for silent/unattended deployment to the workstation, a reboot is still r...
2
3
6,558
2013-03-27T14:04:58.020
infrastructure
serverfault.com
585,648
Windows Server 2008 R2 CA not issuing more than 2 years
I have active directory environment in 2003 R2. I have installed 2008 R2 Enterprise Edition CA. Then I have created custom template from web server template and add expiry date as 15 years. my root certificate is valid for 25 years. Then I went to templates and and remove the default web server template and added the n...
IIRC, the IIS MMC is hard coded to always request the template with the name "webserver". Your custom template does not have this name, I think re-using that name for a custom template is not even possible. After you've removed it, the "not found" error is incorrectly reported as "access denied". To use your custom tem...
1
0
667
2014-03-31T14:23:24.260
infrastructure
serverfault.com
74,005
In backpropagation, scale is also important?
I think backpropagation is needed to find the direction of gradient decent method. I also wonder, the scale is also important? I heard some issue of vanishing(or exploding) gradient problem. If the direction of the backpropagation is remained, we still could apply gradient decent method(cause we still know the directio...
In the process of backpropagation,first of all we feed forward the model.Each node receives the input from its previous layer,calculate the weighted suma and the apply the activation function to the weighted sum and pass this result to next layer as input. When we got the result. Lets say we are classifying animals ima...
0
1
319
2020-05-12T02:29:15.317
data_quality
datascience.stackexchange.com
28,516
Data Recovery on faulty sata drive that is not being properly detected in Windows
My computer is configured with two sata HDDs. The primary one crashed the other day and now I am trying to recover the data that is on it. I've plugged the faulty HDD into a machine where the primary HDD is running Windows 7 with the hopes of being able to salvage some of the data. Unfortunately, the drive isn't being ...
The only tool that comes to my mind is SpinRite . Its a bit expensive but its all I can recommend. Good luck. https://web.archive.org/web/1/http://techrepublic%2ecom%2ecom/5208-6230-0.html?forumID=101&threadID=226542&start=0 https://web.archive.org/web/1/http://techrepublic%2ecom%2ecom/5208-6230-0.html?forumID=89&threa...
1
1
1,719
2009-06-19T07:13:51.277
infrastructure
serverfault.com
493,388
Configuring RRAS with WS2K8R2 VPC
I have configured a Server 2008 R2 instance in a VPC with 2 subnets. The server is configured as a DC, RRAS and CA and a NIC in each VPC subnet. SSTP VPN clients can reach the server but either the connection fails to register on the network or a 169.x.x.x address is provided to the client with no network connectivity....
You must use Amazon's DHCP server in cloud part, since they have their own SDN solution (software defined networking) you can not use your own DHCP on premise server for this. 169.254.0.0/16 is defined as APIPA (Automatic private IP addressing) where IPv4 gets its own IP without DHCP server. This subnet is not routeabl...
0
0
462
2013-03-28T21:50:14.680
infrastructure
serverfault.com
580,351
vSphere - Why upgrade VM Hardware Version?
At the beginning of the year we performed an upgrade of our vSphere environment from vSphere 5.0 to vSphere 5.1 U1 Build 1063329 compromised of about a dozen ESXi hosts and a vCenter instance hosted on Windows Server 2008 R2 SP1. One of the outstanding issues from this project is the upgrade of Virtual Hardware for Vir...
In general, virtual hardware versions introduce new functionality, extend limits and may have performance implications. See the VMware hardware version matrix . Don't worry about this for the revision of vSphere you're on now. You can run all day on old versions, based on the setup you have. VM hardware version 8 sound...
18
17
40,483
2014-03-06T21:24:52.023
database_errors
serverfault.com
769,118
How can I start systemd unit files (someservice.service) with logging set to /dev/null?
Is there a way to start a service using systemd and direct it's logging to /dev/null WITHOUT including the proper lines in the unit file. For example, A file that has the StandardOutput and StandardErorr directives set to null will send logs to /dev/null. [CODE] This service can be started with [CODE] My question is wh...
You can override anything in a unit with drop-ins, files that systemd automatically reads from an include directory if it exists. For instance, if you create a directory [CODE] and then a file within that directory, directives in that file will override whatever is in the system shipped unit. For example, [CODE] : [COD...
3
8
4,531
2016-04-08T18:52:53.463
infrastructure
serverfault.com
24,358
File transfer problems through VPN when Cisco IPS is enabled
We have a Cisco ASA 5510 firewall with the IPS module installed. We have a customer that we must connect to via VPN to their network to exchange files via FTP. We use the Cisco VPN client (version 5.0.01.0600) on our local workstations, which are behind the firewall and subject to the IPS. The VPN client is successful ...
Try setting the MTU down on the sending side (in fact both sides will probably need it). Could be there is a device that's either not generating or not passing Path MTU discovery packets correctly. If lowering the mtu to, say, 1350 on both ends fixes it, then investigate whether you have ACLs blocking ICMP.
5
1
11,662
2009-06-11T20:31:11.570
infrastructure
serverfault.com
863,201
Nginx error_page not serving php files
I'm trying to set up a 404 file which handles unknown url requests using the [CODE] directive, the file im trying to root it to is a .php file which is in the same directory as the route. The problem i cannot figure out is that as soon as i create a 404 route and define the location it seems to download the file rather...
Turns out im not a smart man without try files included within the [CODE] [CODE] it won't execute the php, instead it will try to serve it in the same way it would serve a image or document.
0
0
1,701
2017-07-20T09:00:19.433
infrastructure
serverfault.com
339,728
Linux WebServer, folder by permission 755 not writeable
I run a new Linux web server ( Debian , Plesk ) I want to install some php application that need writeable folders, If I set the folder permission to 755 still web application can't write on folder, it just accept 777 mode, how can I configure server to accept 755 as a writeable folder? Thanks EDIT : this thread help m...
You need to chown the directory you want to write to to the user that the webserver is running as. Type 'top' at the command line and see what user the webserver process is running as. Then, on the command line type sudo chown . That should make the directory writeable to your webserver with 755 permissions.
1
2
4,411
2011-12-10T16:17:03.440
infrastructure
serverfault.com
776,818
ext4 mount flags for 10+ mill files storage
I've initialised one large primary partition with the [CODE] flag to [CODE] , [CODE] on the system is configured as follows: [CODE] This is a 800 GB SSD (cloud drive) which will be a home for the 10+ million small files, ranging from ~10KB to ~100KB. I tried to go thoroughly the man pages of [CODE] and figure out the b...
You should probably just use the XFS filesystem for this. ext4 is not well-suited to this workload because you're on an SSD and have a stupid-high file count. There's a reason Red Hat now defaults to XFS .
1
1
611
2016-05-14T21:48:40.247
data_quality
serverfault.com
398,874
User list and roles integration
I work for a brand new start-up who wants to roll out a product. One of the task for me is to integrate the existing user and role details of the client company and integrate it with our company dashboard. Our dashboard is simply designed with java. Now different client companies might have different ways of storing us...
There are some good questions to ask: Who's setting the roles? Our company or the client company? Can we get examples to work from? Active Directory etc... I'd make a plugin for each user info data store that adapts whatever it finds into a common data structure that our dashboard knows how to use. So long as client co...
-1
0
29
2019-09-25T14:33:31.477
api_errors
softwareengineering.stackexchange.com
909,222
Force jumbo packet fragmentation
We are in a cluster environment. We have compute nodes with jumbo packets enabled and a MTU of 9000. We are running into some issues in tracebacks to an address outside of our lan, where jumbo packets are being dropped due a firewall with a standard MTU size of 1500. Is there a way to limit or fragment outgoing packets...
You won't be able to use a vNIC with a different MTU than your attached physical interfaces using just about any bridging implementation. It's possible if you go for a layer 3 routed vnic implementation, but then it's pretty pointless to adjust MTU on a broadcast domain that consists of a single host. Can you not adjus...
0
0
284
2018-04-24T15:55:25.300
api_errors
serverfault.com
812,137
Postfix bounces on user unknown alias (`"|exit 67"`) instead of rejecting mail
I have a small postfix server for a few domains of my own (matched with mydestination = pcre:/etc/postfix/mydestinations). I set some non-virtual aliases [CODE] In this file I defined generic aliases [CODE] And with a [CODE] I can now use [CODE] as a disposable email address. As some of these generic addresses get spam...
I found a workaround to reject those emails using the [CODE] configuration. It allows creating a hash db file containing REJECT statements for specific email addresses. I created a file named [CODE] with the following content: [CODE] Then I ran [CODE] and added a line in [CODE] within the scope of [CODE] : [CODE] Now t...
1
0
345
2016-10-30T09:37:38.393
infrastructure
serverfault.com
293,977
SQL Server 2019 Machine Learning Service Issues
We're running a SQL Server 2019 instance for our data warehouse, and our data science team is using the Machine Learning Services quite exntensively. Lately we're seeing a lot of error messages like the following: Unable to launch runtime for 'R' script for request id: C20AF5A9-DB62-4651-8BA7-14F3306E5642. Please check...
Try this solution from MIAOYUXI for your users: SQL Server 2019 - Unable to communicate with the runtime for 'R' script for request id:. Please check the requirements of 'R' runtime
0
0
574
2021-06-09T00:50:58.173
warehouse_errors
dba.stackexchange.com
977,292
PS variable for expansion of word designators
Is there an undocumented PS variable like PS2 that bash would show when it replaces a word designator into its actual value? I think it would help clarify where the command ends and where the execution begins. Example: I run an ls and a cat. cat uses the last argument of the previous command with a word designator, [CO...
You can ask to bash to show you each expanded command before it is executed by setting [CODE] or you can use the readline function [CODE] , which I think is bound by default to Meta Control E to expand what you have typed so far. The man page says This performs alias and history expansion as well as all of the shell wo...
2
2
70
2019-07-30T14:42:21.580
infrastructure
serverfault.com
831,966
Azure Move public IP address to LoadBalancer
Does anyone know if it is possible to move a public static IP address which currently is associated to a VM/Networkinterface to a LoadBalancer? Our current server needs to be upscaled and made highavailable. In the current setup the IP address is used for 1 VM. I need to have 2 VM's handling the load, behind the same I...
According to your description, I test in my lab. If you set your Public IP static assignment. When you dissociate it from VM and associate it to LoadBalancer, the IP address does not change. Please refer to the following steps: Ensure set Public IP static assignment. Dissociate Public IP from VM. Associate Public IP to...
0
1
2,710
2017-02-11T03:42:41.150
infrastructure
serverfault.com
139,889
Subscript binding and array categories
I am learning "Programming languages principles" and there is a lot of information about stuff which make up a programming language . Unfortunately every material I came across until now has a lot of technical jargon involved and is very difficult to understand (Atleast for a beginner sincerely trying to understand the...
To elaborate DeadMG's answer, it sounds like they mean: Static array : an array whose size is known, and whose storage is allocated, at compile time. In C, you might write at global (file) scope: [CODE] Fixed stack-dynamic array : you know the size of your array at compile time, but allow it to be allocated automatical...
4
8
19,649
2012-03-15T14:24:07.433
api_errors
softwareengineering.stackexchange.com
290,255
Accessing public files in a modularly structured web application
I know that it is a good idea to store php application code outside of public folder but it creates a problem. Let's say, we would like to create a completely modular structure like this one: [CODE] Obviously, we would like to protect controllers and templates folders from direct access. But if we put modules outside o...
Instead of linking to the static files directly use your controller to read in the files and return them. Then in order to avoid the extra overhead on every call, cache the files in a separate cache location. You can then use the same process to cache your dynamic content and you it could also allow you to build things...
1
0
180
2011-07-14T09:23:24.190
infrastructure
serverfault.com
186,248
Login failed in Linking two servers - SQL Server
I want to connect 2 database which are on 2 different server. [CODE] LinkedServer query [CODE] But I am getting a login error which executing SELECT query. This is the error which I am getting: [CODE] I am new to this, please someone guide me. PS: Lets assume my login credentials for SV1 are: Username : admin Password ...
Your question is quite confused, first you have 2 servers [CODE] , [CODE] , then you link [CODE] , but you add login to be used to [CODE] server. So what does all this mean, that the local server is SV1 and you link [CODE] = [CODE] = [CODE] to it??? From this one: Lets assume my login credentials for SV1 are: Username ...
0
0
2,022
2017-09-18T18:02:14.653
database_errors
dba.stackexchange.com
372,770
Users getting 'flooded' with not read notifications (NRNs) for old emails and meeting requests
I'm being placed under quite a lot of pressure from senior management over a relatively trivial issue. Basically the vast majority of users are complaining that they receive not read notifications (NRNs) for old emails and meeting requests in large numbers multiple times a day. I know something strange is happening bec...
'Update Rollup 6 for Exchange Server 2010 Service Pack 1' seemed to fix my problem after waiting over 121 days.
6
1
2,259
2012-03-23T15:10:44.270
infrastructure
serverfault.com
732,468
How to install php56 on CentOS 6 x86_64
When I run [CODE] , it will install php5.3. [CODE] I just removed it [CODE] . And I tried [CODE] , but they are not available. [CODE] How can I install php5.6 on CentOS 6?
you would add repo into centos 6 by: [CODE] Next, [CODE] I hope help you!
2
4
30,533
2015-10-29T10:35:01.193
infrastructure
serverfault.com
344,498
Where should QA team do the testing in Gitflow branching model
We are a big team (10-12 developers and 4 qa) working on multiple projects with the same git repository. Its a spring boot based backend web service. We are looking for a good git branching and deploy strategy. we also have a qa team who ensures that our features are working as expected (bug free to a certain extent). ...
QA should probably be testing twice. The first testing should be around the specific changes and done on the feature branch. This lets QA test around the specific changes and see that the particular change is complete as specified and behaves as expected. It also gives them an early preview for the second round of test...
40
27
26,542
2017-03-19T22:02:57.410
api_errors
softwareengineering.stackexchange.com
99,636
Keeping an MVC model loosely coupled from the DB?
I like to keep my code testable and have decided to go with the Dependency-Injection strategy for my current MVC framework, which definitely has proven to be a great way to ensure loosely coupled code, testability and modularity. But as being far from a master at Design patterns, I have a hard time of figuring out a go...
One way is to design your models before you design your database. When designing your models, the focus is on capturing the business logic and meanings within the problem domain. This should be captured in a way which makes sense to the business, including more than just entities and data fields. Some data elements are...
8
6
1,931
2011-08-08T17:58:28.353
api_errors
softwareengineering.stackexchange.com
143,540
SQL Methods Function to add "Gold Medal" for anniversary
I'm trying to create a method function on SQL using Oracle Developer. The member function will give employees a gold medal after 12 years of service to the bank, a silver medal after 6 years of service and a bronze medal after 2. The issue I am having is with the pre-defined [CODE] that I have in my [CODE] which is as ...
First, I assume that the fact that you're using [CODE] with an underscore in your code while the type uses [CODE] is a typo. Otherwise, you'd get a compilation error. You want to calculate the difference between [CODE] and the current date. My guess is that you want to use [CODE] to calculate the number of months betwe...
0
1
102
2016-07-11T22:44:13.953
database_errors
dba.stackexchange.com
142,191
Run GUI application via cronjob in Ubuntu?
I have a remote server running "Ubuntu 10.04 Desktop". From it I want to run a script that walks through a list of websites and captures screenshots of them. The script is working and thoroughly tested. When I SSH to the server with [CODE] I can run my script by calling [CODE] and everything will work OK. I then modife...
You might want to consider running xvfb headless X server.
2
2
4,071
2010-05-15T16:40:36.543
infrastructure
serverfault.com
1,122,925
Are multiple TLS Certificates/Keys used in Order in NGINX? How does NGINX determine the best Match in this Case?
Using Cloudflare's "Full" encyption mode, one can use self signed certificates for origin to Cloudflare connections: The certificate presented by the origin will not be validated in any way. It can be expired, self-signed, or not even have a matching CN/SAN entry for the hostname requested. -- https://developers.cloudf...
Yes, multiple [CODE] & [CODE] pairs are just fine. nginx will send whatever is usable with what the client demands, e.g. if you are supporting TLS1.2 a client can choose ciphers that restrict what sort of certificate the server can present: [CODE] The nginx setting [CODE] can be used to override client preference when ...
0
0
315
2023-02-14T20:38:13.797
api_errors
serverfault.com
684,750
How I do to run only a software in more than one computer?
I need to run a unique instance of a software in more than one computer, how I do this without a centralizer server? For example: 4 computers interconnected by the local network, 2 of then has "the hardware" that I need to send a requisition. I need to create a software that runs through the 4 computers, for if one of ...
[CODE] , [CODE] are both open source. The problem is to use clusters and/or load-balancers properly. That includes deep technical knowledge about what you actually want.
-2
1
57
2015-04-22T17:53:23.843
infrastructure
serverfault.com
762,031
VMware ESXi config pass-through for Fibre Channel
I want to config pass-through for FC in VMware ESXi 5.5 (FC HBA: [CODE] ) follow the link https://tinkertry.com/usb3passthru . But when I turn on the virtual machine, I receive error: [CODE] Do you know where the error come from?
My problem actually come from version of Vmware ESXi. After reinstall ESXi 5.5 U3, this error has gone.
2
1
2,692
2016-03-07T09:49:31.510
infrastructure
serverfault.com
240,608
Enforcing "one-to-one-or-more" vs. "one-to-zero-or-more"
Suppose that I have a mini-world consisting of three types of entities, A, B, and C, subject to the following constraints: each A is associated with 0 or more B's, and each B must be associated with exactly one A; each A is associated with 1 or more C, and each C must be associated with exactly one A. It is easy to com...
It seems to me that the second half of rule #2 is readily enforced with a foreign-key constraint, as you describe for rule #1. But the first half of rule #2 seems hard to enforce, in part due to a chicken-vs-egg conflict: Are you going to make 'em add a C before there's an A, so that when you add the A, it will have it...
0
1
67
2019-06-14T20:07:27.527
database_errors
dba.stackexchange.com
375,628
Are data attributes good identifiers of certain blocks of HTML code?
I have a complex environment which is mostly oriented around / ends up spitting out blocks of HTML, which make up the entire page. Now, I need a way to "point and click" identify any block on my page from the front-end. At the user's command, they should be able to, when an element is clicked, pull an unique identifier...
You're associating extra data (here, an external resource ID) with a DOM element. Using data attributes is a perfectly fine approach of doing that. This is probably the best approach, although there are alternatives: use [CODE] tags within the element. use [CODE] tags (possibly with a custom type) to store additional s...
1
3
157
2018-07-21T21:16:32.430
api_errors
softwareengineering.stackexchange.com
407,064
DDD Domain Modeling of Transportation Module
I am in the process of trying to model a transportation module for an ERP type system using C# and EF Core. This service is responsible for managing customer pickups and company-owned truck deliveries. Customer pickups contain a list of orders and trucks contain a list of stops and those stops contain a list of orders....
As a general rule of thumb (and especially since you seem to be concerned about the efficiency of loading an entire truck), you want to keep aggregates small and only update a single aggregate in one transaction. This does mean that business rules spanning multiple aggregates will only be eventually consistent, but thi...
5
1
584
2020-03-27T23:21:41.700
database_errors
softwareengineering.stackexchange.com
1,050,451
How do I load test my http server on azure without getting IP banned automatically
I have an Ubuntu Server VM running on Microsoft Azure and I need to do some custom load testing. I've written a Python script that makes the necessary requests. The issue is that I know Azure will block my IP automatically if I send too many requests per second. I don't know what this threshold is though. I'd like to s...
It looks like to be an Azure feature Every property in Azure is protected by Azure's infrastructure DDoS (Basic) Protection at no additional cost. It should be possible to turn DDoS protection off To disable DDoS protection for a virtual network: 1.Enter the name of the virtual network you want to disable DDoS protecti...
0
0
566
2021-01-19T15:41:07.963
infrastructure
serverfault.com
145,121
Help needed in creating a SQL statement containing four joins
Please help. Given a studentID and a TagNumber i want to get the UserID related to that TagNumber. The difficult condition is that TagNumbers can be duplicate within a Users table. So we can pinpoint the exact UserID using the UserCities table as a student is linked to a school and a school is linked to a city and User...
I have done it myself. [CODE]
0
0
75
2016-07-27T16:24:26.087
data_quality
dba.stackexchange.com
333,137
MySQL Error for Mac OSx
I'm trying to run the mysql command on my mac osx but keep getting the error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I did try researching this extensively but could'nt find a suitable solution. Most of the solutions refer to /etc/my.cnf but I don't seem to have thi...
In addition to ajreal's answer, check the "obvious" stuff...a lot of times you'll get this error when MySQL server isn't running, or you don't have permission to access it. Check in your process list to make sure it's running, seeing something like... [CODE] If you don't have permissions, try the command [CODE] to elev...
4
1
1,347
2011-08-26T11:19:43.650
database_errors
serverfault.com
64,859
VMware in Linux breaks my ALT, CTRL and/or SHIFT keys. How do I fix it?
After using Windows or Mac OS X as the guest OS in VMware for Linux, sometimes my ALT, SHIFT or CTRL keys break and stop working. So I can't use ALT+Tab, for example. Does anyone know what the cause is, and how to fix that? Is there a way to make the keys work again?
To fix the keys, just run: [CODE] And that should restore them to default behaviour.
13
20
5,047
2009-09-13T02:20:24.877
infrastructure
serverfault.com
413,612
Is it possible to use a regular Windows VPN connection to connect with an openvpn server?
Just that. Is it possible, or you need necessarily an openvpn client? Clients need to be identified by private keys (certs). Thanks in advance.
You need to have the OpenVPN client. It's not compatible with OpenVPN as it uses a custom security protocol.
0
1
79
2012-08-02T11:59:56.410
infrastructure
serverfault.com
208,000
Unexpected Second Instance of SQL Started
We had an occurrence of our main production server C:\ filling unexpectedly, and our support guy fixed it by fixing the size of the page file and rebooting. I'm trying to diagnose why this grew from almost no usage to 100gb over the space of a couple of days. I'm currently going back through logs, and a Spotlight serve...
It turns out - when reviewing all the logging that I could, that the Windows Event Log has a crash of SQL recorded - however, SQL itself has no crash in its logs, and the log wasn't closed and a new one created as you'd expect when SQL restarts. In our monitoring, the second instance never grows beyond 2gb of RAM - and...
0
0
43
2018-05-28T02:18:08.607
database_errors
dba.stackexchange.com
315,210
Hotel booking database design
I am building an online travel agency and I have a concern with the database design. Suppose users will be of two types: Standard (users looking to book hotels) and Hotels . Obviously, there will be many more Standard users than hotels (suppose 1:50). Now, besides the standard user data ( [CODE] , [CODE] , [CODE] , etc...
It depends on what database you use. Null data fields have no impact on the speed of access on most databases. You do need to default the additional [CODE] fields to Null Do not execute [CODE] Do not use fixed length columns On the other hand, my experience is that over time you may end up adding more and more fields t...
1
1
239
2022-08-04T10:53:34.470
warehouse_errors
dba.stackexchange.com
1,048,854
No outgoing pings
I had a problem with the server. The hardware had a problem and broken the system. The system administrators restarted the server in the rescue mode and it never booted again. Proxmox and the virtual machines are gone. They gave me another server with the same specs. Now I did the same things as always to reinstall the...
Sounds like a bad route to me. If you can ping stuff on the same subnet - but not things outside of that subnet, it's almost always a bad route/gateway or perhaps it's using the wrong subnet mask. Don't overthink the route, it is simply "where do I go if I can't find a host on my same subnet?" I find with many of my pe...
0
0
792
2021-01-06T20:05:18.363
infrastructure
serverfault.com
798,537
Accessing site via multiple virtual hosts with https
I have an apache server that sits in front of a JIRA Service Desk instance running on Windows Server 2012. We have 2 customer portals in JIRA and I need to set up Apache so that each customer portal can be accessed via a different virtual host. Like this: Customer 1 accesses root like [CODE] and gets -- https://it.mysi...
Your vhosts look fine. I would do the following to troubleshoot 1) Before each test, explicitly clear your browser cache, or use a command line tool such as curl to test the request 2) Add vhost specific access/error logs to each virtual host to make sure that the requests you are making are landing on the correct vhos...
0
0
90
2016-08-23T09:40:15.357
infrastructure
serverfault.com
240,836
global try-catch in presentation layer
I have a 3-layered app structured as follows. Presentation Layer (ASP.NET MVC project) Business Logic Layer (Services for controllers in PL) Data Access Layer (Repositories) Each Controller in PL interacts with its service in BLL, which in turn has access to Repositories in DAL. Is it a good practice to do a "global" t...
Your presentation layer should have a fault barrier . All decent frameworks will let you configure it once only, for unexpected exceptions. So try-catch does not pollute every controller method. When you want to show the error message to the user, then catch the exception in the specific controller. However, this is on...
3
5
1,303
2014-05-22T14:22:35.047
api_errors
softwareengineering.stackexchange.com
45,500
Recover Wrong encoded string values in MySQL database
I have a database in which I store the [CODE] and [CODE] values of the images. Unfortunately the program which inserts these values hasn't been connecting to the MySQL database with a UTF-8 link and the data it has inserted to the database is not in Unicode. I have fixed that but I was wondering if there is some way to...
A possible solution: Dump your table data with [CODE] or any other favorite tool Fix encoding in dump file using one of the utilities (there are plenty out there) Load data back
1
1
211
2013-07-01T05:52:43.993
database_errors
dba.stackexchange.com
1,024,749
InfluxDB 2.0 | Backup results in `read:dbrp is unauthorized`. How to migrate bucket data?
We are running an InfluxDB 2.0 instance in a docker environment. For some weeks we have collected data using telegraf and store them into a bucket. Now, we would like to do a backup of our data. What we can do to save our data is to make a copy of [CODE] , but we prefere to use build-in features and be able to restore ...
I posted this answer to an issue yesterday which will help (instructions duplicated below): https://github.com/influxdata/influxdb/issues/18882#issuecomment-663113088 You can manually edit the boltdb file to add those missing permissions to the token. Here's how: Stop your influxd process Upgrade to the latest influxd ...
1
1
1,854
2020-07-10T11:30:54.337
pipeline_ops
serverfault.com
95,732
Add linked server from SQL Server 11.0.5058 to SQL Server 10.50.4000
I tried to add a linked server running on SQL Server 2008 R2 (10.50.4000) from SQL Server 2012 (11.0.5058). I keep getting this error: The linked server has been created but failed a connection test. Do you want to keep the linked server? Does anyone know how to solve this problem? Are there any restrictions on buildin...
As your administrator I'd like to confirm that the problem has been caused by firewall restriction. SQL port is opened so you can complete linked server setup. Cheers, mate
3
5
2,155
2015-03-19T21:15:44.427
database_errors
dba.stackexchange.com
224,261
For a <1ft connection does an SFP mini GBIC with fiber provide any better performance than an cat 5e patch cable?
We have 7 switches in one rack that are all connected to each other via SFP mini GBIC fiber connections running at 1GBps. I know fiber provides benefits in terms of extending the distance that cables can be run between switches but since the switches are right next to each other is there any difference in performance o...
Technically there's increased latency by running Cat5/6 wire vs Fiber or direct Copper GBICs. But the latency is in the order of microseconds and unless you're running a HPC isn't usually worth mentioning.
1
2
828
2011-01-19T15:42:27.580
infrastructure
serverfault.com
658,756
PHP not executing in installed phpMyAdmin directory
I installed phpmyadmin on centos via yum and can access it via [CODE] . However, it shows the source code instead of the interpreted PHP code result. I tested this again by adding another file, [CODE] with just the contents [CODE] and sure enough in this case too the source code was displayed. I have other sites on thi...
Virtualmin, by default sets up a system for name-based virtual hosting, with applications running under suxec, and usually under mod_fcgid, as you've noted. This is incompatible (in a couple of ways) with Apache serving a single non-name-based site (though you could make the site in /var/www into the default site, and ...
0
2
1,751
2015-01-11T16:46:44.513
infrastructure
serverfault.com
50,400
How to specify a SQL Server maintenance plan subtask to run unconditionally on success or failure of preceding tasks?
I am having a (rather standard) daily maintenance plan created with SQL Server Management Studio Maintenance Plan Wizard. AFAIU, the penultimate task "Back Up Database Task" will be executed only on the success of all preceding tasks. Since the constraints (arrows containing tasks) are all the same (taken from default ...
You need to change the appropriate upstream precedence constraint(s) in the flow to On Completion instead of On Success. This is done one of two ways: Right-clicking the constraint on the design surface (shown below) and selecting the appropriate type from the popup menu. In the Precedence Constraint Editor dialog (whi...
5
2
5,831
2013-09-24T10:41:55.113
data_quality
dba.stackexchange.com
212,172
Debugging the source of rogue emails coming from my domain?
Somehow, rogue spam emails are being sent through my domain from [CODE] . I'm using google apps to manage email, and I see no [CODE] user account, so I'm not sure what could possibly be happening. Where should I start to debug this?
You might want to look at the email headers and determine if the email is actually being sent from your server at all. It's easy to make the email appear as if it were coming from any address, even a non-existent one.
0
4
437
2010-12-13T20:21:33.780
infrastructure
serverfault.com
461,436
Is A Network Copy Timeout Likely To Show Up In Event Viewer Logs?
I am trying to copy a 1.2Gb file between a Windows 7 workstation and a Windows Server 2003 system. That same server also hosts our enterprise's shares, most of them anyway. The copy from the workstation to the server times out. If not in the event logs, where might this timeout event be recorded? Furthermore, what tool...
No, this sort of thing won't be in the event logs; however, if the root cause was something (like a NIC losing connection or failing hard drive) that would be recorded, you could see if there's anything correlated. If the problem is being caused by the network, and if you have managed switches (assuming this is all on ...
1
3
1,352
2012-12-28T14:06:29.247
infrastructure
serverfault.com
737,150
VM inbound traffic only works with outbound traffic at same time
I've recently configured a VM on a low-end rental VPS service to try to improve load times for a web site I'm running. (The web site makes use of high-reliability technologies that require full access to a VM, so I can't just use cheap IIS site hosting.) I've got it all set up, and it's working well (and way faster tha...
In a raw approach it seems a duplicate ip/mac address misconfiguration, so everythings works if you continue to ping outside propagating your L2/L3 informations in this way. Could you post your NIC configuration ? Your virtual interface are in bridge with metal interface?
0
0
250
2015-11-18T01:31:27.200
infrastructure
serverfault.com
916,553
delete windows certificate from powershell or cmd
I want to delete all my PERSONAL certificates from certmgr.msc from command line , is this possible? I tried some code but it doesnt work I can list my certificates by runing this in powershell [CODE] I tried this but is not working [CODE]
What OS and PowerShell version are you on? Your [CODE] example works on my machine. The other way I would do it is via the pipeline. But ultimately, it's the same thing using [CODE] . [CODE] The [CODE] documentation indicates the ability to use it against certificates was added in PowerShell version 3.0.
3
3
7,470
2018-06-13T21:58:47.620
infrastructure
serverfault.com
1,002,526
Use sed to strip out multiple cases with varying names
I have an ansible inventory that I need to remove all cases that start with [CODE] . For example I have a list that includes groups named: [CODE] I tried [CODE] but all that got me was the [CODE] removed with the ends left in. [CODE] Became: [CODE] How can I do this correctly?
[CODE] so I first choose matching lines on words I need separated by \| then only I cut the useless word "site2-". You can still add -i.bak if needed
0
1
78
2020-02-10T17:53:43.287
pipeline_ops
serverfault.com
705,076
Apache with PHP-FPM not working
I am following this and this article to setup apache2 and php5-fpm under Ubuntu 14.04, but it always return a HTTP 403 when I run [CODE] , how do I fix it? I didn't edit the virtual host configuration file, but I add a file under [CODE] call [CODE] . php5-fpm.conf: [CODE]
Finally I had found a tutorial that fix the permission problem. I use Ubuntu but this tutorial still works.
1
0
11,400
2015-07-11T18:42:45.320
api_errors
serverfault.com
330,234
Undefined changes in data workflow, roles and permission/authorization (on-the-fly changes)
I am having trouble with code design for current scenario of process workflow. For example, by default it is set in the app that for some request 'A' direct manager has the authority to 'approve' that but later on, this approval authority has been moved to 'department head'. How can I accommodate these changes without ...
You might consider a business process scaffold. Business processes are modelled at the highest levels, although many of them can reach into the tiny details, because ... business. The technology family called "Business Process Modelling" aims to take business processes and turn them into executable processes. diagrams....
1
1
130
2016-09-05T18:12:57.763
pipeline_ops
softwareengineering.stackexchange.com
318,778
Windows Server 2003 apparent reboot or freeze, no apparent cause?
We have a server on a production site, it runs 24/7 though most of its traffic is normal business hours. Its function is to run a telephony call-centre using Dialogic-based hardware. The local users of the machine noticed the machine was unresponsive to their client applications around 8.30 this morning, when we tried ...
The fact that you had 6+ hours of dead time with no events makes me think it is hardware. the Raid rebuild may have been caused by the power plug pull and it may also be the culprit. These events, were they Application Log, System Log or both? There's alot of possibilties to tell you the truth, but, I would start by ge...
1
1
1,022
2011-10-05T16:13:26.747
api_errors
serverfault.com
486,606
Routing issue with multiple IP addresses on EC2 (VPC) host
We run a EC2 Ubuntu server acting as a STUN server for the NAT Traversal mechanism in my company's application. By the nature of the STUN protocol the server needs two IP public addresses. We hired some consultants to set this up for us but they seem to have failed because the STUN server is not responding to any exter...
10.0.0.1 is your default gateway, is there a router on the 107.23.X.X network? I have a feeling you're going to need to set up proper routing tables, to ensure packets that come in on one network also go back out through the same interface, on the same network. You could do something like this: [CODE] [CODE] [CODE] [CO...
0
1
1,220
2013-03-11T11:14:44.350
infrastructure
serverfault.com
922,727
Lost connection with ssh server through web console ssh (GCP, Putty, gcloud terminal, Filezilla)
After a year using the VM instance in debian, we changed the ssh keys to connect to other computers, after having generated the pair of public and private keys with putty, and adding it to the metadata, we configured the filezilla and accessed the instance's fpt, but after about two hours we lost the connection to the ...
Try to SSH to the instance with the following flag to get debugging messages during the SSH process. [CODE] As there are many reasons this could happen,I suggest you to take a look at these tips to troubleshoot and resolve common SSH issues.
0
0
1,646
2018-07-19T17:12:11.553
infrastructure
serverfault.com
721,405
Is using beta dd-wrt firmware safe?
I upgraded from v24-sp1 (2013) to v3 beta (september 2015) as dd-wrt stable releases haven't been updated for two years. Are there any issues I should be aware of when using the beta builds? I need it for openvpn in our company.
It's always a good idea to take a look at the dd-wrt forums . The "Router Database" on the main page is borked and alway suggests very outdated versions. This is a known problem, don't use it. What version to use depends on the hardware you got. The forums discuss new releases and people report problems. There are also...
2
4
3,668
2015-09-10T08:11:20.403
infrastructure
serverfault.com
950,327
Apache Configuration: how to limit non-hostname request to some pages?
I have a virtualhost configuration of my Apache server: [CODE] I want to allow access only requests with [CODE] as hostname. But I want to deny all other requests made by hostname or server-ip: [CODE] My virtualhost configuration works as expected. Now I have to edit the configuration to let user access one particular ...
I would split your vhost-configuration into two or more vhosts. It is possible to do it all in one vhost, but I find "separated" configs easier to read and to log. [CODE]
2
1
1,223
2019-01-23T07:57:17.763
infrastructure
serverfault.com
437,134
Configuring htaccess with django and apache
I am trying to configure my apache server with django. I am having issues matching urls to their views and am not quite sure of the cause of the problem. I have the following configuration: .htaccess: [CODE] urls.py: [CODE] The problem I am encountering is that all urls that do not start with /cyber.fcgi/ automatically...
[CODE] Missing $1 at the end.
1
2
3,756
2012-10-11T05:11:23.537
infrastructure
serverfault.com
349,176
Same Interface for Classes with some common attributes
I'm working on a project for my College and I'm stuck on this problem in my design. Right now I have something like: [CODE] In another class in a higher level of abstraction, I have a Class with a [CODE] And then when needed I add different instances of ChildClassOne and ChildClassTwo. However I need to get access to t...
I suggest you keep things simple and use composition instead of inheritance, as I wrote in a comment. Instead of having classes [CODE] and [CODE] , create a class [CODE] and a class [CODE] , and make your [CODE] optionally containing a reference to a [CODE] object and an optional reference to an [CODE] object. When ite...
0
0
1,770
2017-05-17T20:38:01.950
pipeline_ops
softwareengineering.stackexchange.com
238,165
How to take things step by step
This is about the third time I've had to write software to control a cellular modem. For those unfamiliar with the process, you have a sequence of steps you have to take. Each step takes a certain amount of time, and there's a few responses you should receive in that amount of time. There are also some responses you ca...
State machines are a common design pattern in embedded systems, and it seems that you have a typical use case here. What you can do is simply have an infinite loop that let the current state handle the incoming message, transition to a new state if needed, then wait a bit. Here's a simple C++ try. In my code, you need ...
5
1
921
2014-05-07T00:31:22.383
api_errors
softwareengineering.stackexchange.com
941,343
Azure tags: search for value including wildcard
We'd like to have multi-valued tags. For example, for the tag "application", we have some resources that involve several applications, i.e. Virtual Machines running several JBoss instances for different applications. As far as I know, multi-valued tags are not allowed for the time being. As a workaround, I'm considerin...
The filter in the Az CLI will not allow that kind of search, so you would have to do that sort of filtering yourself in your own bash/PowerShell code once you retrieve a list of resources.
0
1
1,916
2018-11-23T12:45:15.520
infrastructure
serverfault.com
284,854
How to monitor for MySQL select queries that return too many records?
I realize there are simple ways to limit results in SQL. I have a legacy implementation. I would like to get a handle on select queries that return results exceeding some user defined limit . The goal would be to have better insights to the kind of queries sent to the database. Some of these queries can translate into ...
SUGGESTION #1 : STATUS VARIABLES You could check the status variable [CODE] or read it from the performance_schema [CODE] You could see other row metrics as well: [CODE] SUGGESTION #2 : SLOW LOG If you need to see the number of rows returned or examined by any given query, you will need to enable the slow query log. He...
0
1
494
2021-02-06T21:05:23.293
database_errors
dba.stackexchange.com
470,497
If you turn on spanning tree, how do you know there is an issue with your network?
I have been learning about spanning tree protocol (STP/RSTP/MSTP) and was wondering, once I turn it on and it's protecting against for example network loops, how do I know there is a network loop? I suppose in most cases it would be obvious, because the room the loop is in would be down, but what if there is no complai...
You watch your switch logs for spanning tree events, or configure your switches to send SNMP traps when STP shuts down a port.
13
22
22,726
2013-01-18T19:43:23.147
infrastructure
serverfault.com
849,849
Very high SQL CPU on wordpress because of 404 request
I'm running a Wordpress site with Nginx, MariaDB, PHP-FPM and getting bombarded by a lot of different 404 request from a lot of IP (~10.000 different IP per hour requesting random URL which results in very high SQL load and random downtime). I've tried to put the main server behind a different Nginx server which will d...
At first I'd study the incoming requests. Are they really attacks or does your application have many broken links? If you can fix the cause, it's always better. Fail2Ban is also something I'd recommend, though won't do much if every IP does just one request. Regardless, you will want to avoid a 404 to reach Wordpress/P...
2
0
1,131
2017-05-13T02:36:48.983
database_errors
serverfault.com
971,553
new LSI megaraid Sas/sata 9286CV-8e controller won't import foreign (old) disks
Had a previous controller go bad -- new controller is able to see disks, but all as Foreign , unconfigured good. There were 2 VD's, 1 in each container both arranged as RAID 10 -- 2 stripes in each container each disk in the strip mirroring. Previous controller was definitely the problem -- as it wouldn't even see the ...
...It's working again. It really helps if you are buying a card that apparently was old and had rather old Firmware on it. Got a USB image and instructions from lsi->avago website, and it already had latest firmware for this card on it. If this was something that happened "often", I probably could have had this up 3-4 ...
0
0
420
2019-06-15T05:28:04.907
pipeline_ops
serverfault.com