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
364,693
Definition of Rejected and Failed in Support Cipher Suite
When I using SSLSCAN to check the cipher suites of my server, I found that there are three status: Accepted, Rejected and Failed. After that, I tried to disable the ciphers of RC2(40bits). I created a new key "Enabled"=dword:00000000 under [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\...
I wondered about the same thing, looked at the source code ( “Use the source, Luke!” :), and it simply is the return value of [CODE] from the OpenSSL library . The documentation states that: [CODE] ( [CODE] ) means: The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been established . [CODE] ( [...
5
3
3,070
2012-02-28T22:16:19.997
infrastructure
serverfault.com
11,134
tsql: table data size won't shrink after large row deletion
i have a table with 12 months+ data in it. I backup the table then delete all rows keeping only rows inserted in the last month. But the table size won't shrink, nor the underlying physical file. [CODE] These values means each row of the table is about 19MB! I tryed to rebuild the index with no change: ALTER INDEX PK_m...
Try [CODE] With the index size value being so high, this points to a non-clustered index. Clustered index size is very small usually. You can check with the [CODE] parameter when using the DBCC SHOWCONTIG command: [CODE] For example, one of my tables. A billion rows, 70GB table, 450MB index [CODE] Note that deleted rec...
5
5
5,585
2011-03-28T06:36:53.413
database_errors
dba.stackexchange.com
101,531
How to display the query result separately for each item in an IN clause?
Maybe it's a novice question, but I am trying to get the sum of balances for each account present in the table. I am trying the below [CODE] This is giving me the total balance and I can see why. I need help in figuring out how to see the balances for each account individually in query result. I do not have the rights ...
That's easy: [CODE]
2
5
155
2015-05-14T16:10:12.423
warehouse_errors
dba.stackexchange.com
239,700
How to grant execute permissions to a stored procedure but not to the underlying databases
I am trying to allow a user to run a stored procedure while restricting them read/write access to the underlying tables. I am able to complete this with other stored procedures, but the one I am working with contains tables in a second database. I have restricted the user from accessing the underlying tables in the dat...
This is easy to accomplish with Module Signing . The concept is to create a certificate in the database that the user, [CODE] , has access to (and contains the stored procedure), [CODE] , which will then be used to sign the stored procedure, [CODE] , that has the functionality the are currently restricted from accessin...
3
4
2,672
2019-06-03T14:00:15.030
database_errors
dba.stackexchange.com
343,269
Where should I use abstract classes vs interfaces for a REST API client?
I'm trying to write a REST API client for practice and I'm having trouble figuring out how lay out the project. The approach I'm taking right now has [CODE] , [CODE] , [CODE] , and a class that deals with authorization and headers and such ( [CODE] ) that exposes a generic [CODE] and similar verbs. Examples [CODE] : [C...
The over-engineering architects will disagree with me, but in a language such as C#, interfaces only exist to allow multiple inheritance, and they do that poorly, having no implementation. That is, if you can find some common implementation code, it is better to use a base class instead of an interface, except when you...
3
1
5,726
2017-03-01T20:32:41.227
data_quality
softwareengineering.stackexchange.com
95,149
Connecting to Oracle Pluggable database using service name
I installed Oracle 12c on windows using all the defaults but choosing to use a pluggable database and to install the sample data. The container database and SID name is ORCL and the pluggable database is PDBORCL. I noticed that using SQL Developer I can connect to the pluggable database by using its name as the service...
It registers them automatically. Very easy to test... Listener status shows no PDB: [CODE] Create a new PDB: [CODE] It is now registered with the listener: [CODE]
4
2
30,009
2015-03-13T05:55:13.767
pipeline_ops
dba.stackexchange.com
568,624
What are the space requirements for vm snapshots in Citrix XenServer 6.2?
As I understand it, the only way to do a live backup of a vm in XenServer is to make a snapshot, convert the snapshot to a template, then export the template (to another server), then delete the snapshot. What I can't find anywhere are the specs for how much space a snapshot takes, or how they work, plus I've had confl...
I'm also investigating about this and I've found this question, very old and sadly without a response. So I'll copy here what I found so it can help someone else. I'm afraid that there is no an easy answer, but I'll recommend to start from here: http://support.citrix.com/article/CTX122978 It's concise, clear and with s...
6
0
5,784
2014-01-20T21:22:52.470
database_errors
serverfault.com
581,351
ZFS checksum errors: what files are affected?
Here is a zfs pool with checksum errors: [CODE] Is there a way to find which files / metadata have blocks with checksum errors?
Normally, the path and name of the file with the error would be displayed, the suggests the corrupted file was deleted (before or after the error). It is a reference to the indirect block that contained the file. This suggests that no active files were corrupted, just a file that was already deleted, or has since been ...
0
4
4,912
2014-03-11T17:41:45.450
infrastructure
serverfault.com
4,589
Taming an existing network
I have recently joined a company as the sole IT guy and I'm struggling to get a handle on what software and hardware we own and how it is deployed. Keeping in mind my limited time and budget, what tools or processes are going to be effective for discovering and managing this information? Things I am looking after inclu...
http://www.spiceworks.com/ This tool is easy to install, and will setup basic monitoring, inventory, and patch levels for you. This will get you by until you have had time to study the network and setup something more specific like Nagios or System Center. As far as tools and processes that I have used in the past I fo...
10
14
462
2009-05-05T11:22:33.683
infrastructure
serverfault.com
378,124
limiting the number of global connections per second
I want to limit the number of ALL incoming NEW connections on a port, not only from one IP, something like: [CODE] But I don't understand what's wrong. It worked once/twice, tried different limits and after that it now drops all new connections. (yes, I flushed the iptables each time before adding the rule in its vario...
If you want to limit the number of new connections to [CODE] , you have to change the rule target to be [CODE] instead of [CODE] : [CODE] You can read from [CODE] : [CODE] So, your rule will drop all new connections until the limit is reached!!!
0
1
5,451
2012-04-10T14:25:33.980
infrastructure
serverfault.com
276,046
Dell PowerEdge 2800 Logical Disk Failure: Any Possible Recovery?
I was noticing a issues with the server. Usually Microsoft Updates that have downloaded, but are waiting to be installed can cause this. Before applying the updates and restarting, I ran several diagnostic tests on the hardware and everything came up green. Both hard drives also displayed green lights I then chose 'Ins...
well, 2800 is rather old now, but still, it would help if you posted the raid configuration and the state the disks are reported in, in the scsi controller bios. In general, the drives might be ok (they did pass the diags, right? you ran the dell pediags/onlineDiags from support.dell.com?) and you might just need to re...
3
2
8,790
2011-06-01T20:15:13.890
infrastructure
serverfault.com
226,752
Using MATCH, AGAINST multiple times in MySQL fulltext search
I'm using MySQL database for my e-commerce project. And here is my query for search: [CODE] Here I used MATCH, AGAINST 3 times. First in SELECT for relevance. Second in JOIN and third time in WHERE. 1) Can usage MATCH, AGAINST multiple times affect to speed? 2) If yes, how can I change my code to get same result and re...
The main performance problem comes from [CODE] between multiple tables, then from the need to check for rows from each table. Plan A : One common improvement is to turn [CODE] into [CODE] , but it may be only a partial solution. See how far you can get with this query (which will become a subquery in the real query): [...
0
3
3,571
2019-01-10T06:51:58.217
database_errors
dba.stackexchange.com
169,177
What options to use for Accurate bacula backup?
It's actually 2 question in one. First is a bit more theoretically. So when specifying accurate options how does bacula figure out if a file needs to be backed up ? it's a simple AND ? As in if the options are Accurate = sm5 bacula will not backup the file if ((size = old size) AND (modtime = old modtime) AND (md5 = ol...
It shouldn't check for this at all given your accurate options, but maybe you can test if setting the option mtimeonly=yes will work, because the ctime will have changed if you add a link to a file.
0
1
2,589
2010-08-11T08:37:43.060
database_errors
serverfault.com
414,501
How do physical disks passed through ESXi perform vs. passing through HBAs?
Context: I have a SAN operating system (Nexenta) that runs on ESXi. It has a couple of HBAs passed through to it already, via VT-d. All of the HBAs for the SAN OS are full (no free connectors). I recently purchased some SATA SSDs for Nexenta and attached them directly to the motherboard's on-board SATA controller. I ca...
Please see the notes about configuring an all-in-one ZFS setup in my post at: Hosting a ZFS server as a virtual guest . If you're talking about creating an SSD pool or adding drives as raw device-mappings (RDM's), disregard the rest of this answer. The preference there would be to run through the HBA versus RDM. Use SA...
3
5
3,221
2012-08-06T00:58:01.110
infrastructure
serverfault.com
1,100,905
How to make Nginx reverse proxy wait until upstream comes online?
I have a server app that listens on a UNIX socket, and Nginx serving as a reverse proxy. Now I want Nginx to wait until my app comes online when e.g. I deploy an update and restart it, without returning any errors to the clients. This is what I have in my Nginx config: [CODE] However, whenever my app is down Nginx retu...
Proxy timeouts are timeouts for the socket, but if the socket cannot be stablished they make no difference. I think the functionality you are after is provided as an extra in NginX Plus. That's a paid sofware.
1
1
1,363
2022-05-13T21:49:06.030
infrastructure
serverfault.com
409,062
Is it possible to write unit tests for embedded systems with no prior embedded programming knowledge?
I have this question for a long time that is it possible for someone with no prior embedded systems programming experience to write unit tests? I have good knowledge of other languages like JAVA, Python, C# and a few others. I can write unit tests in the mentioned languages. But I have never done any project in C or C+...
I had been programming embedded systems for a while. I think the key thing you need to write good unit tests for embedded systems is that you need to have a clean interface for accessing hardware. If your code accesses hardware everywhere, it is tightly-coupled and untestable. So it is related to software design knowle...
-2
6
269
2020-04-20T21:48:22.507
api_errors
softwareengineering.stackexchange.com
846,356
Proxmox. ERROR: Backup of VM failed - CT is locked (backup)
I tried to create backup of the container (LXC) in my Proxmox and I get the error: [CODE] I many search the Internet and found the advices with command: [CODE] But when I execute this command on my server: [CODE] I got error message: [CODE] How can I unblock my VM to create a backup?
I solved my problem. qm manages the qemu VMs while pct is for containers (lxc). For unlock containers need to use command: [CODE] in my case: [CODE]
5
10
25,106
2017-04-25T06:25:16.003
database_errors
serverfault.com
765,408
Can't delete LV (volume is used by another device)
We had a KVM machine running on a CentOS 6.7 server and have since deleted the VM. However, the logical volume that was assigned to the VM has remained on the system and I can't find a way to delete it. I have tried all the obvious commands with no luck, such as: [CODE] Extra commands output: [CODE] How can I delete th...
In this case ,it seems that the device-mapper is creating a mapping which counted as ‘in-use’. Check for the mapping via: dmsetup info -c | grep test It should give some output like [ in mycase logical volume is data_vol-data_logVol00 ]: dmsetup info -c | grep data data_vol-data_logVol00 253 0 L--w 1 5 0 LVM-9BAtA4lpzS...
4
3
13,346
2016-03-22T18:47:05.963
infrastructure
serverfault.com
238,053
Why MySQL is ignoring my indexes in a query?
I have the following query in a production database server(master): [CODE] Running EXPLAIN inside this server, this was the result: [CODE] this query takes long time , almost 40 seconds of execution and the machine resources use a lot of CPU above 0f 500%. Executing [CODE] , this was the result table. [CODE] This same ...
Once you format your output correctly, you can see that the definition of [CODE] differs between the two servers -- the column order is reversed in the second server, which makes it suitable for the query there.
0
4
271
2019-05-13T19:11:58.300
database_errors
dba.stackexchange.com
375,929
Tyan Motherboard - S28891 - continuous beep, still boots - can't figure out what the beep means
I have a server that has a Tyan motherboard - S2891G2NR - when starting up, it has a continuous beep (from the instant it powers on) - it still boots just fine, but the beep never goes away. I looked on the LCD readout and it says F6 - which looks like it might be normal (Manual says F6h means "Clear Huge Segment" not ...
Fixed it - and it was a really dumb 'problem' - turns out one of the power supplies (it has two) was not plugged in - this was causing the alarm.
2
1
1,113
2012-04-02T14:27:44.073
infrastructure
serverfault.com
10,065
How to apply K-Medoids in many CFG?
I am having around 1000 DAG(Directed Acyclic Graph) of different files showing java.io.BufferedReader usage. Following is representation of one of the graphs [CODE] I want to cluster these graphs.I am trying to implement K-Medoids. How to start with K-Medoid implementation? How can i find distance between two graphs?
K-medoids is not designed for graphs since k-medoids relies on Euclidean distance metric. It would be useful to cluster graphs with graph-based algorithm, such as spectral clustering .
2
0
43
2016-02-02T09:38:57.447
airflow_errors
datascience.stackexchange.com
824,311
Nginx proxy response time is very slow
Recently we added nginx in front of varnish for ssl offloading. We were about to rewrite all our http requests to https. But then we found out that there was a significant increase in response time even for the http calls when it is served by nginx. Whereas the same request served by varnish without nginx the response ...
Anything in the error log? Recently had an issue where the system was running out of file handles because it was buffering every request and upstream keepalives weren't enabled. I wouldn't have thought you'd have these problems from those settings though. Don't know what your hardware looks like but 700 SSL req/s a sec...
3
2
21,082
2017-01-05T07:32:08.947
infrastructure
serverfault.com
1,019,913
several error for pvcreate and lvcreate
I am getting the following error [CODE] what should I do to solve this ? how to find what is wrong ? some info that could be useful [CODE] and also I added this in a filter (found here https://access.redhat.com/discussions/2423461 ) [CODE] it did not work and I got the same error. I also tried to fdisk it but I got thi...
The entries in [CODE] are LVM logical volumes. That is not possible to create LVM volume on existing LVM volumes. You can only use physical disks like [CODE] or physical volumes, like [CODE] to create LVM physical volume. For example you have 2 disks [CODE] and [CODE] , so the correct syntax: To initialize disks as a P...
0
1
2,542
2020-06-03T18:58:30.073
infrastructure
serverfault.com
286,983
Lightweight DNS Server
I am looking for a very lightweight DNS daemon to run on my CentOS server. It will only be handling a maximum of 5-10 domains and there won't be many queries to it. I have looked at BIND and TinyDNS and a few others but I am stuck on what to use. I am fairly new to DNS configurations in terms of zones etc, although I k...
You don't seem to need a DNS server for what you have described. Your registrar should provide nameservers - simply point your domain at your at your server's IP address (add an A record). You can then deal with the subdomains on your server without a nameserver (e.g. add virtualhosts in Apache or servers in Nginx). Ad...
1
2
1,544
2011-07-05T00:39:27.313
infrastructure
serverfault.com
109,430
Learning to Rank with Unlabelled Dataset
I have folder of about 60k PDF documents that I would like to learn to rank based on queries to surface the most relevant results. The goal is to surface and rank relevant documents, very much like a search engine. I understand that Learning to Rank is a supervised algorithm that requires features generated based on qu...
There are different ways to look at this: You can apply a totally unsupervised method, like computing a TDIDF vector for the query and then ranking according to its similarity (e.g. cosine) against every document. This requires no training at all, but you can't even evaluate the method. You can use an already implement...
2
1
189
2022-03-28T13:48:42.630
data_quality
datascience.stackexchange.com
12,773
Is the GoF book still the one to read?
Possible Duplicate: Is there a canonical book on design patterns? I'd like to read a design patterns book. GoF for sure is the one to read. But after 15 years is it still valid, I mean isn't there an updated one? Something like "Charles Darwin On the origin of species" is a very important book, and some main concepts a...
I recommend reading the Head First book first, as it does a better job of explaining why design patterns are needed. After that, you can use the GoF book for examples and as a reference.
22
18
12,196
2010-10-18T18:47:37.923
data_quality
softwareengineering.stackexchange.com
247,240
PostgreSQL: cast row to type
I read: Use composite type to create new table I have a table called [CODE] , e.g. representing objects with lat. and long. coordinates. In another table, I declared a column of type [CODE] (just for fun, not trying to be smart), i.e. [CODE] And now I'm asking myself what this means and if I could store a [CODE] object...
And now I'm asking myself what this means and if I could store a locations object in there. Yes, you can. (But there are not many great use cases for that.) This does not do what you seem to think it does: [CODE] [CODE] is already a row type. By wrapping it into [CODE] you create a record containing a column of type [C...
5
9
13,821
2019-09-07T03:16:57.023
database_errors
dba.stackexchange.com
458,993
What are the data link protocols for cellular networks?
What are the link layer protocols for cellular networks? There are several platforms for high speed cellular networks. From GSM, to GPRS, W-CDMA, HSPA, LTE, etc. I (mostly) know about the physical details of radio transmission from what I studied at grad school (BPSK, QPSK, MIMO, Fading, etc.), and also the software de...
The 3GPP specifications are free. In fact, a lot of the telecommunications specifications are free. They are often patent encumbered, but they are free for download. Some specifications, unfortunately, cost a lot of money. Anything from Telcordia is generally priced in hundreds of USD :( Alas, a lot of similar informat...
14
3
2,581
2012-12-18T11:04:45.983
infrastructure
serverfault.com
1,076,887
pfSense NAT to server in a second LAN subnet behind an internal second router (not working)
I have a pfSense firewall/router that is exposing some services to my public ip. This is working fine, as long as the service is on the primary LAN subnet ( [CODE] ), let's call it LAN-A . E.g. this works: [CODE] I additionally have a second LAN [CODE] , let's call it LAN-B , that is behind a Mikrotik router on [CODE] ...
Found the issue (for later reference and possibly helps others): The described setup (OP) is ok on the [CODE] side. The problem was that the Mikrotik router should forward (forward chain) for the actual source addresses (i.e. the ones connecting to the external IP), which would be [CODE] and not only addresses [CODE] ....
1
0
2,155
2021-09-07T15:22:12.567
infrastructure
serverfault.com
779,183
id command is not showing secondary groups
During some days I've been working on a LDAP integration. Now, after configure almost everything that I needed, I came up with this last wall: The need of use secondary groups which are taken from the LDAP server. Behaviour: [CODE] Content of repo group (it's a LDAP group): [CODE] The scenario: OS: Centos 6.7 Packages:...
I'm confused, your groups use "memberuid: $username", which is RFC2307, so why dooes your config specify rfc2307bis and uniqueMember? I would propose to use rfc2307 (which is the default) and if that doesn't work, crank up the debugging and see what queries are made towards the LDAP server.
4
2
7,053
2016-05-26T13:41:07.793
infrastructure
serverfault.com
832,460
Set credentials/password for remote connection in powershell on Windows Server 2012
I have 2 servers (both Windows Server 2012 R2). They both have an Administrator account with password xxx and the 2 servers are in the same network (domain). I didn't install/configure those servers. I'm able to execute powershell commands from server 1: [CODE] I can also use this command [CODE] There pops up a windows...
You need to create a credential object with the [CODE] cmdlet, store it in a variable, and use it with your [CODE] . [CODE]
1
1
4,061
2017-02-14T10:53:46.947
infrastructure
serverfault.com
597,550
Apache logging and range requests
If an Apache server receives a single HTTP request with multiple ranges requested in the header, in the access log, does it log one entry per range requested, or just one entry like normal? The reason I ask is because we've been seeing a large number of log entries from certain user agents, which is similar to the issu...
A single request, even with multiple (potentially overlapping) ranges, should only log one entry. Check [CODE] and watch the traffic to be sure, but it sounds like you are getting large numbers of distinct requests.
1
0
311
2014-05-21T15:58:43.093
infrastructure
serverfault.com
716,566
nginx not running, but listening on port 80
I am unable to do [CODE] due to: [CODE] But if I then do [CODE] I get: [CODE] This is with nginx 1.8 on ubuntu 14.04, and using stop does not work (as it doesn't think it is running) I know I can just kill the process running on that port, but I need a more graceful way to fix the problem. I have confirmed that it is n...
Run [CODE] This kills the nginx worker listening on port 80, allowing you to run nginx.
1
0
3,352
2015-08-25T09:16:45.823
pipeline_ops
serverfault.com
126,309
AWS RDS databases & SSIS
I have 2 AWS RDS databases (A & B) and need to create a datawarehouse with star scheme and slowly changing dimensions within AWS. From a MS background it makes sense to create a SSIS package to run as a SQL job, which can collate the A & B databases and create dimensions and facts. AWS RDS does not have SSIS support an...
You can use several ETL tools for this, it could be on premies, or cloud based, final decision always depends from cost, corporate standards and many other moments good starting point as most close to Your request: Informatica Cloud - https://marketplace.informatica.com/mpresources/docs/Implementing_DWH_on_AWS_in_Hybri...
6
1
2,111
2016-01-14T23:16:29.727
warehouse_errors
dba.stackexchange.com
182,277
How do I cleanly remove apache2 server on ubuntu server and then reinstall?
I am having some wierd issues with Apache2 server on my ubuntu server. I believe some configuration files may have been tampered with. What is the easiest way to remove apache2 completely from my server. I am aware of how to install by using sudo apt-get install apache2 but, I just want to make sure I completely remove...
Run the following two commands: [CODE]
32
30
199,294
2010-09-17T16:21:31.457
infrastructure
serverfault.com
331,326
windows server 2008 vs ubuntu 11
I am working on implementing a custom server application that should be capable of handling a very large volume of traffic. I am aware that this type of question has been asked a lot, but I haven't been able to find a good answer. What I'm really looking for is for a server with given specs which OS will be able to han...
This question is really off topic and probably will be closed soon... I'd ask like this if I were you: This specific application Approximately this specific clients connecting Approximately this specific network transfer load for each client expected etc... Then you can answer me with O.S.'s and network's limitations.....
-4
1
280
2011-11-16T00:45:12.167
infrastructure
serverfault.com
19,804
Really slow DISTINCT ON query with multiple joins
Originally posted: https://stackoverflow.com/questions/11173717/expensive-query-on-select-distinct-with-multiple-inner-join-in-postgres The songs table has only about 4k rows, posts and stations have less. Running the query without the [CODE] fixes it. Running Postgres on Mac OS X Lion. [CODE] I tried a few things... f...
Because the [CODE] condition of the query involves only equality checks: [CODE] and then you have: [CODE] which is similar to [CODE] I would first try adding a compound index on (first the columns in [CODE] , then the columns in [CODE] ): [CODE] The ordering: [CODE] may be better optimized if you have the index as: [CO...
3
6
10,790
2012-06-24T00:19:27.383
warehouse_errors
dba.stackexchange.com
98,980
SQL CE thread unsafe - alternatives?
I have discovered that SQL CE is not thread safe: SQL CE objects are not thread-safe and are not thread affinitive either. If an instance of SqlCeConnection or SqlCeTransaction is shared across threads without ensuring thread safety, then that may lead to Access Violation exception.) I do need to share connection since...
No database product, no matter how high you move up the chain, will let your share connections and transactions between threads concurently. You will always have to serialize access to a transaction/connection. You are asking for a non-sense requirement. One thread is going to commit what the other just rolled back? Th...
2
3
1,775
2010-01-03T11:03:17.677
database_errors
serverfault.com
111,441
MySQL growth 500k records/day
Im not a DBA however am an infrastructure guy used to installing and configuring database servers such as MSSQL, MySQL, MongoDB etc... I have a MySQL database which is being used for archival of building systems data. Once a night, the building management system will archive its data which results in around 500k rows o...
MySQL can handle it, but not without some care. 12,000 tables is a red flag. Each table is one (or more) OS file. This large a number, especially if in a single database, can cause sluggishness. Are the records merely written to the tables? Or are they used to "update" existing rows? I would load the 500K rows into a t...
2
3
410
2015-08-18T16:11:40.040
database_errors
dba.stackexchange.com
767,440
Nginx rewrite rule subfolder 404 error
I cannot figure out how should I setup my index.php file with Nginx rewrite rules that it will work like example below. If I visit the url it gives me 404 error not found instad echo 'hello'. URL: [CODE] /sub-directory/ from given URL actually is not real directory inside /directory/. If I visit the URL, i got 404 erro...
The usual way of doing friendly URLs in nginx is like this: [CODE] This configuration assumes that your [CODE] directive points to the directory where [CODE] is located. So, here nginx will try first if the file or directory exists in the real filesystem. If the file does not exist, then it forwards the request to your...
2
2
3,712
2016-03-31T22:35:01.997
infrastructure
serverfault.com
469,308
DNS Server resolves external address,when vpn dns should resolve internal address
We have a special situation where Juniper Network Connect is used as VPN connection. When the VPN starts it creates the network adapter. When the vpn closes the network adapter disappears. Each time the Juniper Network Connect vpn creates the adapter, the Win7 x64 pc automatically adds our internal DNS server as the DN...
We use a Juniper SA box as well (with Network Connect for some clients/users). First off, you shouldn't be manually changing anything on the virtual adapter itself, everything should be controlled by the Juniper SA box (using Central Manager). The NIC that is created is the tunnel nic that sets up the new default route...
1
2
4,116
2013-01-15T15:31:01.573
infrastructure
serverfault.com
318,843
Does the index in InnoDB and MyISAM keep amount of child nodes in B-trees?
Does the index in InnoDB and MyISAM keep amount of child nodes in B-trees ? If I have an b-tree index on (field1, field2) and we are dealing with MyISAM (to avoid issues with transactions, locking, etc), why not to store amount of child nodes on transition from one node into the child one in b-tree index ? Here is a re...
The B-Trees in MyISAM and InnoDB are radically different. MyISAM -- 1KB B-Tree blocks for indexes only. InnoDB -- 16KB B+Tree blocks for indexes and data. They are essentially identical, in that the "data" uses the [CODE] for indexing and ordering. If you push me, I can talk further about MyISAM, but you really should ...
0
0
96
2022-10-27T15:49:27.900
database_errors
dba.stackexchange.com
910,614
Point to new vmware view composer database
Small VDI deployment of about 80 desktops. There was a point in time we used Composer for building our desktops. Then, for the last few years we stopped using Composer in favor of Unidesk (now Citrix App Layer) for all desktop provisioning. I left Composer installed on the vCenter server. A month ago, I did a migration...
https://kb.vmware.com/s/article/2015112 This link solved my problem. I needed to connect to the ADAM database to remove a bad pool that was tied to the old Composer server. This allowed me to finally change the Composer server to the brand new one with the brand new database.
0
0
942
2018-05-03T18:47:47.997
pipeline_ops
serverfault.com
133,271
SQL getting IDs from one table with multiple entries in another table
In my database I have two tables: Persons and PersonAttributes. One Person may have several Attributes associated with it. What I would like to do is get a list of all Persons(/IDs) that have at least the specified attributes associated with them in the PersonAttributes table. For one attribute this can easily be done ...
Apparently, your [CODE] table is designed using the EAV model. This model has the advantage of being easily extensible: attributes are stored as rows, and adding new rows is easy. However, querying this kind of table is more difficult than those designed the traditional way (attributes stored as columns). Your solution...
3
3
8,595
2016-03-24T11:59:49.300
warehouse_errors
dba.stackexchange.com
122,521
How to set up JBoss with S3_Ping on AWS?
I'm looking into running clustered JBoss on Amazon Web Services (AWS). I'd like to try out S3_PING, i.e. making JBoss use an S3 bucket for dynamic node discovery etc, since no multicast is available. I found a piece of example config XML related to S3_Ping , but I'm not sure where in JBoss installation you're supposed ...
S3_PING still seems to be an experimental feature and that might explain the missing documentation... Anyway, you can configure S3_PING to the jgroups-channelfactory-stacks.xml that is situated in [CODE] . See JGroups Channel Protocol Stack Configuration in JBoss 5.1 Clustering Guide for more info on the contents of th...
2
2
4,744
2010-03-15T09:40:20.557
infrastructure
serverfault.com
367,917
Connecting between subnets
The scene: There are two subnets Network A is [CODE] via router [CODE] . There are two hosts, host [CODE] on [CODE] and [CODE] on [CODE] Both [CODE] and [CODE] have only one NIC, and none of them are directly on the [CODE] . Both [CODE] and [CODE] 2 can see the outside world fine, and can also be reached from outside. ...
192.168.1.1 can't be the router for the systems in subnet B. What is server B1 using as default gateway ? I assume it is 10.0.0.1 and that ought to be an interface on that same router. If it works for one host in A and not for the other my first guess is a firewall or access control list getting in the way somewhere. T...
0
1
138
2012-03-09T05:31:16.413
infrastructure
serverfault.com
254,381
What settings should I have for a VNC user?
I'm trying to set up a VNC server as per the directions in the following guide: http://help.godaddy.com/article/6012?locale=en#access Some background : The first problem I ran into was that there was no [CODE] file. I solved that issue by running the [CODE] as per these instructions: http://ubuntuforums.org/showpost.ph...
I tend to prefer running as a separate user from the web server for normal operation. When using VNC or any kind of GUI, it's going to expect that your home directory is writable. You'll need to create a user with a writable home directory to run VNC. Once that's doable, you should be able to start VNC manually or thro...
0
0
3,508
2011-03-31T22:36:40.930
infrastructure
serverfault.com
538,148
Which is the right synthax for restoring on Windows from Bacula?
I have a full backup of a Windows 2008 R2-64bit. This server has two disks, C: and D:. I'm too dumb to explain to Bacula (5.2.6) I want that what is labelled as "d:/" has to be restored to "D:\". I have read the docs, googled a lot, experimented all the afternoon, but I'm still getting a "d" directory at the root of dr...
Yes, difficult to find the write documentation for the restoring path, I also tried every things like dot (.), empty, but the correct answer is: / Bareos (or Bacula) will restore files in the original path.
1
0
50
2013-09-11T16:37:58.990
database_errors
serverfault.com
29,789
Powering netbooks with Servers
I have limited knowledge of servers. I had an idea that I wanted to get evaluated. With netbooks becoming cheaper, I was wondering if I will be able to do complex video editing and running heavy software on a server? For example, my netbook could be running Remote Desktop connection (on XP) to a dedicated server extern...
Video processing is an example of something you typically wouldn't do on a server. This is because typically you need to get the video to the machine (i.e. off your camcorder) which is very heavy on your network and servers don't have firewire. Also, you would need to transfer full frame-rate uncompressed video down th...
1
6
425
2009-06-22T15:07:50.803
infrastructure
serverfault.com
18,917
How can I get my LEFT OUTER JOIN to work in SQL Server 2008?
I trying to create a table with this school data in it? [CODE] Year, Month and Count of Days from one table "Calendar" and Referral counts from another table "Referrals". I'm not able to get the correct Days information since it is only counting the days that have referrals on them. I need all days that are school days...
This is just a guess, since without the data you're expecting even from the small sample data you've shown, or how you got to the results that you posted initially... [CODE]
-2
7
3,857
2012-06-06T22:30:56.563
database_errors
dba.stackexchange.com
256,205
Select where datetime is greater than other datetime which may not exist
I have a table with a field [CODE] of type datetime and a different table with a datetime field. I need the minimum [CODE] that is greater than the greatest datetime field from the other table which may not have any rows. If there are no rows in the other table, I just need the minimum eventtime. My query is [CODE] Thi...
Pull the [CODE] out of the subquery, to make it sargable: [CODE] And indexes: [CODE] That should be able to use both indexes to good advantage and take essentially zero time. If there is an issue with [CODE] not being a date, try [CODE]
0
1
4,821
2019-12-24T03:42:25.130
database_errors
dba.stackexchange.com
1,108,633
Google Groups for Business is not Delivering Msgs from Some Users to Group Members - SMTP Bounce?
This is a non-trivial problem. I've spent nearly 3 hours in chat with Google Support. This escalated to 2nd level and then internal support. It may be related to SMTP servers bouncing messages. I am not actually expecting a resolution from this message. What I hope is some SMTP admins can make suggestions on how to get...
@anx suggested using mailing list message checking site mail-tester.com. I tried it and then MailGenius. This lead to resolution of the problem. A URL that Google's standard footer injects into the message is a link to the message in the group's web interface. In our case the URL is 163 characters. Messages with URLs l...
1
0
456
2022-08-19T21:14:44.737
infrastructure
serverfault.com
670,858
SSSD process won't die
Thanks for taking the time to check out my problem. I'm currently working on an issue that has only appeared once before. Back on Jan 3rd when this first appeared we were able to reboot the server and everything seemed fine, but now it is back. This is a production database system, so finding a window to reboot can som...
I have run into issues with pam_ldap and sssd running on the same system. If you want to stop using sssd with pam you should make sure that you run: [CODE] which will add LDAP to pam and then run: [CODE] which will delete the sssd setting in pam related config files in /etc/pam.d/ To make sure that sss is not used you ...
6
0
2,445
2015-02-23T22:58:56.303
api_errors
serverfault.com
168,761
Classes & Defines in Puppet
Although I know the immediate solution to a problem I was facing yesterday (thanks to the folks over at IRC #puppet), I still don't understand how it solved the problem, or rather what's the fundamental difference between classes and defines in this particular scenario: The original define, which was incorrect: [CODE] ...
Resources in Puppet have to be unique, i. e. have to have a unique name. In the described case, you had the resource [CODE] in your definition and every time you call [CODE] (it's basically the same as including a parameterized class), the resource [CODE] will also be included and thus the parser finds two or more reso...
5
6
4,978
2010-08-10T05:17:04.133
pipeline_ops
serverfault.com
527,871
Install ssl on linux centos 6 apache 2.2 server
I have to install SSL on my server centos 6 apache 2.2 server. First I have genetraeted CSR files as directed on below link [CODE] and sent the generated files to my client. client has purchased ssl certificate and sent me below files. [CODE] Can anyone please let me know what should be next steps where I have to uploa...
You need to install mod_ssl [CODE] and then modify /etc/httpd/conf.d/ssl.conf [CODE] Note: If the key is not combined with the certificate, you must specify SSLCertificateKeyFile directive to point at the key file. You can get more info at http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
-1
2
3,569
2013-08-01T08:18:00.323
api_errors
serverfault.com
413,078
fail2ban fails to ban most of the time, why could that be?
It does work, like 5 times out of 3000 or so. Running on Debian installed with apt-get and added only following jail.local file cat jail.local [CODE] When I run [CODE] I get: [CODE] However my logwatch says that only 5 bans happened. Logwatch file: [CODE]
I actually figured out what it is, or rather remembered. I don't have iptable installed on the box so the ban never worked. Now I switched to host.deny that should work
3
4
325
2012-07-31T22:26:26.377
infrastructure
serverfault.com
759,775
CNAME to Heroku app results in 301 redirect
TL;DR : I want my custom domain to be shown in the address bar, not the CNAME. I have an app hosted on Heroku at try-elixir-phoenix.herokuapp.com . I bought the domain from Namecheap, and configured the CNAME entry there: [CODE] I also configured the custom domains in heroku: [CODE] But if I curl my custom domain, I ge...
It turns out that the redirect was happening at the app level. Heroku's support confirmed that their router doesn't add any redirects.
0
0
2,163
2016-02-25T15:16:13.770
infrastructure
serverfault.com
262,444
Could not start WAL streaming, replication slot is active
I want to set up replication between two of my databases. One is an Aurora database in PG 10 the publisher, and the other one is an RDS database in PG 10. But I'm facing an issue, I have 500 GB of data to transfer, so I'm adding table one by one to the replication and waiting for the status to be ready before adding an...
The issue was that the [CODE] were too low... I changed the value from one minute to ten minutes and it works.
3
4
6,847
2020-03-21T17:44:02.450
database_errors
dba.stackexchange.com
647,968
Exim permissions when sharing a dovecot mailfolder
Using dovecot on debian wheezy, I have just set up a shared mailfolder inside another user's mail folder to be able to share the contents of this mailfolder with some other users, wthout duplicating incoming mails: [CODE] I then made a symlink inside my mailbox to this shared mailbox: [CODE] I set the permissions wide ...
The permissions are set by the [CODE] and [CODE] settings in the [CODE] transport. The [CODE] as well. You may want to look at using a shared namespace in Dovecot to allow sharing the folder.
1
1
683
2014-11-29T16:38:12.470
infrastructure
serverfault.com
697,811
I’m unable to get GPO Security Filtering to work for users
I’m unable to get GPO Security Filtering to work for users (called TestUser) and custom security groups (called TestGroup.) It does work for Authenticated Users or if I add the Computer. I did a gpresult on the client computer and confirmed that TestUser lists TestGroup. I also made sure Read and Apply Group Policy wer...
I think that the easiest way (but not the only way) to accomplish what you have described above would be to use loopback processing. Create a GPO that is linked to the computer's OU and enable loopback processing with the merge option. This is done in the computer settings section of the GPO. In the user section of the...
3
0
704
2015-06-09T23:34:24.297
infrastructure
serverfault.com
352,698
ZyWALL USG 200 Random crashes
we have an ZyWALL 200 at our work, and for a long time (I'm new here) it's been crashing and restarted once in a while at random moments, mostly during officehours (but not only officehours). The only theory we have about these crashes is that the log gets filled, the device crash due too no diskspace left, removes the...
I'm having the same problem. What is the Firmware you are using? My USG as a Fiber (4Mb/4Mb) connected to Port1 in a valn from operator. I'm using the latest firmware avaiable. Anti-virus, ADP, IDP, Content Filter and Anti-Spam are turned off. The Zywall is connected to a 5KVa UPS, with other equipments that don't have...
1
1
1,216
2012-01-23T12:44:50.597
infrastructure
serverfault.com
792,394
Upgrading curl on centos 6: libcurl-7.50 requires libnghttp2
I am trying to upgrade curl but keep on getting this error: Package: libcurl-7.50.0-1.1.cf.rhel6.x86_64 (CityFan) Requires: libnghttp2.so.14()(64bit) I am not sure how to get this required package? I'm using [CODE] repo
You're using the third party city-fan repository. This repo has dependencies which are in the EPEL repository, one of which is libnghttp2, so you must have EPEL enabled to use city-fan.
5
7
14,240
2016-07-28T05:14:19.160
infrastructure
serverfault.com
967,794
Fail2ban bans IP, but not until it already has hundreds of requests
I have a jail that picks up on a specific user agent. It eventually bans it, but it still gets by with several hundred requests. Here is the relevant info (unless anything else is needed): Ban action in /etc/fail2ban/jail.conf [CODE] Here is the entry in /etc/fail2ban/jail.local [CODE] I have a shell script that groups...
There is an interval of N seconds between log scans. It is something like 1-5 seconds. Fail2ban blocks after [CODE] or N seconds , which ever comes last.
1
1
1,236
2019-05-17T15:07:21.587
infrastructure
serverfault.com
91,683
Completing a project successfully despite hostile management?
I work for a subsidiary of a large world wide company. This was not a subsidiary from the beginning, it was a company bought by the larger company. We seem to be heading toward a death march and I'm wondering if there is anything I (or my team) can do to either resolve the management problems or complete the project in...
I would suggest you start looking for a job anyway, and try your best to find a better place, while keeping up the best work you are able to do on your current project. @Larry's suggestion about focusing on what you expect from your new workplace is good. However, you must carefully prepare an answer to why you want to...
52
36
3,728
2011-07-10T12:13:37.907
api_errors
softwareengineering.stackexchange.com
114,313
MySQL performance, UNION then JOIN, or JOIN on each part of the UNION?
Which does the optimiser handle better? [CODE] Or [CODE] I would imagine in simple cases that it doesn't matter much, but I wondered what recommendations you guys may have. I don't want to experiment much here because of the time taken to actually write test queries and even then they'll be very specific cases. I'd lik...
It depends. Let's dissect each scenario. [CODE] breaks down into create tmp table do first select into that tmp (n1 rows) do second select into that tmp (n2 rows) dedup because of ALL -- change to DISTINCT to skip this step (n3=n1+n2, or fewer rows) join n3 times And... [CODE] breaks down into create tmp table do first...
2
2
5,595
2015-09-06T22:30:44.113
database_errors
dba.stackexchange.com
2,489
Reduction of multiple answers to single variable
The questionnaire for the data is here The first question takes multiple entry for the same question, I want to reduce this to a single variable. How do I do it? The clean data is available here . NB: The Column CompuPlat has missing values. part of dataset [CODE] I want to club all of them in a variable CM
The variable represents the answer to the first question. One straightforward way is to allow for all possible categories in this variable. For example, if there are 5 options in this answer, you will have to treat it as a categorical variable with 2^5 = 32 categories. However, the number of categories increase exponen...
4
2
137
2014-11-18T09:07:00.867
data_quality
datascience.stackexchange.com
922,787
Certbot misbehaves by creating a certificate for a domain with "www"
This time when I used certbot it created a certificate for "www.$website" instead of $website. This is not what I need. Here it is: [CODE] Why did it create one for "www" instead of the bare domain? On all my own servers this exactly command has always created a cert. without "www" - this is what I need. I even tried y...
If you're trying to obtain a cert without the www subdomain, remove [CODE] from your command. That part of your command is asking for the www subdomain. If you're trying to set the name of the resulting certificate file use [CODE] , but keep both [CODE] s.
0
3
486
2018-07-20T04:43:31.543
infrastructure
serverfault.com
924,109
New computers can't connect to the network
Good Morning, We have a business environment in which we have 3 Cisco 3850 PoE stacked and We manage our DHCP through our DC server. Last weekend our UPS had a failure and switched off all outputs, so all the equipment has been reset since then. On Monday I started noticing that first, I lost ping to a card reader that...
We had what sounds like the same issue. Drove us crazy for 3 months. Turned out it was some sort of fast networking setting in the bios
0
0
68
2018-07-30T13:55:56.283
infrastructure
serverfault.com
25,568
How can I view a website on my server without assigning a domain name to it?
I have a server with vhosts conf that looks like this: [CODE] A typical vhost conf right? Well I also need to develop a few other sites on the server and these sites don't have domains hooked to them yet. How can I view them without a domain pointing at them? I am guessing maybe the IP address and a port, but not sure ...
If you're going to use named virtual hosts, you need to assign some name to the server. In your example, the host will be addressed by the name [CODE] (from the [CODE] directive). You can try to contact your server by IP address directly by doing something like [CODE] but that won't cause Apache to trigger the named vi...
4
7
10,722
2009-06-14T19:57:45.783
infrastructure
serverfault.com
276,745
Postfix/Rejecting mails
How do I make Postfix to reject all mails if the client is not authenticated and to sender is @mydomain? Is the an easy way to do this? Max
Your main.cf should contain this line: [CODE] But make sure that the "client" is not in the network defined by [CODE] . Otherwise it will bypass the authentication test.
1
1
114
2011-06-03T15:17:34.283
infrastructure
serverfault.com
315,573
Sudoku Solver BackTracking vs Simulated Annealing
Before you read any further, assume you know what sudoku game and how to go about solving it. So I have created a sudoku solver with brute-force: The algorithm goes as calculate(through an simple rule checking) all possible values of each cell that is empty. Count empty cells If any cell has only one possibility, set t...
Is my simulated annealing algorithm correct? This is not Simulated Annealing , what you describe is called Stochastic Hill Climbing . SA will also accept new configurations with a certain probability when they are worse than the old configuration (and lower that probability over time). You did not specify how exactly y...
2
2
1,551
2016-04-13T05:27:24.577
api_errors
softwareengineering.stackexchange.com
654,300
Windows Image Deployment - WinPE - Execute Command After Server Image Deployment but Before WinPE Reboot
Simplified version: Execute command in WinPE after server image deployment but before WinPE reboots. Previous title: Windows Image Deployment - WinPE - Move Dynamically Generated XML via HTA to Windows Server I have a custom ISO with a boot.wim and install.wim for deploying Windows Server to our environment. Our enviro...
I am using MDT and I inject KMDF 1.11 into my Win7 image at the Postinstall phase. I believe this would work for what you're attempting. You may have a bit of trial and error to get the drive letter to populate. I would hazard a guess that the target OS at the Postinstall phase is X:.
0
0
186
2014-12-22T22:55:17.180
pipeline_ops
serverfault.com
122,014
Correct way to set up office network - 8 workstations, a file server and a staging server
Our office had this old school windows 2003 domain setup, our server caught fire, and now we are looking to do it right from scratch. Here is what we need : 5 PC and 3 Mac workstations for web development, they will each have WAMP/MAMP setup on them, managed by their developers. We will have a file server for assets, a...
You seem to have everything you need for the most part. I would probably get a new router that will support NAT, and I would suggest a good old Linksys WRT54G. Replace the firmware with the DD-WRT That will give you great stats to figure out what is causing the slowdown. The rest of your problem seems to just need some...
0
1
646
2010-03-12T20:18:25.187
infrastructure
serverfault.com
1,103,358
htpasswd sets incorrect password when the password has special characters
The Problem I am attempting to update passwords for a large list of users using [CODE] . I am using a csv file to pull in the new passwords. When the script runs it appears to successfully update the users. However, users are unable to log in using their new passwords. here is the script: [CODE] If I run the script aga...
Posting in hope of helping someone. It turns out the problem was not with the script. The csv file was not clean. The csv was generated from Excel in a Windows environment. The file had dos line endings - \r I added the line below before the line that calls htpasswd [CODE] Here's the working code: [CODE]
0
0
905
2022-06-15T15:07:22.257
infrastructure
serverfault.com
149,330
Good architecture for user information on separate databases?
I need to write an API to connect to an existing SQL database. The API will be written in ASP.Net MVC3. The slight problem is that with existing users of the system, they may have a username on multiple databases. Each company using the product gets a brand new instance of the database, but over the years (the system h...
Unifying the data Since the authentication was independent between the five projects, you may encounter several inconsistencies: Different identifiers. For example if the user identifiers are e-mail addresses, the same person can register with [CODE] for one project, [CODE] for another one, and [CODE] for a third one. ...
5
3
589
2012-05-20T01:51:12.523
api_errors
softwareengineering.stackexchange.com
414,960
What are the best practices for handling errors in multi-step actions between client and servers?
I have a website which uploads job postings to my API, there are multiple steps to doing this: Upload a logo image to file storage. Insert data about the job posting into a database. Process a payment with a third-party provider. Send an email through a third-party provider. In general, you can imagine other steps bein...
This multi-step process is a transaction, moving from one consistent initial state ("nothing happened") to some final state ("job posting done"), with intermediate steps that leave your app in a (possibly) inconsistent state. You should not delegate the transaction handling to your client, especially not split the proc...
4
1
927
2020-08-18T11:04:17.923
api_errors
softwareengineering.stackexchange.com
292,437
Apache Mod_Rewrite: Aliases and CGI
I am trying to get Apache to run a cgi executable in my "project" directories. It should respond to HTTP requests at: [CODE] However, it should not respond to http requests at [CODE] To that end, I have created an Apache configuration file which contains: [CODE] The cgi program is invoked when I make http requests to l...
Try to escape slashes in the rewrite rule and drop the first slash: [CODE] If this doesn't work you can also enable the Rewrite Log, Here's a nice tutorial: http://perishablepress.com/press/2006/11/28/roll-your-own-apache-rewrite-log/ You can post the relevant log entries so we can see These are the directive from my h...
1
0
268
2011-07-20T20:28:41.490
infrastructure
serverfault.com
723,564
static resources not found when mod_rewrite
I am trying to beutify the url so I have created the following .htaccess file: [CODE] Everything looks fine when request: [CODE] but when request is: [CODE] the page is not found. I added a new line to .htaccess to allow the ended slash as follows [CODE] and [CODE] works but the static resoruces are not found: [CODE] I...
This do the trick: [CODE]
1
1
247
2015-09-20T10:10:52.113
infrastructure
serverfault.com
693,189
SLES 11 SP3 with Bootable Driver Kit - unable to fetch image error
I'm trying to install SLES 11 SP3 using Cobbler but it failed after downloading the NBP file. The error on the screen is "Unable to fetch TFTP image". I have a similiar setup for SLES 11 SP2 and it is working fine. The difference with this setup is I am installing SLES 11 SP3 on a IBM x3500 M5 server, which requires a ...
Sorry for the late response, this is how I got it to work. 1 - Mount SLES 11 SP3 to /sles11sp3 2 - Mount the bootable driverkit to /bdk 3 - Copy the grub.efi file into /var/lib/tftpboot/ directory. [CODE] 4 - Copy the bootx64.efi, kernel and initrd, and grub.cfg into /var/lib/tftpboot/uefisp3/ directory. [CODE] All of ...
1
0
1,802
2015-05-20T02:24:55.443
api_errors
serverfault.com
33,830
Do we need the Preprocessing step on both Test and Train data sets?
I have seen many people handle the missing or inconsistent data in both their test and train data sets. Sometimes they handle only the train data sets and sometimes they merge the train and test data sets and handle the missing parameter. So, what is the best approach and What's the difference of these two? Does any ap...
There are a few things that you need to be careful with here. You can do certain things when preprocessing data or performing data augmentation that can be applied across an entire dataset (train and validation). The main idea is not to allow the model to gain insight from the test data. Time-series example Missing dat...
3
2
2,469
2018-06-30T14:36:10.347
data_quality
datascience.stackexchange.com
448,320
Is there an algorithm for matchmaking?
I am interested to know if there is an existing algorithm to start a multiplayer game, for example, poker. What steps do we need to take when the player enters the "matchmaking phase"? I expect something like: Player N enter the matchmaking room. The player is saved in a database in "Waiting" status. Every 10 seconds, ...
I'm hesitant to call this an algorithm but there are two basic approaches to this kind of thing: polling and events. What you are describing is polling: on some sort of schedule, you check and see if there are enough players to start a game. The other approach is event-based: when someone joins you check to see if ther...
11
24
5,894
2023-10-25T20:13:40.793
data_quality
softwareengineering.stackexchange.com
1,054,528
Strange errors on apache error log
Frequently I am receiving core errors messages like this one below on my apache2 server, I really don't know why it's happenning, is this a bot, maybe? Are there an way to discover this issue? [CODE] Thank you.
Looks like a buffer overflow hacking attempt to me. Similar looking encoding was mentioned here: https://security.stackexchange.com/questions/86406/what-encoding-could-this-be-looks-similar-to-base64
1
0
136
2021-02-21T21:24:45.587
infrastructure
serverfault.com
605,460
How can I set up an Amazon RDS for PostgreSQL database to act as a replica to a non-RDS PostgreSQL database?
I'm trying to set up an PostgreSQL database on Amazon RDS as a replica to another PostgreSQL database that lives on a regular server. Most of the instructions I've found online require shell access so that you can copy over a bunch of data files that can't be manipulated through the psql shell. Amazon RDS for PostgreSQ...
At time of writing no, you can't. See: https://dba.stackexchange.com/q/61305/7788 https://dba.stackexchange.com/q/66372/7788 Please nag them, both on the forums: https://forums.aws.amazon.com/message.jspa?messageID=547192#547192 and via any AWS sales/support contacts you may have.
6
4
7,443
2014-06-16T13:17:21.390
database_errors
serverfault.com
516,320
RAID Recovery after Firmware issue
This may be a duplicate but I think the situation is different. We were having problems with a HP MSA2000 SAN, speaking to support they suggested that we upgraded the firmware to the latest version and clear out one of the VDISKS which had a problem. Patched the firmware and then 3 days later removed the VDISK, however...
I'm curious about the initial P2000 problem that prompted this. Which P2000 model/generation/interconnect do you have? I'd probably accept this as a loss... While the data may still be on disk, you need to reconstruct the array. A good data recovery firm should be able to reassemble this and may have access to the nece...
5
2
409
2013-06-17T12:23:03.483
data_quality
serverfault.com
1,058,323
Clear cached authentication for network share
Context: I map a cifs share in windows using NTLMv2 authentication, as the legacy server doesn't support kerberos. I am not prompted for login: [CODE] This is fine until I change my password. Windows seems to continue to attempt to connect with the old credentials, even after logging off and back on or restarting multi...
The credentials are probably stored in the Credentials Manager , delete the old credentials and Windows will ask the password again (or edit the credential and provide the new password in the Credential Manager directly).
1
1
5,361
2021-03-25T18:02:49.190
api_errors
serverfault.com
557,350
Parse an RPM name into its components
Is there a name-parsing tool that is part of the official RPM tool package? I have a list of filenames. Each is the filename of an RPM package. I don't have the actual packages, just the filenames. For each I need to extract the package name and version ($NAME and $VERSION). The reason I need this is I am writing a scr...
I've been told the official way to do what I'm seeking is in Python: [CODE] I've written a short Python program that does what I need. I will offer the script to the rpmdev project for inclusion.
22
16
21,165
2013-11-25T20:02:48.050
infrastructure
serverfault.com
500,222
Kernel 3.8, Apache2 with WSGI : INFO: task apache2 blocked for more than 120 seconds
We have upgraded our Kernel from 2.6.32 to 3.8.7 on a Debian system. We have a sharing with NFS to get the data for Apache2. And Nginx serves only static files as a proxy. Since we have installed the Kernel 3.8.7, the load average sometimes grows (to 40 and more) and we find errors written on '/var/log/messages'. This ...
We can see from the call trace that Apache tried to delete a file, and got hung up waiting for a lock to be released. Since the files are on an NFS server, you should be looking at the NFS server and the network connection between the web server and the NAS. One thing you may want to make sure of is that you have expli...
2
1
4,776
2013-04-17T14:31:19.230
infrastructure
serverfault.com
625,395
Exchange Server/CCR/Primary To Secondry Moved Failed
Operation System : Windows Server 2003 Ent 64bit Exchange Server Version : Exchange Server 2007 SP3 We had TWO Mail Boxes Server (PHYSICAL MACHINE) with CCR, Few Days back one of our Secondary Mail Box Server Machine Gone Faulty and we ready another Mailbox Server but this time on HYPER V VM , Machine works fine as Sec...
Kindly ensure the Exchange Rollups and OS Updates on both of the Mailbox Servers are the same and let me know ... since this issue may be because of the different patch level of mailbox servers
0
0
330
2014-09-01T06:08:54.580
database_errors
serverfault.com
440,155
UnsupportedOperationException vs Interface Segregation
This is a follow up/related question to a previous question I asked regarding Interface Segregation. I'll build up on the same example, providing a bit more context. In the game I'm developing, a card is structured in the following manner: A card must have a primary ability A card may have an "ally" ability. If it does...
It is typically a bad idea to have “optional” methods in an interface that throw an exception when invoked. Yes, the Java standard library happens to do this, but this is widely considered to have been a mistake. Thus, your distinction between [CODE] / [CODE] / [CODE] interfaces is much better. Now, consumers can inspe...
9
20
1,935
2022-08-01T10:45:30.477
data_quality
softwareengineering.stackexchange.com
104,279
2000 DC and Terminal Server in-place upgraded to 2003. RDP access is now broken
This is the latest: The Terminal Server and TS Licensing features have been uninstalled from the upgraded server. RDP access is allowed in the Remote tab. (Check out the comments on the first answer for that detail, if necessary.) Still, RDP access is broken. I found out that the Terminal Server service in the Services...
If you want to use it in remote administration mode (which is a term that was deprecated in W2K3) then simply uninstall the Terminal Services and Terminal Services Licensing components from the server and from your environmet (if TS Licensing was installed on another server).
1
1
406
2010-01-19T18:40:56.373
infrastructure
serverfault.com
193,478
Database Design when Admin and Employee have similar roles except Admin can see all the other Employees Data
We are building a system with concept of Admin and Employee. so basically Admin is an employee with all powers and can view all the data created by other Employee. [CODE] There are other tables Roles and EmployeeRoles which I thought were not required here. Approach 1 : Now, when the Admin logs in to see all the Action...
Maybe have separate table for Vendor_id, Admin_id, employee_id. You could join on isnull(admin_id, employee_id). That way, if the user has an admin_id, they could see all the records. If they don't, they would see only the records for their employee_id.
2
0
564
2017-12-19T05:42:32.207
warehouse_errors
dba.stackexchange.com
92,495
Help needed in interpreting the loss, val_loss vs epoch plots for an autoencoder training?
I am training a variational autoencoder and I am getting a loss-plot as follows: Rigt after epoch 224, val-loss overtakes train-loss and sort of getting bigger but at an extremely slow pace as you can notice. I trained for 300 epochs. Any opinion about the training. I don't think it is overfitting the data. But I want ...
You tagged your question with [CODE] , so I will assume that this is a variational autoencoder. In that case, your loss has 2 components: reconstruction error and KL divergence of the bottleneck distribution, probably balanced with a weight $\beta$ . You should plot both components separately in order to understand how...
0
1
315
2021-04-02T19:01:45.453
data_quality
datascience.stackexchange.com
63,056
Replication from EC2 Master to RDS Slave - Connecting to master
I am migrating my company's database from an EC2 instance to an RDS instance. I have already migrated a snapshot of data and am now trying to set up replication to get the data that has been added since the snapshot. I am following the instructions at this link: http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MyS...
Since you control [CODE] on EC2, you have two options, neither of which require restarting mysql OPTION #1 : Change old_password Protocol for EC2 Stop replication to the RDS Slave As root@localhost run this on EC2 : [CODE] Start replication to the RDS Slave OPTION #2 : Lower the Security for EC2 Stop replication to the...
3
2
3,382
2014-04-12T03:37:20.690
api_errors
dba.stackexchange.com
733,640
Users Denied Write Access Win 2008 Server
I recently transferred files from a Windows server 2003 (servold) to Windows server 2008 r2 (servnew) The new server has two physical drives. User files were stored on d:\ d:\ was shared (right click on drive | sharing | advanced sharing) as "files" Examples of paths for staff and student directories d:\users\staff\mjo...
The problem sounds more with the programs they're opening them with, especially if they are Office documents. Is "protected mode" on when they access them? This would prevent saving, open in read only, etc.
0
0
56
2015-11-03T17:30:38.030
infrastructure
serverfault.com
904,904
Terraform: Leave something alone
I'm using Terraform with AWS. Currently in my setup, I have an Auto Scaling Group used in conjunction with Code Deploy. When I deploy into Code Deploy, it copies the initial ASG, and deletes it. The issue is that when I run 'terraform plan/apply', it wants to recreate the original ASG, and repoint my Code Deploy group....
In the hopes this gets marked as answered, the comment by @mblakele is an effective solution to this issue. The ignore_changes lifecycle rule can affect the state enforcement of a resource such that Terraform will only create the resource and destroy it if the TF config doesn't change. This can be added to a given reso...
3
1
278
2018-03-28T01:43:34.667
pipeline_ops
serverfault.com
308,183
Expanding existing column results in 'minimum row size would be XXXX' error, but creating a new table with the desired data length does not
I've encountered this problem a few times over the years and know how to work around it, however I am not sure why it occurs in the first place. Let's say we create this table to start: [CODE] If we then attempt to expand [CODE] to 20 characters... [CODE] ...we get the error: [CODE] Alternatively, if we create a new ta...
The scenario that you described is totally normal. The maximum size of every single row is per page is 8060 bytes. myTable1 is less than the limit, so will create successfully. But when you try to make the column larger, the sum of size meets the maximum and the mentioned error occurs. But it does not mean that a row o...
3
0
457
2022-03-02T16:46:37.407
warehouse_errors
dba.stackexchange.com
679,636
Apache on CentOS 6 Unresponsive
Twice this morning, somewhere early this morning, and then again around 8-9AM, our Apache server was unresponsive, though the service showed as running. We reset it with service httpd restart, which seems to resolve the issue. Before this, our server has been up and functional for about three months. I read another art...
You will need more information to debug this, such as the number of clients connected at the time and which pages are being used at the time of the freeze. Often, MaxClients is only reached when an application-side bug is having problems-- clients will request a page, and the application will take a long time to respon...
1
0
597
2015-03-31T17:48:47.673
infrastructure
serverfault.com
440,147
How can I use HTTPS with *.domain.com AND domain.com?
Possible Duplicate: How to have a certificate which works with both example.com and subdomain.example.com in IIS? I've been looking for a solution to the following problem for a few days now. I have domain.com for which I have bought and installed a wildcard certificate so now I can provide secure access to www.domain....
Yes, you can have more than one domain name covered by a certificate. It can be done with the "Subject Alternative Name" x509v3 extension: [CODE] Certificates issued by StartSSL do that automatically (with them, the difficult thing is not to have the top-level included)
0
2
1,143
2012-10-19T09:59:38.120
data_quality
serverfault.com
988,711
Elasticsearch pods cant get volume
I used the official elasticsearch helm chart onto my GKE cluster. However, the pods cannot start with the error: [CODE] . I can see that the persistent volume claim has been created in the GCP console, but the status is Pending, since forever. I am not sure why is the volume claim stuck. Any ideas?
I figured this out. My cluster did not have a storage class ssd.
1
2
395
2019-10-20T09:18:15.573
pipeline_ops
serverfault.com
322,380
On-site campus infrastructure migration to Amazon EC2. Feasible?
After a recent power outage, we've been re-evaluating how we can most effectively provide, maintain, and support our IT resources. One idea we've been considering is to move our non-critical infrastructure into the cloud. For example, we could maintain only the following services on-campus: DNS (perhaps just a forwarde...
Potential catches/hurdles: Bandwidth : When you talk about moving bandwidth-intensive services like database and file servers offsite, you need to take a long look at how fat a pipe you would need to maintain your existing level of performance. Depending on the type of institution that you represent, you may or may not...
1
6
609
2011-10-17T23:12:42.023
api_errors
serverfault.com