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
155,478
SQL Server Mirroring disconnected for 1 of 5 mirroried DBs after initial setup completes
Environment: 2 Servers SQL 2008 R2 RTM Standard Edition, Windows Server 2008 R2 SP1 standard edition. Both servers using the same domain service account for SQL with sysadmin access and local Administrator group access on both servers. 4 databases are successfully mirrored without issue, all database owners are sa. Whe...
You may not have enough available threads. See how many are available with sys.dm_os_sys_info. See how many are being used with sys.dm_os_schedulers (sum of rows in column current_workers_count) Database mirroring has the following requirements for worker threads Principal server: 1 global thread and 2 threads per each...
0
1
650
2016-11-16T16:10:28.070
database_errors
dba.stackexchange.com
60,652
Installing MySQL Connector Net 5.2.7 to Windows Server 2008 (64bit)
I installed an MSI package of the MySQL Connector/Net 5.2.7 which I acquired from here for 2008 Windows Server Standard 64bit (SP1). The following issues occured: I asked the program to be installed for "All Users" The Start Menu items only display for "User A", when it needs to display for "User B" as well I was able ...
You will have to hope that I got this answer correct, because your initial question was poorly translated (but hey, at least you tried). I've tried to clean it up. If the following is completely wrong, please let me know. To get the item displaying for all users, you will need to: Right-click on your Start button and c...
1
0
1,631
2009-08-31T03:29:15.653
database_errors
serverfault.com
23,311
Optimizing MySQL -
I've been researching how to optimize MySQL a bit, but I still have a few questions. MySQL Primer Results http://pastie.org/private/lzjukl8wacxfjbjhge6vw Based on this, the first problem seems to be that the max_connections limit is too low. I had a similar problem with Apache initially, the max connection limit was se...
When using Apache, lower MaxClients to, say, 20. There is no advantage in having lots of Apache children stuck waiting for MySQL -- latency suffers and throughput does not improve. Decrease @@global.wait_timeout -- why have idle connections clog the max_connections. Clients should disconnect when they are through -- re...
4
1
364
2012-08-28T03:52:09.290
database_errors
dba.stackexchange.com
448,258
How to Deploy an ASP.NET Web API- and Browser-based Application to a Production Environment
Possible Duplicate: How to Deploy an ASP.NET Web API- and Browser-based Application to a Production Environment We have an ASP.NET Web API server that serves up a SQL Server data driven website. The API uses JSON to transfer data from SQL Server to the front end. We need to move it to an internal production environment...
Typically speaking your code is going to be deployed on the IIS server. This means your "web api" and website. Quite frankly I don't think your using the correct terms here as what you seem to be saying is that you have a web site which communicates with a web service that then communicates with the sql server for data...
0
2
4,105
2012-11-12T22:17:36.947
data_quality
serverfault.com
253,863
Project structure: where to put business logic
First of all, I'm not asking where does business logic belong. This has been asked before and most answers I've read agree in that it belongs in the model: Where to put business logic in MVC design? How much business logic should be allowed to exist in the controller layer? How accurate is "Business logic should be in ...
I think you got Fowler wrong, he is advocating 3, not 1 (see http://www.martinfowler.com/bliki/AnemicDomainModel.html ). Note that he is not talking about "business logic inside entity classes", he is talking about "business logic inside domain classes". And Service objects are domain objects. In your example above: if...
8
6
5,596
2014-08-20T08:16:47.130
data_quality
softwareengineering.stackexchange.com
376,820
rsyslog from Heroku drain creates empty log files
I'm sending logs from my Heroku app to an rsyslog server, but the resulting log files seem to come up empty. The rsyslog configuration for receiving remote messages is as follows: [CODE] My complete rsyslog configuration is available in this paste . This configuration appears to create the directories correctly. I see ...
After examining the server's /var/log/syslog, I discovered that rsyslog was having problems opening dynamic files. It turns out that the default Ubuntu 10.04 LTS config for rsyslog is not adequate for dynamic (template-based) log files. The proposed patch, due to Richard Fleming, is as follows: [CODE] For more informat...
0
1
667
2012-04-04T21:50:15.783
infrastructure
serverfault.com
46,752
MySQL 5.5 High CPU Usage
I have been working with a client with high traffic website(500k visitors and 600-800 active users at any given time). This uses wordpress and the DB is using MyISAM engine. The problem we had was high CPU usage in the server. All the time CPU load is 15-20. We used litespeed and MySQL 5.1 with CentOS 5.9 in Dual Xeon ...
OBSERVATION #1 When committing to use InnoDB, you also need to commit to tuning for multiple cores. innodb_read_io_threads : The default is 4. I would raise it 16. innodb_write_io_threads : The default is 4. I would raise it 16. OBSERVATION #2 I see you have [CODE] . If you set innodb_thread_concurrency to 0 (which is ...
3
3
14,707
2013-07-22T07:43:43.093
api_errors
dba.stackexchange.com
730,390
Exim - possible to configure to retry emails that fail with 550 error?
We get an issue where messages intermittently fail with a "550 Unauthenticated senders not allowed". We're working on getting to the bottom of that, but in the meantime, I want to configure exim such that when messages fail with that error, they go into a queue to be automatically retried (since the error is intermitte...
This topic has been discussed a lot on the Exim mailing list, and it cannot do what you want, nor will it ever become possible; a permanent error is just that: permanent. All 5xx errors are permanent. If your third party e-mail service is prone to this problem, then they should fix their MTA to report an 4xx error when...
2
4
726
2015-10-20T21:05:37.150
infrastructure
serverfault.com
383,708
Setup local caching DNS server for speed
I was wondering if it was possible to setup a local DNS server though BIND9 that contained a large amount of entries for DNS names, similar to what an ISP DNS server or something like Google DNS would have. I have explored some options, active DNS caching being one of them. This article along with this post, both demon...
In other words, you want to go back to the /etc/hosts files of old and abandon the advantages of DNS? Having a big pre-downloaded version of some portion of the DNS system doesn't make any sense because entries can be invalid really quick so your data goes stale very soon in turn. Large providers have a large number of...
-2
1
471
2012-04-27T07:29:57.903
infrastructure
serverfault.com
24,092
mount / and / or apache - php permissions : where should I look?
Here's the configuration : The directory : [CODE] is a shared directory (Linux) from a PC with an IP adress 192.168.1.12 My PC IP adress is [CODE] I mounted that shared dir with the command : [CODE] If I try to manually launch a rsync with : [CODE] This works : ls -al /usr/bin/compteur_assur -rwxr-xr-x 1 zobz zobz 2501...
Okay I found the problem : it a "permission problem" (or "rights problem" I don't know how to say it in English, sorry) [Batman]:/var/www/html/Internet/mywebsite# chown apache:apache /var/www/mount_ImpExp/ chown: changing ownership of `/var/www/mount_ImpExp/': Permission denied [Batman]:/var/www/html/Internet/mywebsite...
1
1
726
2009-06-11T13:52:12.250
infrastructure
serverfault.com
62,590
How to duplicate MSSQL database on the same or another server?
I am trying to accomplish the following: Take a snapshot of the original database, create and exact a duplicate on another server? Take a snapshot of the original database, create a duplicate on the same server under a different DB name However, I cannot due to very limited experience with MSSQL. Any suggestions? Addit...
backup the database restore the database under a new name and/or on another server Both these operations can be performed from Enterprise Manager (SQL2000) or its replacement SQL Management Studio (SQL2005+), or the TSQL commands BACKUP and RESTORE . Note: you can restore a database backed up from SQL2000 on SQL2005 wi...
22
16
143,736
2009-09-04T21:39:18.663
database_errors
serverfault.com
138,849
Best name for link table
I was wondering what the best name for a linked table in this situation (or any) would be. I've searched for this, but could not find any concrete examples. For example, I have the following tables (where 'table in the name refers to tables in a restaurant): restaurant_table restaurant_table_feature A table can have al...
This is generally developer's choice but in my opinion [CODE] implies [CODE] relationship. When a table resolves [CODE] relationship I prefer names like [CODE] . Again, this is up to my taste.
2
2
1,729
2016-05-18T08:30:08.367
warehouse_errors
dba.stackexchange.com
382,681
Website on nginx server requested from subdirectory
we have two nginx servers. The first server receives a request via [CODE] . He sends the whole request to the second server which has php+fastCgi configured. Nginx access log from second server: "GET /partner/ HTTP/1.0" 200 2845 On the second server I have a vhost that looks like that: [CODE] The problem that the index...
Your configuration is pretty similar to this one , part you obviously missing is [CODE] in the root of the [CODE] block. Another suggest is to try to use configuration exactly like from the link to make sure everything is working and it's not caused by your [CODE] ifs. After that include [CODE] in the [CODE] block and ...
2
2
710
2012-04-24T18:06:03.843
infrastructure
serverfault.com
120,512
FATA disk performance for VMware
We are moving to the dataceneter and planning to have tiered storage on EVA4400 - FC RAID 10 for SQL databases and RAID5 across 24 FATA 1TB disks form VMware ESX guests.HP is describing FATA disks as suitable for near online storage, however I am not convinced that 24 spindles will not be enough for running VMWare for ...
I'm a big EVA customer and fan, and I have a lot of those exact 1TB FATA disks and think they're great BUT there's something you need to know. The first box we had with those in saw an enormous number if drive 'failures' within it's first year, some were real requiring new disks, many just eject/reseats - the root caus...
0
1
1,790
2010-03-08T21:39:36.860
infrastructure
serverfault.com
752,640
How to properly set up SSL proxy in Apache?
I'm trying to set up an SSL proxy to access a local web-app externally. I get a 500 error when accessing the page. The log says: [CODE] In [CODE] running on Apache 2.4.6, I have: [CODE]
The problem is that Apache is generating a [CODE] header based on the target server's hostname, whereas I need it to be preserved. Adding [CODE] fixes the issue. Source
0
0
345
2016-01-29T11:45:40.843
api_errors
serverfault.com
1,010,533
Reinstalling MySQL
We currently try to reinstall MySQL 5.7 on a Ubuntu 16.04.6 LTS Box But the installation fails with this error: [CODE] We have purged the previous installation. [CODE] Seems to work just fine, no error Messages. Afterwards we check with: [CODE] In addition, we have manually removed remaining folders, to make sure there...
I would try first remove MySQL: [CODE] After this, I would install MySQL again: [CODE] Try this, and let me know, if it worked or not
0
0
509
2020-04-02T09:17:03.190
database_errors
serverfault.com
776,873
Open port 8082 on ubuntu for remote access
I need to open port 8082 on my linux box for remote access. I can access the application on port 8082 locally, but not from my other box. Ports 8080 and 8081 are accessible locally as well as remote. 8080 and 8081 have applications attached that were installed via apt-get, whereas 8082 has a program running from eclips...
Your application is most likely listening only to the localhost network interface, that is [CODE] , therefore it can be reached only from localhost. You can check this by running [CODE] , and checking the Local address column corresponding to your software. If it is [CODE] , this is the reason and you need to change yo...
3
5
18,889
2016-05-15T10:10:32.210
infrastructure
serverfault.com
122,676
A good substitute for ASMX web service methods, but not a general handler
The best thing I like about ASP.NET MVC, is that you can directly call a server method (called action), from the client. This is so convenient, and so straightforward, that I really like to implement such a model in ASP.NET WebForms too. However, in ASP.NET WebForms, to call a server method from the client, you should ...
You probably pant to check out the wcf web API. Preview 6 dropped yesterday, it looks real promising. If you can't get as experimental as that, one can make WCF web services return POX or JSON rather than SOAP. You can also integrate MVC into traditional web forms apps without too much trouble. Personally, I like mcv h...
1
2
2,396
2011-12-01T08:32:47.803
api_errors
softwareengineering.stackexchange.com
67,883
PySpark: How do I specify dropna axis in PySpark transformation?
I would like to drop columns that contain all null values using [CODE] . With Pandas you can do this with setting the keyword argument [CODE] in [CODE] . Here an example in a GitHub post. How do I do this in PySpark ? [CODE] is available as a transformation in PySpark, however [CODE] is not an available keyword . Note:...
I know this is a bit late, but I struggled with this also. This is my attempt at removing null columns from a Spark Dataframe. [CODE]
1
0
1,185
2020-02-11T10:08:22.217
data_quality
datascience.stackexchange.com
369,553
Object creation based on type from parallel hierarchy without instanceof (Java)
I have two parallel hierarchies: B and C implement interface A D and E extend the abstract class F I want to be able to do: [CODE] where createObject should follow the behaviour: [CODE] That is, the creation of F is dependent on the type of A. I cannot remake the code to remove this parallel hierarchy dependency. I hav...
I struggled with this problem myself . It seems, the only reasonable solution is to use the Visitor Pattern. This avoids [CODE] , and also the need to make instantiation the responsibility of the source type [CODE] . However, the source type hierarchy will need to be updated to support the visitor infrastructure. First...
3
1
318
2018-04-18T07:05:38.253
api_errors
softwareengineering.stackexchange.com
295,584
sp_BlitzCache doesn't monitor databases under availability group
I'm using the latest version of sp_BlitzCache to capture some performance issues and slow runnig queries, but it seems the sp doesn't check or monitor databases that belong to an availability group, other databases without always-on feature enabled being captured properly, the user that I'm running the script has full ...
sp_BlitzCache skips Availability Group secondary databases by design. This Github issue explains the issue that sp_BlitzCache hits when some of the databases aren't available for querying.
0
3
114
2021-07-12T20:31:44.963
warehouse_errors
dba.stackexchange.com
187,525
How to convince my teammates to follow some basic rules
I have a problem with my teammates. Long story short: We are three students working at a project for a competition. The project consists of 2 separate applications: one for Windows (that I develop) and one for Android (my colleagues are responsible for developing it). Our code bases will never intersect, the apps will ...
My question is: am I too harsh on this matter? You can lead a horse to water, but you can't make him drink. It's hard to say whether you're "too harsh," but it may be unrealistic to expect your teammates to adopt all the infrastructure that you're hoping for. And truly, if the team is working well together, using a wik...
27
42
3,369
2013-02-19T07:24:21.440
api_errors
softwareengineering.stackexchange.com
269,130
Parent and Child table question
Another question on the photo organisation and storage app design I am working on for my class: the specifications mention that people are able to be recorded in the database even if they don't appear in any photograph and that a location can be recorded even if there aren't any photographs associated with them. I'm no...
Basically it comes to this: Your photo is abourt a house, that belongs to a person. your photo has no persons in iit, but it still belongs to the person, so you can add a relationship to the photo. The same goes for for locations the Washington Monument is located between Capitol and Lincoln Memorial so you can add a r...
0
0
46
2020-06-14T16:50:05.770
warehouse_errors
dba.stackexchange.com
137,671
When I type in a nonexistent command my machine stalls for about 5 seconds before returning to the shell prompt
When I type in a nonexistent command it says "Command not found." and then waits for about 5 seconds before showing the prompt again. How do I fix that? I'm using Fedora.
Check to see that your path doesn't include a 'mount on demand' network share. Also, my Ubuntu installed something that, if you typed the name of a command that existing but you hadn't installed it yet, would say something like 'you need to install package foo'. I don't remember what was doing that, but it obviously wo...
1
5
245
2010-05-01T10:28:12.613
infrastructure
serverfault.com
373,820
DDD querying across domains
This is my first shot at trying to develop an application using some of the ideas behind DDD. It's a Rails monolith application (at-least for now). I know i'm not being strict with DDD, but I'm trying to focus on the separation of my domains which seems like the most important concept. I think this is probably quite a ...
I’m not a fan of querying across domains in real time because it can cause cascading failures. If the Quoting domain is down and the CRM domain needs information on a quote, the CRM domain can fail through no fault of its own. Imagine the same scenario where the Quoting domain is not down but just slow – the CRM domain...
0
3
864
2018-07-09T11:17:00.443
api_errors
softwareengineering.stackexchange.com
470,778
Php5-fpm too much memory usage nginx and ubuntu 11.04 32bit
I recently got vps with 512MB ram. I install nginx 1.2.4 with ph5-fpm and a simple wordpress installation . I currently have no traffic as its in development mode.But still It shows 495MB used and 80% of 495 is used by php5-fpm. What could be the issue to cure this,As in apache i didn't have any problem like this. From...
A 512MB ram is tiny, expectations of running a "large traffic" is illogical. Because you provided nearly no details other than how much ram your php-fpm uses on idle... I can only really suggest one thing. Try setting a lower pm.max_requests value in php-fpm settings. Like... [CODE] If you want to understand the php-fp...
0
1
1,415
2013-01-20T08:17:21.030
infrastructure
serverfault.com
810,801
how can i set my mx records right for email fallback?
i'm going a bit crazy over this one. so someone might help me clear out my doubts. in my company i have set up two emailservers. mx1.example.com (on-site) mx2.example.com (remote vps) both with postfix and dovecot. PTR/rDNS records and static IP. configured exactly the same. mx1 works perfectly. but some emails go to m...
the solution was to have a load balancer like haproxy in front, may be even with a floating ip
0
0
761
2016-10-23T19:16:38.160
api_errors
serverfault.com
993,402
In CentOS 7, is there a way to specify which block devices should be tuned with the scheduler (or ELEVATOR)?
In CentOS 6, there was [CODE] with this text(I'm referring to the comments that explain what the code is doing): [CODE] But it seems like CentOS 7 has left [CODE] behind. I see an alternate method to change the default I/O scheduler: Add the [CODE] parameter to the [CODE] line in the [CODE] file. [CODE] And it goes on....
You have at least two methods: use a custom tuned profile with the right [CODE] option insert the "echo noop" command in [CODE] or create a specific systemd service. EDIT: here you can find an example [CODE] file: [CODE] As described in the RHEL tuned guide I linked above you have different possibilities to define the ...
2
5
836
2019-11-26T23:19:54.373
infrastructure
serverfault.com
137,025
pg_stat_activity shows lots of easy queries running for minutes
After application server start its connection pool fills quickly and application can't work properly. I went through pg_stat_activity and noticed lots of queries running for minutes: But postgres's slow query log does not show any long-running queries (i've set 100ms as minimum query time). [CODE] I suggested that ther...
Your problem are the "idle in transaction" sessions. You should fix your application to avoid that. The queries in [CODE] in those cases are the last query run, not the current one (since there isn't a current one).
0
0
3,011
2016-04-29T19:07:42.203
database_errors
dba.stackexchange.com
404,444
Rebuild Raid 6 Array instructions
I have an HP Server with a HP P400 Controller with 8 72GB drives in a Raid 6 array. I had a drive fail and replaced it, but it did not rebuild because I have Hard Read errors on 2 other drives, so I am essentially running raid 5 now. It is my understanding that I will now have to do a backup and restore and replace the...
Raid 6 means you have 2 drives that can fail before data-loss. If you removed 1 due to failure... and have 2 more with read-errors... your data is probably corrupted. Whatever method you used to initially build the RAID should also have a tool to rebuild/reassemble the raid with your new disks. Without knowing more det...
1
5
1,242
2012-07-03T16:24:49.573
database_errors
serverfault.com
910,358
Limiting network activity on a server
I have a network with couple of servers running Windows Server 2008 R2. I am being ask to find out a way to limit the network activity per actions. So far i couldn't find if it's even of the realm of possibility. An example is that i am on specific server locally and i am doing a remote desktop to a second server. I de...
This is usually handled by QoS or Quality of Service. On the Windows server itself, you may need to look at the Server Process itself, for example, many ftp servers offer the ability to limit download / upload rate. Other than that, you will need external device, that support Quality of Service, like a Cisco router, wh...
1
0
94
2018-05-02T13:41:18.477
infrastructure
serverfault.com
94,719
Why can't I view the plan for view creation...?
[CODE] I am getting an error like this: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create algorithm =temptable view fisgen_temptable(inter,phone) as select interc' at line 2
[CODE] shows an execution plan for [CODE] queries. In version 5.6 , it was extended to include plans for [CODE] , [CODE] , [CODE] and [CODE] statements. No version of MySQL (not even the still in development, 5.7) has [CODE] for [CODE] or [CODE] . You can of course run the explain for the select (that defines the view)...
2
2
78
2015-03-09T05:17:26.323
database_errors
dba.stackexchange.com
934,096
SFTP Authentication Failed, cannot use sudo, cannot edit hosts file
I have used a snapshot on google cloud to create a new instance. My original instance has not been deleted...I don't want it deleted, I just need to access files on a backup from 24 hours ago that were deleted and restore them from the snapshot. I have followed the guide to setup SSH access using filezilla, however I c...
did you manage to recover your files? To be honest I think your easiest solution here wouldbe to create a new instance from scratch with a fully working system and them mount the snapshot to that instance as an additional disk. This would let you access and recover all your files without bumping into any of the errors ...
0
0
133
2018-10-05T05:17:15.483
api_errors
serverfault.com
391,075
Resolving unmet dependancy in ubuntu 10.04
I am geeting the folowing error when i tried installing beanstalkd [CODE] and I even tried -f option but none helped what can id do [CODE]
You need to resolve dependencies manually. try to install listed dependencies, using [CODE] Installation of some of this will may fail - you probably will need to install it manually using [CODE]
0
0
555
2012-05-21T14:56:22.903
infrastructure
serverfault.com
1,098,256
How to add multiple hostnames in private DNS zone in Azure to resolve hostnames for VNET?
I have an AKS (Azure Kubernetes cluster) that is on a VNET (Azure Virtual Network) that needs to connect to multiple On-prem hadoop machines to read/write data. I have a private DNS zone connected to VNET to resolve hostnames to IP - I tested with a couple of them and it works. The problem is I have about 900 machines ...
There might be two ways (afaik) to achieve this - use native powershell azure commands DOCS HERE , or the REST API if you prefer other languages ;)
0
0
220
2022-04-10T01:40:16.407
hadoop_errors
serverfault.com
1,103,927
What does "if in location" context mean in Nginx?
In the Nginx documentation, context for some directives ( error_page directive for example) is given as follows: Context: http, server, location, if in location My question is, what does "if in location" context mean? I've been googling but couldn't find a proper explanation.
There are two distinct contexts for an [CODE] block , server and location . The behaviour in these two contexts are quite different . Example: [CODE] The first [CODE] block is in [CODE] context. The second [CODE] block is in [CODE] context. The context if in location specifies directives that may appear within the ### ...
6
7
4,761
2022-06-23T08:29:09.803
infrastructure
serverfault.com
267,692
How to make MySQL 8 alert when integer overflow happens during INSERT ... ON DUPLICATE KEY?
Let's consider we have a simple table with auto-incrementing integer [CODE] and some unique column: [CODE] Imagine we inserted into it so many times that [CODE] reached the maximum: [CODE] Now we are trying to insert one more row and if it's duplicate then change the [CODE] to 3: [CODE] What is the expected behaviour? ...
USE a BEFORE INSERT TRIGGER to check for all fields where you can reach their limits. With the newest mysql incarnation you can actually can use the CKECK CONSTRAINT to prevent an INSERT at all, but with the TRIGGER you can manage and define What to do
1
1
477
2020-05-22T13:09:53.280
database_errors
dba.stackexchange.com
716,844
nginx and apache - multiple virtual hosts on the same IP - correct configuration
I am trying to run nginx as reverse proxy for Apache on the same machine and serve different websites from it. My question is - is it possible to add virtual hosts only to nginx and have it pass the url/hostname/path, etc to Apache automatically depending on which host is requested. OR do I need to set up a virtual hos...
This is possible. On Apache web server, you need to store all the files on a default virtual host so it can be accessed as http://IP_ADDRESS:PORT/hostname/path/ On Nginx server create multiple virtual hosts & add a proy_pass rule like below. A.com -> / will proxy forward to /a-com/ B.com -> / will proxy forward to /b-c...
0
2
2,481
2015-08-26T06:39:46.310
infrastructure
serverfault.com
763,099
ceph osd down and rgw Initialization timeout, failed to initialize after reboot
Centos7.2, Ceph with 3 OSD, 1 MON running on a same node. radosgw and all the daemons are running on the same node, and everything was working fine. After reboot the server, all osd could not communicate (looks like) and the radosgw does not work properly, it's log says: [CODE] [CODE] shows: [CODE] and [CODE] give: [CO...
I did eventually work out what was wrong. I had to manually change 'type host' to 'type osd' in our crushmap, which is different from Spongman's suggestion. after booting rgw, I find that the owner of radosgw process is "root", not "ceph". command "ceph -s" also show that "100.000% pgs not active". I search the clue "1...
3
0
2,278
2016-03-11T08:18:27.033
infrastructure
serverfault.com
149,045
Linux to Linux, 10 TB transfer?
I've looked at all the previous similar questions, but the answers seemed to be all over the place and no one was moving a lot of data (100 GB is different from 10 TB). I've got about 10 TB that I need to move from one RAID array to another, gigabit Ethernet, the free encyclopedia, XFS file systems. My biggest concern ...
yep, rsync outside oddball, the async features DRBD came out with recently.
9
14
3,048
2010-06-07T21:59:52.717
infrastructure
serverfault.com
337,938
Keep getting a 500 Internal Server Error
This is my [CODE] : [CODE] Is there anything I'm doing wrong? I really have no idea where to start. Any answer would be greately appreciated.
Try increasing the LogLevel in your Apache configuration. Force the 500 error to appear again. Copy & paste the excerpt of the logfile where the 500 error occurs, so we might help you finding the reason. In case you need further assistance on how to access logfiles etc. just drop a line.
0
0
419
2011-12-05T22:53:44.177
api_errors
serverfault.com
974,467
After resize disk , can't ssh to GCP Cloud
I can't ssh to my instance after resize disk . I search for information and see some issue like - The disk if full - The ip I create a snapshot , and the snapshot only has size 8G , even my disk is 50Gb My error get in serial https://pastebin.com/LwND02Bs
Disk resize will take effect only after connecting and extending it from OS. If your disk is full you will not be able to connect and perform this step. I would recommend you to take the original disk and attach it to another VM as a secondary disk (dont follow the steps for formatting as this will delete your data). T...
0
0
1,410
2019-07-09T06:12:28.230
infrastructure
serverfault.com
139,915
Are operators clearer to read than keywords or functions?
It's a bit subjective, but I'm hoping to get a clearer understanding of what factors make an operator clear to use vs obtuse and difficult. I've been considering language designs recently, and one issue that I always circle back around on is when to make some key operation in the language an operator, and when to use a...
from a general language design point of view there need not be any difference between functions and operators. One could describe functions as prefix operations with any (or even variable) arity. And keywords can be seen as just functions or operators with reserved names (which is useful in designing a grammar). All of...
14
16
979
2012-03-15T15:32:39.330
api_errors
softwareengineering.stackexchange.com
198,460
Requests to website return "No route to host"
As of about 3pm PDT today, about 50% of the requests made to my webserver via the domain name have failed from various locations worldwide (as reported by my monitoring service Pingdom). The error that Pingdom reports in their logs is "No route to host". When I try to access the website myself, I am able to connect onl...
I contacted GoDaddy, but they insist it is not a DNS issue Most likely correct. Unless some of their DNS responses are answered with the wrong IP... this is not a DNS related error message. The error that Pingdom reports in their logs is "No route to host" Does Pingdom give the IP address it tries? If it is consistent ...
-1
2
2,958
2010-11-05T06:16:04.673
pipeline_ops
serverfault.com
1,043,176
Docker fails to load container after power outage. How to remove corrupted containers?
Couple of my docker containers got messed up due power outage and as a results Docker daemon fails to start. I would like save healthy containers and only remove few corrupted ones. Is this possible to achieve by removing some container and database files manually? Dockerd dębug modę reports: [CODE]
You can remove docker containers by using the [CODE] command. If you need to find the container id, [CODE] will display all containers and the id is in the first column.
0
0
799
2020-11-19T10:39:14.107
data_quality
serverfault.com
202,800
Cron doesn't send e-mail with output of command (works from shell prompt)
CentOS 5.5 x86_64 Trying to e-mail a periodic system update with the output of a system temperatures command: [CODE] Outputs something like: [CODE] So, I script this: [CODE] Set to run every hour in cron [CODE] I receive the e-mail, but it's empty. However, if I simply run it from the command line [CODE] it sends me th...
Try changing this: [CODE] to: [CODE] When running from cron, you don't have the same PATH as when running logged in normally, that's something worth to keeping in mind. You can also change the PATH before [CODE] or something similar. You can get the [CODE] by doing [CODE] from your regular command prompt. EDIT: As Denn...
1
3
759
2010-11-16T21:54:08.870
infrastructure
serverfault.com
78,410
Database setup for datalogging
We're currently starting to build a version 2 of our system and one of the things we've noticed with version 1 is that we'll have quite a bit of data so we started to rethink our approach to how to store the data. Basically we have dataloggers which send data back to the server every 5 minutes. With current system we o...
We are doing something very similar at my place and this very question was in my head for a while a few weeks back. After noticing that logs were consuming 98% of our DBs in SQL Server I did some research on how we should handle this problem. It all depends on the structure of your logs but our logs are not really rela...
2
0
431
2014-10-05T12:18:41.460
airflow_errors
dba.stackexchange.com
1,132,854
Get Windows AD DC with SHA1 signed cert to accept LDAP (StartTLS) connections from OpenSSL 3 clients
Trying to get Windows Active Directory DC (with SHA1 signed certificate) to accept LDAP(StartTLS) connections from WordPress Server using Next Active Directory Integration plugin. WordPress is running on PHP 8.2.4 and OpenSSL 3.0.8 which by default no longer allows use of certificates signed using SHA1. Want to know if...
While I don't believe you can force Windows to fallback to a lower standard certificate - that sounds like the seed of yet another vulnerability - you could instead have multiple DCs with different certs on each to allow for your scenario. Presumably, you're using a SHA1 certificate because you have some legacy applica...
1
1
266
2023-06-08T00:39:36.220
infrastructure
serverfault.com
869,370
Several stacks with same container: "port already in use as an ingress port“
I'm trying to achieve the following setup: I have a center stack containing my nginx-proxy stuff. This stack declares a network (let's call it [CODE] ) Next, I want to setup 2 stacks for 2 wordpress installs, each one of them is totally independant and contains its own [CODE] service & [CODE] service. Both [CODE] use t...
You shouldn't need to publish ports in either of your mywp* compose files. You can use your reverse proxy to reach the website and you should not be hitting your database from outside of the containers. Nginx-proxy is good for a single node cluster, not sure that it's been updated for swarm mode yet, so you may want to...
0
0
3,850
2017-08-18T13:34:55.220
pipeline_ops
serverfault.com
212,505
help in connecting the sql server 2017 developer edition
I have installed the sql server 2017 for non production environment in my PC. It has installed successfully. when connect using sqlcmd it was throwing an error login failed for login sa. it didn't have the asked for the creating user or anythings... please find the command used to connect [CODE] Update: I can't even lo...
It sounds like one of the following things is happening: The sa account is disabled either explicitly, or because you're in Windows Authentication mode You don't know the password to the sa account Since this is installed locally on your PC, you should actually be able to connect with sqlcmd without any parameters to u...
1
1
5,237
2018-07-18T07:29:15.703
database_errors
dba.stackexchange.com
601,849
Mavericks OS X Server - Profile Manager - Do Profile Manager ports have to be mapped on the Router for full functionality?
Mavericks OS X Server - Profile Manager - Do Profile Manager ports have to be mapped on the Router for full functionality? I noticed that Server asks if I want Profile Manager ports to be available. I checked the settings it adds to the Router and it maps tcp ports 80, 443, and 1640 for the Server. Port 80 is just the ...
Ports 2195, 2196, and 5223 do not need to be mapped, because they are used for outgoing connections to Apple's push notification servers. Unless you're doing egress filtering, you don't have to do anything about these. If you are doing egress filtering, make sure connections to Apple's 17.0.0.0/8 network block are allo...
1
1
3,305
2014-06-04T18:36:01.550
infrastructure
serverfault.com
368,354
SSL error while using virtualhosts (apache + xampp)
I have multiple websites on my Windows Server 2003 vps, running apache2 via xampp. I am using openssl. When I only had SSL enabled on the 1 site (I have 2 active), everything worked fine - but now I am having problems. I cannot access https://liamwli.co.uk (or the non-secure variant), as google chrome gives an error wh...
As explained in this answer , you cannot use 2 different certificates for the same endpoint (ipaddress:port). If you have 2 static IP addresses, assign a HTTPS vhost to each, like this: [CODE]
2
2
20,349
2012-03-10T17:04:05.220
api_errors
serverfault.com
128,318
Where does MySQL's "show slave status" information come from?
two files "master.info" and "relay-log.info" were deleted after I "reset slave" I want to know why slave information still exists ~ confused >_ I think it shouldn't display any message about slave ~ thanks ^_^ [CODE]
That slave info is in RAM. If you are running MySQL 5.6, run [CODE] If you are running MySQL 5.5, restart MySQL If you are running MySQL 5.0/5.1, run the following: [CODE] These are the ways to make the [CODE] disappear from view GIVE IT A TRY !!!
1
2
779
2016-02-04T17:56:23.000
database_errors
dba.stackexchange.com
864,734
Open TCP Listener port on windows server 2012, not responding outside of server
I am trying to set up a simple listener program on my server to listen for requests on a certain port number, e.g. port 1234. When running, my app starts up and listens on the port number, I can use a browser and get a response of success when I browse to the server IP address and chosen port. However when I try and br...
After speaking with the AWS support team, it seems I needed to add a security group to my instance vm. Adding this has fixed the issue
0
0
1,116
2017-07-23T19:36:18.177
infrastructure
serverfault.com
784,404
Is there a Difference between "logoff" and "shutdown -l" -command in Windows?
Is there a Difference between [CODE] and [CODE] -command in Windows? They both logoff the current session. (Background: i had a Problem where the software in the costumers remotesession (w2k12) didn't ran correctly until i logged of via logoff from command line. The customer disconnects the session daily via a shortcut...
They perform the same task They are simply different applications that perform the same task. They both logoff a current session and close any applications that are associated with that session. You asked. Do the run different logoff-sequences? No, they initiate the same logoff sequence.
4
1
12,045
2016-06-16T14:39:42.683
infrastructure
serverfault.com
1,133,894
Lost Local Connection to MySQL DB that resides in AWS RDS
The MySQL DB residing in AWS RDS was made to connect with resources in the same VPC. I always had to make it publicly accessible in order to connect to it through MySQL Workbench 8.0 CE in Windows 11. The moment that I used mysql(2) NPM package to connect to it in a NodeJS server running locally (using localhost) on th...
Generally the steps to resolve this are: Make your RDS instance "publicly accessible". This allocates it a public IP address, but does nothing else Make sure the RDS instance is in a public subnet, ie it has a route to the internet gateway Ensure the security group grants access to the IP addresses on the internet that...
0
2
344
2023-06-14T18:51:00.987
database_errors
serverfault.com
523,831
nginx permanent move not registered by the browser
We had a "beta" site set up under http://beta.domain.com , while http://www.domain.com contained a launch page. We now got rid of the launch page and moved the site over to the actual domain. I set up a permanent redirect in nginx to deal with this, but it somehow is not redirecting properly. [CODE] When I test it out ...
Try using [CODE] instead. [CODE]
0
0
471
2013-07-16T20:46:37.193
pipeline_ops
serverfault.com
259,951
Use git to manage different deployments of the same repo
I have a web application built in PHP. I want to use Git to manage the different aspects of the deployment. Some of the files in the web app are specific to a client (logos, database connection string, user uploaded files (ckfinder), etc. The rest is the same for everyone. The application is heavy so I'm afraid to make...
Having a branch per customer is not an ideal solution, for a couple of reasons: It doesn't scale well. You will have to create a new branch for each customer, and then manage merging code changes between all those branches. And, when you actually do need a branch for a legitimate reason (feature branch, production fix,...
2
7
293
2014-10-14T10:52:18.460
pipeline_ops
softwareengineering.stackexchange.com
398,860
Configure Sendmail to forward NSU to different server?
Is it possible to configure Sendmail to forward the message to another server instead of returning it as NSU (no such user)? We are in the process of migrating from a sendmail server to Exchange 2010. Due to various reasons it is impossible to cut over the entire domain at once. (600 mailboxes, 21 locations full of peo...
In your sendmail.mc add: [CODE] Then rebuild your sendmail.cf and restart sendmail. In Debian I do this by running [CODE] . Other Operating Systems and Distributions have different ways of doing this.
1
1
140
2012-06-14T17:43:40.827
infrastructure
serverfault.com
750,430
"SOA Serial Number Format is Invalid" warning by mxtoolbox.com - why?
When testing the SOA setting for example-domain.org on http://mxtoolbox.com/ , it says that [CODE] The entry is [CODE] That, however, is exactly what Amazon suggest in their Route 53 documentation on http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/SOA-NSrecords.html mxtoolbox issues a warning - why? They also ...
There is a recommendation that the SOA serial number use a format that is four digits of year, two digits of month, two digits of day and two digits of count of changes in the same day. This format is common, but far from universal (look at [CODE] for a high-profile example of a zone that doesn't). The tool you got the...
27
32
60,776
2016-01-20T09:56:14.343
infrastructure
serverfault.com
9,983
How to manage to learn Selenium, Jmeter on your own so that you could use it to your best knowledge on your new automation role
I arrived UK this august and was looking for jobs here into functional testing, but i have been called for an role which has functional testing, automation testing(Selenium), Performance Testing(J Meter)! Now the challenge here is that i am only equipped with functional testing. I have told them in the telephonic round...
I am in no way trying to be rude, but I think the hiring team may be setting themselves up for failure. Having worked on many many automation projects and worked with many people of varying skill levels, it is actually just about impossible for someone with no automation background to jump in to automation and get it r...
0
3
1,122
2014-10-15T12:05:38.433
data_quality
sqa.stackexchange.com
819,044
Running yum commands from the %post section of a kickstart
I'm currently installing RHEL 6 using a kickstart file. I'm attempting to conditionally install a package. The order of when the package is installed does not matter to me. Right now, my %post section looks like this [CODE] However, this does not work. My assumption is that yum is failing due to the fact that it is no ...
It should be: [CODE] To avoid yum stopping to prompt for confirmation
0
1
3,379
2016-12-06T15:19:06.470
infrastructure
serverfault.com
247,259
Cascading REVOKE not working in MYSQL
I've read about an SQL option of cascading permissions when issuing a REVOKE statement. I've googled for how this option is implemented in MySQL, but haven't found it at all. This is the docs page about the REVOKE syntax and there is no sign of cascading option. The SQL standard cascade syntax has the following format:...
Neither MySQL, nor Mariadb ( https://mariadb.com/kb/en/library/revoke/ ), has implemented [CODE] or [CODE] . In general, a [CODE] can negate only an identical [CODE] . You cannot, for example, [CODE] , then [CODE] . That is, the GRANT/REVOKE feature of MySQL and MariaDB is quite limited. "Roles" are available in MySQL ...
0
0
1,242
2019-09-07T13:47:01.090
database_errors
dba.stackexchange.com
264,945
MySQL single large table vs many small tables
I'm building a website to monitor a bunch of IOT devices. E.g. Online/Offline status of each devices and some device specific information it may report back, IP address, Temperature etc this will vary. FYI These devices report back to my site via a processor/computer that poles these devices and then reports back (a ma...
one big table with all these rows was a better way to go? Yes, absolutely With proper table structures and indexing, MySQL will comfortably handle millions of rows in any table. The "Table-per-?" model is never a Good Idea and invariably comes back to haunt you (usually when you need to summarise across all those table...
0
1
1,814
2020-04-14T08:28:29.600
database_errors
dba.stackexchange.com
164,929
Is the singleton pattern prone to thread safety problems?
Is the singleton pattern prone to thread safety problems? If so, what are the best methods to work around them?
It is [CODE] For example: code provided below uses double-checked locking, which should not be used prior to J2SE 5.0, as it is vulnerable to subtle bugs. [CODE] Here is a referencing article on how to correctly implement thread safe Singleton Pattern in C# .
3
1
3,725
2012-09-14T19:46:01.610
api_errors
softwareengineering.stackexchange.com
695,754
SVN over http - PROPFIND 405
I have a [CODE] server with [CODE] and [CODE] servers up and running. I recently wanted to get subversion to work with [CODE] due to the restrictive firewall of my company. To get this whole thing working I use [CODE] with [CODE] authentication and an [CODE] access file. The setup partly works, as I'm able to view the ...
Well this is kind of odd (at least in my eyes). I previously tried to check out using this command: [CODE] This yielded the [CODE] response. I just tried using this line: [CODE] And now it works like a charm. It seems like this topic is of not much interest, but I would really appreciate someone giving me some insight ...
0
0
1,084
2015-06-01T09:29:05.100
api_errors
serverfault.com
145,308
How to update statistics for a database's system tables
We recently upgraded many of our instances to 2016. As a result, a SELECT statement from sqlpackage.exe is timing out on some instances. After some testing, I found that by updating the statistics on the database's system tables showing up in the execution plan, the SELECT stopped timing out. [CODE] Is there anyway eit...
You can "see" the system tables without using DAC connection: [CODE] From there, you could build a TSQL string of commands and execute it. (I hardcoded [CODE] for the schema. Presumably this will never change.): [CODE] This could easily be put into a job step for a SQL Agent job. I tested this on SQL Server 2012 w/ SP3...
6
3
3,784
2016-07-29T08:37:12.217
database_errors
dba.stackexchange.com
611,678
Grub giving Error 2: Bad file or directory when I try to locate the kernel
I'm trying to boot a VM with grub-legacy and I'm getting a grub prompt. If I run [CODE] it says [CODE] , but then if I do [CODE] TAB it says [CODE] , same for (hd0,1). Any idea? I've tried find /boot/grub/stage1 and it says file not found.
Turns out [CODE] didn't match my layout, it had [CODE] as [CODE] instead of [CODE] . Fixing this, then booting it with a rescue CD and running through [CODE] again fixed it.
1
2
2,670
2014-07-10T18:01:23.960
infrastructure
serverfault.com
75,606
Advantages/Disadvantages of NFA over DFA and vice versa
What are the relative pro's and con's of both DFA's and NFA's when compared to each other? I know that DFA's are easier to implement than NFA's and that NFA's are slower to arrive at the accept state than DFA's but are there any other explicit, well known advantages/disadvantages?
Nondeterministic automata can have far fewer states, but the engine to evaluate them must be capable of being in multiple states at once - all possible states. This can lead to a trade-off between memory requirements and code complexity when executing the automaton. Personally, though, I think the more interesting issu...
5
6
15,040
2011-05-11T19:27:55.190
api_errors
softwareengineering.stackexchange.com
614,312
Rule accepting input HTTP in ip6tables not enough to allow IPv6 requests
I am facing an IPv6 accessibility problem with my server. The server is IPv6-capable and is capable of contacting/being contacted by third-parties on IPv6 ( [CODE] and [CODE] tested on my Debian stable Wheezy, up-to-date) The DNS IPv6 [CODE] entry for the website is existing and functioning properly The webserver (ngin...
Folks, you must not ignore ICMPv6 as you did for legacy IP - ICMPv6 and particularly the Neighbor Discovery Protocol (NDP) is vital for the proper functioning of IPv6. (The NDP, among other things, is a substitute for ARP.) This means, you must allow at least for ICMPv6 types 133-136 from link local (i.e. [CODE] ). Mor...
3
5
3,695
2014-07-21T22:13:05.407
infrastructure
serverfault.com
147,166
Optimal way(performance wise) to store array like data in MySQL
I am working on a website(PHP), and one of the features that the site should have is ordering items from the website, and the order will be like an array with an architecture similar to this: [CODE] And i want to know what is the optimal way to store the order, i came up with two ways to do that, The first way which se...
If you just want somewhere to dump JSON then you're wasting your time with MySQL. Use a simple docustore. You will lose the ability to query the dataset in any meaningful way, but if storage and retrieval is your only requirement, there's no need for a relational database. If you have more complex requirements, then yo...
0
1
1,185
2016-08-18T07:56:53.107
database_errors
dba.stackexchange.com
412,472
Exchange 2010 in different ad sites
We have the following situation: a number of servers in head office (Russia) with domain controller and exchange server, and a number of servers in Germany, also with domain controller and exchange server. Cross site replication between DC1 and DC2 is set up (DC1 is primary, it has all 5 roles plus Global Catalog, DC2 ...
You say you are transferring mailboxes by "by editing user attributes in active directory", can I confirm you are not using the Exchange 2010 mailbox move request functionality? If you are hacking stuff in AD without using the provided tools, then the results may not be predictable :-)
0
1
2,280
2012-07-30T10:55:43.557
database_errors
serverfault.com
658,822
Catch all emails and pipe them all to a script with postfix
I realize this question was asked and answer before. Here's what I have done. Created a catchall address and user. Here is my [CODE] file. [CODE] Added it to [CODE] . Here is the entry. [CODE] This worked and all my mail went to [CODE] which was good. Next I wanted to create a pipe that runs a program each time an emai...
Ugh how frusterating. I figured it out luckily and carefully examining mail.log is what helped. What i had to do. in [CODE] I changed the first entry in the mydestination directive to [CODE] . I had fiddled with after asking and before getting a commend asking for the main.cf file and noticed I was getting different re...
1
1
1,950
2015-01-12T03:02:51.330
infrastructure
serverfault.com
36,836
In RNNs why do networks always use the last output vs the last input?
All the descriptions of RNNs introduce some equation like: $\ h_t = f_W(h_{t-1},x_t)$ and I'm wondering why we don't just go straight to the "source", ie the last input like : $\ h_t = f_W(x_{t-1},x_t)$ The only thing I can maybe think of is maybe the RNN can store some sort of "state" in [CODE] But then, along the sam...
That would work if the Markov Assumption was in place here (i.e. the last state was enough to determine the new state). However, that is exactly what RNNs try to break. RNNs try to encode the whole history of inputs and predictions to determine the next output. So in the formula, the $h_{t-1}$ is the last output, but i...
3
4
148
2018-08-12T18:03:51.280
data_quality
datascience.stackexchange.com
155,210
why i am getting The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'
When I am only trying to create a table my "DBA" gave reader, writer, "ddladmin" to the database and I am getting this error when trying to create a basic table: The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo' Can somebody please let me know the answer.
There are two possibilities here: Your table create script includes an attempt to send an email Your DBA has placed a DDL trigger on the database to send an email notification when objects are created. In the first instance, confirm that there are no attempted email sends from your script. For the second the DBA might ...
0
2
3,640
2016-11-14T14:53:50.010
warehouse_errors
dba.stackexchange.com
97,639
Groups relationships - Detailed or Direct?
I have a [CODE] model: [CODE] Then I have a [CODE] Model which have the [CODE] and an [CODE] associated. [CODE] And finally I have a [CODE] which tells all people that have access to that Item. [CODE] So now a new feature must be added, which is Groups. So I thought about two aproaches and I would like to know which on...
First, it's hard to ascertain what you need as I don't know what your data means. What is ShareID and what are the groups for? How do ItemIDs relate to ShareID? Is the data one-to-one or one-to-many? etc... With that said, I do know for sure that Option 1 does not follow good practice. You don't store different types o...
1
0
29
2015-04-12T09:50:40.287
warehouse_errors
dba.stackexchange.com
735,060
Is it okay (or even recommended for performance) to point mobile subdomain A record to different IP?
Is it okay or recommended for performance/load balancing to point the A Record for your mobile subdomain to a separate server, with its own IP address?
I'm assuming you're meaning you have something of the form [CODE] and [CODE] ? There is nothing inherently wrong with these being served from different IPs for load balancing or other purposes. It's not going to be an intelligent distribution of traffic based on actual load - but if it meets your needs : then as a chea...
1
5
65
2015-11-09T20:04:38.910
infrastructure
serverfault.com
243,378
how to use the same timestamp along several tables?
Lets say a have 2 tables and both have a datetime column. On table A, on datetime column, lets say, ts1, is non null, default is CURRENT_TIMESTAMP and on update CURRENT_TIMESTAMP; The other table, B, the datetime column, lets say, ts2 is non null; The datetime values on both tables must be the same (A.ts1==B.ts2). As t...
Edit: an alternative approach [CODE] Now, what is first- and last- seen? To me, this seems like a kind of aggregation or summary of a device. This kind of construction is sometimes named Incremental Evaluation System [CODE] The logic for updating device_summary is easily expressed in a trigger: [CODE] Since a device mo...
1
1
829
2019-07-20T20:55:02.200
pipeline_ops
dba.stackexchange.com
352,115
Who or what decided conventional network timeout length?
I recently had a discussion with a coworker about network timeouts. This person wanted to have 1 second timeouts because they believe the optimal user experience is one where the user doesn't have to wait long before knowing if something fails. However, at scale 1 second is far too short to cover the range of network c...
Your co-worker is totally wrong about the relationship between timeouts and user experience. Sure, the user would like a response within a second, but they want a successful response. Changing the timeout to a second doesn't help with that. I'd rather have an application that gives me what I want within three seconds t...
3
8
1,255
2017-07-04T05:32:48.990
api_errors
softwareengineering.stackexchange.com
275,214
puppet does not work over openvpn: Could not retrieve catalog from remote server
We have a network 10.10.0.0/24, and one of the hosts (server0, 10.10.0.123) have puppetmaster installed. Others are connecting to it and everything seems fine. Another one host (server1) is on another network and have openvpn connection to to puppetmaster host, openvpn network is 192.168.124.0/24 (192.168.124.1 - serve...
Did you put the [CODE] network inside [CODE] ? Also, are you sure date&time on client and server are reasonably synchronized? Oh, I just noticed the server is natted! You said [CODE] 's IP is 10.10.0.123, but the connection is being made to 192.168.124.1 according to the dump. This might cause the server certificate to...
0
1
639
2011-05-30T12:53:24.343
pipeline_ops
serverfault.com
109,158
SQL Server connection string
I have moved a site from a Window Server 2003 server to a Window Server 2008 server (64 bit). The site connects to a SQL Server 2005 database. I imported the database, and I am running it under SQL Server 2014 (64bit). I have the IIS on the Window Server 2008 server running the site. The site runs in classic ASP. I am ...
If the application is obfuscating the error message, try connecting with a Powershell script. Perhaps this will provide more information about the cause of the connection error. Even if you don't have the Native Client installed, the legacy SQLOLEDB provider that ships with Windows should still work: [CODE] To use SQL ...
0
2
3,629
2015-08-06T04:06:46.050
database_errors
dba.stackexchange.com
117,189
Relation between "underfitting" vs "high bias and low variance"
What is the exact relation between "underfitting" vs "high bias and low variance". They seem to be tightly related concepts but still 2 distinct things. What is the exact relation between them? Same for "overfitting" vs "high variance and low bias". The same, but not exactly? e.g. Wikipedia states that: "The bias error...
Underfitting and high bias are closely related concepts in machine learning. Underfitting refers to a model that is not complex enough to capture the underlying trend in the data. It is not able to capture the patterns in the data well and as a result, it performs poorly on both the training and the test sets. On the o...
2
4
3,078
2022-12-20T10:24:05.280
data_quality
datascience.stackexchange.com
251,805
SQL Server trusted connection additional security
Using Windows authentication, is there a way to prohibit users from connecting via ODBC to the database?
The feature designed to help in this scenario is Application Roles . With an Application Role you can allow the user to connect to the target database, but not be able to run any queries until the application supplies a secret to activate the Application Role.
4
8
1,185
2019-10-23T16:00:03.277
api_errors
dba.stackexchange.com
775,204
Xenserver 6.2: error "There is not enough space to upload the update"
Xenserver upload update/patch, there is not enough space to upload the update. After uploading many patches, Xen gave me this error "there is not enough space to upload the update" and when I check on "/Var/patch" I see only "applied patches". What could be taking all the space in the server, how can I delete or remove...
You can clean everything under [CODE] Also you can clean the old logs in [CODE] using " [CODE] "
0
1
1,088
2016-05-06T08:36:34.637
infrastructure
serverfault.com
6,508
K-means incoherent behaviour choosing K with Elbow method, BIC, variance explained and silhouette
I'm trying to cluster some vectors with 90 features with K-means. Since this algorithm asks me the number of clusters, I want to validate my choice with some nice math. I expect to have from 8 to 10 clusters. The features are Z-score scaled. Elbow method and variance explained [CODE] From these two pictures, it seems t...
Just posting a summary of above comments and some more thoughts so that this question is removed from "unanswered questions". Image_doctor's comment is right that these graphs are typical for k-means. (I am not familiar with the "Silhouette" measure though.) The in-cluster variance is expected to go down continuously w...
25
7
19,175
2015-07-20T08:03:21.013
data_quality
datascience.stackexchange.com
684,409
Does NT5DS time synchronization have any place in a mixed Windows / Linux environment?
I am working on a plan towards overhauling how time synchronization is handled on our network. Currently our network is predominantly Windows-based, in a fairly standard AD domain broken up into various sites. However we are starting to utilize Linux-based servers in our environment as well, with the thought that this ...
NT5DS Is the client protocol for Windows systems to retrieve time from a DC. Using this on your Windows machines does not prevent you from also enabling the NTP server on your Windows DCs, and configuring your Linux clients to use your DCs as a source of time using the NTP protocol. I configure my DCs using group polic...
4
5
17,939
2015-04-21T16:50:03.053
infrastructure
serverfault.com
368,262
reaching subnets from vmware guest
I have a vmware-vsphere host with one linux guest Jupiter. Jupiter has internal ip 192.168.2.2 andcan communicate with the internet (outside world) fine (the outside world reaching Jupiter via its public IP). Jupiter can also communicate with other hosts on the same subnet 192.168.2.0/24 (other hosts can see Jupiter on...
This is not likely to be related to the presence, or absence of the vmware tools, or bugs within the vmware tools. The important thing to remember about virtualisation when solving problems like this is that nothing magical happens to your network, good or bad, just because someone took a network diagram and said "by t...
1
3
158
2012-03-10T09:02:57.070
infrastructure
serverfault.com
430,246
What's the difference between and Event Processor and a Microservice
In Event Driven Design, there is the concept of the Event Processor which is the node within the event chain that applies business logic to/from an event message. Usually a single responsibility. in Microservice Design, the microservice is the smallest, standalone unit within an architecture that applies business logic...
An Event Processor is a technical component. A service or a microservice is a unit of the functionality provided by the system, don't take it too literally, but you could call it a business function to distinguish it from the technical components.
-2
0
194
2021-07-14T15:44:37.600
api_errors
softwareengineering.stackexchange.com
430,365
Could not connect to server ProFTPd Debian
I am using ProFTPd as my FTP program on my server, but am unable to login to it. I've enabled MySQL for it so that I can use a web-tool to make users/groups for it. The connection itself seems to be fine, however, logging in doesn't seem to work. FileZilla is what I use to connect to the server, tells me this: [CODE] H...
Check logs if they say anything. You can find them somewhere in [CODE] If you can't, my hint would be to start daemon in foreground with high verbosity and see what's happening. How to do that: As root: [CODE] End it with: [CODE]
0
1
1,877
2012-09-20T19:32:17.813
database_errors
serverfault.com
225,617
How to monitor and automatically restart mysql?
I'm running mysql on Debian. Is there a way to monitor mysql and restart it automatically if it locks up? For example sometimes the server starts to take 100% of cpu and starts running very slowly. If I restart mysql, things clear up and the server starts working fine, but I'm not always present to restart it manually....
You can do this with monit . For example, to alert & restart mysql, assuming you run monit on a 60 second cycle: [CODE] monit is very flexible and can do pretty much any sort of monitoring of processes, memory, etc. you can think of. This could probably be done with ps-watcher too, but it's hard to make ps-watcher reme...
4
3
3,648
2011-01-22T21:38:23.357
database_errors
serverfault.com
305,168
Model types of an entity
Let's take a simple users table. I have a few different type of users. Let's simplify it into two, employees and customers, for the sake of the example, but keep in mind I do have much more. So I have lots of common fields, like names, dates, Auth data etc... But I do have specific fields for each type of user. Again f...
Lots of columns, many being often [CODE] has issues. There are limits. Putting all the attributes into a JSON string has problems (but handles NULLs nicely) Using the EAV schema pattern has problems. (This is an extra table with multiple rows for the attributes. This forum is littered with people crying about the poor ...
0
0
37
2021-12-19T21:24:36.167
data_quality
dba.stackexchange.com
79,789
In supervised learning, are more data entries always better?
I am doing a supervised learning problem and have 600,000 rows of data. I divided it into a training and test set and achieved a high accuracy that I was happy with. However, I had thrown away 300,000 entries as they contained significant missing data. When I redo the analysis except use mean, median, and mode imputati...
That is a clue your data is missing-not-at-random . The missing data is a result of a systemic process that also effects predicting target performance.
1
1
51
2020-08-04T18:48:06.327
data_quality
datascience.stackexchange.com
1,065,728
Can't start bosh session after updating docker image to latest
After updating from image 20.04 to 21.04 I wasnt able to start a bosh sessions anymore, after that i rolled the image back to 20.04 and I still unable to start the session. Heres the logs with my info obscured [CODE] And heres the ejabberd.yml [CODE] Can somebody help me? EDIT : I was actually using the 20.04.02 image ...
In a quick look to your configuration, I see nothing strange or obviously wrong. This is how I setup ejabberd 21.04 using docker. And BOSH can be used correctly. The only big difference is that you use external auth instead of internal. Here are my scripts, in case they give you some clue about your problem. Or you can...
0
0
192
2021-06-04T16:43:27.197
pipeline_ops
serverfault.com
259,046
Is Scalar UDF inlining broken?
This SQL code returns "a" instead of "asdfg": [CODE] Reproduced on both 15.0.2000.5 and 15.0.2070.41. Works fine in SQL Server 2017. Workaround is to use WITH INLINE = OFF. EDIT: If you agree it's a bug, vote here please: https://feedback.azure.com/forums/908035-sql-server/suggestions/39190126-sql-server-2019-scalar-fu...
Here's where the problem creeps in. The plan contains a Constant Scan defining the output. CASE WHEN CASE WHEN (1) = (1) THEN (1) ELSE (0) END = (0) THEN '' ELSE CONVERT_IMPLICIT (varchar(1),CASE WHEN (1) = (1) THEN 'asdfg' ELSE NULL END,0) END Why does it down-cast to varchar(1)? I guess it takes the length of the fir...
6
3
270
2020-02-06T14:57:48.473
database_errors
dba.stackexchange.com
205,137
DBD::mysql for bugzilla installation
I was installing bugzilla 3.6.3 i have a dependency for DBD::mysql 4.0 currently DBD::mysql installed on the system is 3.0.This is a centos machine and if any one let me know how to install this DBD::mysql 4 will be pretty useful. Thanks..
run cpan then install DBD::mysql [CODE] [CODE] you may need to update the whole bundle so substitute [CODE] in the command above.
0
1
172
2010-11-23T13:38:37.963
database_errors
serverfault.com
830,232
VAMT Indicates two revision levels are incompatible
I'm trying to add/run Office 2016 to the KMS server. The KMS server is currently Server 2016 std. Running the package for this installs and then brings up VAT. I try entering the KMS key and try activating it but I get the following error. [CODE]
I had the same problem, and worked around it by doing the following: Ran Volume Activation Tool, and installed Windows Server 2016 KMS-key. Then ran [CODE] - this activated my Windows Server 2016 KMS. Ran the Office KMS setup (kms_host.vbs), and insterted the KMS for Office2016. Then [CODE] Repeat for Office 2013, but ...
1
1
6,083
2017-02-02T19:25:10.817
infrastructure
serverfault.com
334,098
Weird catch-all issue on Postfix
I have set the Postfix and virtual mapping successfully: [CODE] Then in /etc/postfix/virtual, I set the following catch-all rule: [CODE] In /etc/postfix/virtual_mailbox, I set these: [CODE] By the way, I already created a system user "test_catchall". Now, the weird thing begins. When I send an email to bounce@test.com,...
If my memory serves me right, in the past I had to use virtual_maps instead of virtual_alias_maps .
2
2
94
2011-11-23T14:05:23.493
infrastructure
serverfault.com
72,426
Analytic Hierarchy Process - consistency ratio over 50%
I have such data of pair-wise comparison. I calculated consistency ratio for this data of 56%. That's too high for relevant results. Whether is possible to modify initial data to improve consistency if I have no other sources what factor should I fix?
I read some articles and came up to the solution when consistency is very high like 100% I need to reduce it to min 20% by playing with most dismised values. I recommend online calculator for AHP https://bpmsg.com/ahp/ahp-calc.php
0
0
65
2020-04-16T11:00:10.310
data_quality
datascience.stackexchange.com
153,388
MYSQL parallel query performance issue
Im working on a project for my company which sells huge amounts of weather data to customers through a Web API. As part of that API, there is a backend service which needs to fetch data from MYSQL database (ver 5.1.1, InnoDB). The data set can reach amount of 50 000 rows and 12 columns if interval is set to whole year,...
Upgrade to 5.5, then 5.6, then 5.7. You will be able to run more simultaneous queries at each upgrade. Do you really mean "5.1.1"? That was a pre-release for 5.1 from about 2005. Use summary tables for old, static, data. (It is static after it is [CODE] , correct?) Perhaps summarizing (eg AVG, MAX, MIN) daily readings ...
1
2
3,318
2016-10-26T15:42:22.037
pipeline_ops
dba.stackexchange.com
783,022
Server 2008/2012 (R2) group policy scheduled task not applying
I am at wit's end and totally confused. The goal is to take group policies(one per day of a week) and set a scheduled task which will trigger a reboot on that day at a specific time. So I made them (see example below) yet.....they don't work? I've done additional manual reboots of the servers, [CODE] on the servers, ch...
The scheduled task must be created in the GPO's console while sitting in the same OS core version that you will target. In example for 2008R2 you need to edit with a 2008R2 server or to use the RSAT tool on a Windows 7. At each new OS version they add new scheduled task settings, and thus the task become not valid if t...
3
2
8,059
2016-06-09T16:01:38.110
infrastructure
serverfault.com