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
892,403
bash + how to avoid specific messages in the log file
when I run the bash script on my Linux machine we get the following errors in my log , note - we set in the script: [CODE] the errors messages: [CODE] in order to filter this errors messages we try to set in the bash script that: [CODE] but without help after digging we found that happened in some case for example when...
You can pipe your output with "grep --invert-match "tput: No value for \$TERM and no -T specified".
-1
0
456
2018-01-16T10:52:33.587
infrastructure
serverfault.com
605,060
How to migrate (the content (static/HTML/Wordpress) of a) whole server to a new hosting provider?
I'm currently hosting a few sites of my clients at a hosting provider that I'm not satisfied of anymore. I've got a VPS at hosting provider X , and I would like to migrate every website and E-mail accounts to provider Y . Since I'd be better safe than sorry, especially since I kind of screwed things up when moving to t...
Hopefully you have all the existing configuration well documented like any good sysadmin should... To move the websites you need to copy the webserver configuration, databases, and database accounts, and files (preserving file permissions, possibly changing owner and group if needed). For email, again copy all the conf...
0
2
84
2014-06-13T22:07:21.830
infrastructure
serverfault.com
823,997
Multiple domains mail header not personalized
I've got a dedicated server (Ubuntu 14.04) with Postfix/Dovecot on IP 1.1.1.1 I'm hosting 4 domains: 2 on IP 1.1.1.1, 1 on IP 1.1.1.2 and 1 on IP 1.1.1.3. Each one of these domains got a DNS record (A domain.com/mail.domain.com, MX record, SPF etc) pointing at their own IP address. The problem is whenever I send an ema...
I don't think it's possible to have one postfix process listen on all addresses but use multiple hostnames for eg HELO headers, because the SMTP protocol doesn't support any way for the client to specify the hostname . Consider for a moment HTTP Virtual hosting as a similar scenairo, perhaps the one you have in mind. T...
0
3
350
2017-01-04T01:50:19.313
infrastructure
serverfault.com
118,673
Do model training pipeline should run on dev, staging and production environment?
I know it's a best practice to ship our code from dev to staging to production by including different level tests and validations that will help to confidently deploy on the production environment. But, for the ML models, data scientists will first do experiments(train and validate) on the sample dataset and then use t...
Yes - Production data should be used. The highest quality, newest data should be used to train a machine learning model. Typically, new data is used to fine-tune existing models. No - Training should be done in its own separate environment. A full-trained model then is moved into development, staging, and production en...
6
6
1,828
2023-02-21T06:59:27.843
pipeline_ops
datascience.stackexchange.com
68,194
Cache Control in IE7/Vista
I'm on an apache 2 web server, and I'm serving the following site: torchbearersakron.com Everywhere except IE7/Vista IE8/Vista the cache seems to work wonderfully. On these two systems however, something isn't right, and the entire page loads from the server every time. Is there something I can do in my headers or meta...
Presumably the cache settings of torchbearersakron.com have been changed in the 4 months since you've asked this question, since this is the response I get from the home page: [CODE] If you wanted to make this cacheable, you'd get rid of the [CODE] header, and change the [CODE] to the date at which this page expires, a...
0
0
682
2009-09-23T21:48:16.143
infrastructure
serverfault.com
92,604
Unwanted ._ files showing up from an SMB share
At work, we all use Macs, and have an SMB fileserver set up. Somehow, weird hidden files have been popping up, particularly when syncing between our Macs and the fileserver. I don't what creates them and why they are created. For a file called index.html, a hidden file called . index.html gets created. Sometimes all th...
That's MacOS storing its metadata. When its on a regular Mac (HFS) filesystem, these are stored in the file's properties by the filesystem itself. But in FAT or SMB there is no space reserved for this, so OS X works around it and creates the ._ file... This command would recursively remove them: [CODE]
1
3
764
2009-12-09T15:01:56.190
infrastructure
serverfault.com
95,037
Custom initrd init script: how to create /dev/initctl
I have a virtual machine (VMM is Xen 3.3) equipped with two IDE HDD's (/dev/hda and /dev/hdb). The root file system is in /dev/hda1, where Scientific Linux 5.4 is installed. /dev/hdb contains an empty ext2 file system. I want to protect the root file system from writes by the VM by using aufs (AnotherUnionFS) to layer ...
As phresus answered, [CODE] creates [CODE] . The problem I was having was that my [CODE] script was not running with PID 1. Thus, when it executed [CODE] , it also was not running with PID 1. [CODE] not running as PID 1 behaves as [CODE] . To get [CODE] to run with PID 1, I needed the following on the kernel boot line:...
1
1
11,521
2009-12-16T17:37:04.077
data_quality
serverfault.com
18,865
Change Location of VALIDATE RECOVERY FILES work area
Is there a way to tell the [CODE] command to use a different location with more available disk space? When I run the command in RMAN, it fails with the following error stack: [CODE] This appears to be due to the fact that the validation is using the database home for it's work area and there isn't enough disk space the...
Oracle Support closed bug 14226856 as "not a bug" and said it will be fixed in 12c.
4
3
997
2012-06-05T20:58:20.933
database_errors
dba.stackexchange.com
341,321
How should I write a test for a pure method which doesn't return anything?
I have a bunch of classes which deal with validation of values. For instance, a [CODE] class checks whether a value is within the specified range. Every validator class contains two methods: [CODE] , which returns [CODE] or [CODE] depending on the value, and [CODE] which checks for a specified value and either does not...
Most test frameworks have an explicit assertion for "Doesn't throw", e.g. Jasmine has [CODE] and nUnit and friends also have one.
13
20
8,268
2017-01-31T21:29:01.790
data_quality
softwareengineering.stackexchange.com
188,292
Server is not recognising users passwords
Our Red Hat Linux server is having problems logging established users onto the network! There was a proxy server problem the previous day and the proxy setting was changed? Any Ideas what could be happening. The night before it work and then in the morning half of the users couldn't log on?
Then you should first try to check what kind of error does the [CODE] return, use: smbclient -L //localhost -U valid-user on server. If this doesn't give you any clues about the problem, check logs, to find where they are placed do the following: $ grep '\ ' /etc/samba/smb.conf log file = /var/log/samba/log.%m log leve...
0
0
68
2010-10-06T19:53:14.373
infrastructure
serverfault.com
971,202
logon script applied but not running
Using this answer , I was able to confirm that a logon script is applied to my user account, but it doesn't run. I can run [CODE] but my PC got accounts connected to a different domain and I don't know what would happen if I did that. My code only contain a simple [CODE] for test purposes. I set it up using a GPO on th...
Try writing a file instead of echoing to a console. Depending on how things are set up, it could be running in a hidden session you never see, or just finishing so quick and then closing you miss it. Don't worry about [CODE] That's gonna happen eventually anyway, other accounts or not; it's probably happened already. I...
2
1
9,486
2019-06-13T03:10:43.043
infrastructure
serverfault.com
659,235
Ubuntu raring apt-get update is failing on AWS/EC2?
I'm working with a StarCluster AMI, and trying to install my software onto it. However, I'm having trouble with [CODE] . I try to install a package: [CODE] but that fails. I'm out of sync somehow with the repositories: [CODE] But those servers are reachable: [CODE] and my DNS is working: [CODE] For reference: [CODE] In...
Ubuntu 13.04 is no longer supported, the repo mirrors have dropped the packages - thus the 404 errors you're seeing. Switch to the [CODE] mirror and upgrade to a supported version, as is detailed in the documentation here .
0
2
5,167
2015-01-13T19:51:01.437
infrastructure
serverfault.com
485,653
nfs daemon doesn't listen 2049 port
I have some problem with nfs. Looks like its doesn't listen 2049 port on client. Both client and server has Debian linux. [CODE] But there is no 2049 port on client: [CODE] I checked nfs-common and it said "everything is ok": [CODE] Could you help me, please?
This is perfectly normal. It is not supposed to listen on port 2049 on the client. As long as the NFS server is listening on port 2049, the client will pick a high port number to connect to the server on port 2049. Simply try to export a directory on the server, and try to mount it on the client. There is no need for t...
0
1
2,710
2013-03-07T15:38:35.553
infrastructure
serverfault.com
1,094,012
How to avoi nginx to redirect a POST to a GET
I am see this in my log "POST /openDoor HTTP/1.1" 301 169 "-" "PostmanRuntime/7.29.0" "GET /openDoor/ HTTP/1.1" 200 113 "https:///openDoor" "PostmanRuntime/7.29.0" I am doing a POST to /openDoor and I get a 301. why? My nginx conf file is this [CODE] How to avoid this strange redirect? I tried this, without any results...
Since [CODE] is a physical directory, it is nginx that does that 301 [CODE] to [CODE] redirect and with the HTTP 301 redirection user browser will change the request method from [CODE] to [CODE] abandoning the request body. You can try to specify the HTTP 308 redirect explicitly with the [CODE] Although is isn't direct...
0
1
1,013
2022-02-17T17:36:39.100
infrastructure
serverfault.com
41,582
How to get the survival duration prediction for each individual in the data by using the Kaplan-Meier method?
I am trying to learn how to use the Kaplan-Meier survival estimator model in the lifelines package. The documentation says that the [CODE] function returns " [CODE] " I checked what the [CODE] 's contents are - it seems to contain the average survival probability for all the players in the dataset at each time time int...
The Kaplan Meier curve is a summary statistic, similar to the average. Therefore, it is an unconditional statistic. If you are interested in the conditional survival, we can use the Kaplan Meier curve to do that too. Some notation first. Let $T$ be the unknown time of death, and $S(t) = P(T > t)$ the unconditional surv...
3
2
293
2018-11-23T02:51:55.530
data_quality
datascience.stackexchange.com
102,556
Restore a windows 7 image to different PC's
We run an office full of laptops that are all different ages/configurations with lots of different hardware. Basically we want to upgrade every laptop to windows 7, the classic ghost deployment wouldn't work as far as I am aware, as the varying hardware would cause a range of issues. I have been investigating sysprep a...
The recommended way is to use the WAIK, but at the very least you should be using sysprep on the "master" image before capturing the image and deploying it. http://technet.microsoft.com/en-us/library/dd349343(WS.10).aspx
1
1
14,207
2010-01-14T06:49:28.223
database_errors
serverfault.com
1,012,862
Nagios is alerting CHECK_NRPE: Socket timeout after 30 seconds but it is running
I have nagios on my server which is alerting me [CODE] But my service is running: [CODE] I tryed to kill it, restart it, restart nagios server which is processing all alerts, but nothing worked. It started from nothing, and don't know there is the catch since all other server which are nagios are working.
The timeout is coming from the client plugin [CODE] , terminating the connection after 30 seconds. I don't think there is a proper timeout in the NRPE servers, but most plugins should implement timeout behavior.
0
0
4,134
2020-04-17T22:40:28.840
pipeline_ops
serverfault.com
690,093
CNAME in Route 53 - Redirect www to non-www not working
I'm hosting web application on AWS with [CODE] and [CODE] I'd like to redirect [CODE] to [CODE] through Route 53 In other words, showing [CODE] on address bar when user typed [CODE] Route 53 Configuration [CODE] Type : A record Value : ALIAS {Elastic Load Balancer A record} [CODE] Type : CNAME Value : mydomain.com With...
This sounds like expected behavior. Exactly what happens when the HTTP server receives a request that it does not know how to deal with can differ, but no redirect is expected unless it happens at the HTTP level. A [CODE] record is merely stating that a given name in DNS is an alias of a different name in DNS. What hap...
1
2
5,080
2015-05-06T17:58:42.630
database_errors
serverfault.com
27,837
postgresql pgadmin3 queryconnect attribute does not work
I'm using [CODE] and [CODE] to auto-connect to a [CODE] database with one button click. Every time I want to run an SQL statement, I have to do 4 steps, (open pgadmin3), (connect to the server), (connect to the database), (open a query window), (open a previous file) then FINALLY I can run my SQL statement. I want this...
I found the answer to my problem. The pgadmin3 tool won't let you specify both a server and a database. The server itself HAS a default database and when you select it with the [CODE] option, it won't let you pick a database. An error message would have been nice! The 'defiant' server I made has in itself a default con...
2
2
557
2012-10-29T17:28:31.090
database_errors
dba.stackexchange.com
200,273
How to write integration tests for a component oriented software platform
Initial situation: We are developing a software platform where products can be generated by configuring different components and adding additional ones. The platform is developed several years by a little developer team. Now the platform is more and more used, we get new developers as well as testers. We are currently ...
You will probably need some of both. Integration tests are against real dependencies. They are usually easier to write, but require more time and resources to run. Some bugs will only be found by integration tests, because you will be affected by real bugs of the dependencies and you'll never think of the same bugs whe...
2
1
896
2013-06-03T11:42:50.280
hadoop_errors
softwareengineering.stackexchange.com
330,565
Insufficient Permissions on UNC Path for Physical Path in IIS7
I've got a multi-server setup where Server A is hosting the html files and Server B is running IIS 7.5. I've specified a UNC path for the Physical Path of the website on Server B. When I try to hit localhost I'm receiving the following error: Cannot read configuration file due to insufficient permissions I am able to b...
Two things affect this: {Authentication and impersonation} and app Pool accounts. Last-first: Server B will connect at SERVERB$ (i.e. the computer account) by default, when the app pool starts up, unless you've used a custom App Pool account. If that much works, I think the rest should work too, but it's possible that ...
2
0
805
2011-11-13T17:34:21.973
infrastructure
serverfault.com
318,936
ec2, ping and security settings
Got a noob question about security settings on AWS ec2 instance. I've set up an instance with Tomcat7 ( ami-95da17fc ) and I have a little issue. If I ssh into the instance and do ping -c 2 -p 80 localhost I get 0 packet loss if I ping my elastic ip I get 100% pocket loss, same thing with the long.winded.aws.dns.name i...
Ping uses the ICMP protocol - the security groups in AWS Console default to the TCP protocol. If you wish to be able to ping your instance from 'the outside', you need change the security group settings to permit the ICMP protocol (Echo), using, for instance, something like the following: [CODE] You can also use the AW...
0
2
1,150
2011-10-06T01:54:28.017
database_errors
serverfault.com
224,681
Wifi dropping issue
We have 2 tablet PC's mounted to reach trucks that are used in a shipping / receiving warehouse. This warehouse is filled with huge metal racks and pallets of paper products. These reachtrucks seem to be losing their wireless connection quite a lot, and I'm not sure if its because they are roaming outside the access po...
This is probably not the best solution to your problem, but if you configure static addresses for the laptops on the wireless you can then use a host monitoring tool such as nagios to send you email, text message or syslog alerts whenever one of the laptops drops off the wireless.
0
1
243
2011-01-20T14:24:42.800
warehouse_errors
serverfault.com
104,983
Mysql: Create a view with multiple self joins without duplicates in result
Just to clarify i can't change the tables structure, so please leave out the "you should change your tables to this and that" answers, thank you. So i have a table entities_attributes_values where an entity has a lot of attributes and the value of that attribute, basically imagine 3 fields: entity_id entity_attributes_...
Inner Join: An inner join produces a result set that is limited to the rows where there is a match in both tables for what we're looking for. If you don't know which kind of join you need, this will usually be your best bet. Left Outer Join: Add to Where [CODE] And sometimes just to make it complete i do also [CODE]
1
0
1,620
2015-06-24T10:08:12.563
database_errors
dba.stackexchange.com
1,012,386
Routing Internet Traffic through VPN tunnel
I am relatively new to the topic, so please do not mind if I ask simple (or stupid) questions. I own a Raspberry Pi 3B and installed and configured an OpenVPN server on it. Therefore I followed this openvpn community guide: https://openvpn.net/community-resources/how-to/ I am using a Windows machine to connect to this ...
Is the IP routing table from your windows machine for client? I do quite get understand why they recommand "def1" thing. To me, your question is fairly simple, your Windows client and your VPN server are both on 192.168.2.0/24 gw 192.168.2.1 and you would be better off setting the default gw as virtual IP of your vpn s...
1
0
2,383
2020-04-15T07:13:12.800
infrastructure
serverfault.com
289,972
is this a valid javascript design pattern when many instances are required?
I have some code that I'm refactoring, right now its just a list of functions, primarily jQuery. The code is a form builder. The user adds sections, questions etc using jqueryUI drag/drop/sort. They can get quite long in the range of > 1k questions. I've been debating between patterns,frameworks, etc. and have settled ...
The pattern you've cited in your example is just fine, although in your case, not really required. The idea of the module pattern is to hide away the things you don't explicitly return. So in your case, your IIFE isn't really doing anything (if you had private helpers inside your modules, however, you would). If you ha...
5
1
660
2015-07-16T21:55:50.910
data_quality
softwareengineering.stackexchange.com
107,443
Most efficient way to insert rows into a temp table in a stored procedure
I am working in SQL Server 2008. I have a stored procedure with 5 queries inside of it that select rows from very large fact tables (on the order of millions of rows) into another table (call it table_B). (Actually, the 5 queries used to be lots of queries, but I compressed them down to 5 because each query was doing a...
Since this seems to be a data warehouse, is / can the recovery model be bulk logged (or simple)? That in addition with using TABLOCK hint on table_b could help a lot since the inserts could be minimally logged . I found a blog post by Itzik Ben-Gan on minimally logged inserts that could help.
2
2
2,544
2015-07-18T17:56:29.270
data_quality
dba.stackexchange.com
124,374
Prefix index length impact for VARCHAR?
I have a [CODE] primary field field in an [CODE] database table. I only store values of length 32 bytes in it (32 ASCII characters). My primary key has a prefix length of 767 bytes. Clearly, this longer prefix length than I need. Does this have any performance impact?
If it is always 32 ascii bytes, then say [CODE] . There are subtle reasons for not making the field bigger than necessary. They mostly involve how temporary tables are generated in complex SELECTs. Most importantly, the tmp table is [CODE] and turns [CODE] into [CODE] of the given charset. If that is utf8, then you are...
1
2
470
2015-12-22T19:02:48.790
warehouse_errors
dba.stackexchange.com
382,898
Is a race condition with no downside still a race condition?
I am writing a piece of code which takes the difference between two numbers, finds that location in memory, and then sets the location to true. Currently my method of performing this is as follows. Note the function i_jlocation just does the comparison. [CODE] Now in this piece of code I recognise that if I am to write...
If you are sure ‡ that the result is consistent, then it is perfectly fine to do this. You've hit upon one of the main strategies for improving concurrency, in fact. Eliminating locks is a key to improving performance for concurrent algorithms. One approach that allows for this is to design things to be tolerant to rac...
3
7
667
2018-12-12T17:38:47.850
api_errors
softwareengineering.stackexchange.com
456,411
Amazon SES domain verification TXT DNS record
I currently am trying to get my domain verified on Amazon's SES and running int a problem that google searches are not helping me get any closer to solving. According to SES, I have to create a TXT record in my DNS for the domain I'm trying to verify. Amazon gives you the following (value changed for security purposes)...
Your present [CODE] record looks strikingly similar to those of the DKIM Core specification , which is is a simplified subset of DKIM . I'm not quite sure how you could reach that result by following the instructions within Authenticating Email with DKIM , thus might misunderstand what you are trying to achieve, but he...
4
5
12,884
2012-12-08T22:48:44.983
infrastructure
serverfault.com
407,442
KVM/Libvirt bridged/routed networking not working on newer guest kernels
I have a dedicated server running Debian 6, with Libvirt (0.9.11.3) and Qemu-KVM (qemu-kvm-1.0+dfsg-11, Debian). I am having a problem getting bridged/routed networking to work in KVM guests with newer kernels (>2.6.38). NATted networking works fine though. Older kernels work perfectly fine as well. The host kernel is ...
Ok, I have found the solution myself. Apparently, the article on the Hetzner wiki wasn't complete. Redirects were still being sent, resulting in Hetzner (where we have our server) blocking the traffic. I am not sure how it had to do with what kernel version the guests were running, if someone can explain that I would v...
3
5
10,111
2012-07-13T10:13:13.383
api_errors
serverfault.com
717,952
Puppet: Cannot find class cron
I'm using Puppet 3.4.3. I'm trying to use the cron type to manage cron jobs (as documented here: https://docs.puppetlabs.com/references/latest/type.html ). However, any time I try and run my configuration: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class cron for app on no...
The solution I have found is to use a cron module (specifically: https://forge.puppetlabs.com/torrancew/cron ). Syntax is very similar but this module seems to work for me where Puppet's inbuilt type didn't.
0
0
700
2015-08-31T09:39:23.040
pipeline_ops
serverfault.com
962,480
command line pass Q and Y to license agreement
I have to accept command line agreement before building the project. Key [CODE] need to press to go to end of the agreement page and then need to press [CODE] or [CODE] . I have tried [CODE] [CODE] Nothing worked. Whats is correct way to do this in command line ? This is the license function [CODE] also tried setting [...
If it is the only problem you have you can either comment out while loop and set ans=y [CODE] or just prevent calling the function do_license() or you can try this but without access to the whole script, it is just ques [CODE] Last think on my mind is [CODE] All those ways do not consult licenses of those softs so, ple...
0
0
2,454
2019-04-10T18:05:43.597
infrastructure
serverfault.com
144,148
Deselect CPU in affinity setting for OS Only use?
A memory recommendation is to reduce MaxMemory by 4GB or 10% of RAM (equally divisible by cores) to dedicate that memory for the OS. Most questions on CPU affinity deal with splitting them out between instances. My question is should one (or more) cores be deselected for OS only use? One site did this on a Win2003/SQL ...
Changing CPU affinity was never a common practice but did have it's uses on WindowsNT and later on Windows Server 2000/3, The main issue was that processor load could be misaligned on multiprocessor systems and this allowed for freeing up resources. This could also be helpful on systems that where not dedicated to runn...
0
0
80
2016-07-18T00:47:57.670
warehouse_errors
dba.stackexchange.com
91,760
How to be a good citizen when crawling web sites?
I'm going to be developing some functionality that will crawl various public web sites and process/aggregate the data on them. Nothing sinister like looking for e-mail addresses - in fact it's something that might actually drive additional traffic to their sites. But I digress. Other than honouring [CODE] , are there a...
Besides obeying robots.txt, obey [CODE] and [CODE] in [CODE] elements and links: There are many who believe robots.txt is not the proper way to block indexing and because of that viewpoint, have instructed many site owners to rely on the [CODE] tag to tell web crawlers not to index a page. If you're trying to make a gr...
84
85
19,701
2011-07-11T01:25:33.043
api_errors
softwareengineering.stackexchange.com
324,155
mdadm and RAID-5 recovery
I am encountering some problems with my RAID-5 array, using mdadm and Debian. First of all, I lost a drive (completely, it is not even recognized by the BIOS), then I replaced it with a new one; rebuilding has started but has been interrupted by a read error on the second disk (and this one has been removed): [CODE] I ...
What you need first is off-RAID copy of sdD . Use [CODE] , for e. g.. Don't use this disk in that RAID while recovering it. When you have this copy, use it to start the array w/o sdE — put instead of it keyword [CODE] . Two hints how this can be done, even if direct way with [CODE] fails: 1) You can re-create your RAID...
0
1
3,007
2011-10-23T14:26:06.060
database_errors
serverfault.com
640,827
Cannot run mod_wsgi on Apache 2.4 x64 Windows
I have a Apache 2.2 installation with a site on Django. I load mod_wsgi.so module in my Apache config. Now I'm trying to migrate onto Apache 2.4 and have difficulties with WSGI. First of all: my server is on Windows 2008R2 (x64). I setup Apache 2.4 x64 (httpd-2.4.10-win64-VC11.zip from Apache Lounge) Then I downloaded ...
In my case the problem was wyth Python - it's x86 while everithing else is x64 (thanks to https://stackoverflow.com/questions/10447094/installing-mod-wsgi-module-for-apache ) Also the module import should be (thanks to Can't locate API module structure `mod_wsgi' ) [CODE] not [CODE]
0
4
9,864
2014-10-30T10:56:30.137
database_errors
serverfault.com
333,460
Nginx with postfix not sending mail - from address appearing wrong
I am using a php form to send email. The script reports success, but the mail never arrives. The tail of the mail log shows: [CODE] Just wondering where this from address is coming from and if thats why mails aren't arriving.
The [CODE] comes from the fact that your nginx is running under the user account named [CODE] (userid 100) on your host [CODE] . So nothing special and just normal.
1
2
554
2011-11-22T01:38:19.953
infrastructure
serverfault.com
747,286
Exchange not checking SPF record for own domain
I have an interesting issue with Exchange where it appears to check and stamp spoofed messages from external domains but not ones it has setup to send from. For example I can spoof a message from 1@example.com where example.com has a valid SPF record and Exchange will check it and mark it as Junk in Outlook. When I sen...
Ok this is not strictly an answer to the original question but it acheived the original outcome for me which was to stop people from being able to spoof the companies domain when sending to that company. The answer a simple transport rule that specifies if a message "from" header contains "@company.com" and the message...
3
1
1,083
2016-01-07T06:28:25.590
infrastructure
serverfault.com
670,304
Windows DirectAccess - Server 2012 R2, Windows 8.1 Client, “No SAs match the specified criteria”
I put this question on SuperUser, but judging from the lack of response I think I picked the wrong place, so I'm cross-posting here. I'm trying to get DA set up and it is being a major pain. I have the DA server set up (computer with single adapter behind Edge device) and everything is green on the monitor, everything ...
Unfortunately I have seen many people struggle with trying to get single-NIC mode working on a DirectAccess server. This was really only intended for quick POC setups, and for a production (or any) environment, you should really go with dual-NIC installation. You will have fewer issues this way. In fact, I have seen mo...
3
1
1,102
2015-02-20T23:24:22.640
infrastructure
serverfault.com
149,626
Properties under ARC: Always or public-only?
After reading an article humbly named "The Code Commandments: Best Practices for Objective-C Coding" by Robert McNally a little less than two years ago, I adopted the practice of using properties for pretty much every data member of my Objective-C classes (the 3rd commandment as of may 2012). McNally lists these reason...
Can you provide me with a bit of reasoning for why I should stick to using properties for everything, or confirm my current train of thoughts as to why I should use more ivars and less properties only where needed? Right now, I think it's fair to say that it's mostly a matter of style. As you say, the memory management...
9
5
2,182
2012-05-22T09:10:42.133
api_errors
softwareengineering.stackexchange.com
117,374
Cluster URLs based on their pattern
I am new to clustering techniques and I highly value any input you can provide for my problem bellow. Basically, I want to cluster URLs based on their structural patterns. for example cluster1 - simple URLs https://domain/path/file cluster2 - shortened URLs cluster3 - redirect URLs .... cluster k - new URL pattern Give...
There are a few approaches you can take to cluster URLs based on their structural patterns. One option is to use a method called "string distance," which measures the similarity between two strings based on the number of edits required to transform one string into the other. Some common string distance measures include...
1
2
460
2022-12-29T01:36:16.147
data_quality
datascience.stackexchange.com
577,174
Apache Authorization for multiple pages for different users
I have a website that I has common pages as well as restricted pages. I would like to restrict each page for each user, such that my cong /var/www/application/user1/user1.html /var/www/application/user2/user2.html .... for n users. What kind of authorization module would be suitable? The filesystem permissions are set ...
You'll need to make use of Apache's htpasswd: http://httpd.apache.org/docs/2.2/programs/htpasswd.html This guide from Apache will step you through editing the .htaccess file and adding user/password access to the various web pages: http://httpd.apache.org/docs/2.2/howto/auth.html
2
0
406
2014-02-20T20:08:40.010
infrastructure
serverfault.com
942,869
Apache 2.4 multiple chained elseif arguments cause an error
I am getting the following error when trying to deploy the Apache configs: [CODE] Here is my config [CODE] It barks on the first occurence of ElseIf But the docs for Apache say: http://httpd.apache.org/docs/2.4/mod/core.html#elseif The applies the enclosed directives if and only if both the given condition evaluates to...
Solved it, the problem were wrong quotes splitting the expression in [CODE] The logical AND is not part of the expression anymore. The error message Apache returns is misleading.
1
0
956
2018-12-04T16:45:45.560
infrastructure
serverfault.com
20
How do you write a great bug report?
"Is this going to be a stand-up fight sir, or a bug hunt?" - Hudson I've always wondered what the secrets were to writing a great bug report. Over time I've narrowed down the activity to three basic elements. Replicate: Once you've found the bug, replicate it. Document: Write it down, pack in detail where necessary. Co...
I document the following: What I think the problem is. Sometimes this can be tricky, and if I'm not certain, I'll talk to someone about the functionality before submitting it. What do I think the expected result should be? Again, tricky. See #1. Steps to reproduce. The easiest way to a developers heart is to provide de...
11
11
6,852
2011-05-03T20:00:32.243
data_quality
sqa.stackexchange.com
734,522
Certain SC Orchestrator Send E-Mail activities are sending 2 emails
Also posted this on TechNet but barking up this tree too just in case. Not really sure what's going on here, but I have certain System Center Orchestrator (2012 R2) Runbooks that are sending multiple e-mails, when they are only supposed to send 1. Here's the flow of one particular Runbook environment: [CODE] I have 3 e...
I had this when I addressed the email to several people. I worked around it by using a junction after the send email.
3
0
1,276
2015-11-06T18:57:54.773
data_quality
serverfault.com
591,859
Windows Server 2012 upgrade to R2 no logon servers available
This is a VM running on ESXi 5.1 It was running Windows server 2012 and I upgraded in place to 2012 R2 It was being used primarily as a Remote Desktop Gateway I ran the update, did some upgrades as requested, rebooted and ran the upgrade again. This time taking the defaults the upgrade worked without any hitches. The o...
You need to logon using a local Administrator. An in-place upgrade from 2012 to 2012 R2 has the habit of losing IP Address assignments that you did. (Had that on all of my boxes) After setting a correct IP Address, you should be able to login with domain credentials.
1
0
6,293
2014-04-28T22:14:01.787
database_errors
serverfault.com
181,720
Using SQL Express creatively
The company I work for has an old sql server based legacy system, it's been around for about 7 years old with a 13gb database. There are two servers, web + sql. If we were to partition the database on dates and make a copy for each year, each copy would be My question is, if we do this we won't need SQL Server Standard...
Please note that Express Edition miss scheduler, so you won't be able to schedule a backup inside SQL for example or any other script. You'll need external scheduler that runs sqlcmd. Regards, D.
0
1
154
2010-09-16T09:22:48.193
database_errors
serverfault.com
111,721
How can I do a large file upload using Sinatra, haml, nginx, and passenger?
I need to be able to allow a user to upload 30-60 mb files at a time. Right now, I'm solving the problem with a simple form post: [CODE] This form allows the user to select processing options contained in theModelHash and upload a file for processing. Problem is, this method both freezes the user's UI and also requires...
The process is usually the following: (from four.livejournal.com/730831.html) HTTP upload progress bars are rather obfuscated- they typically involve a process running on the server keeping track of the size of the tempfile that the HTTP server is writing to, then on the client side an AJAX call is made every couple se...
1
2
2,792
2010-02-10T22:01:40.737
infrastructure
serverfault.com
877,752
OpenVPN not routing via default route
I set up a OpenVPN server for subnet 10.8.0.0/24 which has limited access to the internal network. Additionally I want to configure 10.8.1.0/24 manually with static IPs for selected clients to give them additional permission (e.g. SSH access). Access control is done via iptables and works as expected. Now I push a rout...
As Diamant said, the webserver needs to have a route back to 10.8.1.0/24 through the VPN server as well. Alternatively, the VPN server will need to be configured to perform NAT for requests to the webserver. Additionally, I'm not sure about this but you may need to add [CODE] to your server config. EDIT: The netmask in...
1
1
4,262
2017-10-10T10:38:31.293
infrastructure
serverfault.com
221,497
MongoDB: Is this a good schema design?
I'm working on a Meteor app which lets users create events and assign them crew members. I've played around with MongoDB before and made some experiences along the way, where for instance my first attempt went overboard with embedded objects and quickly became sluggish and hard to maintain. Several people therefore sug...
Why are you using a non-relational database in this case? You said: When listing an event I have to manually join refs in order to show the actual properties of the employees and crews (such as name), it's a bit tedious but what worries me most is performance : and My biggest problem so far though is what I believe is ...
3
10
1,244
2013-12-16T13:07:46.193
database_errors
softwareengineering.stackexchange.com
311,953
Why do I get an error using unsquashfs with Clonezilla?
I am set forth on an adventure to recompile Clonezilla to add a proprietary driver. In any case, following the instructions here: unsquashfs ala Clonezilla In step 4, [CODE] , fails miserably with: [CODE]
Based on some googling I suspect you have a mismatch between the version of squashfs used to create the filesystem and the version you are trying to use to uncompress it. What version of squashfs do you have installed? I recommend you try upgrading to a newer version and see if that helps.
1
2
1,664
2011-09-15T20:24:36.260
infrastructure
serverfault.com
1,064,355
What is the difference between mount -t nfs3 and mount -t nfs -o nfsvers=3?
While mounting a share I had issues with [CODE] . Mounting with [CODE] and listing its contents yielded this (note the [CODE] and [CODE] ): [CODE] When I actually expected this: [CODE] I tried using NFSv3 by specifying [CODE] without luck: [CODE] After a bit of research, the [CODE] option did the trick [CODE] My questi...
@håkan-lindqvist is onto the answer. I don't have a [CODE] but I have a [CODE] and it is just a symlink to [CODE] . I looked at the source for [CODE] and it doesn't do anything special based on the basename of [CODE] (except for unmounting). Thus [CODE] would not specify the version at all. I suspect the same for [CODE...
0
3
4,929
2021-05-21T19:49:41.657
infrastructure
serverfault.com
966,498
ip6tables on IPv4 only host
If external interface has only IPv4 address assigned and IPv6 automatic link local, does it make sense to set up ip6tables? I'm asking as I am not sure how it works exactly. If, for example some encapsulating technology is used to provide 6-to-4 connection from IPv6-only endpoint, then on the host inbound interface wil...
Where you have an IPv4 firewall, configure an IPv6 firewall like ip6tables. Not doing so is like having a second door to a space that you do not lock because you have not seen anyone use it yet. Know your network's flows and set firewall policy accordingly. Dropping all traffic may break things. Disabling IPv6 on the i...
0
0
266
2019-05-09T05:17:25.283
infrastructure
serverfault.com
194,049
Creating SQL Assembly error Method parent has circular class type parameter constraints
I'm trying to add an assembly to SQL server 2012 but I'm getting the following errors. I've tested the dll and it works fine from C# so don't think it's a code issue. Any suggestions? [CODE] The C# itself is pretty simple. [CODE] Example of value I'm passing in 548322619182814292318016211461767828260500
The issue probably has something to do with the BigInteger class. It is found in System.Numerics which is not in the list of Supported .NET Framework Libraries . Which means that you probably loaded that manually as [CODE] (or have not loaded it yet?). Which then means that your assembly, HMDACalculateULICheckDigit , n...
1
2
183
2017-12-27T15:50:17.183
data_quality
dba.stackexchange.com
707,734
Windows Server - making files redundantly available on a local server from a remotely hosted server
I'm looking into setting up a new domain for a client. There will be a small group of people with desktops in an office about 500 miles away from their hosted domain environment. The hosted domain environment will consist of a DC, Exchange server, and a file server. They will connect to the hosted environment using a r...
Yup, check out Distributed File System , and specifically DFSR . DFSR allows you to replicate shares between multiple Windows servers.
0
2
36
2015-07-22T18:30:01.110
api_errors
serverfault.com
1,066,802
Intermittent 104 Connection Reset By Peer in GCP us-east4
BACKGROUND I have a long running discord bot (3+ years) written in [CODE] which has always run on GCP, zone us-east4-a. The bot runs in [CODE] using discord.py 1.7.2 and python 3.9. PROBLEM In the past month or two, I have started to see an increasing number of connection interruptions, [Error 104] Connection reset by ...
As mentioned in the Google groups discussion, “The Google Cloud Compute Engine Team is already investigating this regional issue happening on 'us-east4”. You can expect another update regarding the RCA (if any) in the public issue tracker report. Feel free to comment over there as well.” As mentioned in the update of a...
1
0
2,434
2021-06-15T14:50:06.927
database_errors
serverfault.com
909,943
Internet stop working after connection to OpenVPN
Internet do not working after connection to OpenVPN. I installed on Linux server OpenVPN. And trying to connect to it from my Windows 10. But after connecting I can't open any site. My client config: [CODE] Server config: [CODE] Without connection to VPN: [CODE] After connection to VPN: [CODE] ping also not working. IP...
You can try to debug using [CODE] tools (on Windows, it's named [CODE] I think). See where the packet is blocked: if your server internal IP [CODE] appears (and then the packet is lost), something is wrong with IP forwarding (routing table on server, NAT). If the server IP doesn't appear, then you either have an issue ...
0
1
4,314
2018-04-30T05:52:27.383
infrastructure
serverfault.com
1,107,032
How to troubleshoot this network connection timeout?
I have a strange network problem, something I've never seen before. I can't reach a remote server from my local machine, but I can reach it from other machines outside my office network: https://raa.namecheap.com/ By reach , I mean HTTP , ping and traceroute . The connection just times out. There are no response header...
Before you start changing everything on your own network you can check connectivity from Comcast routers by using their own route view server: ssh rviewsxr@route-server.newyork.ny.ibone.comcast.net [CODE] Once connected you can see if the address is routable from the Comcast routers. Some quick testing shows that the r...
3
1
3,197
2022-07-30T18:16:54.663
infrastructure
serverfault.com
30,156
Do DBMS decrease Memory requirements?
I finished my Economics thesis using RStudio, but my script was very slow due to massive RAM consumption during the process. My Case I had a massive dataset (stock prices in daily frequency for 10 years, ~700 stocks i.e. $3500\times700$) and I was picking each stock as a vector to decompose it into wavelets and CF filt...
Welcome to the site! Would my script be more efficient if I was calling my stocks one by one as vectors from there instead of picking them directly from RStudio? Yes as you told, calling the specific columns from Database is better than extracting everything. I generally use Dataframes rather than vectors. Dataframes a...
0
1
37
2018-04-11T08:00:28.160
api_errors
datascience.stackexchange.com
384,154
Check if resource exists before inserting to the database or wait until the DAO throw the Exception?
I have two paths: [CODE] [CODE] ...with the following behavior: [CODE] to [CODE] - [CODE] (if successfully created the Student) [CODE] to [CODE] - [CODE] (if successfully created the Address under the requested user) Now, imagine a situation where the client [CODE] to [CODE] , but there's no Student with id = 12. How s...
You should never use exceptions as a flow-control device. Check for the existence of the Student first, then add the address. As you noted, this give you more control over the messaging you send, plus you keep all the logic in the same flow (as opposed to returning messages from both the main block and the exception ha...
3
1
6,050
2018-12-17T16:01:33.233
database_errors
softwareengineering.stackexchange.com
75,264
User logs in as UserA, shows up as UserB on internal web site?
Someone in our desktop support department has a strange issue. He logs into his PC using his normal account (domain\UserA), but when accessing an internal ASP.Net web site using IE 7, the IIS and application logs show that he's accessing the app as domain\UserB. The app he's logging into has extremely low usage, and we...
Crazy Theory #1: Another user logged into the web application from his desktop and selected to option to save his username and password for future visits. Have you tried clearing saved usernames and passwords?
0
0
54
2009-10-16T17:20:52.330
infrastructure
serverfault.com
87,391
Strings/ features in Turicreate decision tree
I am trying to create a prediction model by using a decision tree with Turicreate. While my problem does involve numbers, it also involves strings and ultimately I want it to return the string 'true/false'. Are Turicreate decision trees able to process strings as input and output?
I'm not familiar with the package, but the documentation suggests that strings as input will be handled internally by dummy-encoding (with a reference level). The linked section is for linear regression, but is linked to from the Advanced Features section of the decision tree page, so I assume that applies.
1
2
67
2021-01-01T03:10:42.707
data_quality
datascience.stackexchange.com
721,200
Windows Failover Cluster - Trying to create MSDTC Role - AD Permissions issues?
I normally hang out in the DBA Exchange but I'm coming to ServerFault this time with a Clustering issue. I am trying to create a MSDTC role for my Windows 2012 R2 Cluster. The IP address and disk start up fine, but when the name A06SQLX-DTC tries to come on, I get two errors Cluster resource 'A06SQLX-DTC' of type 'Netw...
To resolve the problem. The object in Active Directory that represents the Windows Failover Cluster, A06SQLX-CLU-1, needs to be able to create and list objects in its own Active Directory Container. So the A06SQLX-CLU-1 is contained in a folder [CODE] A06SQLX-CLU-1 will need to create objects/roles (such as msdtc, sql ...
3
4
17,260
2015-09-09T14:07:20.683
pipeline_ops
serverfault.com
321,768
Verbose Return Types
I've recently been writing some code that deals with 3rd parties -- obviously errors will happen so I'm using Either/Maybe monads where appropriate. As this is C# I'm also using async Tasks too. My problem is after it's all said & done my return types are quite verbose. e.g. [CODE] But wait it can get even better [CODE...
I don't like using inheritance for this, because the API is going to be clunky. You will lose the nice functional chaining when you use Either if you wrap it in Task, because then, you will need to await it after every call. Instead, I would opt in to either create [CODE] , that is [CODE] which is asynchronous inside, ...
4
3
308
2016-06-09T17:38:10.103
api_errors
softwareengineering.stackexchange.com
419,810
What should I use to graphically represent an object's position on a fixed path using python(preferred)?
Consider 2 roads merging into one(This map is supposed to remain fixed). The program will not generate this map. The program will read this map and plot positions on it on its own. The python program will control the position of the object. The program is supposed to "highlight" or "fill" a box when the object is at th...
There are a few python libraries that may be worth looking into but graphics.py is probably a good one to cut your teeth on. I’m not so much recommending as saying this is the kind of beast you need. The capabilities you need are: Draw an image (the map) Draw a shape on image (the fill) Clear shape from image graphics....
-2
0
113
2020-12-08T19:16:02.590
api_errors
softwareengineering.stackexchange.com
241,156
Failover Availability Group from linked Server
I am hoping you can all help me in what feels like a really simple problem, but one I am struggling to find a solution for. We are running SQL Server Standard 2016 and utilize availability groups between the 2 nodes. Being on standard, I can only have 1 database per Availability group. Once a month, we need to patch ou...
To answer your question, it should be as below provided you are executing below on primary replica. [CODE] A better solution would be to use dbatools to initiate failover [CODE] . This way, you dont have to use any extra server or linked server. It will be much flexible solution as well.
1
1
502
2019-06-21T20:31:03.217
database_errors
dba.stackexchange.com
102,066
Ansible: How to change MySQL server root password by reprovisioning the server
I have provisioned my server with Ansible playbook. I've used the root/bedrock-Ansible playbook . One of the tasks was to set up mysql server together with mysql root user password. Now I urgently need to change this password. The steps I took: I updated variables for Ansible roles I executed the command [CODE] in orde...
The problem you have is that Ansible is trying to use the same root password to login as you want to change it to: [CODE] Obviously this is never going to work if you want to use this play to change it. Instead you should change the above play to be something like: [CODE] And then update the relevant inventory files to...
18
16
44,843
2015-05-20T17:19:22.697
database_errors
dba.stackexchange.com
331,950
What is the difference between debugging and antibugging?
The terms debugging and antibugging seem to be widely used for referring to tools, measures and design patterns to get rid of bugs. After reading Peter Norvig's Paradigms of Artificial Intelligence Programming: Case Studies in Common LISP I was not sure about the difference between those terms: It is a good idea to inc...
The term The term antibugging or anti-bugging is not widely used: around 2000 Google occurrences (part of them being related to devices for spyware removal !) compared to 33 millions for debugging ! It was first used by Ed Yourdon , the software engineering pioneer, in his book "Techniques of Program Structure and Desi...
5
4
3,600
2016-09-25T00:13:06.917
api_errors
softwareengineering.stackexchange.com
479,335
Differential backup missing moved folders (flawed archive attribute logic)
Recently I've discovered that my backup system it flawed: there are situation where various files/folders are missed. I do my backup from local disk to a network NAS. I use Cobian backup, and I have setup the backup software to create one full backup every week, and one differential backup every day. Now, the backup so...
The archive bit is re-set upon each file system object change. If a directory is being moved within a single NTFS filesystem, neither the directory object itself nor the file objects it contains are being altered. The only objects changing in the process are the source and the destination of the move operations (i.e. t...
0
1
608
2013-02-15T20:55:55.557
hadoop_errors
serverfault.com
92,258
Transitioning from a python script for data transformation to BigQuery
So I have a dataset spread over multiple and ever-growing excel files all of which looks like: email order_ID order_date user1@email.com 1234 23-Mar-2021 user2@email.com 1235 23-Mar-2021 user2@email.com 1236 23-Mar-2021 user1@email.com 1237 24-Mar-2021 user3@email.com 1238 28-Mar-2021 End goal is to have two distinct d...
Possible Solution: Assign a UUID to each email/user instead of an auto-increment ID (first making sure email does not already exist else use the existing UUID). UUIDs can be created anywhere - not necessarily in DB - and are almost guaranteed to be unique accross time and space. For example, the number of random versio...
0
0
73
2021-03-28T07:37:38.907
data_quality
datascience.stackexchange.com
808,172
How to create a environment where each user's vm is isolated
I want to know if it is possible to create a multi user environment using KVM libvirt that is each user can create there own vm but that must not be accessible by others saw this Multiuser use of virt-manager seems like its not working EDIT1 : I want to set owners for each vm
This file as polkit rule [CODE] here the vm in the format username*vmname this vm is only accessible for the corresponding user PS this is only primitive rule that is you can't create a new pool or modify it ,etc., therefore furthure development of rule is required
5
0
2,050
2016-10-10T15:55:40.673
infrastructure
serverfault.com
133,147
/proc/pid/environ missing variables
google is giving no love on this one today, so I turn to the experts... I'm currently hacking together a script that relies on the /proc/pid/environ feature in Linux (RHEL 4) to check for a particular environment variable. Trouble is, it seems certain environment variables aren't showing up in there for some reason. Ex...
Have a look at Environment variables of a running process on Unix? ; it notes that /proc/*/environ is limited to 4096 bytes on some kernels, and that it doesn't display env vars that were changed in that shell.
4
1
4,999
2010-04-16T16:22:57.217
infrastructure
serverfault.com
455,204
Running a dhcp server on windows 7 ultimate
I'm trying to get my HP T5740 thin clients to connect to my local network without much success. I asked a question here but haven't got any response. I think that question should have been posted on serverfault instead. I was thinking that the problem seems to be that the thin clients aren't able to get an IP address w...
You absolutely can set a static IP on the HP T5740 - in fact, for the most part, they work just like full fat Windows. What problem are you having? I presume you've been logging in as admin and committing / disabling the write filter?
0
1
1,038
2012-12-05T07:43:12.320
infrastructure
serverfault.com
221,846
Migrate SSRS Reports to Power BI Report Server
I have to servers: one with the SSRS Report Server and a second server with the Power BI Report Server. The issue is I'm trying to migrate the SSRS Reports to the Power BI Report Server instance on a third server that I plan to unify both report databases. As far as I understood based on a Microsoft article ( Migrate a...
...is there any way that I can put these services in the same server/database and running under the Power BI Report Server? You can have SSRS and PBIRS on the same Server , but they will require their own ReportServer databases in order to run them both. If you want to migrate your SSRS reports into PBIRS, then you nee...
1
0
1,831
2018-11-05T21:18:14.633
bi_errors
dba.stackexchange.com
519,185
Ubuntu Apache2 vhost configuration
I am new to apache2 and I am getting some trouble configuring apache2 on Ubuntu Server 12.04 LTS. All the subdomain are pointing to the default one. Here is my objectives: [CODE] but with my configuration, when i go for example to: [CODE] apache give me the SITE 3 which is not my way, i don't want any return on this su...
In order to make Apache ignore names that you have not explicitly added, you can add a mod_rewrite rule that checks the ${HTTP_HOST} and sends a Forbidden 403 error if it doesn't match On the ssl virtual host: [CODE] For the non-SSL domains, you can just create a default virtual host that does not specify a ServerName ...
0
0
84
2013-06-28T00:47:39.547
infrastructure
serverfault.com
671,812
changing max upload limit doesn't affect
A drupal website i run gets an error that says the php limit is 2Mb. i changed it to 10 from /etc/php5/apache2/php.ini. This doesn't make any change (im using a phpinfo to look if any change to upload limit has happened). Can anyone suggest what can be done?
There is an interesting page on the Drupal website about this, it was the first answer a well known search engine provided to [CODE] . THe second answer also on the drupal website is quite informative too. Drupal's limits on upload file size are determined by your server's PHP settings (as well as Drupal specified sett...
0
1
66
2015-02-27T06:21:11.063
infrastructure
serverfault.com
734,203
Setting up user home on Mac Server 5
I recently inherited the responsibility for a suite of iMacs - 25 clients and a mac pro server with raid external hdd. The network always had issues with user logins so each client had just been used stand alone. I want to finally get round to using the network and create the user profiles and back-ups etc. I wanted ea...
From what I understand, you currently have just copied users' home folders onto the HDD and recreated their profiles on Open Directory, with the correct home folders. This is the first step to doing network logins. Next, you need to link all the client machines to the Open Directory through System Preferences of each c...
1
1
60
2015-11-05T16:46:36.770
infrastructure
serverfault.com
310,700
Why use both universal identifiers and separately incremented primary keys for strong entities?
There is a good public example for this: The relational model of ChEMBL (A bioactive molecule database). Here all strong entities (such as molecules) have a database-wide unique identifier which also serves as an universal identifiers: ChEMBL ID (such as CHEMBL25 for ASPIRIN). These strong entities also have their own ...
Why don't they just use the numeric component of ChEMBL ID as strong entity primary keys. For example CHEMBL25 can be transformed into 25 as a strong entity primary key? It could but then, any time that you wanted to show that value to a User, or send it to some other, ChEMBL-aware application, you'd have to add the pr...
0
0
79
2022-04-08T08:40:39.383
dbt_errors
dba.stackexchange.com
291,767
How to handle duplicates in an UPDATE on a primary key in Postgres?
Let's assume a scenario with the entities [CODE] and [CODE] and a table [CODE] that models how many stocks a persons owns of a certain company (N:M cardinality). For example: [CODE] This table uses [CODE] as a primary key to guarantee unique entries, and foreign keys to the respective person/company table (I'm only usi...
We need move stocks between companies, right? What means we need add stocks to existing users and change company for new users. Or, what the same, we could delete all stocks of company "foo" and [CODE] new rows for company "bar" [CODE] Transactional, no race conditions here thanks to row locking during delete.
3
4
5,578
2021-05-18T10:24:35.950
data_quality
dba.stackexchange.com
451,088
CPU Configuration Issue for 2 Servers (Server 2008 R2)
I have 2 servers running the exact same Classic ASP code with Access DBs (yes, not ideal, but it is what it is, for now). 1) Xeon 5520 @ 2.27 GHz (6 GB Memory) 2) Xeon E5-2620 @ 2.00 GHz (2 processors, 32 GB Memory) For most pages the newer E5-2620 processes the pages between 10-15% faster. On pages requiring heavy and...
For a Classic ASP with Access Databases I can definitely say that the Dual Processor Xeon E5-2620 is not a faster server than the Xeon 5520. Basically, it's the clock speed here - the 2.27 GHz on the older machine processes the ASP code quicker than the 2.00 GHz Dual Core E5-2620. As an aside I just set up a 3.4 GHz si...
0
0
88
2012-11-22T02:00:01.067
database_errors
serverfault.com
594,559
Can't connect to remote server. Socket error = #2000
I don't know what went wrong, but I get a Timeout after logging in to the proftpd server. [CODE] I double checked that port 21 isn't blocked, my internet connection is fine as well and the login works in general. What is looking strange to me is the part after the IP (160,55) after entering passive mode, and the try to...
ftp uses 2 ports, 20/TCP DATA Port, 21/TCP Control Port check your firewall,routing settings for that port aswell. Depending on your connection to the server you might need to port-forward the passive port rage. see Proftpd online documents set in the config file: [CODE] Depending on how many connections you need to th...
0
0
1,480
2014-05-12T14:43:36.357
infrastructure
serverfault.com
130,949
Calculate rolling sum over 7 consecutive day period on PostgreSQL
I need to get the rolling sum over a period of 7 days for each row (1 row per day). For example: [CODE] I need this in one query that returns the rows with 7-day rolling sum and the date of the last day of the range of the sum. For example, day=2016-02-10, sum 17. So far I have this but it's not fully working: [CODE] I...
By far the cleanest solution is to use window function [CODE] with [CODE] : [CODE] The important part is to generate the timeframe in [CODE] CTE and join onto it in order not to miss any days for which there is no data. Example For example, if I create some test data with 20 records in last 14 days: [CODE] And also add...
13
16
37,742
2016-03-01T23:34:41.387
database_errors
dba.stackexchange.com
216,694
Get Updated_At for any change in row on Sybase?
I am working with a Sybase SQL Anywhere table that has horrible tracking of changes. I have a windows service that queries multiple tables every 5 minutes looking for changes, but one particular table doesn't have any timestamps. In addition to that, when I added a new record, it was given an ID in the middle for some ...
From your question I assume that you cannot create the [CODE] column in that customer table by yourself (maybe because that table "belongs" to the software vendor). Logging the creation or update timestamp in your additional table [CODE] is simple. You need two triggers on the [CODE] table, one for (after!) the creatio...
0
1
1,531
2018-09-04T16:45:49.857
database_errors
dba.stackexchange.com
91,106
How to maintain local Sync of files to multiple computers
I have the requirement to sync files (documents mostly, sound bites, high quality images) between multiple PCs, Macs and Linux clients and servers. The number of files is large and delta syncs would be required. I would like a file changed on anywhere to be replicated. Additionally offline access is required. Version C...
What you describe sounds like a very general solution, which might be impossible (e.g. you cannot have both offline access and completely avoid manual merging, e.g. for multimedia files). In addition to the other solutions, you might want to look at Unison . It will sync multiple directory trees to keep them identical ...
1
3
903
2009-12-04T17:17:37.617
data_quality
serverfault.com
758,336
Apache2 and proxy_balancer BalanceMember
I've got this Apache2 site configuration, allowing me to "run Apache as a proxy" of the [CODE] service. [CODE] When I restart Apache2 with [CODE] an error is returned. I saw that the problem is related to the following directive: [CODE] If I comment that line, the error is gone and the server is started. Nevertheless, ...
I've found a solution allowing me to proxy the [CODE] service. [CODE]
0
0
207
2016-02-19T10:10:13.697
infrastructure
serverfault.com
331,328
Why does PostgreSQL want max_wal_senders equal to 0 and greater than 0 at the same time?
We're running a backup process based on [CODE] of a Postgres 14.5 database that creates a lot of WAL archive files and using up huge amounts of disk space. As we don't really need the WAL archive, I thought to disable WAL archiving and I changed these values (everything else is pure default): [CODE] Maybe there's no re...
What can I do to get out of this deadlock? Don't set [CODE] , don't set [CODE] , and leave [CODE] . [CODE] uses the built-in replication mechanism to perform a consistent backup while the server is running (and potentially modifying data). The backup is made over a regular PostgreSQL connection that uses the replicatio...
2
2
367
2023-09-18T18:28:03.220
hadoop_errors
dba.stackexchange.com
863,274
Modify openLDAP cn=config without slapd running
I am trying to setup a Multi-Master openLDAP (PoC) cluster. Somewhere I created bad config and now slapd will not start. Being that the [CODE] / [CODE] config is CRC32 tagged, it won't accept manual changes. So, how do I make config changes without the daemon running? There is [CODE] , but I need to modify, not add ......
I know you've basically solved your problem, but I thought I'd add my own steps for making offline slapd configurations if anybody else comes across this. This is from my own documentation for Debian based systems: Sometimes it is necessary to edit a [CODE] style database manually (if you cannot get into the database u...
7
5
10,931
2017-07-20T14:02:48.693
database_errors
serverfault.com
1,096,045
RabbitMQ quorum queues - have node automatically rejoin
I am exploring RabbitMQ quorum queues to improve HA for some services in a Kubernetes cluster. As I am reading, they are designed with data safety in mind. However, the chapter "Managing Replicas" states: Replicas of a quorum queue are explicitly managed by the operator. When a new node is added to the cluster, it will...
The RabbitMQ team highly recommends the use of the official Kubernetes operator - https://www.rabbitmq.com/kubernetes/operator/operator-overview.html Aside from that, here's what the local k8s expert has to say: Kubernetes will not just randomly delete a persistent volume - if the node went down for some reason, it wil...
1
2
983
2022-03-13T16:45:49.780
pipeline_ops
serverfault.com
1,112,930
Still having DNS forwarding issue
I asked this question a while back and it got bumped to chat because a lot of subjective opinions. Original message here for reference: https://chat.stackexchange.com/rooms/139176/discussion-on-question-by-sabre-dns-forwarding-issue And I found a seemingly similar issue, unanswered as well. Conditional Forwarding inter...
This appears to be a cached non-authoritative referral response for a record request that does not exist (did not exist at the time it was cached). That can be a normal response. You would need to hunt through earlier logs to see what occurred during the previous outbound request from the conditional forwarder for myho...
1
1
2,361
2022-10-12T17:01:39.133
infrastructure
serverfault.com
1,052,625
Dozens of <defunct> processes
For a few days now, a lot of processes I start on my Manjaro linux machine do not exit properly, but become defunct. I first noticed that [CODE] windows stayed around even when I pressed Q and needed [CODE] to be removed. I re-installed feh (and due to the rolling release model also several other packages). I have a co...
A zombie process is a process whose execution is completed but it still has an entry in the process table. Zombie processes usually occur for child processes, as the parent process still needs to read its child’s exit status. https://www.tutorialspoint.com/what-is-zombie-process-in-linux#:~:text=A%20zombie%20process%20...
0
1
84
2021-02-06T13:19:39.740
infrastructure
serverfault.com
1,066,996
Oracle 18c XE can't backup PDB database after corruption of the main XE database
I have an Oracle 18c XE server where there is a corruption in the system01.dbf file of the main XE database. All user data is in a PDB database which luckily seems ok (the PDB is working in production now). The problem is that I can't make a backup of the PDB with [CODE] , because [CODE] fails with this error: [CODE] S...
The system tablespace (system01.dbf) includes data dictionary objects that are shared by both the container and pluggable databases. You can't backup the PDB shouldn't be able to open it for access without the CDB running. I believe you will need to restore the system tablespace from an earlier RMAN backup before you c...
0
1
357
2021-06-17T10:19:32.880
database_errors
serverfault.com
846,236
Nginx 403 forbiden with the good rights set on files
I'm trying to use a subfolder for containing web app on my server. For example : example.com/netdata ===> Netdata monitoring example.com/passbolt ====> Password manager etc .. For making things work i've used this config : [CODE] But i got always a 403 forbiden error, so i've check permission on each file but all of th...
Add this: [CODE] http://nginxlibrary.com/enable-directory-listing/
1
1
2,040
2017-04-24T13:41:45.777
api_errors
serverfault.com
598,646
Windows 2012R2, Ubuntu 14.04 LTS, takes 20 minutes to complete 'stopping' state
I've installed Ubuntu 14.04 as a Hyper V client, although I don't often reboot my VMs (I would have to check if other VMs exhibit this behavior), whenever I 'reboot, shutdown, or turn off'. It takes approximately 20+ minutes to complete the process. I am fully up2date including drivers. I've read a few articles, there ...
If you have Remote Access Server installed, that's the problem: Routing and Remote Access Preventing Hyper-V VM shutdown
1
1
424
2014-05-26T17:26:58.547
infrastructure
serverfault.com
978,171
Restrict rm command for for certain groups in Linux
I want to restrict [CODE] command for certain group. I have implemented sudo on my Linux server. [CODE] is not permitted as I've restricted it. The issue is, if a user does not use [CODE] he can remove a file. My users belong to a certain group e.g. test. So, I need to restrict [CODE] for all users in test group. [CODE...
I'll reply to this because I think I know how to achieve something close to your request. By the way, I strongly agree with people in the comments: this is not at all a solution for what you mean to achieve . Filesystem permissions tuning is the way. Given "privileged" is the group that will be able to run restricted b...
1
0
1,011
2019-08-06T15:14:30.387
infrastructure
serverfault.com
2,427
DROP PARTITION strategy using LIST-REF composite partitioning
We have a large Oracle 11gR2 instance with some tables that have recently become an annoyance when deleting data . This database powers a large optimization cluster that takes input metadata from the DB and stores files (using 11g's SecureFiles) and 1D-4D output data used in visualizations. Reads/writes from the DB are...
global indexes are made unusable when you drop or move a partition. This is because there are entries pointing to physical addresses in your partition, that are no longer valid. If you can, try to avoid global indexes. You can do this by making them local. [CODE] Should do the trick. If you can use reference partitioni...
4
2
1,927
2011-04-28T15:22:34.173
database_errors
dba.stackexchange.com
50,366
SQL Server 2012 - Full Text Search [Break word - Underscore]
Let's say I want to search for a list containing 'PS3': [CODE] When the Title is proceeded by an underscore it will not return it. Oblivion-PS3 -> Good Oblivion PS3 -> Good Oblivion_PS3 -> Not returning I suppose the underscore is not a break word. How can I fix it so that the underscore can be used as a break word?
I found it! :) I changed the Language for Word Breaker in the Full-Text Catalog to Traditional Chinese. I used the sys.dm_fts_parser in order to find what language could use the underscore as a break word. 1033 - English 1028 - Traditional Chinese [CODE] return Oblivion AND PS3 [CODE] return Oblivion_PS3
1
0
2,053
2013-09-23T20:04:51.610
database_errors
dba.stackexchange.com
686,420
Apache2 proxypassreverse directive appending virtualhost port?
I have been trying to setup a reverse proxy using apache 2 mod_proxy and the proxypass & proxypassreverse directives. I am installing WSO2 Identity Server and wish to access that app using a url such as the following . [CODE] The [CODE] is accessible on the internet Internally on my network I have set up a virtualhost ...
As far as you are changing also the URI when doing ProxyPass probably you will need to rewrite also the cookie [CODE] Usually ProxyPassReverse is a bit tricky (for me at least) and probably you will need [CODE] , and just in case [CODE] (to rewrite your cookies to maintain the session).
1
1
1,028
2015-04-29T12:21:17.253
infrastructure
serverfault.com
326,308
Foreign Key Mapping friends of a User object
I have been reading the Foreign Key Mapping section of the Martin Fowler's book(PEAA) and I really liked it but I can't see being a really good approach for problems like mapping friends to a user, since a user can have a lot of friends their approach of always loading all friends can take a lot of memory and time to c...
If the operation is costly, your proposed alternative is a good one. Such repository should have methods like [CODE] , [CODE] and it should be iterable. It should also have a [CODE] method for a lazy loading of all Friends if the user of the API so requires.
0
2
158
2016-08-01T16:53:31.253
api_errors
softwareengineering.stackexchange.com
1,119,273
Windows machine not routing traffic to correct NIC
I have a windows laptop with two NICs. One is a wireless interface (used for general internet usage), the other is cellular modem using a SIM which makes it a part of private network (IP 10.100.100.12) When both these interfaces are enabled, my routing table looks like [CODE] The problem is, when I try to ping some dev...
There isn't a closer route to 10.100.100.50. The route for 10.100.100.8/29 has a usable range of 10.100.100.9 - 10.100.100.14. If you want a route to 10.100.100.50 you should create it.
0
0
207
2023-01-02T13:42:36.193
infrastructure
serverfault.com