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
733,235
logrotate causes php5-fpm downtime
I've noticed that one of our servers starts returning errors just after logrotate runs, i.e. in nginx error log I can see: [error] 8501#0: *118126869 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.yyy.zz.ww, server: www.test.com, request: "GET /index.php HTTP/1.1"...
Send USR1 instead https://github.com/php/php-src/blob/b7a7b1a624c97945c0aaa49d46ae996fc0bdb6bc/sapi/fpm/fpm/fpm_events.c#L94 The source code shows this is specifially for rotating files, I know Ubuntu 14.04 didn't handle fpm reloads (USR2) very well, I assume its the same for older versions too. So change to [CODE] to ...
3
3
1,948
2015-11-02T11:17:58.010
infrastructure
serverfault.com
62,114
Convolutional neural networks for non image dataset
Can we use Convolutional Neural networks for a non image dataset for prediction? The dataset is a record of student academic details I know that CNN is mostly used in computer vision and image processing for analyzing visual imagery. And it is also used in natural language processing for text classification. I am new t...
Short answer: Yes, absolutely Longer answer: As a rule-of-thumb, you can always use any technique on any problem, as long as you define it properly. CNNs are meant to work on signal data. 1D signals can be sound waves, financial records, etc. 2D signals are usually images. 3D signals can be videos (with time being the ...
1
2
423
2019-10-23T08:30:43.410
data_quality
datascience.stackexchange.com
107,010
Display Total under name column and sum of amount under sal column
in a table empno,ename,sal,hiredate is there. but i want output is [CODE] here empno, hiredate column just empty,no need to display null or zero or anything. how to write the query in SQL SERVER
You could use [CODE] : [CODE] If ename is nullable this is not sufficient since ename might be null for other reasons than grouping. In that case you can use the [CODE] function: [CODE] But I agree with @Mark Sinkinson that it is probably better to do this in the presentation layer.
0
3
717
2015-07-15T09:03:20.803
database_errors
dba.stackexchange.com
432,391
Unable to start tomcat6: Java error (Exception in thread "main")
After installing tomcat6 on CentOS 6.3, I am unable to start tomcat6 server. [CODE] Although it says [CODE] , I cant access [CODE] . catalina.out [CODE] Tomcat6 was installed using yum: [CODE] When I tried to find the version: [CODE] : [CODE] Any idea what I should do? Thanks!
Based on the "libgcj.so" string present at the end of the stack trace lines, it looks like you are trying to run Tomcat with the GNU Compiler for Java. GCJ is not a full fledge Java runtime environment and is likely the source of your problem. This may happen if there is no real JRE or JDK installed on your system, or ...
2
3
1,841
2012-09-27T00:07:29.283
infrastructure
serverfault.com
216,072
Should mock objects for tests be created at a high or low level
When creating unit tests for those other objects, what is the best way to create mock objects that provide data to other objects. Should they be created at a 'high level' and intercept the calls as soon as possible, or should they be done at a 'low level' and so make as much as the real code still be called? e.g. I'm w...
Higher level approaches are more appropriate for unit testing. Lower-level approaches are more appropriate for integration testing. The whole point of a unit test is to make sure that single unit works, so you want to remove the possibility of a test failing due to another component's bug. The notion that lower-level t...
3
2
578
2013-10-31T01:57:46.577
api_errors
softwareengineering.stackexchange.com
47,461
Access SMB-Share on localhost under different name
This scenario may seem a little weird at first ;) OS is Windows Server 2003. We make a daily backup from our production servers and just copy the entire application to our backup servers, where we want an exact duplicate from the production environment (more or less). This works pretty good, with one exception: The pro...
This is an old post but I encountered this problem during Covid season while trying to work from home. I want to redirect SMB server calls for \\SERVERNAME\ (or in the example above PROD_SHARE) to being the local SMB on the computer. Method Add "SERVERNAME" to etc\hosts file with IP Address 127.0.0.1 Local Windows Auth...
0
2
12,020
2009-07-29T10:06:15.617
database_errors
serverfault.com
66,396
What frequency of hash/sort spills into tempdb is concerning?
Our enterprise application uses SQL Server for data storage and is primarily an OLTP system. However, an important component of our application generates a significant OLAP workload. Our write latency to tempdb is about 100ms. This trend holds over time, and [CODE] is turned off . We are troubleshooting this concerning...
Is it possible that this frequency of spills could be a primary culprit in our high tempdb write latency? Yes it is possible , though typically it is the average size of the spills, and how deep they go (i.e. recursive hash spills, multi-pass sorts) that matters more than the frequency per se. SQL Server provides a wid...
14
15
8,172
2014-06-02T16:19:58.413
pipeline_ops
dba.stackexchange.com
551,429
How can I set audit controls on files owned by TrustedInstaller using Powershell?
I am trying to set audit controls on a number of files (listed in [CODE] ) located in [CODE] (for example, [CODE] ) using the following Powershell script: [CODE] Whenever I run the script, I get the error [CODE] . This seems to come from the fact that the owner of these files is [CODE] . I am running these scripts as A...
The only supported way to modify files that are protected by Windows Resource Protection (which the TrustedInstaller account is a part of WRP,) is to use the Windows Module Installer service, which is really just a way of saying "you cannot modify these files in a supported way yourself; only through installing patches...
4
8
5,066
2013-11-07T17:40:55.387
infrastructure
serverfault.com
627,318
IIS Server only accesible on port 80 within network
I have an IIS 8 server running under Windows Server 2012. When it is accessed over port 80, I can access it from within the network. With an internal IP address of 192.168.1.14, I can go to 192.168.1.14 from other computers' browsers in the network and access the page. However, when I change the port from the site bind...
The most likely problem is Windows Firewall. Configure it to allow port 8080 traffic. It allows port 80 by default when IIS is installed as a role, but it doesn't automatically configure itself if you change the port.
1
5
3,477
2014-09-09T15:29:47.310
infrastructure
serverfault.com
1,036,106
Starting service inside shell script via PHP
So i'm looking for a way to start Plex Media Server service using PHP redirect. I basically want to start and stop the server by going to the certain URL. I'm using Apache and here's my code and commands i'm using: My /var/www/site/index.php: [CODE] /var/www/site/plex.sh [CODE] After going to my website, i get header "...
Generally i would avoid to execute root privilege commands with webservers/php-fpm. So think about, if you really need it. To run this kind of job successfully with your already present scripts, you need to add the user under which your webserver runs (generally www-data) to your sudoers file and allow it to run your t...
-1
0
240
2020-10-02T07:57:25.523
infrastructure
serverfault.com
6,941
Workaround for when windows scheduled tasks fails when user changes their password
When a users password changes that users scheduled tasks will fail unless you change the password associated with that task. This is a problem for me as I have a small script that gets run by a scheduled task every day on someone else's server. They have a policy in place where the users passwords need to be changed ev...
As far as I know there is no way to synchronise scheduled task passwords. The common practice for this sort of thing is to create a service account for running the task and set the password not to expire. You can use a long and complex password for this as you're only likely to use it once then forget about it.
11
19
2,016
2009-05-11T10:13:34.347
infrastructure
serverfault.com
388,125
Nagios installation and security issues
I am new to monitoring tools. Recently our server with phpMyAdmin was attacked with botnet. So I want to do some monitoring on my server for any their health and also security. What I am worried is that nagios is also another web application like phpMyAdmin is there any security loop hole in it where hackes can intrude...
The web interface you can protect with addional authentication at the web server layer (with an administrative, non public app there is hardly a reason to rely on builtin auth alone, same with phpmyadmin). What you need to setup far more carefully is your remote plugin layer (nrpe, ssh, client-driven nsca...) since the...
2
1
337
2012-05-11T03:05:16.267
database_errors
serverfault.com
503,364
Putting this command into bash script
with help of google , script that measures multicast streams bandwidth. Here it is [CODE] It turns out fine, except I need to hit enter to get back to prompt. I know it is && problem, but dont know how to fix it. How can I trascribe it to shell script. And maybe add $var for number of seconds.
Try using [CODE] to kill the tcpdump after a duration: [CODE] To script it: [CODE]
0
2
754
2013-04-28T18:14:02.247
infrastructure
serverfault.com
1,143,038
Azure CLI `AZ LOGIN` ERROR: "Found multiple accounts with the same username"
I'm getting this error whenever I try to login to Azure via the CLI. Here are the details: [CODE] (Now I get a popup browser window where both accounts have the same username/email) : [CODE] The 2nd account (PERSONAL) is the one I am interested in using I have tried : logging in multiple times -- NO GO the [CODE] comma...
I think I solved this... I logged into the portal directly at portal.azure.com I clicked on Azure Active Directory (soon to be Microsoft Entra ID ) I clicked on Manage Tenants This brings you to the default tenant, and there listed to the right of "tenant" is the tenant ID... you can copy that by clicking on the "copy ...
0
0
183
2023-09-04T18:16:14.613
infrastructure
serverfault.com
355,105
modifying Postfix message content
I am using postfix mail server and i need to replace mail content inside every incoming and outgoing message based on some predefined rules. What is needed is to filter remote and local mail to replace every instance of user@domain.com in header or body with user@blah.com header_checks and body_checks options seem cumb...
Postfix support header address rewriting at outgoing mail: [CODE] /etc/postfix/generic_map [CODE] Using regular expression: [CODE] /etc/postfix/generic_map [CODE] Isn't supported change in body. You need create you own content filter. http://www.postfix.org/postconf.5.html#smtp_generic_maps
0
1
5,358
2012-01-30T17:32:59.663
infrastructure
serverfault.com
946,003
Highest Active Time on SQL Server Disk
I have a SQL Server 2017 instance that seems to be running a bit slowly. CPU and Memory usage looks to be normal, but disk usage might be a bit high. The data files are on disk E and the log files are on disk F. Does "Highest Active Time" pegged at 100% on the data disk indicate the need for faster drives, or to split ...
Not necessarily. You should take a look at the Activity Monitor first to see what queries are running towards the database. See more here: https://docs.microsoft.com/en-us/sql/relational-databases/performance-monitor/open-activity-monitor-sql-server-management-studio?view=sql-server-2017 .
0
0
1,791
2018-12-19T17:06:36.073
database_errors
serverfault.com
939,239
BASH-create a 'www-data' crontab that runs a PHP file
I need to get this to run in a cron file in [CODE] : [CODE] ...but, my scripts don't run. It's permissions are set to 644 and I need to create it with a Shell/BASH script. I'm using: echo "*/15 * * * * php -f /var/www/nextcloud/cron.php" > /etc/cron.d/nccron What am I doing wrong?
There is an much easier way (must be done as [CODE] user) [CODE] I'd use SINGLE quotes not DOUBLE quotes to prevent any possibility of expansion of the '*' metasymbol.
0
1
2,965
2018-11-08T23:41:06.287
infrastructure
serverfault.com
721,388
Java MSI install error 3: -2147287037
We want to silent install Java 8 update 60 via its msi. The installation stops with a vague error which isn't very helpful at finding a solution. This is the MSI log: [CODE] our system runs the MSI with the following parameters: [CODE] So far we ensured that there is no other installation running and that java is compl...
Java 8 is becoming a pain in the ass for massive deployment. This time I think it's a problem with the exe in 8u60, it worked before with 8u51 and 8u45. If you see the log, It tries to open the msi on C:\windows\system32 and I assume it finds nothing there. In Java 8u51 and 45... it worked because it tried to open on C...
0
0
4,948
2015-09-10T06:32:12.273
infrastructure
serverfault.com
139,699
Products with different prices in an order
I have a "classic" database schema for order and products: [CODE] Now I have to deal with prices inside orders. Two problems: There are two currencies -dollar and euros- and price are not calculated. Let's say, sometimes a product costs $79 vs 89€, some other times $89 vs 99€ Some products can be bought in a bundle and...
Below is my take on it: Have two separate price columns, once for $ and the other for €. If in some stage in the future you will start taking payments in more currencies, you will likely use one of the prices as the base price and do a currency conversion calculation. Depending on the complexity of the rules you have t...
0
1
322
2016-05-27T08:13:57.353
warehouse_errors
dba.stackexchange.com
769,491
Can't send e-mail from new domain on exchange 2010
Masters, We have a new domain which added on Organisation --> Hub transport --> Accepted domain. New mail policy also created, so my new myname@newdomain.com e-mail adress generated as well. Because this is for testing purposes for a while, i did'n set this new e-mail as primpary. When write a new e-mail in outlook i t...
So..as Lex is commented above we need to set the new address as primary address... If we set this, we can send e-mail from new address but in outlook the from field seems stuck with the old address.... If you want to change this (its just a text..new e-mail send from new address) you have to create new profile....
0
0
44
2016-04-11T13:34:01.340
infrastructure
serverfault.com
624,903
Stop postgresql container
I have a question about stop database container. I have a docker image that runs postgresql. When I create a container with this image: sudo docker run --name db -d asg1612/postgresql it run the command: /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c config_file=/etc/postgresql/9.3/main/postgre...
Whether or not the database stops "gracefully" you will not have corrupt data. PostgreSQL is crash-safe unless you configure it otherwise, so long as the underlying file system and disk storage respect disk flush requests (fsync). You lose in-progress transactions, but nothing is corrupted or left half-done. This is tr...
2
5
12,057
2014-08-29T08:41:23.590
data_quality
serverfault.com
391,222
Multiple ip to single interface
i'm using openstack, but i think this is a more general problem. Actually i've a dedicated which comes with 1 ip address, i bought another one, and added using openstack's nova-manage cli. So now this is what i get [CODE] so it seems that both ip are binded to eth0, the problems is that i don't receive packets with des...
Can you check, what is destination MAC address on packets you receiving in tcpdump in promiscuous mode? If it's destination MAC is not correct: 00:30:48:fc:4c:92 - you have an IP conflict and should contact your provider. If it's correct - you have problems on your side, e.g. wrong NIC, ip, kernel settings, maybe incor...
1
0
1,180
2012-05-21T21:47:42.423
infrastructure
serverfault.com
228,251
How to setup Dynamic DNS for small fleet of EC2 instances?
I've been setting up Amazon EC2 instances for an upcoming project which will involve hosting multiple websites on multiple web servers. They are all micro instances, running Ubuntu Server 64bit. Here's what I have so far: Web Server -- Apache Database Server -- MySQL Development Server -- Apache & MySQL File Server -- ...
I finally, decided it was simpler to use Amazon's Route53 service than setup my own DNS Server. For more information how how I did this, look at my other StackOverflow question .
2
0
1,579
2011-01-28T18:10:45.357
database_errors
serverfault.com
605,672
Deleting on a shared drive gives false error, why?
I use terminal-server Windows Server 2012 when a user inside the terminal session deletes a file on a shared drive (R: here) and gets the error bellow: [CODE] The file is there and the file is indeed deleted, but in order to see it deleted in explorer, you need to press the F5 button to refresh the screen. Later edit: ...
OK, so you do know what F5 does in Windows [Explorer], right? It refreshes your view. So that's not a "false error," it's an accurate description of what's happened. The file can't be deleted because it's no longer there. It's no longer there, because someone already deleted it, and your file listing hasn't updated sin...
0
2
228
2014-06-17T08:44:42.730
infrastructure
serverfault.com
740
How to remove directories and files in another layer using Docker?
Why this question? The reason for posting this Q&A is that sometimes certain software is required to compile software in a docker image. Once compiled, these packages are superfluous and should be removed in order to reduce the image size. In some cases images that were more than 1.5GB where reduced to less than 300MB....
A solution is to remove the [CODE] using [CODE] : Dockerfile [CODE] Outcome [CODE]
35
1
165,795
2017-03-31T15:51:14.893
pipeline_ops
devops.stackexchange.com
193,402
why Declarative partitioning on Postgresql 10 is slower than the non partitioned tables?
why Declarative partitioning on Postgresql 10 is slower than the non partitioned tables? I have partitioned 3 table on a date criteria, but found significantly slower select queries. Can you figure out why? this is my partitioned table [CODE] [CODE]
You didn't match the partitioning criteria in your query. Thus, the database needed to search all partitioned tables to find the results. You should partition a table by the column that you most frequently use in queries - it will allow the planner to ignore partitions that do not contain rows matching the criteria.
3
3
1,315
2017-12-18T14:09:44.080
database_errors
dba.stackexchange.com
868,449
IPTables Multi-VLAN NAT to Multiple IPs
I have a slight Problem with my NAT-Setup. What I'm trying to do: I have 2 VLANs (in this example 100 and 200) and want that they can access the Network via separate IPs. This should be accomplished by a [CODE] NAT. I created this setup with pf (FreeBSD) but unfortunately the hardware I have to use is not compatible. I...
I haven't analyzed everything, but step one is to correct this: [CODE] since you are postROUTING, the routing decision has been made and I expect the packet is going straight to gateway xxx.yyy.zzz.1 so through a different interface: [CODE]
2
2
1,873
2017-08-13T19:08:33.553
infrastructure
serverfault.com
931,137
How to bind a specific IPv6 address to a specific user?
I'm running a VPS on Debian 9 that has multiple users and /64 Network of IPv6 addresses. I added a few of them by typing [CODE] How do I bind a specific IPv6 address to a specific user so if I run multiple instances of a program in individual users they all communicate only via the appropriate IPv6 address? Update: sol...
You can try [CODE] with [CODE] . [CODE] has options to match the user running the process that generates the connection.
1
1
180
2018-09-16T11:49:35.947
infrastructure
serverfault.com
266,602
Frequency of SQL Server full backups vs. diffs
I have a SQL Server located in a colo center. Currently, our database is about 100Gb. Log files average about 500Mb/day, and differential backups grow by a bit less than that. My current disaster recovery plan is: have a full backup elsewhere, take log backups every ten minutes, diffs every night. I copy the logs and d...
Our schedule is the same as yours. Tlogs every 15minutes to 1 hours (depending on the db), Diffs at night, and fulls during the weekend. It all depends on the SLA of the database that you are serving, and how much downtime everyone is okay with having.
1
1
608
2011-05-05T12:47:54.220
data_quality
serverfault.com
102,865
IIS/SMTP - emails are stuck in mailroot/Queue
I'm trying to send e-mails via SMTP within the IIS pickup directory. Unfortunately the e-mails are just going into the mailroot/queue folder and stay there. They never actually get sent. Does anyone know why this would happen and a potential fix for the problem?
Had a similar problem with Files stuck in the queue. In IIS manager, SMTP Virtual Server > Properties > Delievery > Outbound Connections. The option for [CODE] was checked and the value was [CODE] . So it was configured to never make any outbound connections, causing the emails to never leave the server. I unchecked th...
29
20
274,839
2010-01-14T22:36:38.790
infrastructure
serverfault.com
851,623
"live" mirror of HA VM cluster?
I'm reading about HA techniques in virtualization but all solutions I see work more or less just like more specialized VRRP - when host gets down, VM is booted up on another virtualization host. If storage is shared (eg. iSCSI) then "the same" VM can be booted so to guest OS it looks like kind of power failure. But if ...
Servers shouldn't "just fail" in the manner you're describing. Most people do not worry about this. However, this is a use case for VMware Fault Tolerance (FT) . This will do what you're asking for. If asynchronous replication is desired with a small delay ( like 10 seconds ), then a solution like Zerto would be apt.
5
4
1,815
2017-05-22T19:15:29.597
infrastructure
serverfault.com
1,070,061
Apache SSL Installation [Not Duplicate]
I am trying to install ssl certificate on my ubuntu server 20.04 I have downloaded ssl files and put them in /home/ubuntu (will change once it works): api_limitlesssoft_com_key.txt api.limitlesssoft.com.p7b api.limitlesssoft.com.crt api.limitlesssoft.com.ca-bundle Now what I have done is edit Virtual host file to look ...
Found solution in Connection refused HTTPS on Apache and it is marked as [CODE] points.... problem was in routing... port forwarding didn't forward port 443, only 80. That is why it was not working.
0
0
99
2021-07-19T22:09:22.173
api_errors
serverfault.com
218,724
ORDER BY ASC is 300x faster than ORDER BY DESC
The ascending sort is 300x faster than descending sort on a column which has a B-Tree index. I have table of around 20 million rows. I have indexes on [CODE] and [CODE] columns. Ascending Sort [CODE] Descending sort [CODE] What could be the problem?
I think the problem is two-fold (or 3-fold): missing composite index on both columns filtered: [CODE] uneven distribution old statistics [CODE] The unusual distribution means that the single index scan has to do a lot of work to remove the rows that don't match the 2nd filter (by the other ( [CODE] ) column). The index...
2
3
1,001
2018-09-27T12:16:58.730
warehouse_errors
dba.stackexchange.com
22,105
How do you generate an AWS Signature in ReadyAPI/SoapUI
I am trying to perform a GET of an object on S3 storage using ReadyAPI (or SoapUI). Here is the documentation for how it is done In order to make the request I require a "signature" to be generated. How can this be done within the ReadyAPI suite itself? p.s. The AWS API plugin doesn't currently function for my region (...
This is really easy if the use of the AWS JDK is an option for you. I tried many hours to generate my own signature for REST API access to AWS. After I discovered the AWS JDK it was a matter of minutes. All can be done with a few lines of groovy script code within ReadyAPI/SoapUI NG. Download, install, configure AWS CL...
1
2
1,683
2016-08-17T13:50:26.493
data_quality
sqa.stackexchange.com
15,842
Kubernetes container networking between pods
So I have a few services running using nodejs, in more than one kubernetes pod. These services obviously need to talk to each other, and be able to find the database included in this kubernetes cluster. In docker-compose I could just use the container name and it would automatically route me to the correct one, with ku...
Normally, you access services using the name provided by a [CODE] resource. For example, if I have a [CODE] running Redis, like this: [CODE] I might have a service definition that looks like: [CODE] With these in place, from another [CODE] I can refer to the Redis service using the hostname [CODE] : [CODE] The name and...
2
4
634
2022-04-21T20:29:08.970
pipeline_ops
devops.stackexchange.com
466,214
Installing SSL on a Windows Server 2012 with IIS 8.0
We are in the process of moving a website from a machine with Windows Server 2008 R2/IIS 7.5 to a machine with Windows Server 2012/IIS 8.0 (EC2 instance) as we want to take advantage of the new SNI feature. This website has an SSL through Go-Daddy, so downloaded the corresponding files and followed their instructions f...
How are you requesting the certificate? Using Inet Mgr or typing MMC, adding certificates applet, then requesting the CSR?
2
0
1,059
2013-01-11T15:49:47.807
infrastructure
serverfault.com
155,486
What are the typical applications of Lisp macros?
I am trying to learn some LISP and I have read a lot about the importance of LISP macros so I would like to get some working experience with them. Can you suggest a practical application area that would allow me to use macros to solve a real-world problem, and to understand the usefulness of this programming construct?...
Lisp macros combine a few distinct properties: Macros define new syntax ↔ they use source-code as input Macros usually are run at compile-time Macros generate source-code The best applications make use of all of those aspects. Probably the most-well known example is the (loop …) in Common Lisp, it wouldn't be anywhere ...
20
9
2,256
2012-07-03T20:06:34.603
api_errors
softwareengineering.stackexchange.com
893,132
Linux routes for point-to-point Ethernet network in presence of a default route
SOLUTION : There's a typo in the IP address on my laptop Ethernet interface (see the accepted answer). The following writeup is most probably proper setup. I'd like to communicate with Raspberry Pi (rpi) via point-to-point Ethernet between my laptop and the rpi. My laptop is connected to the Internet via wireless [CODE...
169.245.0.0/16 to its Ethernet interface. When I run tcpdump on my laptop Ethernet interface (tcpdump -i eth0 -e) I can see the rpi talking from 169.254.85.159 You seem to have a typo. Your RPI is 169. 254 .85.159. And you assigned 169. 245 .0.0/16 to your other computer. 254!=245. Though if your RPi is really getting ...
0
0
2,527
2018-01-19T20:37:19.697
infrastructure
serverfault.com
942,776
How do you set the session key size in OpenSSH?
In version 1 of the SSH protocol, it was possible to set the ephemeral session key size with the ServerKeyBits setting in sshd_config. Is there a way to do this for version 2 of the ssh protocol? In the SSH protocol there are three encryption keys used: The server key The (intermediary) ephemeral session key The final ...
A lot of security improvements were made in the SSH 2 protocol compared to protocol version 1 and I imagine removing that option was one of those. As far as I can divine the session key size is somewhat implicitly imposed by the server in the selection of the encryption algorithms offered with the [CODE] directive. The...
3
2
1,498
2018-12-04T07:36:31.363
infrastructure
serverfault.com
252,430
Key-range RangeI-N lock compatibility in SQL Server
The documentation states that the RangeI-N lock (Insert range, null resource lock; used to test ranges before inserting a new key into an index) is compatible with itself (see the compatibility matrix), so even though one transaction has obtained a RangeI-N lock on particular key another transaction can also obtain suc...
My understanding is that this type of lock is during the process of identifying the range where the newly inserted key should be placed (I'm assuming that's what 'test the range' means). After this happens the lock is released, the new key gets inserted and an X lock is placed on it. [CODE] lock is requested to test th...
9
4
1,071
2019-11-02T14:36:37.810
database_errors
dba.stackexchange.com
25,078
How to close all the browser instances and chromeDriver.exe even if my test cases fails?
I am using testNG with selenium to write my test cases, I observed a strange problem that is When I run my test cases, and if any test case fails or any other exception occur in between the test case execution, the AfterTest method doesn't run but the driver.quit() method is written only inside the AfterTest method, so...
If you set [CODE] then the method will be called even if a test is failing. From the documentation : alwaysRun -> For after methods (afterSuite, afterClass, ...): If set to true, this configuration method will be run even if one or more methods invoked previously failed or was skipped.
1
4
6,074
2017-01-25T06:28:50.820
data_quality
sqa.stackexchange.com
317,749
My Debian apt-get doesn't have search function, why?
I have used some version of apt-get that had apt-get search jetty , that would return list of all packages that contain word jetty. But when I type apt-get I get following list of commands: [CODE] Is my apt-get old version or why it doesn't have that search command? This might be stupid question for all super users, bu...
Try [CODE] or [CODE] .
0
7
507
2011-10-02T19:18:15.207
infrastructure
serverfault.com
466,570
Cloning instance - Original kernel not available when creating AMI
I have a EC2 Ubuntu server on Amazon cloud and I'm trying to clone an instance "X" by creating a snapshot of the instance and creating an AMI from that snapshot. The problem is: When creating the AMI, the Kernel used in the instance "X" is not available and if I choose another one, the server isn't booting correctly. S...
I have the exact same problem, but unfortunately not the same easy solution. I'm trying to migrate an EBS-backed Ubuntu server from East-1a to West (Oregon), but the aki is not available (aki-427d952b). Just to make sure, I tried both architectures, but it's just not there. Are kernel ids region-specific?
0
0
159
2013-01-13T03:19:43.730
infrastructure
serverfault.com
58,887
Sql Server - Error attaching mdf file encrypted via Encrypted File System (EFS)
I am getting an error trying to attach a database whose files were previously encrypted via EFS. The actuall error message is [CODE] If I decrypt the files, then I successfully can attach the database. I am using the same local user account that runs the sqlserver service. Any ideas? (I had previously asked this q in s...
Are you sure that the service account your using for SQL Server matches the user account your using to encrypt the files? EFS is handled at the OS and is transparent to SQL Server. If this is the case, then check for general NTFS permissions, make sure that the service account has full control of the files your trying ...
2
3
1,604
2009-08-26T10:52:55.200
database_errors
serverfault.com
659,334
postgresql LDAP authentication
I am trying to give an LDAP authentication to my postgresql database. Here is my pg_hba.conf config file [CODE] But when i am trying to connect with one of my LDAP user called test, i am getting the following error: [CODE] Note: I have created test user in postgresql. I performed the below search and it is working [COD...
It seems you're testing the LDAP bind with a different dn than what postgres constructs: [CODE] vs [CODE] i.e. "test" doesn't match "test user"
2
2
12,792
2015-01-14T06:56:49.233
api_errors
serverfault.com
410,226
Modbus over TCP concurrency pattern
I'm trying to learn about MODBUS as a free-time project. It is a long standing desire to write my own driver in Golang. That being said, I'm now trying to design the concurrency model for device connections. I'm using the MODBUS specifications from modbus.org as guidance. Specifically, my question arises after reading ...
The recommendation for using the minimum number of TCP connections is just a recommendation and not a requirement for conformance. This recommendation appears to be based on servers that have a limitation in the number of connections they can accept, or even a limitation in the number of connections from the same IP ad...
0
1
686
2020-05-16T18:53:04.010
database_errors
softwareengineering.stackexchange.com
397,997
How to control the memory usage of a swap partiotion?
Thats pretty much the quesiton: how can I control the memory usage of each swap partiotion, say /etc/sa5?
I don't get it, memory usage of swap partition? It depends on the anonymous memory which is moved to swap during memory reclaim. You can set priority on the swap partition however. Also, did you mention /etc/sa5 correctly. If I am not wrong, I haven't seen any such file.
-4
1
102
2012-06-12T17:24:30.720
infrastructure
serverfault.com
901,870
Micosoft HPC Pack 2012 R2 does not run with Network Direct after joining new domain
I am working with a 13 computer cluster, running on Windows Server 2012 R2, using MS HPC Pack 2012 R2. The headnode is working properly. The servers are connected to the corporate network via IPv4 on standard adapters. The nodes however are also connected to each other via infiniBand. For a week ago the cluster was mov...
Flash Mellanox NICs into Etherent to have everything working reliably. InfiBand with Windows is such a PITA! http://www.mellanox.com/page/firmware_table_ConnectX3IB
3
2
143
2018-03-11T16:59:22.680
infrastructure
serverfault.com
627,831
Must create PowerShell script to change Password Expiry and Date to change next password
I've been tasked with creating a script that reads in a file a list of Active Directory user IDs and then clears the flag for Password Never Expires. In addition, my security officer doesn't want the 500 users that have this setting to have their password immediately have to be reset, so he wanted the default Domain Po...
AD will not let you change the date a password was last reset, except to 0 (which will force a password change at next login). To do that, you can't set the PwdLastSet manually, you have to use something like the following snippet: [CODE]
4
3
17,761
2014-09-11T13:48:27.503
api_errors
serverfault.com
580,373
Local file server needs root access to change permissions
The previous developers set up a local Linux file server (FreeNAS 8.1) and while we can log in through the username they provided we do not have root access so we can not change permissions or do anything outside of the user they gave us. Is there some way to reset the root password through a reboot or USB drive or som...
Use a boot CD. See the guide provided here .
0
0
69
2014-03-06T23:22:21.860
infrastructure
serverfault.com
869,273
How to make app.js run public
Ok, I have searched for hours on this, nothing is working the way it should so I have to be doing something wrong. It works fine on localhost:port but I can't get it to work remotely. Here is the app.js [CODE] Here is my port fowarding configuration: [CODE] DNS Configuration [CODE] If I use the www.mydomain.com I get n...
Your port forwarding only references port 80, but your server is on port 3000 so the port forwarding is never getting to your server process. You have several options to fix: You can forward port 80 on your router IP to port 3000 on 192.168.1.11 and then you would access port 80 on your public IP address and the incomi...
0
1
8,094
2017-08-18T06:22:37.863
infrastructure
serverfault.com
617,207
Starting application on RDS connection
I have the following servers: Server 1 - Windows 2003: The original Domain Controller for AD, DNS Server server 2 - WIndows 2012: The latest server, upgraded to a domain controller too Now when I go to Active Directory users, right click properties on a user and set on environment tab to start a program after logon, it...
This Microsoft forum post suggests at at least in Server 2008 there was a bug impacting the functionality of this option. A poster as recently as December 2012 indicated the problem was still present. It's possible this hasn't been corrected in Server 2012 either.
0
0
893
2014-08-01T13:52:18.103
infrastructure
serverfault.com
29,379
How to wait for an api request to return a response?
We use a proprietary framework based on the REST-assured library and TestNG to automate API testing for our REST web services. I saw some api testing code which uses [CODE] to wait for a response to be returned. This seems wrong to me because the response times can vary. I believe that there should be a better way to w...
HTTP is a synchronous protocol* so active polling is not an option. You need to wait until client receives response or request times out. There are two ways to constrain synchronous behaviour with timeout. One is to set a timeout for receiving a response. REST-Assured uses Apache HTTP Client for which you can set [CODE...
7
8
72,608
2017-09-05T22:43:24.277
data_quality
sqa.stackexchange.com
299,297
Trying to set up a catch all e-mail in Exchange 2010
We're looking to set up an e-mail sub-domain for a project, and we need to set up a catch-all e-mail address, so whether people send project updates to project1234, or project4321, it will redirect to the one existing e-mail account. I've set up the sub-domain MX in our public DNS. I've set up the sub-domain in EMC, pe...
Per that article, having a Hub Transport do the job won't work: Recipients are resolved before messages pass through the Transport Rules agent on Hub Transport servers. Therefore, transport rules on Hub Transport servers can't be used to copy or redirect messages to a catch-all mailbox.
2
1
3,332
2011-08-09T16:32:25.690
infrastructure
serverfault.com
318,887
How do I scale up a bot/service?
I have this bot that I've created for Twitter. It's written in Python. It lives on my Raspberry Pi and I've set up a cronjob to run it every 60 seconds. Part 2 of the project is to build a web app that I can use to configure the bot - instead of messing with the code directly. In Part 3, I want to extend the web app wi...
Move the configuration parameters to a back end database, and create the web UI to manipulate those settings which the script reads in each iteration (in case the parameters have been changed) For part 3, start looking at the twitter API and the various python wrappers that are out there. To improve the frequency that ...
7
2
387
2016-05-19T03:22:53.350
data_quality
softwareengineering.stackexchange.com
201,474
How can I manually install pecl_http on Ubuntu 9.10?
This is essentially a repost of https://stackoverflow.com/questions/4159369/ubuntu-9-04-pecl-extension-downloads-but-does-not-install . Hoping maybe someone can help me here. I've done this: [CODE] which installs fine. However, the next step: [CODE] Doesn't install the extension, but merely downloads it. There are no e...
The module which you built manually needs to be included in your php.ini Php must know what to load.... So find .so file move it to the php extensions and list it in php :) The readme where you compiled the module should have explained that Hope this helps :)
0
1
1,427
2010-11-13T12:59:22.137
infrastructure
serverfault.com
584,561
mails doesn't fire from php script - some issue with vps configuration
I am unable to fire any email from the php scripts on my vps server. I went to check in the logs and found this: [CODE] this was pulled from /var/log/maillog Now I don't really understand whether they represent a error or a successful delivery but the mails never reach the mailbox. THIS IS WHAT I HAVE IN MY /etc/hosts ...
[CODE] This is generic error. It also indicates in the log that your message is relayed to root@localhost, so check it's mailbox for more information. I think your problem is that you have localhost set as your hostname. Set it to normal: Change your server's hostname from localhost to FQDN hostname; Update [CODE] and ...
-1
0
336
2014-03-26T06:37:37.930
infrastructure
serverfault.com
1,102,662
MikroTik: How send the mac AP to external CAPTIVE
I set up the MikroTik router hEX RB750Gr in hotspot mode, connected the WapR-2nD access point to it and distribute wifi. Hotspot is configured for an external authorization portal (Captive). Captive portal needs the mac address of this access point to identify the access point. But in the get request (in login.html) to...
As far as I know, there is no special variable that gives you the MAC address. You could try $(identity) which provides the "System Name" of the device. May be configure the MAC address as the system name?
0
0
588
2022-06-07T07:24:07.157
infrastructure
serverfault.com
341,841
Should I build a fully featured application or a bare bones one and then slowly add features?
I work in a manufacturing plant that has tasked IT with creating a shop floor scheduling program (that is very badly needed). Based on others experience, would it be better to take less time and build out a basic framework that is usable and then build upon that by adding features or start out by creating a fully imple...
Experience definitely leads toward building something small and simple, and getting it to the users as early as possible. Add features and capabilities as they're requested by the users. Chances are very good (bordering on certain) that what they want/ask for won't resemble what you would have built on your own very mu...
11
29
698
2017-02-08T20:59:33.330
api_errors
softwareengineering.stackexchange.com
306,636
Port Knocking and TCP/IP within the OSI model
I have read that Port Knocking can be subject to false negative (type II error) due to the optimization techniques of TCP/IP. A correct port knock given by the client may be read as incorrect by the server. Is this avoidable by using only UDP and/or ICMP ports, and if so could a port knocking daemon open an unmentioned...
You'll get better results if you cite your sources of information; you may be misinterpreting the data, or there are additional details that will change the nature of any answer you get. In general, though, any port-knocking, regardless of mechanism, can be disturbed by an intermediate active device. Some are more sens...
3
3
274
2011-08-30T23:12:37.590
infrastructure
serverfault.com
57,505
What is the best way to approach this problem?
I'm new with data science, but I'm familiar with python3. I'd like to solve a problem with machine learning, but I'm totally new to this field, which is why I am looking for someone kind enough to discuss possible solutions with me. Edit: I realised that this isn't a 'machine learning' problem. Anyone bored enough to h...
I would rather suggest you to use more traditional approaches of coding such as dynamic programming or Greedy method to solve this rather than going for machine learning because in your question as far as i can understand there is nothing much that a machine learning algorithm can do for you in such a problem because t...
1
1
94
2019-08-13T16:17:51.623
data_quality
datascience.stackexchange.com
89,683
Matplotlib error
I was trying this simple code and am unable to find the error I made in it. My code: [CODE] And I am getting the error: [CODE]
Because you're giving [CODE] with a shape of [CODE] and [CODE] with a shape of [CODE] . Removing the last item from [CODE] to make them of equal length works without an error: [CODE]
0
2
216
2021-02-21T01:57:43.247
data_quality
datascience.stackexchange.com
369,505
What is the preferable date-format used for designing APIs and storage
The date format should support different timezone and Daylight saving issues.
ISO8601 . It's not just "preferable", it should be the only format you consider.
-2
8
120
2018-04-17T13:43:40.270
api_errors
softwareengineering.stackexchange.com
347,403
How can wrapping an expression as a function be Clean Code?
Another programmer just started working in our team and submitted a patch. What required was to have something that compares and check a couple of conditions and set a property based on the outcome. The patch, in essence, is a class that implements the requirement as something like this: [CODE] The actual code probably...
What constitutes "clean code" always depends on context. The exact same lines of code could be either perfectly clean or hideously over-complicated depending on the requirements of the application. The design in question allows you to use dependency injection to substitute implementations of the process without affecti...
4
13
1,603
2017-04-19T13:55:38.903
api_errors
softwareengineering.stackexchange.com
16,616
Is Clustering used in real world systems/products involving large amounts of data? How are the nuances taken care of?
I am working with a real dataset of around 2.5 million short text data (posts, around 10 words in an average data element). I wanted to group similar posts together. So, I applied KMeans clustering on the dataset after doing the standard pre processing. After vectorization (I did TfIdf), the matrix was huge (2.5 millio...
Clustering (mostly) does not apply to huge data. Since you cannot automate result evaluation and validation (forget the 'internal' measures, they are useless) nor use the automatic results in any meaningful way (partially because clustering is just way too unreliable for automatic use). Clustering requires you to study...
3
4
304
2017-01-30T09:24:49.403
data_quality
datascience.stackexchange.com
219,620
which is the best webserver for serving static content and load balancing?
I was wondering which is the best webserver that would be able to server static content with the highest performance, and also is able to perform load balancing. I looked into apache, lighttpd, nginx, and cherokee, but I am not sure which one would be my best option as a load balancer. Thanks,
As others have mentioned, its not advisable to use a webserver as a load balancer when you could use a load balancer as a load balancer :) Here's another option for you - since its just static files, have you considered using a content delivery network (CDN) like Amazon CloudFront? Their core function is to loadbalance...
0
4
5,338
2011-01-06T21:45:33.310
infrastructure
serverfault.com
549,231
How do I restore a Windows Server 2008 R2 bare metal backup to a Windows Server 2012 R2 Hyper-V instance?
I have been trying to find a simple way to migrate a physical Windows Server 2008 R2 installation over to a virtual machine hosted on Windows Server 2012 R2 Datacenter Edition /w Hyper-V. I came across the bare metal backup feature on Windows Server 2008 R2 and assumed I would be able to easily back it up and simply re...
The solution was to switch tools. I used Disk2Vhd instead of Microsoft Windows Server Backup and it worked flawlessly on the first attempt.
2
3
2,746
2013-10-28T20:31:46.560
database_errors
serverfault.com
1,096,261
AWS ElasticBeanstalk: Early termination of worker [puma] Loading development - gems?
I'm currently upgrading rails from 6 to 7 and so had to upgrade my eb platform-version as well (to run ruby-3.0). Now puma isn't able to start and always looping through: [CODE] When I try to start manually, it is trying to load all the gems from the development-group (which of course aren't available) BUT WHY?! [CODE]...
This stems from a mismatch of the version of puma running on your eb environment and the puma version running in your application or Gemfile. To get the puma version running on your eb environment: [CODE] Make sure this version matches what you have in your Gemfile. As far as why environment variables are not running i...
0
0
1,205
2022-03-16T09:00:02.607
database_errors
serverfault.com
279,117
Query to view failure detail for a given sql agent job step?
I have a sql agent job step that failed for a given date / time. Is there an MSDB - TSQL query I can run to view the step failure reason given that : I know the job name. I know when the job failed. I know the step number
You can get failure reason by looking at message section of SQL-Agent Job history window. If the error produce more than 1024 characters, you can query [CODE] , to be specific to the requirement, you can use following query: [CODE] If the error produce more than 4000 characters, enable following setting from particular...
0
1
10,572
2020-11-03T13:22:41.890
warehouse_errors
dba.stackexchange.com
34,095
Search and Replace in specific column of csv with python
I created a program that search and replaces over an entire csv file but I need to make so it is column specific. Is there a way to only search via a column. Here is my code, I am pretty new to python so I apologize if this is an easy fix. [CODE]
You can do it easily by using [CODE] , like this: [CODE]
0
2
30,375
2018-07-06T13:13:32.600
data_quality
datascience.stackexchange.com
810,921
Monitor Group Policy eventlog
I want to monitor GPOs and check if the GPOs are applied on all stations of my Domain, by checking the presence of an ID with the name of GPO, and check if an error occured. I want to monitor Microsoft-Windows-GroupPolicy\Operational.evtx is this possible, and if yes, how? For the moment I execute [CODE] However this r...
You are looking for the [CODE] argument. Which would be [CODE] if I remember correctly.
0
0
146
2016-10-24T13:21:51.467
infrastructure
serverfault.com
186,997
EC2 instance suddenly refusing SSH connections and won't respond to ping
My instance was running fine and this morning I was able to access a Ruby on Rails app hosted on it. An hour later I suddenly wasn't able to access my site, my SSH connection attempts were refused and the server wasn't even responding to ping. I didn't change anything on my system during that hour and reboots aren't fi...
It's hard to figure out what went wrong exactly. From the console output (note: not the system log) it looks like ssh started and despite the errors, the server finished the boot process - I see the login prompt. If it's still down, I'd recover the EBS volume with your data and move on to a new instance. Get used to it...
1
1
4,265
2010-10-01T19:59:48.900
infrastructure
serverfault.com
394,984
Using a db as part of CI
I am designing a CI system where I need to leverage a database as part of the software build process for integration tests. Different developers on different branches of the same repo will want to run a build on their code. I am struggling a bit on how to design the the database integration. As part of the process the ...
I think there's a few problems going on here, but we might be able to address a few of them. However, that could cause a conflict between concurrent builds by different developers, if they attempt to use that database at the same time. Why not implement a queue? It sounds like you are a bit time strapped to solve the p...
0
1
237
2019-07-21T13:19:01.317
pipeline_ops
softwareengineering.stackexchange.com
614,186
Is there a way to create a "one-time" boot entry in grub?
I have the following issue: I have a small server (Debian based) to which I can connect remotely (VPN/SSH connection). Now I want to change some boot options (in fact I want to migrate my root file system to another partition) and therefore I have to reboot my system. In fact I am afraid of the possibility that somethi...
You can indeed use Grub to boot once only . You can also specify a fallback boot . Essentially, you use [CODE] at the start of your grub.conf, to indicate that you want to boot a saved entry by default. Then at the end of your experimental boot, use [CODE] to set the older boot options as the new saved value. So that e...
15
9
5,417
2014-07-21T14:02:36.843
infrastructure
serverfault.com
358,432
Any need to make backup of data on Amazon S3?
I'm hosting 200 GB of product images at S3 (this is my primary file host). Do I need to back that data up somewhere else, or is S3 safe as it is? I have been experimenting with mounting the S3 bucket to a EC2 instance, and then making a nightly rsync backup. The problem is that it's about 3 million files, so it takes a...
I've been doing research on this, funny enough. Your backups to S3 can fail depending on your region because of eventual consistency; the basic warning is that if you do this enough, at some point you'll have errors opening or finding files as the filesystem magic in the background of Amazon syncs among servers, so you...
20
7
12,661
2012-02-09T15:34:20.747
database_errors
serverfault.com
378,807
Update a war on Tomcat start up
I want to setup an update process for an application running on Tomcat. The server which hosts tomcat is only open during working hours (it is an intraner application for a small company). I was thinking that I could upload the new war to the server and set up "something" to run on the next server boot. This something ...
The way I would set it up is by not having tomcat auto start on start up of the server but simply call the startup.bat/.sh file (located in the tomcat/bin folder) at the end of the script that replaces the war file (and that is run at startup of the server).
0
0
1,118
2012-04-12T10:20:59.827
pipeline_ops
serverfault.com
90,510
Why is Windows Server 2008 Disk Access Slower than Windows Server 2003?
Why is disk access on Windows Server 2008 3x slower than Windows Server 2003? We are purchasing new hardware for our build servers and may end up with a 6 year old OS because disk access is so slow with Windows Server 2008 and 2008R2. I have performed benchmark tests on clean OS installs on the exact same hardware. The...
Can you double-check that write/read cachning is enabled on the disk volume within device manager? Also, is it possible for you to breakdown those figures into portions of the test (most specifically: does it take several minutes longer to delete the files on 2008?)
4
2
6,355
2009-12-03T05:28:36.560
infrastructure
serverfault.com
3,435
Suitability of functional testing to problems with many interrelated inputs
I have read that functional testing is not that suitable when there is a lot of interrelated inputs. Is my understanding correct that e.g. following program would be really difficult to test using functional testing (test cases): Car configurator with e.g. 20 fields, each of 20 choices, giving 400 possible combinations...
I live this scenario. My employer's software has somewhere north of 1000 configuration flags, some with minor effects and others with the ability to dramatically change the system behavior. They support defining some 15 different kinds of item for sale, each with different rules of operation, 8 tax definitions (each of...
1
5
217
2012-07-10T20:04:42.170
data_quality
sqa.stackexchange.com
72,369
Can't Ping an Aliased IP
I've setup two ip aliases on a FreeBSD server's NIC that I intend to use to test a Virtual Host configuration in Apache. My box is running XP natively and FreeBSD virtually using VirtualBox. The XP box connects to a router which is also connected to the server. The problem is that I can't ping the aliased ips unless I'...
Are the secondary IPs in the same subnet as the primary IP? Perhaps that's too obvious but that would be the first thing to check since you didn't specify... Ah... I'm not quite sure what you're trying to accomplish. By using /32s it almost looks like you're trying to apply the concept of loopback IPs to a server, but ...
1
1
4,224
2009-10-08T00:40:10.580
infrastructure
serverfault.com
368,048
How to share common NuGet package settings between projects (csproj 2017)
I would like to share common NuGet package values between projects in the same solution, such as Author , Company , Copyright , and Product . Previously (using the 2015 project format), I would use a combination of AssemblyInfo.cs and a shared (linked) GlobalAssemblyInfo.cs that contained all the common settings. Now t...
That's simple to achieve: use a [CODE] file in the solution folder and put those values in there. It takes the following format (just like the new .csproj files): [CODE] By default, MSBuild looks for [CODE] files in all the parent directories from the project's location and adds those to the project configuration on bu...
2
3
1,364
2018-03-21T14:37:56.403
api_errors
softwareengineering.stackexchange.com
828,045
Why can't admins view user's redirected folders?
Followed this doc to setup folder redirection: https://technet.microsoft.com/en-us/library/jj649078(v=ws.11).aspx Setup permissions like so: But in addition to a "Folder Redirection Users" group I created a "Folder Redirection Admins" group and gave that group "This folder, subfolders and files = full control" (same as...
There's a specific setting in the Folder Redirection GPO setting that you need to disable, regardless of NTFS permissions on the parent folder, in order to allow access to the child folder. You need to uncheck the "Grant the user exclusive rights to Documents" checkbox. Note that unchecking the box after a user's folde...
2
4
2,584
2017-01-23T15:52:20.267
infrastructure
serverfault.com
313,319
Making a multi hop SSH tunnel a mysql server (3-4 hops)
I'm trying to get to a mysql server on a remote network, and to get to it I currently have to do several ssh hops, so I can use the mysql command line interface. I'd really like to do a mulit-hop tunnel so I can just use a gui from my desktop. How would this work? Here's the order: MacDesktop --> DevServer -->StageServ...
You can use ssh to forward the ports(assuming that the mysql server is configured to accept connections from StageServer on port 3306): [CODE] Now configure the gui client to connect to 127.0.0.1:3306 (Make sure you're not running mysql on your Mac or forwarding to port 3306 will fail, or use another port for forwardin...
2
4
3,827
2011-09-19T20:01:04.400
database_errors
serverfault.com
893,066
Redis not starting with systemctl
I have installed redis on an ubuntu 16.04 machine and if I run [CODE] it starts up and I can connect to it without issues. However I want to start it using [CODE] , so I have created the following file at [CODE] [CODE] and the redis config has [CODE] set which I think looks good, but I get the following errors: [CODE] ...
To run redis under systemd, you need to set [CODE] . See the configuration file: [CODE] Needs to be changed to: [CODE] You can also pass this on the command line, which overrides the setting in [CODE] . Red Hat based systems do this. This also allows for running the same redis instance manually or from systemd without ...
21
22
107,645
2018-01-19T15:41:01.583
database_errors
serverfault.com
548,815
Determine from where is "sh" being run under apache www-data user using using PF or NETSTAT
I am working with a compromised Ubuntu 8.04 Plesk 9.5.4 server. It seems that a script on the server is continuously doing reverse lookups to random IPs on the Internet. I first spotted it during by using [CODE] and then noticed flashes of this coming up continuously: [CODE] I wrote a this script to interrogate [CODE] ...
While it looks like you've figured out the cause of this problem already, dumping the process table with [CODE] and a few args would have helped. Replace your [CODE] command in the loop with: [CODE] You'd only want to run this for about 30 seconds due to the wall of text it would generate. This will display all process...
2
1
530
2013-10-26T08:16:44.753
database_errors
serverfault.com
989,651
How to keep a local folder’s contents synchronized with a network share? (Windows)
I would like to have a local folder on all of my domain connected computers kept in sync with a share on one of my servers. Only Domain Admins and the SYSTEM account should have Modify permissions to the local folder and the share, everyone else should have Read/Execute. Any suggestions are welcome. My first thought wa...
I would use the NETWORK SERVICE identity. This would require granting read access to the share to Authenticated Users or Domain Computers. Domain Computers may be preferable, due to the possibility that users may access the share directly and lock a file.
0
0
688
2019-10-28T14:22:56.500
infrastructure
serverfault.com
187,642
Design table issue
I have some applications I sell, and they run by sessions, in simple terms, a user have a key and he can purchase multiple sessions of a specific application to run using his key. So let's say product A, B and C, user have bought a session for A and B, so he can run a single instance of both, A and B until he stops pay...
I think that a design where access is associated to packages (groups of products) - and not to products - would be appropriate for your case. I named this association table [CODE] to replace your [CODE] : [CODE]
3
3
42
2017-10-04T13:02:23.607
warehouse_errors
dba.stackexchange.com
339,279
Exception Hierarchy and Use of What Message for Parsing Strings
I have a piece of code parsing a text file line by line. I have to goals: Testing the syntax of the text and extracting information of it. It is quite likely that syntax errors occur so I want to provice helpful information about where and what. To give an idea of the problem, I have a text file like the following (sim...
Using [CODE] for text that is show to the end-user is indeed a problem. Suppose your project becomes a real success and you get a request to make a translation of it into some other language. That will be next to impossible if the text you show your users is directly copied from [CODE] . The correct way is indeed to cr...
3
4
1,137
2017-01-02T11:39:57.677
api_errors
softwareengineering.stackexchange.com
170,080
iptables port forwarding
I want to forward trafic destined at port 100 to 127.0.0.1:101. The actual goal is to forward to a different IP:PORT, but for the sake om just getting stuff to work I have a socket listening on *:100. From this site, and google "iptables port forwarding howto", I've been lead to belive the syntax is as follows, which i...
Solution was partly based om wolfgansz. As I was not originally registered as a user on serverfault, and have since cleared my cookies, it doesnt seem that I can just post a comment. Default policies are DROP for INPUT and OUTPUT chains, and ACCEPT for FORWARD. [CODE] And finally to use it add_forward "My forward", "19...
2
2
4,449
2010-08-13T07:39:03.257
infrastructure
serverfault.com
1,082,395
High cpu temperature and temperature difference
On a cluster I am working on there is a node which is showing high CPU temperature. The node has 2 Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz. The sensors command from lm-sensors is showing that one CPU is at around 70°C and the other at 90°C. The load is 100%. It is in fact overloaded but the load can not be reduced. T...
Running a CPU at those temperatures is within specs, but it will most likely degrade the longevity of your components. You should definitely look into scaling up, both horizontally and vertically, to reduce the load. If on-premise you could also check if there are more efficient cooling options.
0
0
396
2021-11-02T12:54:31.977
airflow_errors
serverfault.com
21,688
SQL Server job timeout
So, it seems that it is not possible to set the timeout for each single step in a SQL Server job ( article from StackExchange ). MSDN points out that you can of course set the Agent timeout: Sql Server Agent properties . Set Job execution shutdown . Questions How does Agent time-out work? Is there any other way (prefer...
(1) is referring to the service itself. If I go stop the SQL Server Agent service this value specifies how long it will wait for any active job to complete before forcible stopping it (the service) so it can shutdown. With regards to (2) and (3), you would have to setup some monitoring script/job that tracks that infor...
10
4
16,986
2012-07-30T15:03:46.193
database_errors
dba.stackexchange.com
1,148,961
What to set $DISPLAY environment variable to when su to another user
I'm not that au fait with Linux, let alone things like X and display/window managers. I am trying to run the GUI installer for Oracle Enterprise Manager, but it is complaining about the value for the DISPLAY environment variable, and is not able to load the GUI. I am logging in as root then launching terminal, and can ...
You need to configure X11 authentication MIT-MAGIC-COOKIE. You can use xauth to configure it: [CODE] Or alternatively: [CODE] Or set [CODE] environment variable: [CODE]
1
1
526
2023-12-01T18:47:19.993
database_errors
serverfault.com
166,644
How to run Mongo database db.currentOp(true) command using API
Using the Mongo Java API I can run the currentOp() command like this: [CODE] But I only get details of current operations. I need to get details of idle connections too. With reference with this https://docs.mongodb.com/v3.0/reference/method/db.currentOp/#currentop-examples Behavior If you pass in true to db.currentOp(...
Try this instead: [CODE] I've tested the JS version of this (don't have Java set up to test atm) and it worked. If you are looking for an example of how to do this, you can see the actual methods (rather than helpers) in Java in this example , compare the default on line 43 with "all" on line 49
2
1
3,244
2017-03-09T07:30:32.763
database_errors
dba.stackexchange.com
350,031
How do I get the internet speed that of a hosting company?
I own a popular website, heavy on traffic and space. I can't solely trust my hosting company with backups, plus - hardware is expensive to rent. So I am looking into hosting the website in-house. I called my ISP to set up a connection, the price is right, but maximum they can do is 50Mb/sec. I need at least 200Mb/sec a...
To get the speed of a hosting company, you need the infrastructure of a hosting company. That means, find a co-location environment and rent however many U you need to rack up your server(s). They will have the kind of bandwidth you need up to gigabits per second. Fortunately, it sounds like your budget is reasonable. ...
0
3
95
2012-01-15T07:03:27.927
database_errors
serverfault.com
272,931
Error "5.7.1 Relaying not allowed without prior authentication" when trying to send email
Here I have an Exchange server 2003. This server has been configured the default SMTP connector to send and receive emails. This connector successfully sends emails to almost all email address; but, it is not working for one specific email - in this case, the email is not delivered and the error message is the followin...
The first thing I would do is make sure that it is not blacklisted by any other list: http://www.mxtoolbox.com/blacklists.aspx Which server caused this report: "The server rejected the sender's email address"? Your sending server, or the recipient's server? I suspect the recipient's as most likely, and if so, you are b...
1
1
3,499
2011-05-23T21:52:01.190
api_errors
serverfault.com
189,676
CentOS - XServer, VNC, Display conflict
Here's what I want to do: I need to set up this computer so that the physical output display, via the primary display port, is duplicated when someone connects via vnc. Here's the problem: I can connect via SSH to the computer with no problems. I can also connect via VNC to the computer without problems. But the physic...
Sounds like you might want something like this: http://wiki.xdroop.com/space/Linux/x11vnc+setup
1
0
689
2010-10-11T10:56:12.137
data_quality
serverfault.com
2,323
Tips for Optimizing Oracle Warehouse Builder 11.1 with Oracle DB 10.2
Are there any tips for improving performance of Control Center and Design Center in Oracle Warehouse Builder? At the client side it is very slow to open and refresh Design center and control center and table/dimension/cube mapping deployments made to a remote database are also slow. Several users ( Please suggest any p...
Make sure that open_cursors is sufficient. What is the current value for open_cursors and session_cached_cursors? They should be high, start with 500.
2
1
2,276
2011-04-21T23:38:03.347
warehouse_errors
dba.stackexchange.com
564,909
Exchange 2010 550 5.1.1 Recipient Rejected Error
About 3 weeks ago, we migrated our email solution from one hosted Exchange 2003 environment to another hosted Exchange 2010 environment. I currently have an outside user unable to send emails to our email. Our receive connector has anonymous users allowed and no restrictions and I whitelisted the domain/email for good ...
The good news is that if someone is getting a "SMTP 550 5.1.1" then they are talking to your SMTP transport server and there isn't a DNS problem. The flip side is that there isn't quite enough information to determine the issue. We'll need to know about your Receive Connectors (their networks, authentication settings, ...
2
1
1,838
2014-01-03T17:40:16.320
infrastructure
serverfault.com
442,708
Is this a good use of events?
At my company we are revising some backend architecture. I think I have identified a use case where event streaming (for example with Apache Kafka or RabbitMQ) makes sense. Because me (and everyone else- at my company) are pretty much noobs in that space, I'd like to validate my idea. Business flow and prerequisites We...
After reading the question a couple of times, I concluded that either through direct calls between services or messaging, both solutions cause the same problems. I'm talking about problems related to distributed computing. If one service in that chain is down, the import is interrupted and can't be continued without ma...
0
1
161
2022-12-07T14:17:32.980
hadoop_errors
softwareengineering.stackexchange.com
946,777
How to force Nginx to cache revalidate
I have a problem, I have a server with video-files and nginx as a proxy cache server for office. As far as most videos not changing it working good, but time to time a few videos changing (I mean they just overwrites files on the server after fixing some bugs or artifacts in video), but nginx could not see it and backs...
Yes it is possible with proxy_cache_bypass directive. You can define query string, cookie or HTTP request header that will allow you to fetch desired resource directly from backend server (bypassing Nginx proxy cache) and save that same response to proxy cache for serving subsequent requests. Here are a few examples: [...
3
4
4,910
2018-12-27T14:53:38.890
infrastructure
serverfault.com
673,862
c7200 IOS 15.x-x NAT/PAT issue
My problem may be just finger trouble, but after fighting with this for a day on what should have taken 5mins, I am getting fustrated. I am not Cisco Certified at any level, just a fair amount of experience. So I am asking for help before i take a big hammer to this router :) This equipment is off contract, No TAC supo...
This problem has been solved, There is a subtle incompatibility with the kboot image and the full IOS image. Simply add a boot bootldr bootflash:ignore statement to your config (must be done in an editor if you dont want the hassle of creating a virtual file) then only have one IOS image in flash, the full image. The r...
0
0
812
2015-03-08T17:49:05.207
infrastructure
serverfault.com