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
38,971
BIT columns all "1" after a phpMyAdmin export/import
I have to import data from a MySQL database using phpMyAdmin because that's the only interface my hosting provider supports. I have exported my database from my local machine using phpMyAdmin. After that I imported the script file to my host. All of data in the columns that is BIT type are changed to '1'. Hosting datab...
I think we'll need some more information to pin down your problem. I just tried to recreate your issue and I could not. I created a table named [CODE] with two columns: [CODE] VARCHAR(5) [CODE] BIT(1) I inserted two rows into the table using phpMyAdmin's "Insert" feature Then I did a phpMyAdmin "Export" using the "Quic...
2
0
2,615
2013-04-01T04:34:35.333
database_errors
dba.stackexchange.com
886,524
Concurrent connections and Prefork MPM module
I'm testing my server to know how many concurrent connections it support. I configure my [CODE] this way: [CODE] But when my server receives ~8200 concurrent connections, an error is fired and apache not respond anymore: [CODE] The server has enough memory left. Is the configuration ok? Do I have to change anything? Th...
You might be running into your systems process limit. Check with [CODE] and see this question .
0
0
369
2017-12-04T19:11:02.920
infrastructure
serverfault.com
808,246
RabbitMQ cluster restarts every 30 minutes
I have a two node RabbitMQ 3.6.1 cluster (on CentOS 6.8 in AWS) that seems to restart regularly every 30 minutes. I just traced through the logs ( [CODE] ) on both machines to get a timeline of what happens. I've re-arranged them into this list: 19:22:10 UTC - 10.101.100.173: [CODE] -> [CODE] 19:22:10 UTC - 10.101.101....
I figured out the answer to this problem. It was caused by my Salt States configuration. When I first set up the system, I followed the RabbitMQ clustering guide to a T, such that I set up a Salt state to stop the app, cluster with all the RabbitMQ nodes, then restart the app. It did this regardless of if there were ne...
1
2
1,098
2016-10-10T21:40:47.350
infrastructure
serverfault.com
778,814
Websocket reverse proxy with nginx: Error about request in server log, but works in browser
The situation I am running Etherpad , which is proxied via nginx. Etherpad uses Websockets with Socket.io. My nginx config is more or less this one . The location block for socket.io is this: [CODE] What's confusing So the good message is: Everything is working! I am therefore not asking how to get anything working. Th...
I could solve my problem thanks to @webzwo0i , who made me aware on GitHub that this might be an IPv4/IPv6 conflict. So I again looked into the error logs and I noticed especially this: "[...] connect() failed (111: Connection refused) while connecting to upstream[...]", upstream: "http:// [::1] :CustomPort/socket.io/[...
2
1
3,909
2016-05-24T21:18:36.057
api_errors
serverfault.com
264,338
Preferred way of handling errors when loading an object from a file
If I want to load an object from a file, there are a number of things that can go wrong. Thus, one needs a way of handling errors when doing so. In some languages, like haskell, one can return a [CODE] object that might contain the newly created object. In [CODE] , although it is in principle possible to create such a ...
Don't confuse "exception" with "rare" The main point of exceptions and exception handling is keeping different types of code apart: The code that provides the main functionality (the "happy path" code) Everything else: The code that handles all those 973 other cases where not everything has worked out wonderfully and p...
2
3
191
2014-12-02T15:05:10.583
api_errors
softwareengineering.stackexchange.com
1,068,038
repmgr for streaming replication - standby register
I'm testing repmgr tool and I'm a little bit confused. Everything's fine until [CODE] step. What should I have configured on [CODE] server? From docs I assumed that [CODE] should't have the cluster, but it didn't configure a new one. When the [CODE] cluster exists [CODE] have a problem with existing data. When I'll sto...
It worked without any problems under [CODE] OS. After: stopping [CODE] service on the [CODE] server, removing [CODE] data from the [CODE] server, running data migration job from [CODE] to [CODE] server, the [CODE] service has started with migrated data as a [CODE] server.
0
0
443
2021-06-28T08:30:27.167
database_errors
serverfault.com
176,839
Slow scalar function that used to be fast
I have a scalar function that defined as below: [CODE] This function used to be fast when I used it in a query: [CODE] The query above has a result of ~50,000 rows. the query used to be executed in 2 seconds but now all of sudden it takes 22 seconds to run! It is slow for all distinct values of [CODE] in [CODE] , when ...
You are requerying the Account_Profiles table for every single row in OrderItems. If OrderItems has 50,000 rows then you are going to hit Account_Profiles 50,000 times. If OrderItems grows larger you will query it more times. If Account_Profiles grows larger then each of those times will take longer. You will see a lar...
1
1
2,409
2017-06-21T03:50:46.260
database_errors
dba.stackexchange.com
654,553
Chain NFS sharing
We have a storage server which for some reason cannot be reached directly (and of course not in same network). So we thought that we need to create some kind of chain NFS sharing like; [CODE] But whenever we want to mount a folder that has been shared from ServerA for to mount on ServerC we first mount folder to Server...
Default NFS service do not support proxy so i suggest you to use ganesha which i belive solve your problem https://github.com/nfs-ganesha/nfs-ganesha/wiki/PROXY
1
2
1,077
2014-12-24T08:48:09.357
infrastructure
serverfault.com
46,098
Selenium Page Objects have Individual Method for Every DataQa?
Our QA Automation Test project uses Selenium with data-qa attributes. Our company is proposing having Individual Methods for each By attribute: eg for SendKeys, Clear() I believe this may lead to duplicate coding, and can triple the code base. Option 1: SendKeys Method for each Attribute [CODE] Option 2: Don't need ind...
This is from selenium : https://www.selenium.dev/documentation/en/guidelines_and_recommendations/page_object_models/ There is a lot of flexibility in how the page objects may be designed , but there are a few basic rules for getting the desired maintainability of your test code. Page objects themselves should never mak...
0
1
62
2020-11-01T22:24:15.637
data_quality
sqa.stackexchange.com
47,372
Calculating employee's work time
I need to store and analyze employee's work time. Currently, I've developed this table structure CREATE TABLE `hirefire` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employeeid` int(10) unsigned NOT NULL, `hired` date NOT NULL, `fired` date DEFAULT NULL, `firereason` enum('fired','left','parental','vacation','deat...
Perhaps naming the columns "hired" and "fired" instead "start_date","end_date" would be more accurate, because a person in vacation hasn't been fired, and indeed is still employed. Same with "firereason", which is misleading, a simple "reason" would be more accurate. [CODE] For example: [CODE] gives the result: [CODE] ...
-1
0
2,021
2013-07-31T18:34:35.230
warehouse_errors
dba.stackexchange.com
1,140,466
Hyper-V Clustering Resource Availability
I have a Hyper-V Cluster with 4 Hosts at 51 VM's (Roles) across those. I would like to keep it so that I can still power down 1 host at a time for maintenance/Patching. So I'm looking at my resources. In performance monitor I'm only using 7-8% of the CPU however when I look at the Nodes in Failover Cluster Manager it s...
In performance monitor I'm only using 7-8% of the CPU That looks high. Note that for compatibility reasons, performance monitor is using ONLY the VM you are logged in - which is the master VM (yes, the hypervisor runs UNDER windows, technically your windows instance is in a VM). however when I look at the Nodes in Fail...
3
3
435
2023-08-02T14:14:54.157
database_errors
serverfault.com
339,246
VPN from my server to a clients
I have an Amazon EC2 server instance running Windows Server 2008 R2. I need to setup a VPN connection between this machine and one of my clients. The purpose is that my server is going to pull data from one of their database servers. What is the best way to set this up? From my desktop (Win7) I can use Windows Networki...
Check this out, what you really want to do, is get a router / VPN config in Amazon that can act as a central point for VPN connecions Just be mindful of security. http://aws.amazon.com/vpc/
0
1
1,377
2011-12-09T02:14:00.443
infrastructure
serverfault.com
50,977
How do I serve content from multiple web servers (appache, twisted) all through port 80?
My question relates to my previous question but I realized that my previous question was off the mark. I'm using a hosting service so I don't have access to root (just a user account) and my Apache web server is a Virtual Host running on port 80. The DocumentRoot is http://build.website.org and is at /home/ myname /bui...
This can be done in Apache through reverse proxying. See http://www.apachetutor.org/admin/reverseproxies for setup information. Feel free to post again if you have more questions.
1
5
327
2009-08-06T15:32:39.860
infrastructure
serverfault.com
32,112
Test breaks with FailureHandling set to OPTIONAL with WebUI.verifyElementPresent
When running the following code (in Katalon Studio): [CODE] I received the following error message: [CODE] So, even though the presence of the object is optional, I get an error message. Did you have a similar case?
Your element seems to be present, but unreachable. Use [CODE] instead of [CODE] Documentation: Reference Document
2
1
868
2018-02-16T12:46:51.827
data_quality
sqa.stackexchange.com
136,239
How do I give a user permission to install Report Builder from Report Manager? (SQL Server 2008)
By default, users do not see the "Report Builder" button on the Report Manager toolbar in SQL Server 2008 (R1). How do I give the user permission to use the Report Builder?
Try graning Manage Reports
1
0
860
2010-04-27T13:44:55.133
bi_errors
serverfault.com
175,728
SHOW tables returns empty set, but MYI.Crypt files are there
Something really weird happened to my VPS last week. Suddenly, MySQL stopped working. My VPS has CentOS 6 and uses Parallels Plesk. After this, Parallels Plesk stopped working, and trying to start MySQL via SSH just gave me an error [CODE] . I added this [CODE] to my.cnf and I was able to start MySQL and access it... i...
There is more information need to troubleshooting. What is the error logs for [CODE] for normal start? [CODE] What is the engine for MYD/MYI? Do you have previous backups or replication site?
0
0
973
2017-06-08T00:30:05.727
database_errors
dba.stackexchange.com
736,842
Apache 2 mpm-itk fails a setgid() call after upgrade to Ubuntu 14.04?
I am trying to port over a custom Apache setup from Ubuntu 12.04 and Ubuntu 14.04 (and therefore Apache 2.2 to Apache 2.4). All my config files are separately managed off of the package management system in [CODE] . We use mpm-itk. One of the things I am noticing that is different is that it is actually compiled as an ...
In my case it was this bug which made mpm-itk unable to support uid's and gid's over 65535. There is a patch in the issue tracker which corrects the behavior.
1
1
1,331
2015-11-16T23:19:09.080
api_errors
serverfault.com
320,226
Is a "static" FK bad design?
I have a table [CODE] where records can have different status. If [CODE] I need to store more information. In order to keep the db normalised I'm storing the extra information in a separate table, [CODE] . I want to make sure that [CODE] records only exists for [CODE] records where [CODE] . On way would be to store a c...
I'd say that your design is fine. You could use a generated column for the constant in [CODE] . While this is not necessarily about normalization, there is a lot to say for tables that don't have too many columns in PostgreSQL, because to access the 50th column, you have to skip the 49 preceding columns if you update a...
0
3
79
2022-11-26T14:52:58.050
data_quality
dba.stackexchange.com
39,125
ibdata1 grows exponentially when innodb_file_per_table is configured
I Have installed a MySQL Cluster with InnoDB (innodb_file_per_table enabled subsequently), but since I switched to innodb_file_per_table, the file ibdata1 grows (2GB at month). Is My [CODE] file is correct? Why my ibdata1 is so big (22GB)? How I can look what there is in the ibdata1? Server Configuration: Debian 6 amd6...
ibdata1 can still grow despite innodb_file_per_table being enabled. Why ? Question: If InnoDB tables and associative indexes are written to individual tablespace files (file extension [CODE] ), what information still needs to be written to [CODE] ? Answer: Here are the following classes of information written to InnoDB...
4
9
11,965
2013-04-03T10:27:42.807
database_errors
dba.stackexchange.com
803,829
Network error: Software caused connection abort (SSH & FTP) due to IP ban?
I have been setting up Fail2Ban and ufw. I have added my IP to ufw and fail2ban whitelists, but after simulating mutiple failed ssh login attempts it seems my IP has been banned. I get the following error message in putty and FileZilla when using the 'banned' IP to attempt a connection: "Network error: Software caused ...
The problem was with 'denyhosts' that came pre-installed so I was unaware of it. It did not create any entries in iptables, leading to the confusion.
0
0
1,135
2016-09-18T14:19:18.957
infrastructure
serverfault.com
888,378
How to configure delegation in an ASP.Net Core 2.0 app on windows with users authenticated via Azure AD
The Setup: I have a web app written in ASP.NET Core 2.0 that authenticates against Azure AD using OpenID Connect. It is running on a machine that is part of an Azure AD domain. The app does have an Application set up in Azure AD. The problem: We would like to use the Azure AD user account to connect to the SQL Server d...
It is possible, but there are a number of moving parts which all need to be in place for it to work. You can see my post for the things to check that they are all in place and some links to reference articles. It's written for asp.net core 1.1 running on net452, but I've since updated that app to core 2.0 on net462 and...
1
0
1,330
2017-12-15T22:17:03.127
database_errors
serverfault.com
331,175
Sun Grid Engine (SGE) Jobs Not Visible After Adding virtual_free
I'm trying to to use virtual_free to limit the number of large memory jobs running each grid node in my cluster. This seems to be working as expected. After I modified my code to submit jobs with the memory instances, qstat -f -q $queueName no longer shows a list of jobs waiting for a slot. The jobs are submitted with ...
The jobs are requesting a queue. They're not actually in the queue until they have started running on a host which has an instance of that queue. You'll only see them in the queue-specific output if and when they actually start running in the requested queue. This makes perfect sense if you consider the fact that you c...
1
1
310
2011-11-15T16:48:32.643
infrastructure
serverfault.com
454,776
It it possible to have multiple ReWrite rules that all do the same Action, for an IIS7.5 webserver?
I've got rewrite module working great for my IIS7.5 site. Now, I wish to add a number of URLs that all go to an HTTP 410-Gone status. Eg. [CODE] but that's invalid - the website doesn't start saying there's a rewrite config error. Is there another way I can do this? I don't particularly want define a single URL and ACT...
You need to match every request, and then use conditions to filter it to just your specific URLs: [CODE]
6
9
7,031
2012-12-04T01:20:12.340
infrastructure
serverfault.com
71,619
Dissidence between program leader and me, what should I do?
Possible Duplicate: How to tackle a boss who thinks everybody in this world is wrong except him? I've been an MMORPG programmer for two years. I have some experiences on limited platforms like cell phones, so I've got a strong awareness of memory optimization. But the programs of my current company eat a lot of memory,...
prove the value or accept that it's just not a priority for them right now possibly both
4
9
421
2011-04-27T03:27:17.077
data_quality
softwareengineering.stackexchange.com
801,266
Website not working in IIS 7 using the IIS Manager
I have Microsoft Windows server 2008 R2 and have the IIS 7.5 running. I have coded a web application on a separate laptop and would like to publish it now on my server (serves as AD, DNS, File Server, IIS) that runs locally and has no external access. We will be using the application internally only. I have followed th...
First - make sure you have network access to the server - from your description it is not clear how you are trying to contact the server. The basic check is to try to browse the site through IIS Manager from the server itself. Next - be sure that the application pool identity has permissions over the file system (on th...
0
0
5,867
2016-09-06T07:32:04.070
infrastructure
serverfault.com
192,254
Transferring IBD Files from one MySQL database to another in Windows
Without going into loads of historical detail I'll just get straight to the point. I am trying to move IBD files from one Windows server to another. MySQL is corrupt on the source server but I have a backup of the entire data directory. However, that's all I have. I do not have a mysqldump or anything of the sort, I ca...
No. A [CODE] is not transportable. There are two alternatives: Read about "transportable tablespaces". Use [CODE] (or other) to create [CODE] statements to recreate the table. The [CODE] is missing two things... the [CODE] file that gives the schema, plus some meta info in [CODE] , along with lots of other stuff for th...
0
0
2,964
2017-12-02T19:19:54.913
data_quality
dba.stackexchange.com
10,509
What $TERM value can you use on a Nokia N810 so Vim's key mappings work properly?
I'm connected to a Nokia N810 Internet Tablet through ssh. The default [CODE] value is [CODE] which causes all sorts of key bindings messes in Vim. Specifically the arrow keys, and home/end keys print out characters or change the case when not in editing mode. Does anyone know a sane [CODE] value to fix this problem, o...
setatakahashi is correct in that you'll need a .vimrc From a Maemo / n810 perspective you'll want at least these (amongst any of your own personal) settings in your vimrc. [CODE] The last three options set up the colours a bit more nicely within the vim on the tablet's terminal. You get the [CODE] by pressing [CODE] .
1
2
189
2009-05-20T19:15:05.533
infrastructure
serverfault.com
208,700
Why get queryplans recompiled every minute
I have a server running SQL Server Enterprise 2016 SP2 and I noticed that every minute several hundred queryplans get invalidated. I run [CODE] to check the 'Created At'-column to see when the plan is generated. Every minute about 500 plans are re-created and this continues the entire day and it are always different pl...
After some extended research I found the cause of my problem. So to calculate the cache pressure limit SQL Server uses following formula: 75% of visible target memory from 0-4GB + 10% of visible target memory from 4GB-64GB + 5% of visible target memory >64GB Since SQL Server 2012 and above, memory pressure is triggered...
3
1
153
2018-06-04T14:01:37.897
data_quality
dba.stackexchange.com
280,379
How to change "sender:" field in the header of Logwatch emails
I changed MailFrom="" in /usr/share/logwatch/default.conf/logwatch.conf That altered "From:" in the headers, but "Sender:" is still "root@ip-xx-xx-xx-xx.domain" EC2 Linux AMI beta, Postfix is the mailer
Arrived here via google with the same problem. Adding the "-f user" option to sendmail in [CODE] had no effect. Turns out logwatch.pl processes [CODE] after [CODE] . Edit or remove the [CODE] override in [CODE] for it to work.
7
7
7,564
2011-06-14T17:07:39.470
infrastructure
serverfault.com
313,003
Error upon adding a new node. "NotWritablePrimary: Not-primary error while processing 'find'"
I have 2 node replica-set Vm1 - Primary 10.1.0.2 Priority = 2 Vm2 - Secondary 10.1.0.3 Priority = 1 Now I am trying to add a new node (Vm3 10.1.0.4 - Secondary Priority = 0) based on Data folder from Secondary. (I stopped the mongod on secondary, then create a snapshot) Now when I add the Vm3 on my replica set when I c...
Already fixed. The copy should be from the PRIMARY and not from a SECONDARY node. No downtime needed in my end even if the PRIMARY node is running when I took a snapshot. Running on MongoDB 4.4
0
1
4,997
2022-06-06T14:51:33.207
database_errors
dba.stackexchange.com
876,396
Trouble debugging self-signed SSL cert for Apache
I'm trying to setup a self-signed SSL cert so I can develop my app with SSL (so I can finally get my sites running with SSL...). I've created a Angular site with a headless API (Lumen), and tried to setup a multi-domain SSL cert using a question from ServerFault: How to create a multi-domain self-signed certificate for...
You need to configure another apache VirtualHost and a Listen on port 443. See: https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html And I wouldn't use self signed certificates even for development when you can have certificates signed by a public certificate authority for free from https://letsencrypt.org/
2
5
233
2017-10-02T04:03:34.177
api_errors
serverfault.com
294,104
Is it ok if a method returns a new instance of the class it's in?
I have a class called MyClass and a method called Get that looks something like this: [CODE] Is there anything wrong with doing this from a design perspective? Or any other perspective? I guess to make this more clear, I'll post my actual code. I'm writing a facebook app and my class is called "FacebookAccount". The id...
I don't know if it is "wrong," but it certainly doesn't look "right" to me. I don't know why you are doing what you are doing. It looks like you are creating instances, but it's unclear if these are new instances or copies. If you are creating new instances, the usual way to do that is to use a static factory method. I...
1
7
1,990
2015-08-19T22:02:55.863
api_errors
softwareengineering.stackexchange.com
295,016
ups to give few minutes for about 20 PCs and 10 Printers
We've a problem in the electricity current for three months right now, I was tasked to get the best solution, and it should be cost effective also, for allowing our application users to save and shutdown their PCs, and complete the printing jobs they sent to the printers. the problem is we don't need to place a ups for...
Its going to be a lot more cost effective to get a UPS for each device you want to keep online, excluding large laser printers, than to get something for the whole office. A solution like you seem to want is going to require some large equipment purchases (I'd estimate something like 15 to 20k) and then a few thousand ...
0
3
124
2011-07-28T13:13:36.347
infrastructure
serverfault.com
471,419
Azure VM : Connection refused by host
I recently stopped a subscription with 14 VMs in it and restarted it a few days later. Now all my VMs are working just fine at the exception of 6 used for MongoDB. They respond to ping and so they show as online in the azure dashboard but they do not answer to anything else. I tried (from different locations, in and ou...
There is a better and faster solution than downloading/uploading the VHD. As mentioned, the problem " was recognized to be a missing newline in the sshd_config file! " 0. The first step should be different though, because otherwise you can lose your current Cloud Service IP, if you delete the last VM in it - and on web...
4
5
11,580
2013-01-22T15:57:18.073
database_errors
serverfault.com
231,567
An alert for Log backup which is less than 2 hours
I am looking for a script which will send me an email with the below condition: Send email when there is no log backup for the last 2 hours. I actually have generated this output using the below script , but I need my output to have a last full backup date in it. The script: [CODE]
The below script will create a SQL Server Agent Job that runs hourly. The job reports, via database mail, whenever it detects a database that hasn't had a log backup in the past 2 hours. Since log backups don't apply to databases in the simple recovery model, those databases are excluded. Also, the [CODE] database is e...
2
2
571
2019-03-07T14:12:41.480
database_errors
dba.stackexchange.com
144,935
sys.dm_exec_query_stats - what causes total_worker_time to be reset? How to work around that?
I am monitoring stored procedure executions, mainly the execution times and the CPU usage, using sys.dm_exec_query_stats in the script below. [CODE] I basically saves the contents of DMVs into tables (tablebackups) so that I can compare the situation as it is now (straight from the DMVs) and the situation as it was (fr...
I'm pretty terrible at these DMVs however: When you're joining on the history you can have one plan_handle with multiple sql_handle (where the plan executes with different options), so possibly this is skewing your stats. The plan handle is for an entire batch, with individual statements inside it, which can be recompi...
1
1
471
2016-07-26T11:44:09.810
database_errors
dba.stackexchange.com
551,652
TPM had to be reintialized: Does a new recovery password have to be uploaded to AD?
Some way some how, a user's machine couldn't get read the bitlocker password off of the TPM chip, and I had to enter the recovery key (stored in AD) to get in. No big deal, but once in the machine, I tried to suspend bitlocker per recovery documentation, and got an error message about the TPM not being initialized. I k...
When BitLocker encrypts a drive it keeps the master encryption key on the drive itself, though not in plain text. The master password is kept itself encrypted by "Protectors". Each of these keeps a separate copy of the master key as only the protector that encrypted it can decrypt that copy of the master key. When you ...
9
12
20,855
2013-11-08T14:31:59.850
infrastructure
serverfault.com
347,495
How long does it take to modify the permissions of /home/?
So I am using Transmit.app for my SFTP client and I changed permissions in [CODE] and pressed the "Apply to Enclosed..." option as well. So essentially it is applying the desired permission to every single thing in [CODE] . The size of the directory is a couple gigabytes. Probably 2 or 3. This has been taking like 15 m...
You're modifying inodes and not files, it should be fairly quick. Last time I did that it took under a minute on our old LTSP boxen. You've made a bunches of changes already if it worked at all. But it's generally a bad idea to do such indiscriminate changes. Update based on the comments: @wombats You need to set up an...
0
4
1,226
2012-01-06T20:39:16.510
infrastructure
serverfault.com
637,589
I have a IP address with some open services. How could I contact the owner?
After having serious problems (DNS incident) I found out an IP address of a machine. Is it in any way possible to contact the owner without knowing anything else like email, domain name or website? I scanned it via nmap and found some services like: [CODE] I thought on leaving something in one of the log via a ssh conn...
Start by asking ARIN using the WHOIS tool (it's in the upper right corner) http://whois.arin.net/ui They'll point you to the right affiliate ( APNIC or RIPE ) if it's not an American IP. You'll either get the Company name (and maybe a Point of Contact, although those are usually outdated) that owns the IP or the name o...
-2
1
53
2014-10-16T16:53:55.737
infrastructure
serverfault.com
233,708
Putting a constraints on a already made table in PostgreSQL
I was wondering is it possible to add Not Null to a variable created already in the PostgreSQL database. I created a table already, but I forgot to add not null constraints to the variable ?
Tables don't have "variables" - they have columns. But yes, you can change an existing column to NOT NULL: [CODE] Note that this will fail, if the column contains NULL values. In that case you need to first update all NULL values to something different, before you can run that statement. See the manual for more example...
0
2
32
2019-04-02T04:18:25.800
data_quality
dba.stackexchange.com
124,854
Storing XML data from thousands of API calls
I am working on a data pipeline that pulls document metadata from an electronic document management system (EDMS). The end goal is to visualize document statuses (overdue, submitted etc.) in a PowerBI dashboard. I use Python to make API calls to the EDMS, which returns an XML file with the metadata for each document. S...
store the data returned by the API calls ... I was going to propose: option (4.) Save the data from each XML file in a new row in a DB. And then, fortunately, I saw: In a subsequent step the raw data is ingested into a relational database. Any data pipeline needs to be robust against routine failures. It's not super su...
0
1
43
2023-12-01T09:55:34.717
bi_errors
datascience.stackexchange.com
617,865
Amazon EC2 t1.micro instance
Is there Amazon EC2 t1.micro instance using HVM virtualization? Currently I'm trying to use it for Apache, Stratos, PHP, Cartridge. But it gives the following error: TID: [0] [STRATOS] [2014-08-04 17:25:53,786] ERROR {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} - Failed to start an instance. Me...
No, t1.micro uses PV instances. Use t2.micro for an HVM instance.
1
6
2,534
2014-08-04T18:59:19.863
infrastructure
serverfault.com
232,764
How would I undo or edit the last line of a multi-line query in mysql?
I often make mistakes when entering multi-line queries in mysql. Is there an easier way to undo the last line instead of retyping the entire query? [CODE] For example, I meant to type [CODE] , is there a way to quicky fix that? Normally I would ctrl + C and use the up arrow key to re-enter first two lines quickly, but ...
Type edit . [CODE] It would open a vi editor. You can make any number of mistakes and undo them. Once done with your multiline query, exit(:wq) out the editor. Type ; to execute your query. [CODE]
3
2
1,152
2019-03-21T16:31:58.090
database_errors
dba.stackexchange.com
267,258
Postgres foreign data wrappers weird join behavior
So I have tables in two different databases that I need to analyze together. I am using fdw to do so. However I am running in to weird behavior with my joins. Keep in mind the following snippets are just accessing the foreign database. When I do: [CODE] it runs very fast, however the result of this join will have dupli...
You never [CODE] d the foreign tables, so the estimates are way off, and PostgreSQL chooses a bad execution plan. [CODE] should improve the situation. Different from regular tables, foreign tables are not handled by autoanalyze.
0
1
656
2020-05-16T00:03:29.507
database_errors
dba.stackexchange.com
1,063,016
Kubertnetes with metallb - Loadbalancer service in pending state
I have followed the steps of installation from metallb website. And the metallb containers are also running. After that I deployed an nginx service for testing with service as LoadBalancer. The LoadBalancer is not getting IP from metallb. Any suggestions on how to fix this?
Since I'm not able to write comments, will add all details and path here. I used following page for setting up a Metal loadbalancer. [CODE] You can verify an installation by running: [CODE] [CODE] Documentation says: The installation manifest does not include a configuration file. MetalLB’s components will still start,...
4
1
2,546
2021-05-09T12:39:30.727
pipeline_ops
serverfault.com
75,245
Is normalization advisable on transactional data?
I have read a lot of articles about normalized vs denormalized schemas, but I find very little mention of the cost of row insertion. I am considering the impact of converting a 100% denormalized database system into more normalized one. Below is the info that I believe to be pertinent to my question, which in essence i...
You can definitely keep all your dimensions and measures in one fact table and not use any dimension tables. Make sure your OLAP tool supports this though. Normalizing out your dimensions into other tables is done mostly to minimize the size of the fact table, which can get large fast. With no dimension tables you're l...
0
1
2,111
2014-08-28T18:11:04.387
data_quality
dba.stackexchange.com
440,601
Add subdomain using apache
I have my own vps, and I want to add a subdomain to my domain. I figured this is something that apache can handle. So I'm using someone else's DNS, which points requests of my domain to my server. I haven't really done anything to mess with the 'stock' install of apache2. I currently have this in my sites-enabled: [COD...
Must be a simple thing that went wrong. Try this very simple example: NameVirtualHost *:80 DocumentRoot /var/www/domain ServerName www.domain.com DocumentRoot /var/www/sub1 ServerName sub1.domain.com
1
0
102
2012-10-19T03:36:54.543
infrastructure
serverfault.com
1,064,211
OVA to QCOW2 conversion - Openstack instance dracut initqueue timeout and could not boot
I have a custom OVA built with Centos 7 and trying to convert it to qcow2. I have extracted the files from the OVA and converted the vmdk to qcow2 with following command: [CODE] After uploading the qcow2 image and creating the instance in openstack I am stuck with the following message after boot(shared screenshot) I a...
Run "dracut -fMa qemu" on the source CentOS. Replicate and re-run the migration and the issue should be resolved.
0
0
675
2021-05-20T09:34:06.253
infrastructure
serverfault.com
931,586
MySQL server (mariadb) auto shutdown without overload
With old configs, my VPS (1 CPU, 1 GB RAM, 1 GB swap) works normally for almost 2 years. I didn't change anything from beginning. But I have this issue several days ago, MySQL server automatically shut down, while watched via DO Graph monitoring, I realized seems it shut down every time CPU overloaded (>100%). Then I t...
If you read the log, there is a small bit of text that says 'Fatal error'. This indicates a fatal error. The few lines before this indicate why. Tune [CODE] to match your available memory. You can also save RAM and improve performance by disabling the query cache. [CODE] , and all the processes in top that consume 0 me...
2
1
4,656
2018-09-18T22:58:11.390
pipeline_ops
serverfault.com
537,582
MySQL without password prompt?
I have a MySQL server with the MySQL root password is an empty string. If I try to connect to MySQL without a password, I am denied. Like this: [CODE] How can I get MySQL to let me connect without prompting me for the password first? I have other servers where I can connect just fine without prompting for any password,...
Not that I would encourage running MySQL without a password if you're storing anything of value, but in this case the problem seemed to be a shell alias for the mysql command which was specifying user/password options. Usually if you just run 'mysql', you'll get an error along the lines of 'access denied (using passwor...
2
4
8,698
2013-09-09T19:30:57.687
database_errors
serverfault.com
149,899
Optimal SQL solution
I have notification table (very large table). I need your help with the below scenario: select all notifications for [CODE] ; insert these notifications in [CODE] table; delete all these notifications from [CODE] table. My thoughts : create flag column in notification table and create on update trigger on it to do step...
How about only SQL statements! no triggers, and no SPs; within a transaction for integrity: [CODE] Make sure you have an index on [CODE] . HTH
0
2
64
2016-09-16T14:16:39.803
warehouse_errors
dba.stackexchange.com
875,454
postgresql psql : could not connect to server: No such file or directory
First I want to start by saying the most relevant answer was here . When I try to run the following here's what I get: [CODE] I can also confirm that the server starts up and quits by running the first command below. The second command below confirms that the server started but immediately exited, [CODE] An answer that...
PostgreSQL-9.6.5 for Ubuntu 16.04 via the installer (but this may be redundant) This isn't redundant, you've installed two different versions of Postgres in two different locations. On a package management system like Ubuntu (and most flavors of Linux) you should only use the version of software found int he package ma...
2
1
18,222
2017-09-25T23:27:25.127
database_errors
serverfault.com
89,748
Amazon Redshift - The difference between Query Slots, Concurrency and Queues?
We are building a business intelligence system, and we have a huge PostgreSQL Database (DB) where we make all the info processing, and a Redshift Data Warehouse (DWH) where we store the data and execute queries. The backend is built in Java Server Faces (JSF), and before, the queries were made lineal. Some views were t...
I think your understanding of query queues is a little off. A queue is like a thread in Java. A query arrives and is designated to the "less loaded" queue, and it waits for its turn to be resolved. The decision of where to put a query is independent of how busy a queue is; queries are allocated based on the rules you'v...
4
5
5,939
2015-01-20T20:04:19.310
warehouse_errors
dba.stackexchange.com
998,630
fail2ban error with firewalld (f2b-<jail name>: no such file or directory)
I have been using fail2ban for months without any issues but after a CentOS upgrade it stopped working. It seems it doesn't create the iptables entries. I have already tried restarting fail2ban, restarting the VPS, and all the basic stuff. The relevant errors are: In [CODE] : [CODE] In [CODE] : [CODE] [CODE] output: [C...
fail2ban error with firewalld ... Well this is not fail2ban error. Basically fail2ban tries to run following commands (you can try this by yourself in shell as root): [CODE] For some reason [CODE] or rather [CODE] , which seems to be internally used by firewall-cmd, fail with: [CODE] Normally this message does not make...
0
0
2,022
2020-01-12T15:53:58.980
infrastructure
serverfault.com
981,389
Nginx, where does the host name in this error come from?
I have a server setup with the name 'api.mydomain.com'. I have an error being generated by the application, and the error text is being appropriately logged as: [error] 9#9: *6916 FastCGI sent in stderr: " application error removed " while reading response header from upstream, client: 172.24.0.5, server: *.api.mydomai...
In nginx error log entries such as this: The "server:" indicates the [CODE] of the [CODE] block which handled the request. The "host:" indicates the hostname sent by the browser or user agent in the [CODE] request header.
1
3
244
2019-08-30T23:17:27.037
infrastructure
serverfault.com
770,545
Restrict duplication of Alias name while creating a distribution list using Exchange commands
I am trying to create a new distribution list using exchange server commands given in Creating new distribution list command . When I enter a duplicate alias name it is allows me to create the new distribution list. While when I try to create the distribution list from the Exchange Server UI in Office 365 then it gives...
Aakash Morya, Have you tried this syntax? [CODE] http://o365info.com/manage-distribution-groups-by-using/#SUB-1 To do this from Office 365, you go to Exchange Administration and go to Recipients, Click the Groups, Click the plus sign, Click Distribution group, Enter a Display name, Enter an Alias, Enter a Name, Select ...
4
0
674
2016-04-15T09:36:59.693
data_quality
serverfault.com
21,944
How do I import a specific line from a text file into MySQL
I'm building an app to import data from a text file to a database. I want to import only specific lines from the text file. With Navicat I found that we could limit number of line when importing data. I also found an article saying that we could limit it, so I tried this: [CODE] But I get an error in [CODE] , what is t...
If you are using Unix/Linux you could try using a fifo buffer: [CODE]
2
2
4,417
2012-08-03T07:37:42.070
database_errors
dba.stackexchange.com
609,881
Windows Server 2012 on KVM on Ubuntu 14.04. Runs well for a while and then slows down
I have Windows Server 2012 Essentials running as a VM on KVM running on Ubuntu 14.04 LTS. It performs very nicely after a reboot but after a while it starts slowing down and getting sluggish. This can be after a few hours or a day. I haven't found any obvious pattern between usage and when it slows down. The Windows VM...
It seems that the issue was a result of a kernel bug in the 3.13 kernel that causes KSM to be a bit over eager when identifying memory to share. ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1341195 ) We fixed this by setting KSM_ENABLED in /etc/default/qemu-kvm to 0. Alternatively, we could have upgraded to t...
2
1
4,256
2014-07-03T14:29:42.457
database_errors
serverfault.com
221,498
VPN connection over apache mod_proxy
We have several virtual machines which are connected in a private virtual network connection. Internet access for these machines is provided via dedicated virtual machine which has apache proxy server on it (they all use this machine as proxy). The problem now is that from several machines we need to connect to externa...
Apache's mod_roxy is for proxying HTTP traffic, you're not going to get VPN traffic over it. If you need to set up a VPN to an external VPN server, you're going to have to setup a gateway to route the traffic out from the private network to the external world. It might be possible to get the box that's doing the proxyi...
0
0
1,102
2011-01-12T10:10:30.007
infrastructure
serverfault.com
143,455
can't connect with Putty after editing configuration of SSH
I was editing PuTTY's config file [CODE] . I didn't know how to save the file (:w and :q) so I quit PuTTY. It crashed the file so I reopened and saved it. But now PuTTY tells me: [CODE] I rebooted the server in safe mode (or something like that - netboot system I think). How can I reset the configuration of [CODE] ?
since you acknowledged you were modifying [CODE] over ssh, and you screwed up the file, and for some reason [CODE] restarted, you're SOL, since i presume you /only/ have remote access. if you have [CODE] or [CODE] or some other web interface that allows you to download/upload system files, edit system files, or even re...
0
4
2,161
2010-05-19T16:51:14.020
infrastructure
serverfault.com
1,136,546
Does anyone know of a program or script to show which route is being used for an IP address?
In Windows (say Windows 10), I'd like to put in an address, and then the relevant line from the routing table is shown (if any). So, pretend you are pinging an address and the computer processes the routing table and figures out which route to use. It would also be nice for the program to show which of the various netw...
Powershell: [CODE] or somewhat similar to the [CODE] output: [CODE]
1
2
127
2023-07-10T17:07:13.103
infrastructure
serverfault.com
25,446
Appium TestNG error : Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
I'm trying to launch a simple web application test using Appium, using AVD. I'm using eclipse, and the android studio emulator. I included all the packages. I would like to make sure about the capabilities I used concerning the device name because in the AVD the device name is: 'Nexus6API24' but when I type the command...
Instead of: [CODE] Try: [CODE] That's what I use after reading Understanding Desired Capabilities .
1
0
764
2017-02-12T14:39:03.363
data_quality
sqa.stackexchange.com
160,612
Set Maximum Server Memory Higher Than What is Available to OS
I have a server that is being repurposed into a SQL Server. It came with more physical memory than the 32GB that can be seen by my OS (Windows Server 2008 R2). Management would like me to configure the Maximum server memory used by SQL (SQL Server 2008 R2 Service Pack 3) to be higher than what is seen by the OS. I can ...
Presumably you have the "Standard" edition of Windows Server 2008 R2. You'll need to move to the Enterprise Edition (or DataCenter) of Window Server 2008 R2 to utilize more than 32GB, regardless of the "max server memory" setting in SQL Server. Windows memory limitations can be seen on MSDN here . Keep in mind, SQL Ser...
1
10
1,293
2017-01-10T18:10:30.057
database_errors
dba.stackexchange.com
259,511
Viability of a large database without using indexes and some other things
I'll explain my situation as briefly as possible. My group is working for another company and I'm mostly creating stored procedures for making reports. The twist is that, last month, they decided to do some major changes, which increased a lot the time required to what before worked nicely. I don't know the details, bu...
The use of views backed by linked server queries puts you in a pretty tough situation. You get bad cardinality estimates coming out of the "remote query" operators (10k rows estimated, vs. the actuals of 521k and 30k respectively). This results in SQL Server choosing to sort and use a merge join, when it would probably...
1
1
82
2020-02-12T12:27:12.580
database_errors
dba.stackexchange.com
1,074,321
Why Apache2 total threadcount is more than MaxRequestWorkers
I recently moved my mpm from perfork to event (& also mod_php (php7.0) to php-fpm (proxy_fgi)) I estimated my max concurrent connection load to be around 300. So i set the following configuration in mpm_event.conf [CODE] Now I see some strange behavior when I observe the apache2 process and total threadcount using ps N...
I am observing similar behaviour. With default MaxRequestWorkers 150, I reach up to 301 threads - i.e. 1 parent and 2* MaxRequestWorkers threads. I tested this by setting MaxRequestWorkers as 40 and I reached 81. Can anyone confirm this Apache behavior? P.S. I am running Apache2 as prefork, i.e. ThreadLimit and Threads...
0
0
308
2021-08-12T08:49:11.807
infrastructure
serverfault.com
276,349
Using pg_dump on a view always produces an empty file
I want to export a subset of a tables rows using pg_dump (using powershell on windows). The simplest way seems to be to create a view with an appropriate WHERE clause. However, when I run pg_dump on the view the resulting output files never has data in it (it has several rows of SET statements, but no actual data.) I c...
Is there any way of using pg_dump against a view. The postgres documentation suggests it should be possible This is not an answer to your question per-se, but the PostgreSQL documentation is certainly very ambiguous there, so I submitted a patch to clarify what will be dumped (in particular, only the definitions of vie...
1
3
2,046
2020-09-30T20:08:34.090
warehouse_errors
dba.stackexchange.com
773,215
PostgreSQL installation under debian
I'm trying to install PostgreSQL server on a server running debian8. I installed the package [CODE] with apt, but it seems like there are missing programs. I tried to create a cluster but [CODE] can not be found on the server, I tried as standard user, as [CODE] and even [CODE] . When I look up [CODE] there is not [COD...
[CODE] is part of the [CODE] package as provided by pgdg, and it should be located where you don't find it. $ dpkg -S initdb postgresql-9.5: /usr/share/locale/it/LC_MESSAGES/initdb-9.5.mo postgresql-9.5: /usr/share/locale/zh_CN/LC_MESSAGES/initdb-9.5.mo postgresql-9.5: /usr/share/locale/ko/LC_MESSAGES/initdb-9.5.mo pos...
0
1
615
2016-04-27T09:06:53.960
database_errors
serverfault.com
251,243
AlwaysOn database not synchronizing/recovery pending due to cluster loss quorum
I have this error in cluster event 'Cluster node 'MMPDB1NEW' was removed from the active failover cluster membership. The Cluster service on this node may have stopped. This could also be due to the node having lost communication with other active nodes in the failover cluster' But now even though my cluster nodes are ...
This issue solved after click on resume data movement in node 2 . Hope it helps others.
0
0
2,290
2019-10-16T12:42:20.727
database_errors
dba.stackexchange.com
146
Are there tools for SQL-Server helping to add the semicolons?
Earlier versions of SQL-Server didn't recommend the use of semicolons to terminate sql-statements. Beginning with sql-server-2008 examples show, that now Microsoft recommends terminating with semicolons. There are some formating tools which format sql queries and add the semicolons. I think the basic function is somewh...
Start typing and don't trust code generators. As you bring up procedures and code to edit it for other reasons, just add the semi-colon in then. You wouldn't want to deploy all your stored procedures in one batch just to add in the semi-colons only.
6
4
307
2011-01-04T11:21:29.657
database_errors
dba.stackexchange.com
1,085,947
How to identify slot for faulty GPU card in server using UBUNTU OS commands?
I have a question. Is it possible to identify in which slot there is a broken GPU card using the UBUNTU operating system? We have a SuperMicro GPU server in which there are about 8 GPU cards for AI computing. Every now and then we go to the server room after we get information from users/department that the card is not...
In general, if you are able to find out which PCI bus address this card has, you can locate the precise slot it occupies. Traverse [CODE] output and find in which slot this PCI address appears. However, this only helps if you have confidence the PCI slot numbering in DMI is predictable and corresponds to actual physica...
0
0
397
2021-12-10T16:08:53.997
infrastructure
serverfault.com
3,780
Is Windows in general always slower than linux?
There are multiple distribution in the company. Building the same project results in different build times (see table 1). [CODE] Table 1: Ratio of build speed between different Operating System and hardware. Do other people from other organizations experience this as well?
TL;DR depends on the use case with up to 12 times between best/worst Comprehensive testing has been done over at Phoronix (28.03.18) and the results are very mixed. The tests looked at: Clear Linux 21510 Debian 9.4 OpenSUSE 42.3 Leap Ubuntu 16.04 LTS Windows 10 Pro Build 16299 Debian 9 On WSL OpenSUSE 42.3 On WSL Ubunt...
0
7
966
2018-03-30T18:22:10.170
pipeline_ops
devops.stackexchange.com
765,447
error running nginx with thin
I am trying to install redmine on my Ubuntu 14.04 machine. I already have an nginx 1.8.1 server running so I need to use it with that. I have followed a bunch of tutorials on how to do it as I have zero experience with the ruby environment. After I installed and configured everything I get an error in nginx when I try ...
It's trying to connect to http://unix:socket - that's probably the problem. Look at the configuration settings for nginx to fix your configuration. It's probably this [CODE] I think proxy_pass can only send to another HTTP server, but you're trying to sent it to a Unix socket. That works for PHP, but not for proxy_pass...
0
0
990
2016-03-22T21:12:48.733
infrastructure
serverfault.com
34,289
"Multi-select dropdown toggle" webdriver issue
First time here. I've got an issue you might be able to help with. Working on chrome webdriver automation, there's a dropdown menu that's toggled with a click. I need to be able to select list items. Here is the code for the menu. [CODE] My attempts to interact with it through the following have failed. [CODE] If you n...
The below code will locate the dropdown and prints the list of options present in the dropdown.Check whether the below mentioned first two line of code is locating your dropdown.And I have added next few lines to check whether all the dropdown options are displayed. [CODE]
1
2
1,923
2018-06-18T05:36:07.813
data_quality
sqa.stackexchange.com
963,085
GCP Managed SSL Certificate stuck on FAILED_NOT_VISIBLE
I've followed GCP's guide to creating a managed SSL certificate for my subdomain [CODE] . My domain registrar is configured with the NS records: [CODE] My GCP project is managing the domain name using Cloud DNS with the following entries: [CODE] Pinging [CODE] resolves the expected IP of the target Ingress, and making ...
My mistake was referencing the wrong name of the static IP resource in Ingress. When creating the Ingress, a new global static IP was created. For some reason it was created with an autogenerated name like [CODE] , rather than the human readable name that I have assigned to it. Changing the Ingress annotation [CODE] to...
0
0
4,087
2019-04-15T08:22:39.530
api_errors
serverfault.com
452,612
linux\solaris + print specific date format from file
subject - print file date on solaris as format: yymmdd ( yy - year , mm - month , dd - day ) on Linux machine I type the following command in order to get: file date as the following: [CODE] . please advice what the syntax for Solaris ? , because I get error when I try to run it on Solaris: . [CODE]
The command you are looking for should be: [CODE] Hope it helps! Another optino is to use [CODE] as [CODE] See another solution https://stackoverflow.com/questions/1839877/how-can-i-get-files-modification-date-in-ddmmyy-format-in-perl
0
1
2,428
2012-11-27T14:52:14.617
infrastructure
serverfault.com
739,130
Postfix header_checks not working
I just can't seem to figure out why header_checks are not being evaluated. I add following line to /etc/postfix/main.cf: [CODE] And here is header_checks.pcre : [CODE] To test it I tried : [CODE] which evaluates correctly and give me return output of : [CODE] But when I receive an email from skrbniki@pressclip.si this ...
One issue might be that there is a [CODE] somewhere in [CODE] or [CODE] that is turning off the header checks. In the [CODE] file, it would be a [CODE] option in one of the service configuration entries. There are 4 options for [CODE] : no_unknown_recipient_checks Do not try to reject unknown recipients (SMTP server on...
2
3
7,897
2015-11-26T11:25:08.583
infrastructure
serverfault.com
149,316
Email bouncing sent from Google
I'm hoping someone here has an idea of where to look next. We have a domain we support which has email sent to it from one particular user bounce with the following message: Delivery to the following recipient failed permanently: [CODE] Technical details of permanent failure: Google tried to deliver your message, but i...
This is a rejection from the receiving mail server, so you would need to get with the mail admin for princetonscoop.com and have them look at their logs. Many anti-spam filters don't give you more info than what you have in your bounce message, so it could very well be bouncing because the sender is in an RBL or other ...
1
1
1,498
2010-06-08T17:08:45.657
infrastructure
serverfault.com
243,833
Faster way then VMGuestFile Copy?
VMGuestFile Copy copies files at approx. 1 MB/s at my environment. It's very slow and it takes ages to move GB's of data. Is there a better way to copy files faster than with VMGuestFileCopy? Or, is it possible to speed up things somehow? I don't want to connect the Ethernet adapters. I need a virtual environment solut...
Can you not just setup 'regular' shares either inside or outside the VM (i.e. an NFS or CIFs share) and use that?
1
2
386
2011-03-06T09:58:58.687
infrastructure
serverfault.com
290,550
Trying to setup a subdomain... how do I setup DNS?
I have a dev environment and a production environment. The production environment lives at [CODE] on one server (77.123.45.67). On a totally separate server (different host, everything), I have [CODE] (77.765.43.21). I'm trying to create a subdomain on the development server: [CODE] . I tried to add an entry to the dev...
your whole approach seems kind of odd but if you insist on creating a sub-domain named dev2.dev.example.com go ahead and edit the DNS with an A record for it. dev2.dev 77.765.43.21 Next you need to edit the Apache.conf file and add dev2.dev.example.com as either a "ServerName" or "ServerAlias".
1
2
945
2011-07-14T17:09:24.220
infrastructure
serverfault.com
943,074
Postfix, Dovecot and catch-all
I've set up my mail server using a guide from Digital Ocean , followed by another guide . So, now if I send mail to [CODE] , it works. Now I'm trying to set up a catch-all address for all undelivered mail. Things I've tried so far: 1) Replaced [CODE] line with this: [CODE] The result I see in the logs: postfix/lmtp[326...
This is because [CODE] also includes [CODE] . I assume your [CODE] has information on this user, but [CODE] is looked before that. In this case, the easiest solution would be to reorder them. Also, a simple [CODE] database line [CODE] would do the same as your [CODE] PCRE approach. Technical implementation aside, havin...
1
2
2,702
2018-12-05T23:58:49.997
infrastructure
serverfault.com
738,059
Couldn't add New Bridge NAT Rule - ip matchers valid only for ip ethernet protocol
I am following this tutorial to set up port forwarding. However, when I attempt to apply my rule, I get the above error message. Here is the rule that I am trying to add: see this image
Turns out the solution was to specify the MAC Protocol as "800 (ip)"
0
0
2,399
2015-11-21T21:01:00.390
infrastructure
serverfault.com
9,603
PostgreSQL: Query for location of global tablespace?
I have been trying to make our database clients pro-active about not filling up the partition on which the database they are using resides. As all our clients are on the same host as the database manager, it should be easy enough for user-created tablespaces; the client can look up the filesystem path for the tablespac...
[CODE] and [CODE] locations are "hardcoded". [CODE] lives in: [CODE] and [CODE] lives in: [CODE] [CODE] says so: [CODE] Please also note, that exposing location of data directory is a - not so terrible but still - security hole. [CODE]
8
14
22,150
2011-12-22T15:22:16.693
database_errors
dba.stackexchange.com
164,512
Exchange 2010 anonymous access / open relay issue
I have an install of Exchange 2010 without an Edge Transport Server. The only way I can get it to receive e mail from the internet is by allowing anonymous access to the receive connector but this in turn means the server can be used as a relay. Testing has proved that this is indeed the case. I've Googled this extensi...
See my answer here: What ports to open for mail server? In order to receive email, you must accept anonymous connections on port 25. For your connector for port 587, do not allow anonymous connections. And make sure you NEVER check externally secured unless you know exactly what you are doing. That is how open relays a...
0
3
9,391
2010-07-27T16:01:07.217
infrastructure
serverfault.com
271,718
Mount remote share via VPN connection (Windows to Windows)
I have a remote Windows 2008 Server (hosted on Rackspace Cloud). I would like to have multiple VPN clients to connect and mount a shared drive. I was able to set up the VPN, but I can't seem to figure out how to mount the shares. Also, since I am VPNing into a single machine (not really on a network), should I configur...
If you can access your server with an IP, you should be able to connect/mount a share if your firewalls are configured properly. On Windows you can just klick "Map Network Drive" at the "Computer", enter your servers IP-Address and the sharename like this: \\server-ip-address\share On Linux, you can use mount, but you ...
1
1
5,918
2011-05-19T23:12:59.583
infrastructure
serverfault.com
125,089
QNTC and Windows Server 2008 R2
I am having a really hard time getting an iSeries (AS/400) machine talking to my new Windows Server 2008 R2 box using the QNTC file system on the iSeries. I had similar problems getting it to initially talk to a Windows Server 2003 machine, but enabling the local Guest account on the 2003 box solved that one. No such l...
Our programmers have managed to find a solution to the problem! The solution comes in the form of an iSeries PTF ( SI38554 ). Note: This requires an IPL to apply the fix. We have a tested this PTF on our test/dev machine and we can see the shares on the 2008 R2 server and also read/write to them as well. Since we can't...
2
2
9,212
2010-03-22T20:26:11.587
api_errors
serverfault.com
118,330
(Invisibly) Rewriting from folder to subdomain
A site currently exists at www.foo.com. I need to setup a (wordpress) blog at www.foo.com/blog, but on a separate server (with a domain something like blog.bar.com). The site visitors should only see the www.foo.com/blog URL. So: [CODE] This is all do-able using some (a) rewrite rule(s), I'm assuming ? Does the fact th...
This is accomplishable using a simple Apache redirect (don't even need rewrite). Redirect permanent /blog http://blog.bar.com And yes, having the same site accessible via two domains will cause SEO problems. Now, I don't know what access you have to the various components, but you could also accomplish similar stuff wi...
1
1
186
2010-03-02T15:35:24.573
infrastructure
serverfault.com
219,242
Advantages of a hierarchical schema for private chat
This post claims that All modern chatting interfaces, without exception, implement a hierarchical and a not-chronological schema for chat. It also links another post which gives an example schema for such an interface. Basically, each message contains a reference to the message it replies to (the parent). In order to d...
One advantage is that the system can distinguish each thread of conversation. That makes it easier for the computers and for the people. For example, machine analytics will benefit by knowing who replies to whom, and hence who the cliques, influencers and outliers are. People will benefit from being able to segregate e...
0
2
491
2018-10-04T02:01:15.923
warehouse_errors
dba.stackexchange.com