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
1,023,659
Migrate to new AD domain, but keep old DFS root
I have an Active Directory domain (we'll call [CODE] ) in production and need to change the name (for reasons I won't elaborate on). There are many, many files with links to a DFS namespace in this domain. They mostly use the NetBIOS Name, so a referral would be something like [CODE] which refers to [CODE] . At the end...
I suspect your two-way trust might be the problem here. I can't think of a way to "hide" a trusted domain name even with the jiggery-pokery with CNAMEs. You may notice a different result if you use FQDNs. What happens when you try "OLD.TEST.TLD"? I'd expect that to hit the new location. Perhaps. Here's something to try...
0
1
1,206
2020-07-01T19:24:34.497
infrastructure
serverfault.com
430,829
How to get decent WiFi despite a virtual Faraday cage
One of my clients is the local branch of an international airline. They have a small office in the secured area behind the ticket counters, and timeshare space at the ticket counter. I need to add a ticket printer out front, which I cannot (for contract/liability reasons) attach to the shared computer at the counter; t...
I only can think of 2 dirty fixes. One might be even impossible depending on your printer. Use a 3G modem and VPN into the LAN (dirty) Use ethernet over power using AES encryption to prevent sniffers (very dirty) I wouldn't use this unless your client really really really wants to have a fix and they have no chance in ...
5
1
1,621
2012-09-22T01:39:22.280
infrastructure
serverfault.com
680,890
Automatically rescan email with SpamAssassin after it has been received
For the past months, the amount of spam I've been receiving has been driving me crazy. Despite running SpamAssassin (with RBL checks) on my Exim4 mailserver, a lot of it has been finding its way to our mailboxes. I've noticed that the vast majority of the offenders end up in the RBLs, but only after it has already been...
This is indeed a very good technique, especially for fighting snowshoe, a type of spam where the entire email blast is out the door in a matter of minutes. This is because anti-spam servers take about that long to process anything that arrives and then pump out their spam definitions. I don't know of any ready-to-use s...
6
4
3,557
2015-04-07T09:15:59.033
infrastructure
serverfault.com
157,655
Lock-free IPC in Linux for multi-core processors
I'm trying to find a way to write an application with lock-free IPC on Linux, in C, with multi-core processors. Let's assume I have process 1 and process 2 that write to a FIFO or shared memory. Then process 3 and process 4 will read from that shared memory or FIFO. Is this possible with a lock-free algorithm? Your gui...
I have seen reference to using ring buffers, and controlled access the location pointers to eliminate or reduce the need for locks. It does not eliminate the need for waits though, and should only work then a ring buffer has one writer and one reader. In your case you would need at least two buffers. The mechanism as I...
9
2
2,509
2012-07-20T23:48:13.550
api_errors
softwareengineering.stackexchange.com
868,613
Windows Server VM in Azure HTTP not working but HTTPS OK
Another admin in our company recently setup a windows azure VM. Not sure what version of Windows, as I can't find that anywhere in the portal. I setup IIS through the server manager dashboard, and it seemed to configure OK. The site comes up locally, but only HTTPS. There is no certificate installed, so I get the typic...
According to your description, you could check as the following steps. Please ensure you set your service listening on 80. You could check with command [CODE] . Please refer to this link if your IIS is not listening on 80. 2.Open port 80 on Azure NSG and open port 80 on Windows Firewall.
1
0
782
2017-08-14T20:31:32.870
bi_errors
serverfault.com
432,906
zfs mix raid levels in one pool
I've read that " It is not recommended that RAID types be mixed in a pool ", which implies that it is possible. Why is it not recommended? It would be very desirable in my setup, which consists of a mix of very-important, important and not important files, to dynamically assign different RAID-Z levels for different fil...
Your point about storing important files on the more secure file systems shows an incorrect idea of how ZFS stores data within the pool. If you have multiple vdevs, your data for all file systems is striped across all of the vdevs, you can't assign a file system to a specific vdev, the pool is used as a whole. This mea...
0
5
3,542
2012-09-28T10:52:14.417
infrastructure
serverfault.com
573,656
DFS-R - secondary member NTFS permissions
On server1 I have E:\data\ that contains the home folders and shared department folders in it. Everyone has full share rights, then the rights are restricted appropriately through NTFS permissions. When I connect to the share \\server1\data\ from a test user, everything works correctly and shows up as it should. So the...
I'm suspecting that you don't have Access-Based Enumeration enabled on the secondary server, and this gives you the notion of the users having full access to everything. DFS-R does replicate the NTFS settings over (unless you muck around with NTFS settings on the primary folder BEFORE syncing). ABE is something you nor...
1
3
474
2014-02-06T13:33:53.683
database_errors
serverfault.com
580,374
wget and port forwarding
I have a weird problem. I can run this command just fine from various servers: [CODE] Where "GW-BOX" is the gateway to my network, USER123 and PASSWORD represent the user and password for weijhkdsvn, and 9091 points to an internal Linux server. The problem is that that this command times out and/or gets rejected. [CODE...
Ok, I figured out the issue. GW-BOX is meant to be a gateway box, obviously. But as I said in another thread here , I could not access the internet THROUGH this box. I turns out that once I fixed that inability to access the internet THROUGH this GW-BOX, I was able to use wget just fine. In my case, as per the thread I...
2
1
6,109
2014-03-06T23:26:10.770
infrastructure
serverfault.com
1,080,861
No such file or directory when trying to create .ssh keys
When I attempt to create ssh keys on my Debian instance : [CODE] I am getting the error : Saving key "/home/serverkeys/.ssh/id_rsa" failed: No such file or directory I am using root user and when I check permissions on the directory : [CODE] I get [CODE] I have a number of questions : 1)What am I missing and why is the...
I magnaged to create a new certificate with: [CODE] (no -y or -c flags) Beware: -y flag is not a confirmation
1
1
24,105
2021-10-18T06:58:34.133
pipeline_ops
serverfault.com
481,295
Improve RSYNC scan speed / Alternate approach?
I'm using rsync to transfer application log files from one server to another. It works fine with the exception that scanning the directories takes forever. I have around 160,000 log files and a few thousand directories so I can understand why scanning takes so long. However, only a few of those files changes at any giv...
From the manpage : Beginning with rsync 3.0.0, the recursive algorithm used is now an incremental scan that uses much less memory than before and begins the transfer after the scanning of the first few directories have been completed. This incremental scan only affects our recursion algorithm, and does not change a non...
3
2
3,332
2013-02-21T22:43:47.890
infrastructure
serverfault.com
1,143,216
What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot?
I'm looking for assistance in diagnosing and resolving this issue. What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot? Are there any common pitfalls or configuration settings I might have missed? Any help or guidance in resolving this SSL issue would be grea...
Since you just basically posted only minor information, based on that, the Configuration might work: [CODE] [CODE] Remind, that /etc/nginx/sites-enabled can use multiple file and therefor you should do that, and dont touch the nginx.conf Most Debian Based systems like Ubuntu and co do have the same behavior. if the Fil...
1
0
132
2023-09-06T19:04:48.920
infrastructure
serverfault.com
586,461
How to resolve problems with spf / softfail?
I'm having problems with Google rejecting mail because of SPF problems. I thought I had this fixed, but evidently not... The mail is being sent from a Drupal site running mimemail. A message that shows the problem looks like: [CODE] [Apologies for the anonomyzing.] The SPF records for the domain, obtained from http://w...
You can only have one SPF record. Since you created four of them, which one actually gets used is essentially random. You should combine them together into a single record.
14
19
43,413
2014-04-03T16:27:24.227
infrastructure
serverfault.com
190,195
fatal error allowed memory size in php page
m getting following error while executing following url URL http://vcoders.in/Scraping/test/readData.php Error Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 71 bytes) in in /home/vcodec9s/public_html/Scraping/test/simple_html_dom.php on line 827
If the script is actually running out of memory, you may need to increase PHP's allotted amount. The setting for max memory is in the php.ini file -- look for memory_limit. You'll have to restart apache (or whatever web server you're using). http://www.php.net/manual/en/ini.core.php#ini.memory-limit
0
1
520
2010-10-12T18:09:21.793
infrastructure
serverfault.com
399,362
How can I implement maker-checker principle?
I am looking into ways for implementing maker checker principle for various classes over our company repository. Basically the rules are as follows: An entity is an object to be seen on a website (e.g. a blog post) There is a creator of an entity with appropriate permissions/role (e.g. [CODE] ) (in the original questio...
I would model this with a state change request table. It would refer to the object and the kind of change (publish, delete, replace content). If the request is approved, the state change is executed. Special consideration would be needed when multiple state change requests are in flight.
3
2
5,591
2019-10-05T15:24:09.830
data_quality
softwareengineering.stackexchange.com
266,580
Postgres 12: Are there performance differences between PRIMARY KEY(A, B) and PRIMARY KEY (B, A) on a table PARTITION BY (A)?
Given a table this table: [CODE] The query plan for a lookup on columns [CODE] and [CODE] looks like this: [CODE] I'm wondering if defining the primary key in reverse column order ( [CODE] ) results in better performance as the index used in the lookup contains the interesting column first, as filtering by [CODE] is al...
No, that will make no difference; the order of the columns in the index doesn't matter if both columns are compared with [CODE] in the [CODE] condition (of course only if there is [CODE] between the conditions). The index will be scanned using both columns at the same time, and all that matters is the number of index e...
3
1
91
2020-05-06T09:24:22.317
database_errors
dba.stackexchange.com
38,833
How to use array variable in query in PostgreSQL
[CODE] In table [CODE] having array value and text. I am calling this( [CODE] ) function with array as its parameter value. In that function, I am checking the array value with passed array if it matches then I will return the [CODE] . In that case I get error as [CODE] . Am I doing anything wrong? How can I solve this...
You manage to get it wrong in just too many ways. To begin with, there is no need for dynamic SQL at all. The best way to "solve this problem" is probably to start with the basics. Read the excellent manual about [CODE] , PL/pgSQL and SQL functions . A PL/pgSQL function could look like this (one of several variants): [...
3
3
13,617
2013-03-29T09:39:27.067
database_errors
dba.stackexchange.com
278,319
How to rewrite the domain part of Set-Cookie in a nginx reverse proxy?
I have a simple nginx reverse proxy: [CODE] The problem is that [CODE] response headers contain [CODE] , because the backend does not know it is being reverse proxied. How can I make nginx rewrite the content of the [CODE] response headers, replacing [CODE] with [CODE] ? Passing the [CODE] header unchanged is not an op...
Starting in 1.1.15, proxy_cookie_domain option was added to address this issue. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_domain This is an example with many domains. Your service might be accessible as [CODE] and [CODE] and you need to put [CODE] or [CODE] in [CODE] header accordingly while...
39
37
119,866
2011-06-08T11:06:12.953
infrastructure
serverfault.com
379,893
Watchlist polling API NoSql vs Sql Frequent Updates
I am making a watchlist type application that will get all items being watched and then poll an api every ten minutes or so to check on its status. I am trying to design the database portion of this project and wanted some advice on the best technology to use. I am very experienced in relational databases but have used...
As with all 'do something when x happens' questions the key is to capture the incoming event, rather than to watch for its effects. Hide your database behind an API, in the Update methods of the api, check your conditions and trigger your event as required. The database tech behind the api doesn't matter.
1
1
153
2018-10-12T10:00:44.480
database_errors
softwareengineering.stackexchange.com
461,484
When building a catalog file against a image file in WAIK does it need to be the image you intend to deploy?
When building a catalog file against a image file in WAIK, does it need to be the image you intend to deploy? I have a unattend.xml answer file created in SIM, for WDS. I originally had a problem with it asking for locale and credentials for connecting to WDS. I rebuilt the catalog file to a different image and answer ...
If you are going to load an existing image, make changes and then re-sysprep and capture, then the catalog should be built from the old image. This will pull in all existing changes and set those as the defaults. In the TechNet article ‘Understanding Windows Image Files and Catalog Files’ , it states that ‘When a Windo...
1
0
1,140
2012-12-28T16:42:00.040
infrastructure
serverfault.com
530,308
Safe recovery of a working RAID Array after OS drive failed
I'm working with a server that recently had two drives fail. Windows Server 2003 - Standard Array 0 (bootable) - two 35GB U320 drives in a striped set. Array 1 - two 35GB U320 drives in a striped set. The U320 adapter is an Adaptec 2010S. Both of the drives that failed were in Array 0. So, I can't boot the server using...
Array 1 appears in the "Disk Management" applet. It is "Not Initialized" and "Unallocated". Are you sure, that this [logical volume] was initialized before on OS-level and data was on this array? Are you sure, that this [logical volume] was not cleared from RAID card management? If I initialize the drive, will it erase...
0
0
2,494
2013-08-12T06:56:42.163
infrastructure
serverfault.com
122,457
Setting up a copy of a site with IIS 7?
I have a site running on IIS with a dyndns.org domain that points to the IP of the Windows 2008 machine hosting it. I need a copy of that site for development purposes. I set up another folder with all the files, and create a new site in IIS. I don't really have a domain for it, so I was just going to use the IP addres...
You are getting "400 - Bad request" when using localhost, Internal IP, 127.0.0.1 because you have configured the site on some other IP Address. You cannot have two Web sites running on same port (port 80 in your case), unless you use host headers. If you are planning to access the Web site on a different port make sure...
0
0
851
2010-03-15T04:09:07.987
infrastructure
serverfault.com
91,513
Records in a table unique period
I have the following table: [CODE] This table contains the versions in time for a certain header. The id column which is the primary key. The header_id column, which is a foreign key to a header table. The version column, which defines the version (this does not have to be unique). The from_date_time column, which defi...
There is no "constraint" in MySQL to achieve your complex constraint. However, you could probably write a TRIGGER(s) that would check each INSERT and UPDATE to see if your requirements are violated. The TRIGGER could act like a constraint -- barf on your INSERT/UPDATE. I suspect (but do not know for a fact) that other ...
0
1
441
2015-02-09T17:20:21.567
database_errors
dba.stackexchange.com
58,583
Can't see progress of rolling back SPID with KILL WITH STATUSONLY
I have a SPID on SQL 2005 that shows in Activity Monitor as "ROLLBACK" mode (because a transaction log filled up, not because it was manually killed). I tried to see how much time it has left to roll back with a [CODE] but it just said "Status report cannot be obtained. Rollback operation for Process ID 115 is not in p...
So it looks like you can kill a SPID that is currently in rollback. While I still don't have any insight into the internals of what's happening, it appears that once you execute a KILL you can then get the progress by using KILL WITH STATUSONLY. As Paul indicates, this is pretty arbitrary...
2
3
6,573
2009-08-25T17:56:15.153
database_errors
serverfault.com
153,992
Where is traffic destined for a specific TCP port being blocked?
I have a server that is set up to listen to a specific port (1433), and normally there is no problem accessing that port from anywhere. From one of the locations I work, however, I can't connect to that port specifically. No problems with other ports like 80, 443 or 22, just that one. I suspect the ISP or the local rou...
In the *NIX world there is tcptraceroute: [CODE] I'm going to guess, based on the fact that you mention port 1433 which is commonly used by MS SQL, that you're using Windows. There's an app for Windows called tracetcp which appears to do the same, but I haven't used it myself.
1
1
902
2010-06-23T12:23:23.363
infrastructure
serverfault.com
108,437
grastate.dat with seqno -1 on a healthy cluster. Why?
We use those versions: [CODE] that's our grastate.dat [CODE] The [CODE] looks fishy. On other clusters there is a number. I don't know why. According to docs this seems "crashed". The -1 is after outage. But this cluster is healthy. modify time is long ago [CODE] from logs (no errors only info and warnings): [CODE] sta...
A [CODE] with a sequence number of -1 is fine on a running node. When the cluster stops cleanly, the sequence number will be set to a value on each node. You'll then have to bootstrap the cluster from the node which has the most advanced seqno.
5
4
16,675
2015-07-29T13:50:47.107
warehouse_errors
dba.stackexchange.com
299,863
Amazon EC2 Hosted Website Timeout - can't connect on reboot
I was uploading a large folder of files (Zend library) to my ec2 hosted website and WinSCP timed out. I soon found that my site is down and I can't access winSCP or the console. I tried to reboot the instance from the amazon console, but the reboot didn't change the situation. When I visit the website in firefox, here'...
Contact Amazon and ask them. Perhaps they are having an outage?
-1
1
250
2011-08-10T23:34:09.790
infrastructure
serverfault.com
117,545
SSIS Control Flow: Precedence constraints not working as expected
The control flow of my SSIS package is not behaving as expected. What I want to achieve : Test if CLR is enabled on SQL Server using [CODE] If [CODE] , attempt to enable CLR and display message [CODE] If [CODE] , display message [CODE] If I setup my control flow to do only one or the other, it works. This flow works as...
Your precedent constraint defaults to an [CODE] situation. The preceding task must return success and the expression must be true. In binary scenarios like this, only one of those two tasks is ever going to happen. By adding the next level of constraint in - both tied to the message box step, the final step is waiting ...
8
13
7,931
2015-10-09T12:22:32.690
data_quality
dba.stackexchange.com
264,270
How can a company sell licenses for GPLed software without violating rights of others
There are tons of questions like "Can I use GPLed code X in my commercial project?" but I found nothing which answers my question. I take ExtJS as an example, but actually you can any commercial / community edition dual licensed software. If I contribute to the community edition, isn't my contribution GPLed? Even if my...
Software can be dual licensed if all the copyright holders agree. Most companies that have a dual licensed product and accept contributions have some form of contributor license agreement that must be accepted before you can contribute code. In the case of ExtJS, it says: You hereby grant to Sencha and to recipients of...
10
19
1,501
2014-12-01T20:46:32.410
api_errors
softwareengineering.stackexchange.com
807,471
openstack: can't launch instance, multiple errors
I'm working with Openstack Mitaka, at the point to try launch an instance. When creating the instance it hangs in ERROR-state , just after built. I collected the errors from the logs, but so far I don't have a clue where to start. [CODE] Any help is appreciated A LOT :-) ! Best! W
From the error message: [CODE] Looks like bridge mapping incorrectly was configured. See please https://access.redhat.com/documentation/en/red-hat-enterprise-linux-openstack-platform/7/paged/networking-guide/chapter-14-configure-bridge-mappings
1
1
3,824
2016-10-06T12:30:20.637
infrastructure
serverfault.com
402,840
How do you normalize coding style among multiple isolated developers?
We're a small/medium sized company with a dozen or so software developers, developing our own in-house software for in-house use. Given that there's so few of us and there's just so much work to be done, for most part each developer handles a separate part of the system and doesn't share their work much with other deve...
Have a coding standard. If the shop you're going to work for already has one in use, that's the one you follow. Avoid coding standards that are dozens of pages long; it's not that complicated. Instead, look at code you like on Github, and follow that style. Find the well-established idioms for your particular programmi...
52
89
5,750
2019-12-23T00:49:09.247
api_errors
softwareengineering.stackexchange.com
364,873
New mail server can't send emails, only receives
I'm setting up a new mail server for my company with [CODE] and postfix/dovecot. I'm new on this so I have some problems. I'm getting it works only for receving mails from any address outside the lan and I can send only for the same domain. If I try to send a new message with it to an outside address (eg gmail) I have ...
From your main.cf: default_transport (default: smtp) You used: default_transport = error The default mail delivery transport and next-hop destination for destinations that do not match $mydestination, $inet_interfaces, $proxy_interfaces, $virtual_alias_domains, $virtual_mailbox_domains, or $relay_domains Well, that doe...
4
3
25,536
2012-02-29T14:27:07.237
infrastructure
serverfault.com
279,099
Facing deadlock after introducing a new Non-clustered Index on Heap
I am facing a strange issue wherein I had analyzed a stored procedure which runs every 3 minutes and was putting load on CPU. I found out that there are number of select statements which is part of this procedure and all of them were doing full table scan(reading all pages in tables). So, I tested them in Test environm...
It's difficult to answer your question in detail with the anonymized plan and deadlock, and not a ton of information about what's in the agent job involved in the deadlock. But in general terms, the answer to this question might be useful in helping you track down the problem: I was at complete loss as to how come an i...
1
5
926
2020-11-03T07:42:11.170
database_errors
dba.stackexchange.com
40,483
sql web-application Connection String for member of a domain group
In my testing environment, I have a local sql express (2008R) server instance. I've created a domain group and given it a login in the database . But now, how do I consctruct the connection string for my web-application? Do I give it the username and password of one of the members of the group? And, what do I put for a...
You need to configure the IIS Application Pool to use the identity (domain user) you created. My example below shows the default, out-of-the-box configuration. You'd need to choose 'Configurable' and specify the username and password there. Then you need to configure the site to use the AppPool. The connection string w...
1
3
2,077
2013-04-19T21:21:26.287
warehouse_errors
dba.stackexchange.com
914,325
Strongswan + FreeRADIUS and Windows 10 clients without internet access
I apologise for another query regarding Strongswan. I have created Strongswan server that has on one side multiple networks and on the second side are clients that are authorised via FreeRADIUS EAP-MSCHAPv2. Clients have access rights to specific IP addresses in networks via Class attributes and appropriate connection ...
ecdsa thank you for point me the right direction. The solution was finally quite simple. From PowerShell as administrator I created the new connection: [CODE] and then I added routes: [CODE] Now windows clients are working like a charm and they have access to the appropriate IPs and internet too.
0
0
1,293
2018-05-29T19:50:52.987
infrastructure
serverfault.com
164,506
questions- linux server
How do we define swap partition on a linux server that has several hard disks? What measure do you think if a linux server crashes then it has the minimum down time? when we don’t use LVM on linux installation?
I don't understand the second question. To answer the first: You can create a RAID and define the swap as that RAID device. RAID 1 is probably the best type for swap partitions; RAID 5 is unncessary and RAID 0 doesn't give protection. Creating a RAID array during install is pretty easy in Debian/Ubuntu. Check out the d...
0
1
167
2010-07-27T15:48:20.920
infrastructure
serverfault.com
824,085
Windows 8.1 Windows Deployment Service 2012 R2 drivers not installing
I can't get the drivers to install for one of my Windows 8.1 images. There aren't any errors in the event log or any errors showing up during the installation it just doesn't install them. I have the driver path in my answer file for the WinPE, OfflineServicing, and AuditSystem passes and it looks something like this: ...
Figured it out, our network admin changed the DHCP settings without telling me and I needed to run few commands on WDS: [CODE] Which sets "Do not listen on port 67" and Configures DHCP "Option 60 to PXEClient"
0
0
100
2017-01-04T12:58:57.020
pipeline_ops
serverfault.com
86,410
Understanding the XLNet model for a concrete case
I'm a data science student, recently I reviewed the XLNet paper and I have a doubt about it: Imagine we are using many categories, let's say 200, can this model has problems reaching a good accuracy (only applying what the paper says), if not, why? I thought that if we combine a hierarchical classification and then app...
There's no way to do that, XLNet is a pretrained model so the only thing we can do is tune it.
1
0
33
2020-12-08T14:03:11.337
data_quality
datascience.stackexchange.com
990,637
IIS: How to redirect url to another domain based on the sub domain
I am having one website which is hosted in IIS (my.serverfault.com) and having new website which is deployed in openshift (angular.serverfault.com) We have to allow the users to access the new website from old website (reverse proxy using IIS) Ex. If user hits my.serverfault.com/angular IIS should serve the content in ...
The below rules can be applied in IIS for the problem http://[^/]+/(.*)" />
0
0
644
2019-11-05T10:59:29.183
infrastructure
serverfault.com
56,211
SMB Backup Solution
I'm currently running a small to medium sized network consisting of approx. 40 workstations and 30 servers (both physical and virtual) consisting of various versions of Windows 2000, XP, 2003, and a single Thecus N5200 Pro. My current backup solution consists of Backup Exec 11D and an HP Storageworks DAT72 tape drive. ...
Much as online backup may be tempting in your scenario, I would seriously urge you to fully research the viability of doing a full server restore from such a backup before making a decision about it. Also consider the times you need to make a one-off emergency full backup, e.g. before installing a new service pack. The...
2
2
573
2009-08-19T16:53:19.503
hadoop_errors
serverfault.com
1,088,527
Apache .htaccess causing images to load extremely slowly
I am running a single page application that requires the following lines on my .htaccess . However, images on its /images/ folder are now loading extremely slowly. Is there anything wrong with the following lines? [CODE]
This should not have a significant impact on the loading of images. However, it can be optimised to exclude the [CODE] directory from being processed. For example: [CODE] The [CODE] flag was not required. OR, exclude all requests that look like they already have a file extension, which should naturally include all your...
1
0
288
2021-12-30T00:39:27.383
infrastructure
serverfault.com
156,535
Using laptops as servers
I have a bunch of old T42s lying around which I recently upgraded to maximum memory (2G). I'd like to put them to good use, and what attracted me most is the low power draw from these compared to using old full tower systems. The current specs of them are as follows: Pentium M 1.7GHz 2G DDR-333 RAM 250G HDDs Onboard AT...
Others have already commented on the disadvantages. I'd like to say a few good things. Advantages to using laptops: Power backup - assuming that the batteries still work, they would provide a sort of built-in UPS for the servers. Lower power consumption - as you've already mentioned. Built in KVM - no need for external...
10
10
3,961
2010-07-01T02:54:25.800
infrastructure
serverfault.com
345,302
Why should I release my code under BSD license and why not under LGPL?
I think the main difference between BSD and LGPL is that someone who modifies an LGPL library has to publish his modifications. I think this is usually a good idea because it guarantees that someone who uses my library is forced to contribute his improvements. I usually write code in Python and most of the libraries th...
There are two big differences between the LGPL and the BSD license. First, if you distribute an LGPL-licensed library, you have to provide the source. (This is slightly different from what you said. I can take any LGPL library, make changes, and use it internally; as long as I don't distribute it, I don't need to make ...
1
3
1,202
2017-03-31T07:51:39.337
api_errors
softwareengineering.stackexchange.com
439,465
More efficient FIFO inventory calculation?
I am implementing a basic ledger system for which I want to calculate costs based on the FIFO system. Is there a more clever method than an O(n) search? Example Suppose I have two lists of transactions: Incoming Inventory: Date Batch Quantity Price Jan 1 A 3 5.00 Jan 15 B 5 7.00 Inventory Sold: Order Date Quantity X Ja...
In short The main challenge in your requirement is the uncertain sequence of outgoing orders, which could arbitrarily change the price. Several financial constraints forbid this to happen in some circumstances, and requires the prices to be frozen at some time. If the sequence of the outgoing items can be frozen, you c...
-1
1
262
2022-06-24T21:26:19.640
api_errors
softwareengineering.stackexchange.com
519,494
missing network usage through iptables
I inserted a rule to iptables to track the input usage to a certain ip address. The vps server's IP is 192.168.1.5 and the guest os's IP is 192.168.1.115. I ran 'yum update' inside the guest OS to get some network traffic. Then I ran [CODE] from the hypervisor. However it only showed network usage to the host, but not ...
You don't say how you're arranging for traffic to get from the VPS server's physical NIC to the VPS's virtual NIC, but it's likely that this is a routed transaction. If this is so, then traffic to the VPS won't appear on the VPS server's [CODE] chain, but on the [CODE] chain instead.
0
2
91
2013-06-29T01:15:16.903
infrastructure
serverfault.com
14,619
How can I detect events on fuel tank
Hi guys. I'm not a data analyst and I need some direction in this. I'm looking for a way to know the events of the fuel during a range of time, could be a day or a month, etc. If the consumption was like the picture above would be easy. The problem is that the data I have is like this picture. I need to take the fuelin...
Welcome to SO! It looks like you have a time series problem. Typically the first step when dealing with time series is to consider the difference. Let us define $f(t)$ as the fuel level at time $t$. You would want to calculate $diff_{\text{fuel}}(t) = f(t) - f(t - 1)$. After this step you will likely see that the spike...
2
3
246
2016-10-18T19:24:46.373
data_quality
datascience.stackexchange.com
318,641
MySQL remote cache
We have a website whose database is on a separate machine. Both the application server and the database server are relatively underused, but the network link between them is the bottleneck. The MySQL server itself performs plenty of caching, but queries must still cross the network and back. If the site was slashdotted...
No. There is no standalone MySQL cache (yet). Since your web server is underused, you can install a database on the web server run database replication. You will need to modify your application to do reads and writes from different server or you could try alpha release of mysql proxy
0
2
432
2011-10-05T09:42:31.437
database_errors
serverfault.com
287,075
CPU being pushed to 100% by a process, trying to track and eliminate the problem
I am having trouble with the web servers CPU getting stuck at 25%, then 50%, then 75% until finally maxing out at 100%. Which we are guessing may be some slightly slower SQL queries stacking up, but cannot replicate the problem Trying to get to the bottom of the problem, we started looking at the settings on IIS (7), w...
On Maximum Processes: This is called Web Gardening - unless your app is stateless, you can't do that. Plus, in most cases # processes won't improve scalability, because Windows schedules threads, not processes. To work out what's wrong: Use the Worker Processes view at the Server level in IIS Manager. Within Worker Pro...
1
1
1,636
2011-07-05T11:03:50.600
infrastructure
serverfault.com
154,917
Cannot install SharePoint on Windows Server 2008 Standard
I am attempting to install SharePoint 2007 (WSS 3.0) on a MS Windows Server 2008 SP2 box. Immediately after extracting the files the install fails with the error: "The installation of this package failed." I filename was SharePoint.exe and it is the version with SP2 already in it (file size ~ 106MB). How do I install S...
I downloaded the file for the 4th time this afternoon and it finally worked. I assume the download got corrupted somehow.
0
0
326
2010-06-25T17:02:44.033
infrastructure
serverfault.com
256,215
Problem moving zimbra to a new disk
I've a Zimbra Release 6.0.8_GA_2661.DEBIAN5 DEBIAN5 FOSS edition installed on a Debian 5.0. My main disk was running low on space, so I've mounted an additional disk, shutted down zimbra, rsync-ed /opt/zimbra to the new disk, renamed /opt/zimbra to /opt/zimbra_old and mounted the new disk as /opt/zimbra Trying to run z...
Looks like when you copied things over, you missed files with a leading period, most notably .bash_profile, .bashrc, .platform and .ldaprc. The .saveconfig directory is also useful, though technically not required. My .bash_profile .bashrc and .ldaprc (pastebin links) under Ubuntu 8 x64 shows that the Zimbra path shoul...
1
2
1,445
2011-04-06T06:25:57.833
infrastructure
serverfault.com
881,504
Server computational slowdown when RAM is used extensively
I have problem with server slowdowns in very specific scenario. The facts are: 1) I use computational application WRF (Weather Research and Forecast) 2) I use Dual Xeon E5-2620 v3 with 128GB RAM (NUMA architecture - probably related to problem!) 3) I run WRF with mpirun -n 22 wrf.exe (I have 24 logical cores available)...
I'd suggest to enable numad service: [CODE] The numad should be able to take care of memory locality automaticaly. The situation like process runs on CPU of first NUMA node, however it's data are in the RAM local to second NUMA node, should no longer happen (unless the amount of needed memory is bigger than capacity of...
5
0
456
2017-11-02T12:06:14.387
database_errors
serverfault.com
240,786
SharePoint 2010 Enterprise: Is FAST Search installed by default?
I thought I would play with FAST server this evening, and I think I might be going a bit crazy here. I have an instance of SharePoint Server 2010 Enterprise, and I can create FAST search sites. In addition, my SQL Server instance has all the FAST_Query and FAST_Search databases set up. Furthermore, the FAST search seem...
FAST is a separate product, and quite a heavyweight one too. It needs to be downloaded, installed and configured separately before you even think about the Sharepoint 2010 features - all you're enabling there is a service app and site collection that act as "place-holders", for want of a better word, inside sharepoint ...
1
1
582
2011-02-27T08:25:10.243
database_errors
serverfault.com
295,484
row level security using roles in SQL Server
I would like to implement row level security on all of my tables. Each table has a column named [CODE] that has a list of values. Ideally I would like to create database roles which are allowed to see certain rows. This will allow scalability when I add new users. All of the examples of RLS I can find are for users. My...
Sure, it's simpler than that. eg [CODE] outputs [CODE] You can also store the (Role,DataClassification) entitlements in a table and reference that from your RLS predicate, eg: [CODE]
1
3
1,318
2021-07-09T22:42:16.263
database_errors
dba.stackexchange.com
277,706
Cron fails with exit status 127
I'm trying to get my crontab to run a few rake tasks for a rails app, but it seems to always exit with the status of 127, in my syslog it look like this: [CODE] It seems that 127 is like "command not found error" or something, so I've used the full paths to the bins even so like bundle was [CODE] , The task runs fine o...
Exit status 127 is set by bash when it can not find the command (see Advanced Bash Scripting ). To make the debugging easier, you should put all the stuff in a script. Make sure that the script is executable and starts with the interpreter name and path: [CODE] You should have the crontab line similar to: [CODE] or set...
9
10
29,303
2011-06-07T05:35:50.950
infrastructure
serverfault.com
659,508
Detailed sharing of Office 365 Calendars fails when using Share Calendar button in Outlook
We migrated our on-premises Exchange 2010 mailboxes to Office 365, and synchronized our Active Directory. I'm the admin of the Office 365 tenant. Now my users are using Outlook 2010 and 2013 and are trying to share their calendars with each other, with full details, using the button show below (excuse the Dutch languag...
Try deleting the auto-complete address cache (Instructions here) . We had this problem when we moved from GoogleApps to Office365. The cached addresses were pointing to Google and threw that error. Clearing the cache (or using the global address list to share) fixed it.
1
2
981
2015-01-14T17:18:02.307
infrastructure
serverfault.com
822,031
Blocks all files except for the two exceptions. in the Nginx code
I use this code for block all files. [CODE] but I want to allow dl.php and index.php on public_html filder. how can I do it?
Why are you using an alias for something you're to block? Internal blocks external requests, are you providing access to something internal with the alias? You simply add locations for those URLs. My expression might not be quite right but it should give you the general idea. [CODE]
0
0
86
2016-12-21T12:49:22.613
infrastructure
serverfault.com
336,147
Why a consistent backup still requery recovery in Oracle?
My database was in mount state and we perfomed a backup of the database. [CODE] So, when restoring it, I can't simple use: [CODE] It shows [CODE] Why do I still need to recovery the database? I know that when the database is open and we perform some backup, we must recover because the backup was inconsistent, but in th...
How to restore cold backup of database taken using Rman (Doc ID 1391384.1) Summary of steps: [CODE] If you do not restore (Step 2) the controlfile from the backup that was taken with the offline backup and use the current/latest controlfile, you get the error you got. Alternatively, you can recreate the controlfile man...
0
2
50
2024-02-22T17:48:59.820
database_errors
dba.stackexchange.com
14,153
Treating certain Arabic characters as identical
In Arabic we have characters like ا (alef) and أ (alef with hamza). Users write them interchangeably and we want to search them interchangeably. SQL Server treats them as separate characters. How can I make SQL treat them as the same character? I thought to replace any أ (alef with hamza) with ا (alef) at insertion but...
i did few tests and i guess it is a work around but can get your job done, since SQL it self isn't helping much. if you notice that the unicodes of these characters are close to each other [CODE] so between أ and ا , its from 1571 to 1575 or if you want to make sure you get every thing in between make sure you include ...
12
6
11,576
2012-02-29T20:59:00.407
database_errors
dba.stackexchange.com
1,058,152
HyperV Old Snapshots with No Reference - Can I Delete Them?
We've became aware recently of an issue with Hyper-V and some old snapshots that I'm assuming have been caused by failed Veeam backups (and the checkpoints not being deleted). It's a HyperV Failover Cluster with Server 2016. If I go into the Virtual Hard Disks folder for the machine in question I can see a BUNCH of .av...
The merge finished and the snapshots not referenced anywhere were still on system so I deleted them. All is fine. I suspect I 'could' have deleted them if someone else comes across something similar.
0
0
219
2021-03-24T14:01:36.610
database_errors
serverfault.com
20,526
Physical memory usage approaching 100%(96%)
Possible Duplicate: SQL Server 2008 R2 “Ghost Memory”? Context: Windows Server 2008 R2; 32GB RAM; Application: SQL Server 2008 R2, several Connectors to Write Data into SQL Server(Write Frequency: 0.5HZ); The Server has not been restart for more than half a year; About 15G Data per month; Support Several Applications h...
is there some kind of memory-leak problems here? No, the problem is more someone who does not know how SQL Server works. SQL Server uses as much memory as feasible as cache for the database. Why not use it? So, what happens basically is that SQ LServer has a lot of data in memory in case it needs it, to avoid accessing...
3
2
18,445
2012-07-07T07:14:36.917
database_errors
dba.stackexchange.com
10,229
dealing with dropped event data
I have a set of game play event data. One of our goals is to provide a picture of how much time the person has spent playing. This sounds simple but for the fact that events are often dropped and result in vast amounts of time between events. We are in field trials right now and don't have a huge pool of data to use as...
What you have described is that you want to consider the distribution of observations in a way that models the population to serve a better purpose. I would recommend reading into how different types of distributions can be transformed so that your model might achieve a higher score. In terms of your plots during analy...
1
1
42
2016-02-12T22:17:56.217
data_quality
datascience.stackexchange.com
241,231
PTR record and dyndns
I have domain name at dyndns.com and set at home smtp server. I try send mail to other servers but get error: 550 We cannot accept email from IP 92.46.76.192 without a DNS PTR record. Contact your ISP/HSP to set up PTR record for your server. How can i set PTR record for this domain? Thank you.
As you have a dynamic address configure your email server to relay all mail via your ISP's relay server. By far the majority of spam originates from dynamic addresses without a PTR record. If you try to send email directly you will appear to be a spammer. This is why your attempt to send are failing. If you want to sen...
1
1
1,893
2011-02-28T17:02:13.173
infrastructure
serverfault.com
130,671
PXE boot not happening due to DHCP issue
I could PXE boot this laptop to some extent yesterday but all of a sudden after some time it started to show this error message. I reinstalled my tftp server etc in between. It seems that DHCP lease issue is happening. The client wants some specific address I think? Does anyone know how to resolve this? [CODE]
This message usually occurs when your DHCP pool is full (i.e. every address that can be allocated by the DHCP server has been used, or is reserved). If you restart the DHCP daemon (which should release all the IP addresses), does this still happen?
1
1
6,474
2010-04-08T19:00:36.243
infrastructure
serverfault.com
17,428
How does LSTM fights vanishing gradient?
Vanishing gtadient causes too small values which are come from non-linear functions like sigmoid, tanh. LSTM architecture was developed to fight these issues. But how can it avoid a problem if there are 3 sigmoid, 2 tanh functions and, moreover, they are combinated via multiplication?
There are two factors that affect the magnitude of gradients - the weights and the activation functions (or more precisely, their derivatives) that the gradient passes through. If either of these factors is smaller than [CODE] , then the gradients may vanish in time; if larger than [CODE] , then exploding might happen....
6
1
742
2017-03-07T19:28:43.240
data_quality
datascience.stackexchange.com
441,779
Linux Software RAID1 Rebuild Completes, but after reboot, its degraded again
I have been beating my head with an issue here, and I'm now turning to the internet for help. I have a system running Mandrake Linux, with the following configuration: [CODE] - This is a IDE drive. Has some partitions on it that boot the system and make up most of the file system. [CODE] - This is drive 1 of 2 for a so...
Maybe it's too late now, but did you update your mdadm.conf file after adding you new drive? If you change a disk, your array won't have the same uuid anymore, and at reboot it will be looking for the old drive, not knowing that the new drive is here. Here's the command to generate the lines for mdadm.conf : [CODE] Abo...
3
4
2,993
2012-10-24T13:28:09.520
infrastructure
serverfault.com
152,571
Small Business Network Switches/General network configuration
We just had one of our many 5-port network switches die on us and it took over a day to figure out what was causing our network problems. So now I have $200 to "fix" our network. Our goal is a network that is less of a hassle to administer and that will operate more efficiently/faster that our current setup. In the ima...
I can't speak to American pricing, but if there is a HP ProCurve Switch in your price range then you might want to take a look. I've found their products to be keenly priced (in the UK anyway), great performers, and very well supported products with a very good guarantee. I'm not personally a fan of DLink in general bu...
12
6
3,347
2010-06-18T16:49:24.597
infrastructure
serverfault.com
182,688
What are these isolated resource requests in Apache's access_log?
I was looking at my Apache access log and came across some strange requests. A single IP address will access several resources (mostly css style sheets and images), but no actual pages. Sometimes they are requesting a resource that no longer exists on the server, or one that is still under the web root but no longer us...
Without knowing which IP it came from, there's really no way for us to give you a good answer. You have a webpage out on the public internet - it's going to get a fair share of random requests. It is highly unlikely that these requests are malicious, so if I were you, I'd not worry about it.
0
1
130
2010-09-19T20:22:37.200
infrastructure
serverfault.com
641,215
What do I need to ldapsearch AD?
I'm attempting to test LDAP for Moodle auth, by using LDAP search. When I run [CODE] I get back: [CODE] I'm not clear on what that TLS error means, and my google-fu is failing me. I understand AD servers usually function as a CA, and odds are this one is not signed, is that what -5950 means? If so, any hints on overcom...
On Active Directory domain controllers, LDAPS support is optional, and needs a proper certificate to be enabled; otherwise, only LDAP services are provided. A quick way to check if your server supports LDAPS is to try a connection to its TCP port 636 (or run [CODE] on the server itself): if it's closed, LDAPS is not en...
1
3
555
2014-10-31T18:29:11.553
infrastructure
serverfault.com
536,841
Linux DHCP Server Migration
Background I'm moving 2 existing Linux DHCP servers to a new network. The servers currently configured as follows: [CODE] Issue I stopped DHCP on the existing DHCP servers and started on the new DHCP servers. All the networks worked with the exception of subnet 4. The MACs (apples) on this network could not obtain an I...
It was due to access rules on the firewall. I couldn't get full details from the network team.
0
1
1,758
2013-09-06T03:40:47.640
infrastructure
serverfault.com
121,175
Why does my chess neural network not generalize well?
I'm trying to train a neural net to evaluate chess positions. For reference, the dataset I'm using can be found here . If you follow that link, you'll see that there are three CSV files - I'm only using the first two (chessData.csv and randomEvals.csv). My issue is that when I train the network on the data from one fil...
As a start, you're using relu as your activation function on your input layer. This means any negative values will get clipped (i.e. your black pieces) to 0. Also, it's probably a good idea to scale your input values to 0..1. A quick glance at the kaggle comp, and you're probably going to want to encode things like cas...
1
1
64
2023-04-27T05:41:54.467
data_quality
datascience.stackexchange.com
225,476
Can't connect to port 80, connections are all stuck SYN_RECV
I'm unable to connect to my server on port 22 or 80. When I run netstat, I see that there are a few connections, all of them stuck in SYN_RECV. Googling revealed mostly questions about DDOS. Since there are very few connections this seems unlikely (although I am on a shared host (slicehost)). What else could be causing...
Check that your /etc/hosts.deny isn't corrupted . That happened to me once and caused extremely bizarre problems with hung netowkr services. Check your firewall rules ( [CODE] ). You could have your firewall configured to allow incoming connections but block outgoing connections, causing incoming connections to hang. C...
2
1
11,153
2011-01-22T06:45:37.433
infrastructure
serverfault.com
330,388
Problem with Cassandra data corruption/inconsistency
My team runs Cassandra for an internal application. This is our setup: We are running Cassandra version 3.11.13. We have multiple keyspaces; each microservice has its own. We have an active-active architecture in two AWS regions. Each region has 4 nodes: 2 seeds and 2 members. The topology is a replication factor of 4 ...
correlated with only one keyspace Which means that it's probably due to the write pattern of one particular application. not running frequent enough repairs This all depends on the required consistency. If the data doesn't have to be 100% correct or up-to-date, then repairs probably are more trouble than they are worth...
1
2
243
2023-08-17T14:08:55.543
database_errors
dba.stackexchange.com
430,057
Ghost Solution Suite: Booting over PXE to WinPE for re-imaging, then booting to installed OS
I have 40 networked computers that need to be re-imaged each night over a network via an automatic and unattended process. This is to reset the computers to a default state, as well as update the computers to the latest software loads. I'm using Symantec Ghost Solution Suite 2.5. My process so far is the following: Cli...
If you need completely automated, one-touch imaging you need an enterprise-grade solution, which Ghost Solution Suite is not. I don't even think you can script around the problem in GSS, which is another reason it's really not suited for large, completely automated one-touch deployments. I personally don't see the prob...
2
2
2,698
2012-09-19T21:40:37.843
infrastructure
serverfault.com
329,691
Advice on WooCommerce DB and really slow WC core admin queries
Thanks for reading! So I'm kind of banging my head against a wall but I firstly want to say that I think this is a DB setup problem rather than the code as even when stripped back to bare bones WC the queries are still slow so no interfering 3rd party code. Basically I have a WP/WooCommerce website that has quite a lot...
11GB DB is not big data, and you have 28GB memory,that is enough. if the slow query is a "select" satatement , innodb_io_capacity is not the key pamater that you should consider. maybe you can paste the query and table info here to get more ack.
0
0
51
2023-07-26T16:18:18.963
database_errors
dba.stackexchange.com
489,642
fail2ban cannot ban ip on all ports if it's already banned for specific port
I'm using a custom filter in fail2ban to search through it's own log and ban an ip after 5 bans from any of the regular filters. I'm using [CODE] as action for this. All other filters are configured with [CODE] . This is the specific config in [CODE] [CODE] My filter [CODE] looks like this (redundant comments removed) ...
While fail2ban creates an iptables chain per service (eg fail2ban-ssh ), the check for an existing ban is based on the IP address. A possibility to fix the problem is to make fail2ban unban an IP (ticket) if it is already in the banned-list just before it is going to ban it (again) These actions happen in the python sc...
4
2
11,419
2013-03-20T13:09:38.907
infrastructure
serverfault.com
1,118,550
Erratic SMART readings on one member of a RAID 1 array
I am managing a server that uses 2 nvme ssds on RAID 1 connectivity. At once point I lost access to one of the 2 and got my normal raid array degraded mails from mdadm. So I asked from the hosting company to check it out and they said that the array's contacts needed cleaning to make better contact and once they did th...
I see now I also get such results: [CODE] And mdstat looks ok: [CODE] Does anybody know why is that?
1
0
347
2022-12-21T09:56:12.920
infrastructure
serverfault.com
65,281
How to deal with spelling errors NLP
I have some data where the main column is the description of one product. The main task is to extract the name of some product from this column, where it sometimes is spelled wrong and amended in other words. I have more than a thousand possible product names. Currently I'm just using regular expressions with a list of...
Other options would be to... Compare similar text sequences Compare similar string sequences Use fuzzy matching Fuzzy Matching: [CODE] This gives a "distance" between one and another word. So if you know the real product name, you might be able to find the erroneous names via the distance. [CODE] Alternatively, you cou...
9
10
5,040
2019-12-22T16:49:27.133
data_quality
datascience.stackexchange.com
390,112
Windows IIS Authentication not working with FQDN but is without it
I have an Intranet website, not internet, and whenever I go to [CODE] The website accepts my integrated authentication of the logged in user on the computer/client via IE. if I go to the FQDN [CODE] I get prompted for my username and password. They're the same and site and web pages. What can I do to make them both acc...
Is the FQDN in IE's "Intranet" security zone? If not you will need to add it in, or add in the *.mydomain.com wildcard. The "Intranet" zone is inferred if you use just the server name (i.e. there are no dots in your URL), but often the "Internet" zone is used if you use the FQDN. Windows Integrated Authentication is no...
19
16
25,961
2012-05-17T18:45:33.957
api_errors
serverfault.com
181,505
What is a 'Null Terminated String' ?
I have just started reading C++, and I came across a term "Null Terminated String", I read about it but couldn't understand what it actually stands for. I also want to know what is the difference between a c-string(also referred as "Null terminated String") and a c++ string.
Short answer: a null terminated string is a char array with a null value (0x00) after the last valid character in the string. Long Answer: It's important to remember that not every C and C++ compiler will initialize values for you. AFAIK, most don't. A basic string in C or C++ (without STL) is simply an array of charac...
7
16
80,852
2013-01-04T12:09:53.153
api_errors
softwareengineering.stackexchange.com
318,350
What permissions are needed for a user running Ola Hallengren's IndexOptimize stored procedure?
I'm planning to orchestrate my index maintenance with other jobs in my Azure SQL Database (serverless) using Azure Data Factory. The job will be run by the Managed Identity of my ADF service, and the MI has been added to the "db_datareader", "db_datawriter" and "db_ddladmin" roles, as well as been granted EXECUTE right...
Considering Ola Hallengren recommendations : Which permissions are needed for the SQL Server Maintenance Solution to work? If you are using SQL Server Agent, the jobs run under the SQL Server Agent service account that is a member of the sysadmin server role. If you are using a proxy account, I recommend that the accou...
2
0
450
2022-10-18T12:47:42.023
database_errors
dba.stackexchange.com
379,181
Does Hyper-V support GPT disks on the host?
Are there any issues with Hyper-V (on Server 2008 r2) if the host is formatted as GPT? Someone out there has tried this...
Are there any issues with Hyper-V (on Server 2008 r2) if the host is formatted as GPT? EUFI/EFI based systems can boot to a GPT disk, all can use GPT disks as secondary disks. Someone out there has tried this... Yes, yes they have.
1
7
4,070
2012-04-13T13:07:04.080
infrastructure
serverfault.com
93,879
Parallel teams and scrum/agile
My company has grown seriously over the last years. Until a few years ago we could work with 1 agile team and everything went quite smooth. Now we have multiple teams, all working agile and things go less smoothly as we would hoped. One of the main [psychological] problems is how to organize the working methods in the ...
From your description it is not clear whether the teams are actually working on separate projects - I assume they are. In the ideal case, I think this should be mainly decided by the teams themselves, but they would come to more or less the same conclusion (i.e. using Agile). Especially if prominent members of the team...
4
2
1,353
2011-07-18T13:47:52.197
api_errors
softwareengineering.stackexchange.com
918,230
Kubernetes (K8S): TCP clients waiting very long timeout on connection to a Service when there are no Pods serving its requests
My problem occured when using Redis on Kubernetes, but it seems that it is not a problem with Redis itself, but with network/infrastructure. My scenario: I have a Redis Service with single Redis Pod serving it. I connect Redis Client to the Service. I delete a Redis Pod. Client connection gets ended. Redis Client tries...
A Service is an abstraction in Kubernetes which defines a logical set of Pods and a policy by which to access them. Technically, a Service is a type of Kubernetes resource that causes a proxy to be configured to forward requests to a set of pods. In your case, your Redis Client connects directly to your Redis Pod using...
0
0
5,034
2018-06-26T09:03:32.943
pipeline_ops
serverfault.com
698,115
Crontab / jobs failing (due to + sign?)
I'm trying to automate a nightly backup with the following cron jobs (IPs and password redacted. of course): [CODE] These work fine from the command line, but not when the cron daemon tries to run them. In the [CODE] I see messages like: [CODE] I assume that there's some problem with the [CODE] sign in my commands? How...
You need to escape special characters with backslash so try with + and \%. And, also other special characters too (if any). The other option is to put these long commands in simple shell script, add executable permission bit to those scripts and reference them in your crontab.
-1
1
53
2015-06-10T22:05:35.590
database_errors
serverfault.com
68,313
Can't add client machine to windows server 2008 domain controller
A bit of background before I dive into the gritty details: I have a single server running Windows 2003 Server where I host my ASP.net website and SQL Server + Reports. I've been creating ordinary windows user accounts to authenticate my users, and I enabled integrated windows authentication with impersonation. I've set...
You are correct-- Active Directory has strong dependencies on DNS. To make this easy, you should install the Microsoft DNS server onto the domain controller computer and configure it to use itself for DNS. Your ISP's DNS servers probably don't support the dynamic updates that would make life w/ Active Directory easy (a...
0
1
9,835
2009-09-24T08:50:25.477
api_errors
serverfault.com
764,118
Correcting Time Problems - Cisco Switch - DHCP Options Daylight Savings Time
I inherited quite a network in terms of centralized or correct configuration. The prior administrators did not configure many basic services correctly and myself and my Senior Administrator are now being hammered with several problems they left behind. One of the issues we are seeing now is a problem with the time bein...
After a bit more searching and testing I was able to get a solution that worked for me, not sure if this is the best solution but it worked. I created several copies of the configuration files and placed them in a sub directory of the FTP root directory on my WDM (Wyse Device Manager) server. I named each one after a d...
1
0
891
2016-03-16T13:53:06.997
infrastructure
serverfault.com
935,828
Can I point a sub-folder to a different server using nginx?
I have a very old server that has a legacy application on it that powers a website. I can't really modify much on this server as it is very old, I am slowly migrating away from it before I decommission it. I want to server content from another newer server for a specific folder on the website: [CODE] Is it possible for...
You can define 2 upstreams old_server and new_server and then define 2 location with different proxy_pass . Take a look here: http://nginx.org/en/docs/http/ngx_http_upstream_module.html [CODE] Good Luck!
0
0
749
2018-10-16T21:29:46.727
infrastructure
serverfault.com
306,615
How to start MySQL after failure?
After I reboot my server, I can no longer start mysql. I have followed several solutions posted here: This This Or this Did not help much... :( I run the following commands to start the service: [CODE] [CODE] [CODE] [CODE] The server has Ubuntu 20.4 Any tip about what can I do?
I faced the same problem today ,the source of the issue might be different but, read carefully [CODE] it should point to the error. I deleted one table that I didn't need [CODE] and [CODE] files. It was a mistake , I should drop the table , but my server was on 100% memory usage. What I did was reading the error on: [C...
7
3
16,964
2022-01-26T15:24:29.043
database_errors
dba.stackexchange.com
38,075
Extreme slow PC if logged on as domain user remotely
I'm using windows XP to do the development. Since I working remotely from home, I found a serous problem, some applications for instance MS excel, even just open up the start menu or My computer became to extremely slow . If I logged into the local pc without domain then the problem fixed, my domain user account has 30...
Network drives mapped to shares that are not accessible while working remotely can cause this. Look to see if you have any mapped and if so try disconnecting them to see if this resolves your problem.
0
1
355
2009-07-09T02:36:55.917
infrastructure
serverfault.com
398,234
Netstat continuous refresh (watch changes the output)
I am using this simple command to monitor connections (to deal with some recent DoS attacks) on my Debian server: [CODE] How do I run it continuously? So it will refresh itself once per minute (or any given amount of time, of course). I tried watch: [CODE] But it changed the output from nice list with num of connection...
[CODE] may help you if i've not misunderstood your problem. -c stands for --continuous. EDIT: there you go: [CODE] I've added a \ before $.
28
36
103,300
2012-06-12T13:13:54.997
infrastructure
serverfault.com
886,033
network down when adding bridge
I am trying to get a VM accessible to other computers that are on the same network as [CODE] which is my ethernet interface. the idea is to create a bridge for it, so my [CODE] looks like this: [CODE] I lose access to the host machine, once I save that file and reload the networking service using: [CODE] . I have acces...
You need to move all the physical device config to the bridge and set the phys dev to "manual". The bridge device becomes the network device you use instead of the phys dev. [CODE] I don't know what kind of VMs you're using but this is the setup I use for containers in LXD.
0
2
1,159
2017-11-30T20:00:06.813
infrastructure
serverfault.com
59
What are R's memory constraints?
In reviewing “ Applied Predictive Modeling " a reviewer states : One critique I have of statistical learning (SL) pedagogy is the absence of computation performance considerations in the evaluation of different modeling techniques. With its emphases on bootstrapping and cross-validation to tune/test models, SL is quite...
As Konstantin has pointed, R performs all its computation in the system's memory i.e. RAM. Hence, RAM capacity is a very important constraint for computation intensive operations in R. Overcoming this constraint, data is being stored these days in HDFS systems, where data isn't loaded onto memory and program is run ins...
11
10
1,335
2014-05-14T17:48:21.240
data_quality
datascience.stackexchange.com
1,106,747
Kickstart Partitions
Hi I wrote the kickstart file for centos 7. It works great but in some machines because of partitioning 2 disk drives which should be determined like sda and sdb I have issues USB boot drive is overridden and interrupt the installation. example: PC1 [CODE] PC2 [CODE] Is here any possibility of how to exclude a USB driv...
One way to solve this is to network boot (PXE); this lowers the odds of a stray USB device complicating the disk layout. However, [CODE] [CODE] are not stable and may change around (or not be present) at the whims of the BIOS or who knows what, even if a USB device is not present. Another, more complicated, way is to b...
0
0
292
2022-07-27T14:07:00.557
infrastructure
serverfault.com
261,991
Grant usage to a schema from another database
In PostgreSQL, how can I [CODE] to a certain schema for a certain user in a certain database while I am in another database? I am connected to a database (let's say database [CODE] ) as a user with [CODE] privilege. I want to create another database [CODE] for user [CODE] and grant a usage on public schema to this user...
You cannot change an object in one database while you are connected to the other database. You'll have to connect to the database where you want to grant the permission. You can still do it in a single script if you use [CODE] , because that has the [CODE] command to connect to a different database. So your script coul...
4
8
3,916
2020-03-15T08:23:08.770
database_errors
dba.stackexchange.com
392,023
Can strict assertions at application startup omit or replace integration tests?
I wrote a startup-pipeline where definitions are passed via environment variables and are used together with (unit-tested) methods to create suite of several publications (for subscriptions ) by some lightweight factories and generators (also unit tested). The startup-pipeline looks like this Load the publication defin...
There would indeed be no value in writing integration tests that duplicate the checks that you already have in your code in assertions. On the other hand, I do see value in writing testcases that verify that your assertions work. These testcases would try to start the application and verify that it fails to start if th...
1
3
116
2019-05-17T08:03:04.680
api_errors
softwareengineering.stackexchange.com
862,239
Issue with SSL for Apache and Tomcat
I have a server where it's running Apache and Tomcat. The front end app (built in angularjs) is running in Apache, there I installed the SSL cert and it is working fine, I can access with HTTPS and the browser trust on the cert. But then this app is consuming some services from another app that is in the SAME server bu...
Browsers can be a bit funny about ssl sites containing unsecure content. If you've got SSL working on Apache you could use Apache as a reverse proxy to publish the Tomcat app, either using an ajp connector or reverse proxy. That way you don't have to worry about SSL on Tomcat at all, its all taken care of on the Apache...
0
1
1,641
2017-07-14T18:36:29.810
api_errors
serverfault.com
72,792
transaction not processing?
I'm trying to test out an update prior to running it on our production server, however when running my transaction in [CODE] , I don't seem to be able to commit the transaction or get any data back from my select, what am I doing wrong? [CODE]
Oracle's transactions are implicit in [CODE] you're already in one and don't have to start it. This means you can just do select ... update .. rollback ... select... if you do an [CODE] without doing [CODE] it will commit on exit. [CODE] is not necessary here.
0
1
42
2014-07-30T20:16:52.213
warehouse_errors
dba.stackexchange.com
148,415
When and how to commit?
I'm getting used in working with git at the moment. And I'm touching an issue that is unclear to me. I feel compelled, if I think of commiting after a change and making a documenting description. I don't know exactly when I should commit, because that's very relative and there's always something under construction. I t...
You can do whatever is socially acceptable with your fellow programmers on the project you are working on. There are no rules really. Personally I commit very often to keep change-sets really small and make sure they only do one thing, and then may or may not rearrange / squash those before publishing to the team. When...
3
7
481
2012-05-12T15:09:39.003
database_errors
softwareengineering.stackexchange.com
533,511
nginx proxied responses terminating/truncating
I have this nginx config on a host (host1): [CODE] The backend nginx config looks like this: [CODE] The backend is actually on a different host (host2), and due to our firewall config, I need to reverse-tunnel the connections (this may be irrelevant to the question but including for completeness): [CODE] This setup is ...
Not too long after, I found this answer from Maxim which does seem to confirm my hypothesis: http://forum.nginx.org/read.php?2,155864,215181#msg-215181 My take-away is that there's no good reason for the default on-disk buffer to be 1GB, and that it would be helpful for nginx to issue a warning on unexpected upstream t...
0
0
2,527
2013-08-24T19:27:14.803
infrastructure
serverfault.com
159,181
linux timestamp permission error with winscp
I added a user to a group and set the file and dir content to 775. When i use winscp to modify a file it complains it cant set the timestamp bc of a permission error. But it is able to update the file i edit. Why? details on how i set the user is here but i dont think anyone needs to read it Why cant a group member mod...
WinSCP tries to 'preserve time stamp' by default. Some unix systems do not like letting users that don't own a file to change permissions or timestamps even if they have write access, for some strange reason. To fix this error I went to [CODE] then edited the [CODE] and unchecked [CODE] . This, I believe, leaves you wi...
5
4
4,116
2010-07-10T04:34:09.580
infrastructure
serverfault.com
982,240
Can two IIS Websites with nearly Identical Code Basis be sent to the same ColdFusion Backend?
Running cold fusion standard, so i can only have 1 instance of the coldfusion tomcat host per machine. https://helpx.adobe.com/coldfusion/configuring-administering/web-server-management.html#IIS says it's fine to have two websites send over to the same isntance, but i was wondering if it's still fine if the two website...
As long as each application has a unique name in application.cfc, it should work fine. In application.cfc: [CODE]
1
3
109
2019-09-06T16:31:37.513
infrastructure
serverfault.com