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
187,620
Is it possible to grant role privileges to a user by document (not collection) in MongoDB?
I am working on a database for investigation purposes. I want to make some of that information public but other pieces of information are highly confidential. I want to create a user and grant access only to the public information inside a document of a collection. For example in my collection "people", i want to show ...
No, you cannot grant rights for document... But you can do views what shows only that public information.
1
1
121
2017-10-04T10:32:46.410
database_errors
dba.stackexchange.com
780,611
Monit not monitoring LEMP
I have LEMP with MariaDB installed on Ubuntu 14.04. I have Monit installed and configured to monitor php-fpm, mysqld and nginx but non of these services seem to be monitored as shown in the screenshot here: I have configuration files for each service that i want monitored in the [CODE] The directory is properly include...
Finally solved it on my own. For some reason: [CODE] Solved the problem.
0
0
124
2016-06-02T18:07:24.400
pipeline_ops
serverfault.com
255,238
aggregating sums for specific time but would like to have multiple times in the same query
I am trying to sum the number of orders for two years and have them side-by-side but am not sure how to do this. To summarize one year, I currently have: [CODE] which gives me: [CODE] but would like [CODE] One problem is that the menu_item_header can be different? Is there a way that I can take the first one and ignore...
[CODE]
0
1
14
2019-12-09T22:37:00.003
warehouse_errors
dba.stackexchange.com
109,881
Get user profile size in vbscript
I am trying to get the size of a user's local profile using VBScript. I know the directory of the profile (typically "C:\Users\blah"). The following code does not work for most profiles (Permission Denied error 800A0046): [CODE] Is there another way to do this? UPDATE: I did some deeper digging and it turns out that th...
Like you said, you have a permission denied error. Does the account this script is running under actually have permissions to traverse these user profile folders and calculate the size? If you can't view it manually using Explorer, your script isn't going to do any better.
3
1
10,609
2010-02-05T04:38:07.300
infrastructure
serverfault.com
594,632
Synchronizing the SamAccountName Property using Windows Azure Active Directory Sync Tool
Using this official documentation as a guide, I would expect the [CODE] property to sync from my on-premise AD to Office 365. I think that it used to do exactly that, but now it seems that it doesn't so much sync the attribute as it does create an entirely new, unlinked value and store it in Office 365. This has caused...
I checked my archived logs and it appears that the [CODE] attached to the Mailbox objects did indeed change somewhat recently. They did not however previously match the on-premise value. My old [CODE] looked something like this, [CODE] , and the new one is [CODE] . Furthermore, this was not causing my ADFS issues. Thos...
3
2
6,622
2014-05-12T20:36:43.947
api_errors
serverfault.com
331,383
arp requests are sent continuously and my linux machine disconnected to the world
I have the following problem and really need your help I'm implementing a small server to receive request from client on port 18999(just sample) using TCP socket. When I tested my server by using a lot of requests from a tablet through a router, I got the ARP problem(?) My net work just like: TABLET WIRELESS ROUTER MY ...
It sounds like you want some mechanism to reboot your Linux machine when its networking goes away. I wouldn't try to solve this off the Linux machine, because you're having trouble connecting to it, but instead solve it on the machine. You could run as root: [CODE] This fairly brutally reboots the machine whenever it c...
0
0
2,238
2011-11-16T02:05:27.223
infrastructure
serverfault.com
278,282
MultiSubnetFailover=true for DBMSes besides SQL Server
A connection string for SQL Server can contain MultiSubnetFailover=true, to handle multiple DNS A records, letting the client try to connect to every IP address of a domain (or subdomain) name, to access the current master (of Always On availability groups). Does this work with other DBMSes, like MySQL? If not, is ther...
[CODE] can be used only for connecting to SQL Server part of the client connection string. For MySQL, if you are using .NET, then you can use multiple hosts in connection string or you can even use single DNS that provide DNS Service (SRV) records to provide failover, load balancing, and replication services .
0
1
538
2020-10-19T01:12:35.583
database_errors
dba.stackexchange.com
382,714
How to run long (>10 hours running time) verification test for continuous integration of scientific software
This question continues on a previous question asked here about continuous integration for scientific software . Like the poster of that question, I am developing software for numerical simulations and I am in the process of applying continuous integration (CI). My main problem is that I have tests that are used for ve...
I believe you have three issues here. Executing asynchronous tests Security Credentials Quality Gateways Asynchronous Tests While not ideal, Jenkins was designed for synchronous work loads. There is definitely a mismatch here. So my first question is how do you know when the tests have completed for better or worse? If...
6
4
912
2018-12-09T13:08:02.577
api_errors
softwareengineering.stackexchange.com
3,651
Is it required to move a domain to Google DNS in order to use certbot in kubernetes on Google Cloud platform?
Follow-up to What are trusted providers that offer wildcard certificates and associated costs to be used in an Orchestration Platform like Kubernetes? With https://github.com/jetstack/cert-manager it would be possible to automatically renew certificates. At the moment my domain is registered somewhere else than google....
@euank indicated that it is not required to create a DNS record on GCP in order to make it work. https://github.com/jetstack/cert-manager/issues/399
1
1
120
2018-03-16T14:08:08.003
pipeline_ops
devops.stackexchange.com
279,106
A good workflow to start with Continuous Delivery?
My team is facing a couple of new challanges in the near future, as we will start developing a couple of (micro)services which will run in a cloud environment. Therefore we want to establish a continuous delivery workflow (and maybe move on to continuous deployment someday). Currently we are developing an application b...
If I understand your question correctly, the only reason you want a "clean master" at all times is so that you can "react fast if something is broken". I believe this is best served by doing hotfixes on release branches , rather than moving all non-hotfix tasks to non-master branches. Basically, you do all development ...
0
1
1,508
2015-04-15T06:39:27.407
pipeline_ops
softwareengineering.stackexchange.com
666,911
Reverse proxying with dockerized nginx
[Cross post from stack overflow since I think server configuration might be the problem] I'm building a multi-container application with Docker. The full environment is on github should you wish to recreate it, but I include what I believe to be the relevant parts below for convenience. My nginx Dockerfile is like so: ...
Finally figured this out. I needed to delete the default enabled site installed with nginx. My Dockerfile now reads: [CODE] And all is well in the world.
0
0
423
2015-02-11T21:19:02.433
pipeline_ops
serverfault.com
120,686
What index should I use for a read-only database?
The database looks like this: Parameters has 126000 rows, which link an ExperimentID to the starting parameters for that ExperimentID. Simulations has ~107M rows, but I really only query against Xa (a floating point value with mostly unique entries). I'm interested in the other data, but for now it's just there. The cu...
You said, that [CODE] is not really filtering much, so there is no point in indexing it. Just looking at the query structure, I'd add an index to [CODE] table on [CODE] . The order of columns is important. I would also make sure that all indexes have Fill Factor=100, because the data is static. But, overall, the main b...
3
0
180
2015-11-11T02:02:11.007
warehouse_errors
dba.stackexchange.com
216,177
XenServer 5.6.1-fp1. Can't get network working
I have a PC where XenServer 5.6.1 fp-1 has been successfully installed. I've manually set the network settings: [CODE] but it's set to xenbr0 iface. While eth0 is empty. When I click on "Configure Management Inteface" it shows that eth0 is connected. But when I ping a default gateway (which is 100% should be accessible...
Look here: Citrix Forum After the update from my Citrix XenServer 5.6.0 to XenServer 5.6.1 feature pack 1 the network and the XenServer was unreachable. I couldn’t ping an IP from the network. The Mainboard is an ASRock P43TWINS1600 and the NIC is a RTL 8111/8168B PCI Express Gigabit Ethernet Controller. With ifdown et...
3
3
8,230
2010-12-26T09:05:42.737
infrastructure
serverfault.com
139,971
Need tool to change Hard Disk unique ID
There was a tool called PB Downforce that did something like this. It has been discontinued as it was buggy and stopped working for its purposes. So, is there any alternative? I have a licensed piece of software that is attached to the HD ID. Thanks.
If you're using Windows, diskpart will do it for you diskpart select disk 0 (or whatever disk it is) uniqueid disk ID=[SIGNATURE]
1
2
3,506
2010-05-09T08:23:04.017
infrastructure
serverfault.com
252,732
Sense of unit tests without TDD
We have new (quite big) project starting, that we planned to develop using TDD. The idea of TDD failed (many business and non-business reasons), but right now we have a conversation - should we write unit tests anyway, or not. My friend says that there is no (or close to zero) sense in writing unit tests without TDD, w...
TDD is used mainly (1) to ensure coverage, (2) and to drive maintainable, understandable, testable design. If you don't use TDD, you don't get guaranteed code coverage. But that in no way means that you should abandon that goal and blithely live on with 0% coverage. Regression tests were invented for a reason. The reas...
29
52
3,657
2014-08-08T12:56:54.947
data_quality
softwareengineering.stackexchange.com
630,958
Server hacked and used for sending spam
Hi I have [CODE] server which running mail server. Last 2 days server started to send spam. After doing some research I couldn't solve the issue. Here is portion of statistics from [CODE] and the interesting thing is: it seems exim sending the messages. [CODE] I tried to get source script which sends emails and run the...
Try this and you can create a log entry which tells you the origin script. http://blog.rimuhosting.com/2012/09/20/finding-spam-sending-scripts-on-your-server/ Extract from the link above (the essence): By simply adding the following 2 lines into your php.ini then you can track down pretty much any outgoing spam using P...
0
0
1,412
2014-09-24T17:58:42.973
infrastructure
serverfault.com
343,359
Event ID 8021 The browser was unable to retrieve a list of servers from the browser master
We have a LAN where workstations are randomly losing network connectivity for brief moments of time. The workstations can also take a long time to login to the domain. During our troubleshooting we have found an error log on a few Windows 7 workstations: Warning BROWSER 8021 The browser was unable to retrieve a list of...
Doesn't sound like you need the Master Browser service, all your workstations are DDNS compatible, you shouldn't use legacy name resolution options like NetBT or WINS. Check out this article: http://support.microsoft.com/kb/135404 (most interesting for you is probably the WORKAROUND section, namely turning it off)
3
2
23,665
2011-12-22T04:05:20.287
infrastructure
serverfault.com
321,842
BASH Script as xinetd service
I have recently found out that a server I am working on has an xinetd service that is in fact a shell script that calls another shell script with arguments retrieved via respective network connections. It does something like this: [CODE] What makes me afraid this is a real problem is the fact that the variables are not...
I can see two types of attacks. One against script itself, by calling it with data that can give elevated privileges. The other one against bash, by using a buffer overflow or other bash bugs. One issue is that bash was not designed to have a good security for this kind of attacks, because it expects that the input is ...
3
2
1,823
2011-10-16T03:16:10.663
infrastructure
serverfault.com
831,446
LVM - Reducing COW size down to maximum usable size
I am doing snapshots on an LVM Volume. It works, but since a few minutes I do get a warning message. The command is: sudo lvcreate -s /dev/$VG/$LV -n $SNAP_NAME $VS 2>>$LOG The VG has enough space for a new LV. However the system issues a warning: Reducing COW size 30.00 GiB down to maximum usable size 24.10 GiB What d...
Just found the reason. COW means (copy on write) and indicates that the lv volume size is 24G but the snapshot command used creates 30G.
1
1
1,139
2017-02-08T20:38:14.127
infrastructure
serverfault.com
116,826
Help with query
I have following data. I am trying to get the number of days the project stayed in a particular status. Example below of raw data, I need to be able to get the result shown. Can I get some pointers on how I can achieve this? Raw data [CODE] Expected results [CODE]
You can group the data using a trick using row number - row number partitioned by status. That will create the same number for rows with the same status for a range of dates. This just takes the rows ordered by entry_date and status, but you might want to do something better for the entries on the same day: [CODE] Exam...
4
6
216
2015-10-02T14:55:11.057
warehouse_errors
dba.stackexchange.com
673,538
Kerberos keytab permissions
Can you share some thoughts on whether a Kerberos keytab should be readable only by root - under all circumstances ? Or are there exceptions to this rule? I am setting up a Squid proxy on Debian Jessie for Kerberos authentication with Active Directory. Most documentation advises to create a keytab for Squid containing ...
I think I should rephrase my question, thereby answering it: How do I create a keytab that contains only entries for the HTTP SPN? If I create a new keytab for Squid with the following commands as it is described in the Squid wiki [CODE] then the new keytab [CODE] will contain entries for the same SPNs as the system ke...
1
0
10,220
2015-03-06T16:39:55.407
api_errors
serverfault.com
169,879
.htaccess and .htpassword not working
I'm running a wamp server on a windows xp box. I have a .htaccess file that contains [CODE] and a password file .htpasswd [CODE] password = password The .htaccess file sits in a subdir called "NewCats" (the folder im trying to protect) and the password file sits in the root dir (i tried it in the newcats folder and it ...
One possibility is the following : On Windows the paths use a backslash ( [CODE] ) and not a slash ( [CODE] ). Try editing your [CODE] to match this. [CODE] You also have to be sure that [CODE] is activated in Apache and that your [CODE] doesn't end with the [CODE] extension !
1
2
4,053
2010-08-12T18:09:33.147
infrastructure
serverfault.com
999,772
Firefox addon uninstall through registry
I have installed a Firefox add-on by adding a key-value pair in the registry under the following path- [CODE] The installation works I want to uninstall the same extension, so I am adding another entry under the following path- [CODE] I am using the appropriate id and path. I am getting the add-on id by clicking on deb...
It's not very clear from the documentation and it took me a while but the value of the key should be the extension id including the braces. Example: [CODE] As an alternative you can also try extension settings which enable more precise control of extensions in Firefox, like actually blocking the installation.
0
0
1,044
2020-01-21T13:27:44.627
infrastructure
serverfault.com
736,157
udp broadcast not working on access point
I've created a c++ server who broacast a packet every second. The binary is working and the packet is correctly send when i'm connected on the wifi. I've put the working binary on a raspberry and have successfully configure an access point (cf this tutorial : https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=5494...
In most situation your broadcast traffic will be suppressed. I suggest you to make a routine in order to send the packet one by one in contemporary threads. It's the best choice i think. I hope it helps!
-1
0
562
2015-11-13T15:00:07.467
infrastructure
serverfault.com
283,535
Large hexadecimal PRIMARY KEY - how to index substrings of the PK field?
I have a requirement for a very large (in terms of the number of rows, not data) database, and need to use a very long, unique, hexadecimal [CODE] instead of the usual [CODE] integer. As an example, lets say that the [CODE] is similar to an IPv6 address , say something like [CODE] . So, apart from the usual searching b...
Regular expressions can be a very powerful tool for various data storage, manipulation and indexing requirements - regexes' capabilities in conjunction with [CODE] columns can be even more flexible and powerful and provide a decent solution to the OP's issue. In this particular case (rowing back from my initial answer!...
4
3
931
2021-01-19T06:59:11.370
database_errors
dba.stackexchange.com
729,905
WDS&PXE booting using Grub2 - choosing menuentry
I have problem with booting to WDS using PXE with Grub2. Actually we are using WDS with DHCP (Windows) - on DHCP I have WDS IP and 'grldr' file as bootfile name (grub loader) with menu.lst file (on target computer). I booting via pxe, grub searching menu.lst on hdd, loading menu.lst - I can choose WDS or HDD. Today, I ...
On a PXE scenario grub2 will look for its configuration file depending on how its image was created. please look here for an example. https://github.com/openSUSE/kiwi/wiki/Setup-PXE-boot-with-EFI-Using-GRUB2
0
0
3,307
2015-10-19T09:37:27.643
infrastructure
serverfault.com
391,331
If the whole point of recursion is to break the problem into multiple smaller problems, what if those problems were solved in parallel?
So I was studying here and I was thinking if the whole point of recursion is to break the problem into multiple smaller problems, what if those problems were solved in parallel? A quick search lead me to links like this where people say it's not worth it because of context switching which makes sense, but what if inste...
Recursion isn't really about breaking problems into smaller ones or enabling concurrency; it's about solving self-similar problems. Consider this representation of a Binary Search Tree : [CODE] That's all you need to completely represent a binary search tree. Why? Because it is a Recursive Data Type ; the nodes in the ...
1
13
961
2019-05-02T21:45:13.987
api_errors
softwareengineering.stackexchange.com
253,215
SSIS package deployment. Changing protection level takes a very long time
We are in the process of migrating our servers to a new data center. Currently we are on SQL Server 2014 and SSIS packages deploy in seconds. The new data center has several SQL server 2016 installs and I noticed that on some of them the "Changing protection level" takes a very long time (around 7 minutes!) but on some...
It seems that I solved my own problem. I do not know exactly what cause it, but here is what i did. It turns out that only one of the projects that we have had the problem I described. That project happened to have multiple packages included. For testing I removed all packages from the project and added one at the time...
4
2
2,442
2019-11-13T20:48:39.603
pipeline_ops
dba.stackexchange.com
294,727
How to auto-increment a serial column ON UPDATE?
When creating a sequence in Postgres 10, how do you auto-increment on updates? (Not just assign the next higher number for the next inserted row.) For example, suppose I create the following table and sequence found on this page : [CODE] As you can see it correctly auto-increments the "id" column by one on inserts. How...
It's an unusual request, because one wouldn't typically want to change an existing serial ID. (The PK, no less!) But to answer the question: Use a trigger . Example trigger function & trigger: [CODE] db<>fiddle here (for Postgres 10) Of course, this overwrites any changes to the [CODE] column that may have been made in...
3
8
9,458
2021-06-23T22:12:58.090
warehouse_errors
dba.stackexchange.com
1,053,093
Windows 10 InactivityTimeout ignoring GPO, Locking Screen after 5 minutes no matter what
We're having a problem where a subset of PC's lock after 5 minutes, but the GPO for "Interactive logon: Machine inactivity limit" is set to 900 seconds (15 minutes). So far I've tried the following, but nothing has solved it: Run "gpresult /z > gpresult.txt, searched through for any strings matching Sleep, Timeout or I...
Did you try checking the corresponding Event IDs ? IDs were posted here: https://stackoverflow.com/questions/11385164/eventviewer-eventid-for-lock-and-unlock maybe you get more information, what is happening exactly, by the eventlog entries. (I am new here and can only "answer" and not "comment" - hope, this is ok) you...
1
0
7,668
2021-02-10T10:53:25.087
infrastructure
serverfault.com
1,056,059
Website responds to IP, but not Domain
I have hosted a Django-based website, which is running on Apache2, on an AWS Lightsail Ubuntu 20.04 instance. The website is accessible when you use the ip, 18.133.43.205. But when I try to search my website using the domain, roosta.xyz, the connection times out. The DNS is using AWS's nameservers. I don't believe that...
The root of your problem is the fact that your server does not respond on HTTPS. (As in: not responding at all on TCP port 443. My connection attempts simply had to time out because your server doesn't even return a "connection refused" packet. That is typically the effect of DROP rather than a REJECT firewall policy)....
1
2
2,009
2021-03-05T14:42:58.757
api_errors
serverfault.com
776,493
Massive performance degradation on sustained sequential write
I'm in the process of migrating data into LUKS partitions. Now that the operating system drive is running off LUKS, I tried to start migrating the data drives. Then the server stopped responding. This LUKS device was opened: [CODE] And either of these commands strangled the server: [CODE] Not immediately, but within se...
The control disk is connected to a SATA port built into the motherboard. As stated, the disks experiencing the journal flush time out issues are connected to the PERC, the same controller that the 'problematic' Toshiba's are connected to. The PERC 310 is only a basic hardware raid card. It's CPU is probably easily over...
6
1
4,775
2016-05-13T00:24:38.963
pipeline_ops
serverfault.com
375,324
Referencing custom Python modules and data files
I'd want to deploy my Python code and relevant static files such that only a copy of a folder is needed. That is, all the paths inside are relative. The release is to a web server, which calls scripts in a subprocess. Naturally, everything works in my environment in PyCharm. Problems arise when I subprocess Python and ...
What's crucially missing from your files hierarchy is [CODE] . This is the distinctive differences between a collection of Python scripts/data and a Python [CODE] . I'm also wondering why you are [CODE] your code. Coding is not a furniture mover business (moving stuff as is to another place), it's an architecture busin...
0
3
771
2018-07-17T08:57:15.900
api_errors
softwareengineering.stackexchange.com
478,726
Am I using virtio for my KVM guest?
In one of my KVM guest, when I typed the following command, I get the following [CODE] So does it mean I am using virtio? Update: When I type [CODE] I can see [CODE] So sound like I am using virtio already?
KVM provides paravirtualization drivers for several bits of hardware; this particular one is the memory balloon driver. In particular, you should see [CODE] when using the virtio network drivers, and [CODE] when using the block device (disk) driver. And in the latter case, your disk would be [CODE] instead of [CODE] . ...
7
6
18,316
2013-02-14T08:49:10.747
infrastructure
serverfault.com
166,348
Does not writing a checkpoint record damage anything?
I got an alert Event ID: 3619. Could not write a checkpoint record in database 'ID ####' because the log is out of space I know why it happened, I have addressed the issue, backed up the t-logs, shrunk the log that overgrew and other wise done my best to ensure it does not occur again. The issue that caused the logs to...
The checkpoint process writes a record into the log to allow the database recovery process, used when starting a database, as a base point-in-time. In other words, the recovery process only looks at log records since the last checkpoint record that exists in the log. The items recorded in the log allow SQL Server to ei...
3
2
1,972
2017-03-06T15:18:33.440
warehouse_errors
dba.stackexchange.com
231,539
bind9 fails to start
I just bought a dedicated server and it is running Ubuntu 10.04 LTS. I followed this guide to install Bind9 Now I get this in the terminal when I start it up: [CODE] Can anyone help with this? I'm not sure what went wrong, but I'm sure it's something with that guide since I don't remember that many steps in my last Bin...
See log file "/var/log/syslog". [CODE] Then fix problem and install bind9 again: [CODE] For debug, run named in foreground and send log to console: [CODE]
3
1
6,445
2011-02-05T10:52:11.317
infrastructure
serverfault.com
235,978
DDD - Business rule that depends on a service
I got confused about if a domain is required to access an external service in some state of it's life cycle. The business rule is this : If an Employee is accepting a JobSeeker's JobApplication, then the Employee must create an Appointment and have it e-mailed to the JobSeeker. My current solutions are: 1 - Leave the m...
The rule is not to depend on infrastructure, but instead you can create an interface in terms of the business to communicate with that infrastructure. These are your services. Sending mail is a business requirement, or service, but how you send mail is up to you. You may want to create your own business-specific mail i...
1
3
1,122
2014-04-15T05:19:09.577
api_errors
softwareengineering.stackexchange.com
31,016
I lost my database in SQL server 2008 R2
My database suddenly stopped working and from checking the error logs it says that the master database was corrupted. So I tried rebuilding the system database with the command: [CODE] After running the command, the database server has started working again, but all my database are nowhere to be found. I really need so...
You can try attaching the missing databases using the files. You can right click on the databases folder in Management Studio and select "Attach". Another option, and the one I would generally go for, would be to use any backups you have. You will experience some data loss though. If you are using the full recovery mod...
5
8
7,446
2012-12-24T19:04:52.853
data_quality
dba.stackexchange.com
868,290
virt-viewer not starting up correctly
I just installed virt-viewer on RHEL7.3 using yum install virt-viewer and now I am getting below error [CODE] virt-manager also crashes when I try to see graphical console. Target library seems to exist so something is wrong with the dependency. [CODE] Is there anyone else faced the same problem?
Found the problem. Problem When I install virt-viewer from yum repository, 1 package is installed and 2 packages are updated. [CODE] As a result, below error occurs. [CODE] Looks like latest spice-glib and spice-gtk3 is not working properly with virt-viewer . Work Around Install the virt-viewer from the rhel-server-7.3...
1
2
2,918
2017-08-12T07:28:44.060
infrastructure
serverfault.com
291,553
Misunderstanding about "Evidence Based Scheduling" in estimation tasks
I read the Spolsky blog the post with title " Evidence based scheduling " ( http://www.joelonsoftware.com/items/2007/10/26.html ) but I don't understand the mechanism to predict and estimate interruptions. If I understand, Splosky says to prepare 100 scenario for a task in ramdom way At point 3 of the article, Spolsky ...
at the point 2, what total have 1% probability in every case? The total of example? But it has only 5 tasks. The estimation system takes 100 velocities calculated from the developers history. Each velocity is the ratio between estimated time and actual time for a given task. at the point 4, I don't understand the sente...
5
5
1,087
2015-08-01T20:48:55.903
api_errors
softwareengineering.stackexchange.com
3,899
Disable UAC And Windows Security Center alerts under Vista Business
We have a few Windows Vista Business with User Account Control turned off (the reason is because those machines need to run a series of programs that do not work with UAC, the boxes have no Internet connectivity so this is not a security problem). But I'd like to know if there's a way to disable the annoying "popup" th...
The UAC warning is set by a registry key: HKEY_CLASSES_ROOT\CLSID{FD6905CE-952F-41F1-9A6F-135D9C6622CC} You can disable this warning by deleting or disabling this key. Usual warnings about editing the registry apply.
2
3
1,120
2009-05-04T09:44:01.400
infrastructure
serverfault.com
318,474
How to pass password to scp command used in bash script?
Possible Duplicate: Connect through SSH and type in password automatically, without using a public key I have a bash script that makes dump of DB then copies file from one server to another but it always asks for password before connection. [CODE] Is there a way to pass password directly into script ?
Use the tool sshpass [CODE]
62
97
730,771
2011-10-04T19:59:53.777
data_quality
serverfault.com
322,936
Why does java.time have methods for creating objects instead of just constructors?
In the new java.time package the core classes are using the factory method [CODE] instead of a public constructor. Even though I like the cosmetics of the [CODE] method I can't see a good reason to not use a constructor. The documentation I've found just explains that this is the case and doesn't really go in to why it...
Factory methods allow simplifying the constructors - the difference which instance in time is represented by the Object can be separated from the calculation of the instant. There are lots of factory methods, some doing String parsing, some converting from some other date or time representation, but all that can happen...
10
11
1,667
2016-06-22T11:30:29.817
api_errors
softwareengineering.stackexchange.com
335,178
Update is not applicable to your computer
I am running Windows Web Server 2008 R2 SP1 and its a 64-bit. I am trying to apply this hotfix http://support.microsoft.com/kb/980368 and it becoming TOTALLY impossible? i have double checked and indeed this hotfix isn't installed on my server currently and I really really need it, every time i try to install it i get ...
It is already included in Service Pack 1. So no need to install it again. This is what the message tells you.
-1
2
7,954
2011-11-27T12:43:55.670
infrastructure
serverfault.com
978,802
Disk inodes full due to PHP sessions
We have been struggling with this problem for over 2 years now. We have an eCommerce shop that uses PHP sessions to store user baskets and other information. The problem is that after a while, the server will run out of disk inodes even if there is plenty of free space left on the server disk. Then it will crash the en...
Zebra Session acts as a wrapper for PHP's default session handling functions, but instead of storing session data in flat files it stores them in a MySQL database, providing better security and better performance it is a drop-in and seamingless replacement for PHP's default session handler: PHP sessions will be used in...
0
1
2,110
2019-08-11T17:36:59.493
infrastructure
serverfault.com
1,107,422
Windows update through explicit Squid proxy - 0x80072EE6
I'll try to give a thorough rundown of the environment: anonymous proxy proxy must be set for Internet access 2 Squid proxies on RHEL8 behind an f5 - not caching 2 Windows AD DCs, both running 2019 Standard experiencing the issue. Both freshly installed have the following set in a whitelist (developed this list while w...
Currently working on a similar(ish) issue on Windows Update via Squid proxy. Please check the Windows Update log at C:\Users\Admin\Desktop\WindowsUpdate.log ( generate first with Get-WindowsUpdateLog ) It might give clues to what is happening. There is a special page with squid recommendations for Windows Update: https...
0
1
2,962
2022-08-04T20:45:21.280
pipeline_ops
serverfault.com
1,076,737
isc dhcp multiple option 240 in same subnet
I'm fairly new to isc dhcp. I'm working at an ISP and need to provide our STB's with an option 240, and it has worked fine for years, the problem now is that we are getting a newer model, that needs a different option 240 string. How do I do that in the same subnet? Is it possible to match on the mac-address and only p...
One way is to use classes, there is many examples using that approach and then having different options for the classes. One other approach is to do something like this. [CODE] Or even: [CODE]
0
0
440
2021-09-06T11:00:05.337
infrastructure
serverfault.com
113,126
How to build single pipeline with multiple estimators supporting fit and predict?
I have a ML problem where I want to divide the prediction task into subproblems (where I believe specialized models will do better). All these predictions tasks operate independently and will use the same input data - but will have different estimators/targets. For example: single dataset (A) shared transformations A -...
Scikit-learn pipelines are designed to chain operations, they are not designed to handle conditional logic. Your problem is better handled in Python-based logic. Something like: [CODE]
2
1
918
2022-07-31T15:15:02.603
pipeline_ops
datascience.stackexchange.com
359,595
Worth deleting email account due to SPAM?
We have a system here in which several accounts get a ton of SPAM and spamd (SpamAssassin) is constantly using a ton of memory. Our machine is used for both our website and our email. Our LAMP based website gets a lot of traffic, so when the server slows down due to email scanning it's frustrating. To keep costs low, i...
Are you doing any RBL checks at SMTP time? In my experience, those catch 90% of spam, and it's much easier on the system to do an RBL check during the SMTP transaction (and then reject the mail) rather than having to accept the message and then make the system scan/parse the email through spamassassin. RBL checks are f...
2
3
196
2012-02-13T14:55:28.503
api_errors
serverfault.com
75,814
Daily new data for my neural network, and I want transfer(?) learning
I made my neural network, it is [CODE] [CODE] And I also want after the filtering, I want to re-train my AI-model but I just want to use new 1-day data only(because training neural network is really time-consuming work). My AI model is 0(not fraud)/1(fraud) classification model. I want to change my neural net by [CODE]...
So, I believe the question you are asking is how to re-train the model on a single day's worth of data, rather than training on all 180 day's worth of data. It definitely seems reasonable that you have seen overfitting, this can be due to the complexity of the model (related to depth of network). So changing the model'...
1
2
88
2020-06-11T05:28:13.673
data_quality
datascience.stackexchange.com
2,966
Badly performing query plan after adding ORDER BY to Full Text CONTAINS search
The following query is proving beyond my abilities to fix - hope someone can help. [CODE] Without the ORDER BY clause, the query performs fine ( 2 minutes). The problem seems to be an incorrect query plan. The query plan that performs well is this: The query plan that performs badly is this: IX_Foo_InsertDate is define...
The optimizer is choosing the different plan because it thinks the benefit of having the pre-sorted [CODE] (using [CODE] ) outweighs the cost once you add the [CODE] clause. The optimizer cannot be perfect, it might choose a slower path even if statistics are accurate - but it will certainly make poor choices if the st...
3
2
365
2011-05-27T04:29:04.847
database_errors
dba.stackexchange.com
1,147,541
Direct Access IPV6 Routing
So here is the situation... I'm setting up direct access on windows server 2022 and im getting a network adapter error that i need to "Publish the IPV6 routes on the network adapter that connects the server to the corporate network", SO! im not a ipv6 expert neither am i a routing expert, can anybody guide me in the ri...
To resolve this error message, add the client IPv6 route to the DirectAccess server’s routing table and publish it. This is accomplished by running the following PowerShell commands on the DirectAccess server. [CODE] Next, restart the Remote Access Management service (RaMgmtSvc) using the following PowerShell command. ...
-1
0
174
2023-11-09T19:31:43.080
infrastructure
serverfault.com
1,046,774
AH00035: access to / denied 403 Forbidden Django mod-wsgi
I am trying to configure apache with Django using mod-wsgi. But I am getting the following error [CODE] URL is showing [CODE] Here is the conf file [CODE] The directory structure is as follow [CODE] I have tried to set permission as follow [CODE]
"Search permissions are missing" means that the Apache user (probably apache, or www-data) doesn't have permission to traverse the directory tree all the way down to /home/ec2-user/ezvoice. You can debug this with [CODE] , which will show you a long listing of all of the directory paths down to a file or directory, sta...
0
1
2,626
2020-12-18T16:19:27.217
api_errors
serverfault.com
11,775
MySQL Replication via DNS Failure
I'm having some trouble using replication when the machines are configured to use host names instead of IP addresses. The "skip-name-resolve" is OFF. If I use IP addresses, everything is fine. Using DNS names, it all stops. On the Master Replication is configured with the following command: [CODE] On the Slave The slav...
I feel terrible for forgetting about this question!!! I have located and fixed the problem as follows. When the DNS names were added to DNS, the corresponding reverse lookup was not created. This resulted in MySQL not being able to perform the reverse lookup from the IP address to the correct DNS name, and therefore re...
3
2
3,666
2012-01-27T14:33:41.170
database_errors
dba.stackexchange.com
149,039
How To Change What Version of PHP Apache2 Uses?
Ubuntu 10.04, MySQL 5.1, Apache 2.2, and PHP 5.2/5.3: I just discovered that I am using the wrong version of PHP for a CRM application. Once I figured out how to make a simple [CODE] script to tell me what Apache2 is using, I tried changing the [CODE] such that my webserver would use the PHP I want. Well, this is my pr...
Depending on your server, you should be looking at Apache, not PHP. (For RHEL/CentOS) look at [CODE] [CODE] You'll see that your PHP module is [CODE] . [CODE] tells Apache to run PHP on any file with the extension [CODE] . If you are using an RPM based OS it's probably easier to uninstall (assuming you can do that) the...
40
11
219,870
2010-06-07T21:40:33.267
database_errors
serverfault.com
519,300
Installing MySQL - Understanding initial message returned from MySQL
After MySQL is initially installed, it returns the message shown below the first time the daemon is started. I am trying to better understand this message, and have the following questions: What causes the warning about the host not able to be looked up with resolveip? This is a brand new install of Centos 6.4, then [C...
Usually those warnings are related to compiled binaries compatibilities and your installed C libraries. CentOS 6.X come with a new C library version which could cause some warning on particular software versions like mysql 5.1.69. mysql installer generates a init script for you called mysql.server, basically what you h...
0
1
1,645
2013-06-28T11:43:01.543
database_errors
serverfault.com
200,929
What inexpensive, reliable "pizza boxes" to buy?
I'm putting up an application cluster on three networks. Each cluster requires five lesser rack mounted machines (pizza boxes), and two greater pizza boxes. Price is an issue. The lesser pizza boxes need to be minimally: dual core CPU, 2Gb RAM, 250Gb disk, dual Giga Net. The greater pizza boxes need to be minimally: du...
Tier 1: IBM, HP, Dell Tier 1.5: Supermicro Tier 2: Literally dozens and they change every year That's it, its really annoyingly simple in that you have no real option to get around the fact that the tier ones have extremely hit-or-miss support and the rest just bake the miss into the price.
2
1
1,154
2010-11-11T21:27:38.843
infrastructure
serverfault.com
1,013,798
Google Cloud Services Content Security Policy Issues
I have a static web site hosted in a bucket that I serve up via the Google Platform. This site has been running with no problems for about 6 months but over the last month I have had intermittent problems with it not loading style sheets and scripts due to "Content Security" issues - this results in just the text of th...
As it was suggested in the comment section by @Bruno this issue was already solved in this question . For better usability I'm copy-pasting (with links) two solutions that users confirmed worked; Solution 1 [CODE] Warning: This exposes the document to many exploits. Here's a detailed explanation about possible security...
2
1
1,574
2020-04-23T14:52:30.120
infrastructure
serverfault.com
114,163
Enforce a single NULL end date per foreign key value using an index
I want to implement a Check Constraint across a date range and foreign key. I have a table created as: Primary Key Foreign Key DateStart DateEnd The ForeignKey can appear many times in the table as long as there is a value in the EndDate . But there should only ever be one entry for the ForeignKey where the DateEnd is ...
You can do this with a unique filtered index. Table setup. [CODE] Add the unique index on [CODE] filtered on [CODE] . [CODE] Add one row to [CODE] . [CODE] Add a couple of rows to [CODE] . [CODE] Add another row with a value in [CODE] will work just fine. [CODE] Add a second row with [CODE] in [CODE] will fail. [CODE] ...
1
4
91
2015-09-04T04:47:04.627
data_quality
dba.stackexchange.com
1,001,052
Apache rewrite any subdomain except one to non-www https
I'm trying to reduce the amount of 301 redirect chaining on my server so I'd like to combine a subdomain to non-www redirect (except where the subdomain is [CODE] ) with a HTTP to HTTPS redirect (using [CODE] ) as the instance is behind a load balancer. Here's what I have so far in my [CODE] : [CODE] There are three pr...
1) A request to [CODE] will have two redirects. This can be resolved by simply reversing the two rules. Then [CODE] is redirected to HTTPS in the first redirect, so the HTTP to HTTPS redirect does not need to trigger. (This does, however, assume you have no intention of implementing HSTS - in which case you would need ...
1
1
2,450
2020-01-30T11:16:09.130
infrastructure
serverfault.com
205,290
Increasing tempdb data files on 2 node Availability Group
I am planning to create additional tempdb files for 2 nodes in a SQL 2012 Availability Group. Unfortunately we do not have Instant File Initialisation turned on so the growth of the tempdb data files will be subject to PREEMPTIVE_OS_WRITEFILEGATHER waits for up to 30 minutes (based on testing). I am concerned that thes...
The steps you provide are correct except for the "disable synchronization" and "enable synchronization," which are not needed. If you pause synchronization prior to failing over, you may have some data loss. The stopping/starting of synchronization occurs automatically when failover is performed, regardless of whether ...
0
0
309
2018-04-29T15:39:19.010
database_errors
dba.stackexchange.com
1,101,051
python virtual environment on rolling distro (Arch)
I am a big fan of the rolling distribution model. I do need help with one hiccup. when I create a virtual environment in python to isolate a project all works great until my rolling distro upgrades python versions. When this happens my python project no longer works, so I destroy my venv and create a new one. It seems ...
Let's assume a venv was created with python3.9, right before python3.10 was released. venv will create a bin directory symlinked to the system python, as in [CODE] This unversioned python binary itself might not a problem. However, the site-packages directories are major version specific, which makes your python3.9 pro...
0
2
509
2022-05-16T16:01:41.130
infrastructure
serverfault.com
245,699
Infinite loop in CURSOR
I'm trying to use a cursor to clean up temp tables when they are no longer needed. I have a small table which has the names of the temp tables along with an identifier. The cursor is stuck in an infinite loop, but only if I execute certain statements in it. If I just print out the values from the [CODE] , it works perf...
Probably you're moving the row when you set [CODE] and reading it again with your FAST_FORWARD cursor. Use a STATIC cursor instead, which will iterate a copy of the data, and avoid mutating the data structure you are traversing. [CODE]
7
12
2,732
2019-08-19T16:16:15.013
database_errors
dba.stackexchange.com
208,815
Drawbacks of using pure html in webforms?
I'm maintaining an ASP.NET Webforms 4.5 application for a few months and frankly i'm fed up with server controls. So i switched to pure HTML and Javascript for front end, when creating new content (or fixing the old, assuming there was enough time). Almost (for reusability reasons) all new requests to the server are do...
Overhead If nothing in your app is going to use the webforms model you are generating a lot of business with events, control/view states and what not that is just in the way and sucking cycles. Also, if you are doing this now, why ajax and not json? it is smaller, moves across frameworks better and is supported by more...
4
1
685
2013-08-19T15:11:37.787
api_errors
softwareengineering.stackexchange.com
12,411
ansible error: skipping: no hosts matched
I've tried a few variations on running [CODE] locally as a test case: [CODE] perhaps I need an additional configuration for the localhost loopback? Although I can ping localhost as: [CODE]
The answer is in the warning you get: [CODE] When you use [CODE] in your playbook, [CODE] is not matched. If you want to run the playbook on localhost, you can do one of the following: Change your playbook to [CODE] . Explicitly provide an inventory file that has [CODE] . You can create an inventory file - [CODE] with ...
6
6
23,059
2020-09-15T08:31:28.670
pipeline_ops
devops.stackexchange.com
287,672
Is serving a single document from a server to a browser slower than serving multiple documents?
I was looking into how to optimize web pages and the biggest way (code-wise) to optimize a website is to reduce the number of requests a browser has to make to your web server to get the full page. The most obvious ways of doing this are: Sprite sheets instead of individual images Put all your css into one file Put all...
Combining resources is one way to potentially improve performance for a web site. Let's look, though, at what happens when we take this to the extreme hypothetical you pose. Size Savings? We can Base64 encode images and put them directly into an HTML document. The first problem, though, is that Base64 encoding a binary...
3
10
110
2015-06-23T21:05:39.470
api_errors
softwareengineering.stackexchange.com
96,801
Group Policy dealing with IE zone assignment not sticking!
I have a group policy (which ONLY deals with the zone assignment) -that is continually switching on and off with reboots. I thought it was a conflicting group policy but when I run group policy modeling report it doesn't show any descrepancies that I can see. I thought it may be an issue with one domain controller wasn...
GP modeling/RSOP is an excellent tool to show what should be applied. Sometimes gpresult will provide a more realistic picture of what actually was applied. You may want to run gpresult /z > gp.txt on the machine where the policy is out of whack. Inspect the file to verify that your policies and settings are applied an...
0
0
481
2009-12-22T20:04:02.147
infrastructure
serverfault.com
537,067
Broadcom iSCSI HBAs missing in vSphere
I've got 4 Cisco UCS C210 M2 servers, each with a Broadcom NetXtreame II BCM5709 Quad-port adapter in it. They are all running vSphere 5.1 U1. On one the servers, the Broadcom ports show up as both vmnics, as well as iSCSI HBAs. On the other 3, I only see the vmnics lists. Anyone have a clue why they may be missing fro...
We have this Broadcom NICs over here. All I can say is that this cards aren't 100% offload capable. As example, they only offload the TCP stack. The iSCSI connection is at some point managed by the software. So you should add an VMkernel connection with your iSCSI IP Address on the Virtual Switch of VMware. After this ...
0
0
396
2013-09-06T21:34:14.377
infrastructure
serverfault.com
159,818
iptables logging not working?
OS: Ubuntu 10.04 Logging daemon: rsyslog For some reason i'm not getting any iptables logs, even thought i don't look through them very often i'd still like to get it working for the sake of it working XD Here is my /etc/ryslog.d/iptables.conf [CODE] My iptables logging prefix is "[IPTABLES]" followed by whatever else ...
Upgraded rsyslog and now everything is working! [CODE]
0
0
6,714
2010-07-13T05:26:47.627
infrastructure
serverfault.com
100,520
How to Inference With Keras Sequential Models (Text Classification)
I have the following LSTM model and I can't make inference with it: [CODE] (epoch is 1 to test) I want to make an inference with the text, let's say [CODE] I check the documentation of tf.keras.Sequential and it states I should use the [CODE] function and the input should be "A Numpy array (or array-like), or a list of...
I checked the sigmoid documentation from here and for a confirmed it should return only one result. So what's the problem here? You have used 2 Neurons at the output layer. So, each is responsible for one output. Either , change the neuron count to 1 and y_true to the 1-D array . Or change the activation function to So...
0
1
331
2021-08-25T22:38:25.163
data_quality
datascience.stackexchange.com
446,992
How can Rust be "safer" and "faster" than C++ at the same time?
I have been told that Rust is both safer and faster than C++. If that is true, how can that be even possible? I mean, a safer language means that more code is written inside the compiler, right? More code means more instructions for the processor to process. In this case, I'm thinking about arrays. In C and C++, you ca...
You seem to have quite a bit of misconceptions, which I'll address alongside your question. If anything is still unclear, please feel free to comment on this answer so I can address it Safer Yes, Rust is safer. Safety is one of Rust raison d'être, after all. Specifically, outside of [CODE] blocks, Rust is memory safe a...
20
65
12,725
2023-08-10T12:38:07.437
api_errors
softwareengineering.stackexchange.com
775,104
Linux, apache2, modsecurity blocks Google reCAPTCHA variables
I have a Debian Jessie box, Apache 2.4 and default mod_security enabled with base rules activated. When I try to implement a Google reCAPTCHA solution in a PHP code, modsecurity blocks page with returning reCAPTCHA variables. As I see, a modsecurity SQL injection protection rule blocks my site with reCAPTCHA. Is there ...
Add the following to your Apache config after you load the [CODE] file: [CODE] Note you may need to whitelist this argument from other rules similarly.
3
2
1,560
2016-05-05T18:38:13.177
infrastructure
serverfault.com
379,822
How to guarantee HTTP message delivery in fault tolerant way
When an application A communicates with an external/3rd party system B, there is always a chance that B is down. Say that A raises an event that should be sent as a message to B via HTTP, what is the best way to guarantee that the message is delivered? One possibility is of course to have some retry logic to resend the...
The database solution is definitively the best, transactional filesystem are not common, unless you consider that filesystem never fail (permission settings, disk full,...). I'll detail a more accurate scenario of what you suggest in order to make sure you doesn't lose an entry, using transactions. When needing to send...
0
2
1,556
2018-10-11T08:16:43.887
api_errors
softwareengineering.stackexchange.com
724,606
/var/log/messages named network unreachable. Looks like a security issue
I'm wondering if there is a security breach on my server. I was previewing the /var/log/messages file and I've been receiving a lot logging in and out and then some messages about "network unreachable resolving". Here is a sample of my last entries in the messages file. I'm running Centos 5.1. [CODE] If this is a hack ...
looks like (a) your IPv6 configuration might be acting up, and (b) something is hitting your box (usually spam email) which is causing a DNS lookup to a spammy/non-existent domain which results in a failure. Not really enough information to determine if you're compromised. Bare in mind though that EL5 is only getting m...
0
2
589
2015-09-24T17:28:05.123
infrastructure
serverfault.com
594,307
Holding F5 on Wordpress site causes 100% CPU (Apache)
I am running an instance of Wordpress on an Ubuntu 10.04 VMWare server. If I hold F5 or CMD+R on a page or post, both CPU's on the server will climb to 100%. There will be plenty of free RAM left, but the CPU's will stay at 100% until all the requests have been taken care of. Depending on how long I hold F5, it can tak...
This is likely caused by PHP processing your scripts. This can be optimized with the use of caching. This can be done with help of wordpress plugins. Some popular ones: WP Super Cache http://wordpress.org/plugins/wp-super-cache/ W3 Total Cache http://wordpress.org/plugins/w3-total-cache/ You can find comparison of diff...
-1
1
594
2014-05-10T16:27:04.397
database_errors
serverfault.com
513,340
How do I find out the internal ip address of a router in front of a firewall
We have a network with a firewall and outside of the firewall the router to connect to the isp. How do I find out what the internal ip is of that router. I do know the external ip, our fixed ip, but I can't connect to the router that way. I checked the manual, and the firewall is using the ip that is the default intern...
Look at the routing table of a computer on the network. On linux that's: [CODE] On windows get a command prompt and run: [CODE] You probably don't need to know the whole of the format of that output to spot the router's IP on the same line as your local network address range.
-2
0
2,365
2013-06-05T09:36:02.447
infrastructure
serverfault.com
813,442
Figuring out why I'm going over hard-drive quota
I suck at system administration, so if I'm getting something basic wrong, please let me know. Here is something that drives me nuts. At work, we have a big NFS server that serves all the employees of our company. Everyone has a certain number of GBs that they're allowed to write to it. I often get "quota exceeded" erro...
I can think of two things that might be causing your quota problems. First, you should know that quotas are implemented by creating a tiny database on the filesystem, which is updated each time a file is created, modified or deleted. (Actually there are two of them, one for user quotas and one for group quotas.) When q...
7
9
1,194
2016-11-06T08:05:12.803
infrastructure
serverfault.com
287,626
Starting points for creating a mysql database proxy
I'm not actually entirely sure if this is possible, but I'd like to build piece of software that behaves a lot like a proxy between a client and a mysql server. Essentially, I want this software to expose a connection string the same way a normal mysql database would, and listen to the same port. When it receives traff...
there two or three such software packets available, but usually you use this two split the incoming packages after rules to different servers. It is in the begining , sowhat difficult to configure, but there a a lot of tutorials https://proxysql.com/ or https://github.com/mysql/mysql-proxy
1
0
26
2021-03-24T17:44:17.400
database_errors
dba.stackexchange.com
267,590
Is it possible to restore a SQL Server Linux Backup on SQL Server Windows
I am running SQL Server in docker on a mac. I have taken a SQL Server backup from windows and restored it in the mac SQL Server docker instance. Now I want to take a backup from the SQL Server docker instance and restore it back to windows. When I attempt to restore on Windows I am getting a "System tables sysfiles1 is...
I just validated it. Yes. Not only is it possible, other than using the WITH MOVE to change where the files are located, there's literally nothing special involved. I tested it using a shared volume to get the backup out of my docker instance. I also tested it using the docker file copy command. Both worked just fine. ...
10
11
1,275
2020-05-21T07:40:15.123
pipeline_ops
dba.stackexchange.com
977,761
Tools to Determine What Apache Directive Is Forcing Redirects
Original Question: Are there any tools for debugging Apache directives that would tell me what line caused a given redirect? Reason: I have an ALB on AWS. I created a healthCheck.php page on all the instances, but when it does that, the result is always 301, which means all instances are marked as 'Unhealthy'. I could ...
Add a [CODE] directive to LogLevel. For more details see Apache 2.4 Documentation . Also note: Using a high trace log level for mod_rewrite will slow down your Apache HTTP Server dramatically! Use a log level higher than trace2 only for debugging! [CODE] The logs can be found where you specified [CODE] which is typical...
1
1
1,128
2019-08-02T16:53:57.497
infrastructure
serverfault.com
54,317
Installing SQL Server Express in parallel of Standard
On a server I have a SQL Server 2008 r2 standard performing very bad. To make a quick & dirty test I would like to try to install express edition. This server is not administrated by me, it is a server of a customer. A stupid query is not running on that standard SQL Server, it takes 45 minutes to execute, while on my ...
Yes , that would be no problem you can install a secondary intance with the sqlexpress installer. First I would you look if when executing the query there are no hardware limtits in memory , processor or disk. Often there is a simple solution for this.
0
2
1,739
2013-12-03T08:51:51.117
data_quality
dba.stackexchange.com
994,482
Exchange 2013 OAB/GAL not updating details from AD (Title, phone, etc) - New users not affected
Exchange 2013, up-to-date, running on Server 2012 R2. All servers on the domain are 2012 R2 and domain/forest level is the same. We have a nagging issue where details that are changed in Active Directory such as a users title are not being replicated to the address list entry in Exchange and we believe its because we h...
If all users encounter the OAB update issue, are they distributed in the same database? Are the new user and old users in the same database? And are they using the default OAB or custom OABs? Here are some troubleshooting steps and hope these may be helpful to you. 1. OAB generation: You should check OAB generation cyc...
1
0
4,465
2019-12-05T16:04:13.700
infrastructure
serverfault.com
423,065
Cannot WMI Query root\MSCluster namespace as Local Admin
I'm trying to use WMI Explorer to query the root\MSCluster namespace on various hosts to obtain cluster resource group and resource object data. I can access the namespace with no issue on Win2K3 cluster nodes but am getting an access denied error attempting to connect to Win2K8 and Win2K8R2 nodes. I can access the roo...
Not familiar with WMI Explorer, but does it let you specify the ImpersonationLevel? Try the folling VBScript (not tested) on the local machine. Then edit the strComputer = "." line to be the server name and execute remotely: [CODE]
1
2
3,899
2012-08-30T20:51:01.103
infrastructure
serverfault.com
208,745
Consistent drop in performance on SQL Server 2016 SP2
Recently upgraded from 2008R2 to 2016SP2. Have a slow process that I can't change. Application contacts the server back and forth constantly and runs tiny queries, including doing an update 30K+ times serially. I've tried any suggested indexes, etc...to try to help since it's a sticking point for completing the upgrade...
Solved: Not sure it will help anyone else, but just in case it will, what I found was the serial nature of the process (one command per connection) was causing the process to send 143,000+ sp_setapprole calls during the process. This was bloating the TokenAndPermUserStore cache by 1GB each time it ran. This is why a re...
2
3
836
2018-06-04T21:45:40.303
database_errors
dba.stackexchange.com
90,086
which SharePoint Version should be used on Windows Server 2008 R2?
I am wondering if I use Windows Server 2008 R2 x64 Enterprise. Then which SharePoint version should I used? I tried SharePoint Server 2007 Enterprise SP1, but failed (error message, not compatible with OS). thanks in advance, George
You need SP2 to run on Windows Server 2008 R2. Then you will need to slipstream SP2 for the install.
0
1
72
2009-12-02T08:19:42.697
infrastructure
serverfault.com
246,344
Exporting table data into csv format from server to local
I have connected to remote server and trying to export a table data to local using the command: [CODE] I am getting the error: relative path not allowed for COPY to file
You can try this [CODE] Remove [CODE] if not needed [CODE] .
2
1
2,145
2019-08-27T09:17:59.487
warehouse_errors
dba.stackexchange.com
327,889
What is the quickest and most efficient way to remove an in-memory filegroup from a large SQL Server 2019 database?
I have a database with an in-memory filegroup that I want to remove (I won't go into many details why, but I want to move the database to another place without this filegroup). I'm trying to move the database to Azure SQL Managed Instance (General Purpose), and this PaaS solution doesn't support in-memory filegroups. N...
Your 3rd option is the best of 3 bad choices, for whatever reason an in-memory filegroup cannot be dropped or removed, it’s been like this since release. The only thing you can do is speed up your export and import, use bulk methods, set the database to simple recovery, avoid very large transactions, if you can add a S...
0
4
297
2023-06-04T20:08:35.697
api_errors
dba.stackexchange.com
303,175
Query Store internal queries being executed thousands of times per minute
I have an SQL Server 2016 Standard production server with more 59 clients Databases. Microsoft SQL Server 2016 (SP2-CU17) (KB5001092) - 13.0.5888.11 (X64) Mar 19 2021 19:41:38 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows Server 2019 Standard 10.0 (Build 17763: ) This server is heavily used a...
I'm no expert on using the Query Store, but from my brief research on the maintenance queries its running (per your [CODE] results) that does seem quite excessive. For example, this person claims it only runs once a day on their particular database. You may want to look into Monitoring performance by using the Query St...
1
1
412
2021-11-26T20:09:40.960
database_errors
dba.stackexchange.com
93,487
Masked Language Modeling on Domain-specific Data
My goal is to have a language model that understands the relationships between words and can fill the masks in a sentence related to a specific domain. At first, I thought about pretraining or even training a language model(like BERT) from scratch, but unfortunately, my data isn't that big to help the previous model le...
First I suggest reading the transformers paper . Couple of quick notes is that this model consists of an encoder and a decoder, and the original task the paper is trained on is machine translation. Datasets (benchmarks) they used to train and evaluate this model from scratch were WMT 2014 Engligh-to-German, WMT 2014 En...
1
1
408
2021-04-24T08:53:23.763
data_quality
datascience.stackexchange.com
316,869
PgSql: how could I achive a group by that checks any match on any of two columns?
I am trying to implement a NMS filter for labels in a Database. NMS is a filter that removes redundant squares. On the image provided we can see there is only one tree, but there are three labels surrounding it. The filter will acknowledge those squares share a big proportion of their areas and merge them or leave only...
As @ypercubeᵀᴹ suggested in comments. I looked for transitive clauses and recursive CTE. Based on this question I wrote the following query to get the matching groups. The query that achieves that is the following [CODE] a) The only recursive table is the second one, [CODE] . Postgres syntax demands the keyword recursi...
3
2
192
2022-09-14T05:07:59.717
hadoop_errors
dba.stackexchange.com
219,124
MariaDB 10.3.9 can not start
I updated my MariaDB and I can't start it now. I try: sudo service mysql start Result: Job for mariadb.service failed because a timeout was exceeded. See "systemctl status mariadb.service" and "journalctl -xe" for details. systemctl status mariadb.service: [CODE] journalctl -xe: [CODE] Can somebody help me? I have trie...
The problem was: ERROR 1524 (HY000): Plugin 'unix_socket' is not loaded Solution: [CODE] And now we can see: sudo systemctl status mariadb [CODE] After this MariaDB was be able to start. P.S. Also I needed to add my root pass in the config [/etc/mysql/my.cng]: [CODE]
1
0
4,919
2018-10-02T12:16:07.427
database_errors
dba.stackexchange.com
547,618
Input/output error reading USB backup drive on CentOS 6.4
I'm suddenly seeing some strange behaviour on our USB backup drive that doesn't make sense to me: [CODE] How is it possible for the OS to know how much is in use, but I can't [CODE] any of it as root? Or more to the point, what problem does this indicate? [CODE] said this: [CODE] But...read-only is something different ...
The filesystem is corrupt. It may even be very corrupt since not even [CODE] works. Maybe the hard disk is broken or something. Check [CODE] to see if you have anything more regarding this FS error. Something which may indicate a broken disk? You can check if the drive suports S.M.A.R.T , and run some [CODE] (from smar...
0
1
4,656
2013-10-21T19:03:21.757
database_errors
serverfault.com
350,852
When agile versions span multiple sprints
We're using Service Now and have 2 week sprints. Our management team want to release to production once every 6 sprints and use the term Version for this. When a story is complete in terms of development and testing, prior to production release, it will sit in the Done column (far right of our board.) If a story is not...
At the end of an iteration, it's not required to release a software product. Scrum calls this an Increment, and other methodologies may have different names. The purpose is the same - at the end of your iteration, have something that is in a state that could be delivered to a customer or user. I can't speak to the spec...
5
7
1,058
2017-06-14T09:43:09.877
api_errors
softwareengineering.stackexchange.com
927,429
Multiple instances mysql on Centos 5.5
There was an old system on Centos 5.5 which pattern as below: OS:CentOS release 5.5 (Final) Web Server:Apache 2.2.3 AP Server:Tomcat 6.0.3.6 JDK:1.6.0_37-b06 DB:MySQL 5.5.27-1 As customer requires, I have to install duplication of everything(Apache, Tomcat, Mysql, Java) on the same machine without making any changes an...
For mysql command line you need a my.cnf file in a location read by [CODE] (at the top it lists the config files read. You'll need a directive like: [CODE]
0
1
36
2018-08-22T02:00:23.777
database_errors
serverfault.com
945,859
Logging DNS requests with iptables
I need to log DNS requests for a VPN setup. The setup uses iptables to masquerade clients. I was hoping to be able to create a new iptables rule using the [CODE] target, but that just gives me output like this: [CODE] Is there any way to make iptables add the DNS hostname to that log entry (or the entire UDP body so I ...
You should be pulling the logs from your DNS servers as they have this information already. There is no need for you to be doing this via iptables, even if it was capable of it.
-2
2
826
2018-12-18T17:51:45.980
data_quality
serverfault.com
629,572
using pgpool doesn't see a list of variables into group_var directory
I am using Ansible + Vagrant to create my infrastructure or make a little simulation of I wish. It installing postgres and creating a ssh directory to store the differents keys for each host. It is my project structure: [CODE] It is the cluster_hosts declaration: [CODE] It is my group_vars files: host_master [CODE] hos...
By default, ansible does not read all files in [CODE] ; it only reads [CODE] (or [CODE] ; incidentally, I've found it more convenient to add the [CODE] extension to vars files). You need to tell it to read the files you want using [CODE] in your [CODE] , like this: [CODE]
2
2
392
2014-09-18T15:13:57.147
pipeline_ops
serverfault.com
496,970
Logging OpenVPN/PPTP connections
I currently have a default setup of OpenVPN and PPTP . I was wondering how I can enable the most verbose logging of the services so in case of abuse we can track down who's IP did what?
http://openvpn.net/index.php/open-source/documentation/howto.html sample-config-files/server.conf [CODE]
0
2
1,011
2013-04-07T08:49:04.280
infrastructure
serverfault.com
144,670
repmgr 3.0.4 and postgres 9.4 on ubuntu (ERROR: replication slot "repmgr_slot_2" does not exist)
I'm not a DBA but I have been tasked with setting up a database and streaming replication and repmgr is the tool I have decided to use. The master goes on fine and I can see it registered in the cluster. The error on the slave is as follows [CODE] The command casuiging the abover error is [CODE] The config file is as f...
OK, I found the issue. I hadn't properly configured passwordless ssh login between my master and slave. So despite being able to login into my master from my slave the issue was it couldn't copy files because ssh wold require a password. My only issue is error reporting is horrible for repmgr. Following this guide I mi...
0
0
960
2016-07-22T15:56:23.743
database_errors
dba.stackexchange.com
124,981
MySQL: Load database to memory
Is there a way to load an entire MySQL database to the RAM, especially on en EC2 server? The database is quite small (~500 MegaBytes) I have enough memory Speed issues are crucial - the resulted queries are used to serve a dynamic webpage. Thanks, Adam
You can certainly load indexes into cache; if you have small ISAM tables that are frequently queried, MySQL will probably load these into cache as well. Here is a good Performance Wiki article on MySQL tuning.
1
1
3,702
2010-03-22T15:16:27.020
api_errors
serverfault.com
418,556
Issue Starting MySQL Daemon
I have just come across the most random error I've seen my MySQL daemon spew out yet, everything was working fine, then all of a sudden it randomly crashed and it now outputting this when I start it up, not sure if it's because my 'my.cnf' file is minimal Here's my 'my.cnf': [CODE] Here's the errors: [CODE] Any help wo...
You'd be better off asking this in a server forum than progrmming forum? I think you can delete the ibdata1 files safely and they get rebuilt, but to be sure rename the ibdata1 file(s) and restart MySQL. If that fails, rename it back and go to the right place ;) If it does work, run mysqlcheck ( http://dev.mysql.com/do...
1
2
9,000
2012-08-17T02:08:35.013
database_errors
serverfault.com