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
990,607
Dovecot: no auth attempts - from local IP
Please note, this is not like the other question asked about the same topic (wrong SSL setup, whatever)! My mail setup works fine, IMAP / POP3 login and smtp is just working. But I have some log entries I do not understand. The machine has two interfaces. eth0 -> 172.16.5.12 (an internal IP) eth1 -> public IP address [...
The connection was from the monitoring, there was one checking the port if open and one which validated the SSL certificate. Thanks @Dom
0
0
1,163
2019-11-05T06:47:24.690
infrastructure
serverfault.com
868,925
Can I print apache environment variable in error log?
I want to print mod_security anomaly score to apache error log. I use [CODE] to set enviroment variable, and [CODE] syntax to print it in log. Modsecurity config: [CODE] Apache config: [CODE] But the output is empty: [CODE] If I add [CODE] , scores are printed, but in new log line. Where did I go wrong? Does the [CODE]...
Why do you have a dash between the [CODE] and the [CODE] in the first non-working example? Also the Modsecurity reference manual says you should use [CODE] instead of [CODE] . So I believe your final config should be: [CODE] Note also that custom ErrorLogFormats only work with ModSecurity 2.9.1 or above: https://github...
0
0
4,281
2017-08-16T10:22:44.630
data_quality
serverfault.com
317,316
Oracle NET - How to enable SOURCE_ROUTE with LOAD_BALANCE and FAILOVER?
Lets say we have the following tns local naming: [CODE] SOURCE_ROUTE=YES is: When you set this parameter to on or yes, Oracle Net uses each address in order until the destination is reached. To use Oracle Connection Manager, an initial connection from the client to Oracle Connection Manager is required, and a second co...
You can load balance multiple DESCRIPTIONs, with each DESCRIPTION providing different SOURCE_ROUTEs, like this: [CODE] The following should also work, and be a little more compact. In this case, the route goes first to a list of addresses for the connection managers, which are set for load balancing and failover, then ...
0
2
382
2022-09-23T18:00:15.950
database_errors
dba.stackexchange.com
253,828
How should I design a wizard for generating requirements and documentation
I'm currently working in an industry where extensive documentation is required, but the apps I'm writing are all pretty much cookie cutter at a high level. What I'd like to do is build an app that asks a series of questions regarding business rules and marketing requirements to generate a requirements spec. For example...
This is not fully baked, but you should get the idea. Requirements Table: [CODE] Example tuple: [CODE] Responses Table: [CODE] Pseudocode [CODE] Sample Template text [CODE]
0
2
190
2014-08-19T19:36:32.840
api_errors
softwareengineering.stackexchange.com
397,054
Scheduled task based on Microsoft patch release cycle
I have a simple powershell script which unapproves all patches based on computer group name in WSUS which works great. All of our servers patch on a specific Day/Week/Time starting on Week0-Wednesday which would be the Wednesday after Microsoft Patch Tuesday (2nd Tuesday of every month) all the way to Week3-Sunday. Thi...
This would be pretty complicated, but might work. You need a combination scheduled tasks & scripts. Run a task on patch Tuesday that and sets a flag file in a particular directory with the contents set to "0" Every Monday run a script that looks for the flag file If the flag file is found read it and add 1 to the value...
3
4
2,158
2012-06-08T20:32:20.403
infrastructure
serverfault.com
218,949
PHP Warning: PHP Startup: apc.shm_segments setting ignored in MMAP mode
Any ideas on how i can fix this warning? Getting this while executing it from shell, on FreeBSD 8.x [CODE] Happy new year !
When APC is configured with mmap it only uses 1 shm_segment. To remove the warning either comment out or delete the apc.shm_segments line in your .ini file.
2
4
4,904
2011-01-05T12:52:37.240
infrastructure
serverfault.com
325,057
How to relay Nagios information to a central location?
I have Nagios running to monitor a number of various local services. I am trying to figure out a way to have Nagios monitor network connectivity between two remote locations and report that information back to my Nagios server to be included in my list of monitored services. For example: Let's say my company has a VPN ...
What you're looking for is NSCA . On the central Nagios server you create all the hosts and services you want to monitor, but don't enable active checks. You also need to enable passive check results in the main Nagios configuration. The "distributed" Nagios instances then need to use NSCA to submit service check resul...
1
4
3,857
2011-10-26T19:02:18.380
infrastructure
serverfault.com
137,482
Query: How to join on different tables depending on the filled column?
I'm pretty new to the field of SQL, but already solved a lot of problems, so until now i am familiar with the different possibilites of JOIN(s) (explicit and implicit syntax), group by, distinct and so on. But the query i am working on right now is crushing my head and i'm not sure how to approach that one: The data i ...
Let's say that your tables are called ( in order of you mentioning them ): Segment , FK , JC_type_A , JC_type_B , etc The main problem that I can see is that you don't know which junc_type will be for which junc. So you will have to left join back to their respective tables and select the one that is not null in your s...
1
1
2,517
2016-05-04T09:41:14.943
data_quality
dba.stackexchange.com
1,074,093
Fail2ban filter for mongodb
Fail2Ban version: 0.10.2 I have tried a lot of filter config files for MongoDB remote authentication fail, none of them have been working, I have figured that the problem is with failregex and I am not able to come up with a proper regex. [CODE] This is the mongo log I get on the failed attempt. I have tried using , in...
https://github.com/fail2ban/fail2ban/issues/2932 https://github.com/fail2ban/fail2ban/issues/3046 shortly: [CODE]
1
0
470
2021-08-10T13:53:59.950
database_errors
serverfault.com
202,668
How to convert a Bazaar repository to GIT repository?
We have a large bazaar repository and we want to convert it to a git repository. The bazaar repository contains the folders of each of the interns. Any documentation/code prepared by interns is committed in their directory so there are a huge number of commits. What steps should be performed to securely convert the baz...
Look at https://github.com/termie/git-bzr-ng . It's a little old but worked fine for me to fork a launchpad project in github. Simply import all bzr branches and push on your remote git server. I recommend using bzr2.2, it was buggy when I tried with newer verion of bzr.
8
2
1,760
2013-06-25T10:52:13.017
database_errors
softwareengineering.stackexchange.com
1,059,603
GCP unable to ssh from the browser
I recently added a firewall rule to my instance, so that it can be accessed only from whitelisted IPs. After creating this firewall I am unable to ssh using the browser window option. The CLI works fine which is weird. I am able to login using CLI. I am getting the following error only on browser login. [CODE]
The browser login is coming through GCP, from a different IP address. Check your server logs to see which IP address is being denied, and add it to the allow list.
0
0
247
2021-04-07T10:53:05.197
infrastructure
serverfault.com
861,501
zookeeper automatic start operation fails when firewall is stoped at rc.local script
iam using hadoop apache 2.7.1 on centos 7 and my cluster is ha cluster and iam using zookeeper quorum for automatic failover but i want to automate zookeeper start process and ofcourse in the shell script we have to stop firewall first in order to let other quorum elements able to contact current zookeeper element iam ...
i have abig headache about stopping and restarting firewall scenarios and i discovered that stopping firewall at rc.local is a fake stopping so because idon't want fire wall to work at all i ended up with the following solution systemctl disable firewalld https://www.rootusers.com/how-to-disable-the-firewall-in-centos-...
0
0
441
2017-07-11T11:33:13.710
database_errors
serverfault.com
66,755
Do Python programmers find the whitespace issue inconvenient?
Many programmers, upon first encountering Python, are immediately put off by the significance of whitespace. I've heard a variety of reasons that this is inconvenient, but I've never heard a complaint from a Python programmer. Of course, I haven't met a lot of Python programmers, as I have spent my career in the Java w...
There is only one case in which I find the whitespace to be annoying, and that is when modifying existing code so that a block of code has to become more or less indented than before (e.g., adding or deleting an [CODE] before the code). When writing in a language like C, you just add the [CODE] and a pair of braces, an...
10
13
9,195
2011-04-09T21:02:42.040
api_errors
softwareengineering.stackexchange.com
1,134,456
Domain Admins group removed from local Administrators group but gets UAC prompts for non-admin applications
So, I have an odd one that I just cannot find on the internet. We are trying to set up Privileged Access Workstations at our company. We have removed the Domain Admins group from the Local Administrator group on the PAW. When we do that, then several applications will show the UAC prompt even though I did not [CODE] . ...
There is a known issue with UAC not properly calculating if a user actually has an admin token or not. Users in high level domain groups, like Domain Admins, will still be considered "administrators" regardless of their local computer group membership and therefore will be prompted for credentials by UAC. One may consi...
2
1
1,225
2023-06-21T14:56:18.517
infrastructure
serverfault.com
769,034
Windows 7 Outbound PPTP Connections
I have various locations that I connect to using Windows 7 PPTP outbound connections. I'm able to make any 2 connections, but the third connection fails. I was wondering if anyone knew of a registry change that would allow more connections. If not, could I run these PPTP connections on a server and share them to the wo...
Without a network diagram I'm shooting from the hip...if you have multiple hosts at the same site that need to access the same remote resources does it make sense to use a VPN appliance/firewall to tunnel? That seems like a more reliable and less troublesome way to do it. Windows 7 will only allow two concurrent VPN tu...
0
0
68
2016-04-08T12:55:45.147
infrastructure
serverfault.com
205,121
"Show" Output Store Into Table
Is there any way through which can I store my "show slave status" output into any permanent/temporary table. After storing output into table I will took some decisions against their error number.
Disclaimer: The below solution is probably unnecessarily complicated - the obvious solution to this would perhaps involve a cron job or maybe a database event running at some interval to execute [CODE] and extracting the output into your table. Nevertheless, here is what I think is an interesting solution which gives y...
1
2
257
2018-04-27T05:21:28.387
warehouse_errors
dba.stackexchange.com
153,420
MySQL - Delete row that has a foreign key constraint which reference to itself
I have a table in which I store all the forum messages posted by the users on my website. The messages hierarchy strucrue is implement using a Nested set model . The following is a simplified structure of the table: Id (PRIMARY KEY) Owner_Id (FOREIGN KEY REFERENCES TO Id ) Parent_Id (FOREIGN KEY REFERENCES TO Id ) nlef...
Besides disabling foreign keys which is is dangerous and can lead to inconsistencies, there are two other options to consider: Modify the [CODE] constraints with the [CODE] option. I haven't tested all cases but you surely need this for the [CODE] foreign key and possibly for the other as well. [CODE] If you do this, t...
21
15
138,776
2016-10-26T20:49:52.493
data_quality
dba.stackexchange.com
274,358
How can I filter on result of aggregate functions like min, max, sum?
In the below query: [CODE] How can I filter on on [CODE] which I assume is a [CODE] ? For example I'd like to filter for all records where [CODE] is larger than [CODE] (one day). Even if I were to use a subquery, I'd face the same issue again.
Use a [CODE] clause: [CODE] See: https://www.postgresql.org/docs/current/tutorial-agg.html
-1
3
284
2020-08-25T23:01:15.847
warehouse_errors
dba.stackexchange.com
247,587
Browser connects instantly but takes a long time from the command line
I just deployed a server with a site that hosts some resources I want to fetch using scripts. If I browse to those resources in Chrome (even ones I have never been to before -- so I don't think it's a cache issue) they come up instantly, but when I fetch them using a script it takes about 5 seconds to connect. I don't ...
If you run Wireshark you should be able to inspect the packets that are being sent from your PC and their replies. This should help you to pinpoint the problem. My hunch would be DNS resolution - but your ping test would suggest otherwise. NB: Wireshark is in the official apt repository: [CODE]
0
1
93
2011-03-15T12:39:17.887
infrastructure
serverfault.com
137,121
Query with Indexes slower than without Indexes
I'm using MySQL 5.6 and my storage engine is InnoDB. I have a table with 1 million rows containing with the columns: ID (primary key) FirstName LastName foreign_key_id (foreign key, NOT NULL) foreign_key_id2 (another foreign key, default NULL) The rows are seperated under: 25% with foreign_key_id value 1 and foreign_ke...
My understanding: The table contains 1M rows of which 250k are returned by the query. There are 500k rows with [CODE] and 500k rows with [CODE] . The query using full table scan (actually doing full index scan on the PRIMARY key in InnoDB) will read all 1M rows sequentially and check each of them for the conditions. Th...
4
2
2,118
2016-05-01T18:08:58.453
api_errors
dba.stackexchange.com
705,255
MariaDB Galera Cluster falls out of sync easily
We're trying to debug an issue with a MariaDB cluster. We're running Maria 10.0.19 on [CODE] instances in Amazon EC2; the OS is Ubuntu 14.04 (Trusty). There are three machines clustered together, replicating fine (we can run [CODE] on one machine and see it on the other, etc). But : when we try to restore a database fr...
First, huge transactions and [CODE] on galera cluster is still a known limitation, if you have to it is advised to split these transactions by 5k-10k trx's or lesser YMMV. Try to increase [CODE] . Set [CODE] on all nodes.
4
1
11,669
2015-07-13T06:20:25.200
database_errors
serverfault.com
121,246
Should I create a child table without primary key?
I'm designing a database with a child table that may contains billions of records in the future. So I try to use less fields (and smaller ones) as possible. So I'm considering not using a primary key, as it would have to be a bigint, but I will never use it in my queries (this child table won't have ever a 1-N relation...
Two things which are important in your case about primary keys in InnoDB: The records are stored in a B+Tree on the Primary Key Every single secondary indexes will have your primary key appended to them Downsides of not having a single auto-increment PK: With a larger natural key you lose a lot of space on your seconda...
0
0
2,585
2015-11-16T15:49:53.937
database_errors
dba.stackexchange.com
222,343
ifcf-ethx problem
Every time i run [CODE] This is what i get [CODE] Here is my ifcfg-eth0 [CODE] And my ifcfg-eth1 [CODE] And my ifcfg-lo [CODE] Any ideas?
The best I can see is this is a problem with Network Manager interacting with the ifdown/up scripts. I suggest disabling Network Manager with [CODE] and see if that resolves it. If you aren't using a wireless connection then you shouldn't need to use Network Manager anyway. If that works, you can disable Network Manage...
0
1
4,020
2011-01-14T05:26:21.947
infrastructure
serverfault.com
443,904
Where to control optimistic concurrency in a domain-driven design (DDD) application?
I am thinking how to develop an application in a DDD way, and now I am thinking about the concurrency part. In some examples I have seen that in the domain classes are injected with dependency injection an implementation of the repository, and also in the root aggregate is added a field version, to control the concurre...
There is nothing inherently wrong in adding purely technical attributes to entities (or other domain objects) which are exclusive required for implementing things like persistence or concurrent access. Depending on your organizational environment your tooling the way you use to talk with your domain experts about the m...
3
2
1,218
2023-02-11T10:51:27.193
api_errors
softwareengineering.stackexchange.com
18,554
Open source tools for automation of Java GUI application testing
The testing tools (or tools that could be used in testing purposes) for testing Java GUI application I know are: Jemmy - jemmy library contains methods to reproduce all user actions which can be performed on Swing/AWT components (i.e. button pushing, text typing, tree node expanding, ...). Could be used with any Java I...
If the Java GUI application is based on Swing, AssertJ Swing is probably one of the best open source libraries. It's a fork of FEST and has several advantages: Simulation of user interaction with a GUI (e.g. drag 'n drop) Reliable GUI component lookup (by type, by name or custom search criteria) Support for all Swing c...
26
9
56,112
2016-05-10T09:25:03.460
data_quality
sqa.stackexchange.com
623,418
Issue TLS without cname
The person that issues TLS certs is telling me he needs the CName of my server to issue a cert after I just gave him the IP address of the webserver. It's an internal project so we didn't get a domain name yet. Is he correct in that he must have a cname to issue the cert or is the ip I gave him fine?
The certificate needs to be issued for a fully qualified domain name (FQDN). You do not need to use a CNAME, and should probably simply create an A record pointing to the IP address in question. The CA issuing the cert needs to be able to verify ownership of the domain name. You can easily use a subdomain of your exist...
-2
4
487
2014-08-22T19:46:54.183
infrastructure
serverfault.com
27,675
Cannot get attribute value when using xpath
I met a problem when I try to get an attribute of one tag. Here is the html code: [CODE] Here is the xpath for that html: [CODE] I copied this xpath from Chrome directly, I am trying to get the attribute height , and here is what I did: [CODE] I cannot use tagName as there are many tags called rect. Meanwhile, I cannot...
[CODE] has a default namespace [CODE] . You need to handle namespaces . Either with a prefix: [CODE] Or, with [CODE] : [CODE]
4
4
6,228
2017-06-08T06:16:38.760
data_quality
sqa.stackexchange.com
23,068
How to make multiple counts in one query?
I count records with queries like [CODE] For each count, mysql needs to walk thoughout the table, and this is a big problem if having long table and numerous queries. I wonder if there is a way to make all counts in one query. In this case, when mysql walks over each row, it will process all counts, and no need to scan...
To get a count for each of those you can try [CODE]
15
28
108,375
2012-08-24T09:37:19.350
database_errors
dba.stackexchange.com
984,718
monitoring keeplived virtual IP with snmp
I am trying to monitor keepalived VIP with snmp. I got keepalived running on two servers. We had the situation that suddenly the VIP was on both servers which was a big problem, since these servers are virtual gateways. My aim is to monitor keepalived on both servers with a python script through check_mk plugin. Now I ...
pqarmitage from acassen/keepalived answred the question here : Running [CODE] I get exactly the same as you using your configuration above, but that is correct since that are no virtual servers configured (virtual servers are part of IPVS/healthchecker configuration, and do not relate to vrrp_instances). If I add a cou...
0
0
756
2019-09-18T15:59:36.893
pipeline_ops
serverfault.com
261,272
Will windows server 2008 show PAE memory in task manager
First off I am a programmer I am just investigating this and making sure I have my facts straight. We are getting some memory issues on a terminal server when a few people load a program that uses quite a lot of memory (but not out of the ordinary). I looked in task manager and the memory shown is only 3325MB physical....
try rebooting after running (from an admin command prompt) [CODE] Note that you will likely run out of free page table entries before you run out of ram.
2
1
3,457
2011-04-19T13:17:38.210
infrastructure
serverfault.com
270,848
Bacula can't work over poor network connections
For off-site backups we are running a Bacula SD on another location and the internet connection to it, although quite good for what you can normally get at an office, is not as good as a single ethernet cable. It's slow (100Mb/s) and not very stable. One of the backups seem to take around 16hs or more to finish. The ch...
We use bacula for all our Linux backups, with no issue at all. 100Mbit/s is not a slow connection, in fact, as internet connections go that's very decent for most companies. Stability is obviously another matter. However, my first port of call here would be your ISP. Clearly you must have some sort of contract for this...
1
2
673
2011-05-18T07:44:00.267
database_errors
serverfault.com
123,157
How do ISPs/Colocation Facilities limit bandwidth for Ethernet Drops?
I have switch providers and have run into some problems with bandwidth limitations. I have more bandwidth then before, but there are performance issues. The router is connected to a 100mBit port, but they limit it to arbitrary settings (in software I imagine). It seems when I go above the limit, the provider starts to ...
Usually it's shaping vs. policing - done on the provider's edge interface to you. See here or here for more info. Shaping buffers traffic above the limit, policing just drops it. I'm guessing your old ISP may have been shaping and the new one is policing. You could try shaping your side of the interface so your router ...
5
5
1,569
2010-03-16T21:03:05.673
infrastructure
serverfault.com
505,311
Asymmetric port speed issue
When I start "iperf -s" on the one system and start "iperf -c -i 1 -t 3600 -d" on the other, I see an asymmetric bandwidth usage. The following trace show the trace taken on the client side system: I am having two port switch, one is set to 1000M and another to 100M with full duplex, autoneg ON. [CODE] There is a big d...
This could result from a duplex mistmatch between laptop 2 and sw2. Is laptop 2 showing 100/full and autoneg? Sw2 may be sending full duplex, but laptop 2 could be in half duplex so it's colliding with packets coming downstream to it.
2
0
980
2013-05-06T12:37:41.937
infrastructure
serverfault.com
593,676
Give internal access to external client
I am newbie in the networking issues. I got a question for which I don’t know how to solve. I have my internal network that has a fixed IP (only accessed by VPN) and I have a server where I put some virtual machines for personal development work. However, an external client needed access to one of the virtual machines ...
One method, if they needed direct access to the VM to be able to see the full desktop, would be to use the Port Forward/NAT that you already mentioned. You could use it in conjunction with Remote Desktop. The scenario would look like this: Get the public IP that the person testing this from the outside will be coming f...
1
2
2,307
2014-05-07T15:15:11.513
infrastructure
serverfault.com
119,565
Error in IF statement in MySQL
I am wondering why I am getting error when running below simple IF in MySQL? [CODE] This is the error I am getting: [SQL] IF NOT EXISTS (SELECT employee_attendance_id FROM employee_attendance WHERE employee_number = 10 AND attendance_date_time = '2015-10-11 13:14:16') THEN BEGIN INSERT IGNORE INTO employee_attendance (...
You cannot execute such statements unless you use a stored proc: You can run this below. It should work. [CODE]
0
0
4,214
2015-10-29T14:32:05.747
database_errors
dba.stackexchange.com
306,619
SIP ( Asterisk ) CoS solutions with no VLAN's?
I have a Asterisk box actually two running pure asterisk. No GUI i.e. FreePBX, TL etc. The asterisk box is connected to a an EX4200 VC Stack, the EX4200's then connect to our headquarters via a Qwest Metro Optical Ethernet line or QMOE. All it is for those not familiar with it is a very expensive site 2 site VPN. It te...
I should think this would do: [CODE] Then on the interface: [CODE] On the other end: [CODE] Then on the other end you'd set the filter on that VLAN interface as well. Play around with it and see if that works for you.
1
1
601
2011-08-30T22:04:53.517
infrastructure
serverfault.com
48,293
Legitimate use of the Windows "Documents" folder in programs
Anyone who likes their Documents folder to contain only things they place there knows that the standard Documents folder is completely unsuitable for this task. Every program seems to want to put its settings, data, or something equally irrelevant into the Documents folder, despite the fact that there are folders speci...
There would need to be some visible incentive. For example, if users had to provide permission to save in the Documents folder (at install time), programmers would want to avoid triggering that scary dialog. Once you have the incentive, people will naturally stumble upon documentation like "Save machine-specific progra...
43
20
6,558
2011-02-15T18:02:14.257
api_errors
softwareengineering.stackexchange.com
26,777
how to effectively manage multiple occurrences of one application
I have developed a web application for a client which is live to their customers. Recently, the application has been sold in such as way that it is replicated to other domain names so there are 4+ instances of the application which I am to develop and maintain. At the moment, each copy of the app has it own SVN reposit...
Its going to depend on the specifics of course, but ideally you'd want a single source code base with extensions for the client specific code. For example, you might organize the client specific code into plugins the way a content management system would. Or use a templating system for custom GUIs. I would try to avoid...
5
4
289
2010-12-15T19:09:01.970
api_errors
softwareengineering.stackexchange.com
148,156
Developing an Azure Sql Database backup strategy
I know Azure databases are backed up and kept for a retention period, which I believe the default is 30 days. I'd like to come up with a plan to mimic our current strategy with a physical SQL Server box. I'm also open to other strategies, but the main goal is if a customer says "I think my project was good on March 3, ...
There are a number of ways to schedule jobs for Azure SQL DB such as elastic jobs or azure automation . They can be setup to export your database at the intervals you require so it provide similar coverage as backups. Not the same experience and will be pretty klunky if your databases grow to massive sizes but in the f...
2
0
238
2016-08-29T04:52:29.570
database_errors
dba.stackexchange.com
98,044
How to optimize STDistance execution?
I am creating temporary table during stored procedure execution with the following structure: [CODE] the [CODE] is not unique - there are about [CODE] records for each [CODE] . I need to find a list with distinct [CODE] for which there is at least one [CODE] to [CODE] distance larger then constant value (for example [C...
Regardless of any other improvements you make, be sure to test the impact on spatial execution times of enabling trace flags 6532, 6533, and 6534 (start-up only). These turn on native code spatial implementations . SQL Server 2012 Service Pack 3 or SQL Server 2014 Service Pack 2 required ( Microsoft Support article ). ...
7
7
4,234
2015-04-16T14:23:52.603
database_errors
dba.stackexchange.com
820,796
Azure load balanced servers fail to mount NFS share
I have deployed an NFS server on an Azure Ubuntu 14.04LTS VM. My 2 NFS clients sit behind an Azure load balancer (also Ubuntu 14.04LTS). When trying to mount the share with: [CODE] I get the following result: [CODE] If I run [CODE] from the LBS client it correctly lists the shares. Mounting the NFS share from my Amazon...
According to your description, maybe we should check the NFS server /etc/exports configuration. Here is my test (in the same VNet) and it work for me: The 52.186.122.24 is the IP of the client behind an Azure load balancer (not the load balancer IP). By the way, I had open the port 2049 in the NSG, we can test in our c...
1
1
667
2016-12-15T03:03:09.183
infrastructure
serverfault.com
1,003,056
Why does Slurm fail to start with systemd but work when starting manually?
I've just set up slurm where one physical machine will be the only system in the cluster (so far). This is on Ubuntu 18.04. I have slurmdbd running, but when I attempt to start up slurmd and slurmctld this times out. Why? I'm issuing the following commands: [CODE] I've also tried: [CODE] and: [CODE] This fails with the...
Look carefully at your log: [CODE] This path does not match the one declared in your [CODE] . To fix it, field [CODE] in file [CODE] should be corrected. The same goes for [CODE] . Note also that the easy configurator [CODE] offers [CODE] by default, which fails as well.
4
3
10,156
2020-02-14T10:45:25.880
infrastructure
serverfault.com
1,080,260
OpenVPN client is connecting to wrong IP address
I setup an OpenVPN server but whenever I try to connect with the Windows 10 OpenVPN client I get the following error: There was an error attempting to connect to the selected server Here's what I see in the logs: [CODE] It's timing out. I can see why it's timing out - the IP address it's trying to connect to is wrong. ...
I had to delete the profile and recreate it to get the updated IP address in the client
0
0
1,242
2021-10-12T04:49:54.223
infrastructure
serverfault.com
8,657
Trying to understand Logistic Regression Implementation
I'm currently using the following code as a starting point to deepen my understanding of regularized logistic regression. As a first pass I'm just trying to do a binary classification on part of the iris data set. One problem I think I have encountered is that the negative log-loss (computed with loss and stored in los...
There are several issues I see with the implementation. Some are just unnecessarily complicated ways of doing it, but some are genuine errors. Primary takeaways A: Try to start from the math behind the model. The logistic regression is a relatively simple one. Find the two equations you need and stick to them, replicat...
7
11
19,110
2015-10-30T04:21:27.737
data_quality
datascience.stackexchange.com
184,322
eTrayz: Replace base system with a bootstrapped Debian
I bought an eTrayz NAS time ago. The device is more or less good but it ships with a closed-source custom linux and a bunch of broken web-apps. I wanted to replace the whole system with a raw Debian installation. I successfully bootstrapped a Lenny Debian into a chroot and I'm able to use use it. However I would like i...
as far as I know there are similar efforts already made with similar devices like WD My Book World Edition. I hope those tutorials and links will be helpful: http://www.diigo.com/user/wierzowiecki/wd_world_edition%20debian (place where I collect links) some of them: How to Revive Western Digital Mybook World Edition My...
1
0
3,586
2010-09-24T13:45:46.630
infrastructure
serverfault.com
1,067,795
How do I have to configure certmanaager when using a gitlab managed cluster?
I use a scaleway kubernetes cluster v1.21.1 managed by gitlab. To do this, I created a Cluster Management Project with the default template. https://docs.gitlab.com/ee/user/clusters/management_project_template.html (only ingress & certmanager enabled) I only changed the email in the cert-manager yaml files. When I call...
This error message comes from the fact that you are using cert-manager v0.10.1 or below with Kubernetes 1.20 or above. The issue disappears with cert-manager v0.11.0. I would encourage you to use a recent version of cert-manager. I noticed that helmfile.yaml has both an old and recent version of the cert-manager chart;...
0
1
1,203
2021-06-25T07:41:52.530
pipeline_ops
serverfault.com
140,141
100% index fragmentation
I am hitting database performance issues, so we rebuilt all our indexes as we haven't been doing a great job maintaining them. Rebuild ran for about 20 minutes. Then I found a query to see how my indexes are looking [CODE] So most of my indexes have an average percentage fragmentation I am no dba, and understand very l...
I am hitting database performance issues, so we rebuilt all our indexes as we haven't been doing a great job maintaining them. This is a knee-jerk response to a performance problem. Your page counts are less than 10 ! Rebuilding the indexes will be a least help in your case. I would start by reading and understanding H...
3
8
9,597
2016-06-01T16:32:11.337
warehouse_errors
dba.stackexchange.com
294,733
Massive performance degradation in upgrade from MariaDB 5.5 to MySQL 8
As part of a complete server move and upgrade (OS, Apache, and db) went from MariaDB 5.5 to MySQL 8.0.21. Hardware specs unchanged. Unfortunately despite many hours of reading and experimental tuning by both developer and sysadmin, performance is massively down. Some queries run OK on the new machine, but ANYTHING that...
There are a few things that pop up. the optimizer became smarter object statistics are wrong To take the guessing out, compare the execution plans. To understand the differences compare the optimizer statistics and see how you can make them more equal. Maybe you must limit some of the newer optimizer choices.
1
0
238
2021-06-24T05:35:05.947
database_errors
dba.stackexchange.com
208,848
CentOS / Redhat: Give file permission for apache and vsftp
I use CentOS 5.5 and Apache Webserver on my dedicated Server. My Folder "/var/www/myWebApp" is owned by apache, so that apache can read, write logs, etc.. But now I would like to use very secure FTP (vsftp) to upload my new files. I used to give every user rwx -Acess to "/var/www/myWebApp", but I guess this is way to i...
CentOS 5.5 should have filesystem ACLs on by default, just use setfacl to give 'ftpuser' the rights: [CODE] See the man page for setfacl/getfacl if you've never used them before.
2
5
3,280
2010-12-03T17:02:06.770
infrastructure
serverfault.com
280,610
unable to fsockopen
I have 2 ethernet eth0 and eth1 on my server. The default gateway is set to be eth0. I need to connect ip 10.10.6.2 using fsockopen in php. The ip 10.10.6.2 is routed through eth1 (I have a rule set on route-eth1). When I try to ping that ip from system I am able to get a response. But when I try to fsockopen that IP f...
check your firewall to allow 10.10.6.2 port 5016 (or any port that you need to connect), you can try telnet from web server telnet 10.10.6.2 5016, to make sure it's able to connect.
1
1
1,399
2011-06-15T10:14:21.417
infrastructure
serverfault.com
844,378
How to change the local delivery of accounts?
I have noticed in my logs that Postfix cannot send emails to local accounts. [CODE] I have virtual domains configured, and they work correctly. I am able to successfully send emails from one account to another. How to change the local delivery options of Postfix to another directory other than the [CODE] ?
This is probably caused by following conditions: You have set [CODE] , which is optional pathname of a mailbox file relative to a local(8) user's home directory. (Default value is [CODE] causing delivery to [CODE] .) User [CODE] has home directory [CODE] , causing delivery to [CODE] [CODE] is default root folder for th...
0
2
727
2017-04-13T15:53:17.480
infrastructure
serverfault.com
288,994
max_connections set to 500, Max_used_connections never go over 151
I have this set in the mysql config file, rebooted, seems to be correct. [CODE] I have a load test against my server. This never get's above 151, server just gets real slow until the testing is done. [CODE] I have already put in every config option that supposedly will fix this. Will Max_used_connections ever go above ...
Tell us more about the load test. What probably happened... The test succeeded in launching 151 threads at the 'same' time. Those threads then fought with each other for CPU, disk, network, etc. They were each given "equal" access to everything. What does that lead to? Well, imagine letting 151 customers into a small g...
1
0
800
2021-03-31T02:10:08.580
database_errors
dba.stackexchange.com
865,644
Gitlab update from source to packaged version
I would like to update my Gitlab from version 8.12.7 ( installed from sources / MySQL version) to 9.X ( package version with PostgreSQL ) To do it, I installed a Gitlab-ce on the same version with PostgreSQL , did my backup as recommenced on the documentation, run the converter as recommended here Then , I transfer the...
I finaly found an answer I've followed this post There are some differences with the official documentation that allowed me to fix my problems. Hope this can help some others...
0
0
381
2017-07-28T09:25:08.637
database_errors
serverfault.com
414,118
Batch script to test if a folder exists fails when checking a UNC path
I've written a small batch file to help us with a server migration to remap user directories using GPO. However in the batch file I'm having a syntax problem that appears right but it's still failing. Here is what I have so far below. [CODE] Now when I run it I get the following: [CODE] Any idea how to resolve this or ...
[CODE] should be on the same line as the [CODE] even better, simplify the whole thing like this: [CODE]
4
7
19,484
2012-08-03T19:58:06.023
infrastructure
serverfault.com
1,106,957
NGINX secure_link returning 403
I´m using the following serve block to serve some mp4 files using NGINX secure link. [CODE] And the following PHP code to generate the hash: [CODE] The problem that I'm stucked is that for any request, I'm having the 403 error. Here is the nginx error.log ( https://pastebin.com/UkfQWttC ) Any suggestion that what I'm d...
nginx secure link documentation states that the MD5 hash value should be encoded with base64url . However, in your code you are using normal Base64 encode, which is different. You can use functions described in Base64.guru to perform base64url encoding in PHP. The difference between base64 and base64 encoding is that [...
0
0
366
2022-07-29T17:26:58.730
api_errors
serverfault.com
315,498
Simple join on large table is very expensive
I have two tables, a (id, timestamp) and b (id, value). They have equivalent number of rows (in fact b is materialized view of a and several other tables). There are around 1.3m rows on each table. I am trying to do a simple join, filter, and group by : [CODE] I have created a few indexes: [CODE] But it takes very long...
from b join "a" on " a "."id" = " a "."id" Is this just a typo, or could it be the source of your problem?
0
1
322
2022-08-11T08:59:02.193
database_errors
dba.stackexchange.com
46,982
Scheduled Tasks vs Service?
I am a programmer designing a solution to a problem that we are having. I was thinking about writing an app and using Windows Scheduled Tasks to run it once per day or so as opposed to writing a service that would sleep most of the time and wake up once per day to do it's thing. But my question is do admins typically u...
I would agree with others in that scheduled tasks would be appropriate for your needs. I would add though (as a programmer myself) that as a scheduled task, either have some sort of confirmation be sent to you (email?) that the task ran successfully and/or append results to a log file somewhere for potential troublesho...
1
5
2,824
2009-07-28T14:09:23.820
infrastructure
serverfault.com
480,107
Router with multiple incoming IPSec VPN Tunnels?
We currently have a Draytek Vigor 3200 Multi-Wan router which has 5 incoming VPN tunnels using IPSec AES encrypted configurations. All five sites are using Draytek Vigor routers, most are Vigor 2800's. The bandwidth at the main site (Vigor 3200) is 70Mbps down and around 30Mbps up with a backup link of 10Mbps symmetric...
Using off hours (assuming they exist or a maintenance window) bench mark it by sending as much traffic as you can over the links until performance degrades. This will give you an idea as to how much traffic is too much. You can then use these benchmarks as warning indicators for future performance.
0
1
715
2013-02-18T23:51:23.883
data_quality
serverfault.com
576,682
Deploy Advanced Firewall Rules via GPO - How to avoid merging?
I am trying to deploy a set of advanced windows firewall ACLs to several 2008 R2 servers. I would like to (i have to) ensure that no local or old rules are getting applied. So I set "Apply local firewall rules" to "No" within each profile (GPO). This does only apply to local firewall rule merging (as the name implies)....
You said the local firewall rules are applied regardless of the "do not apply local rules" gpo setting. Just to confirm, the local firewall rule will still be present in the "\inbound rules, \outbound rules" sets however you can see the actual "effective" policies (local + gpo) by viewing the "\monitoring\firewall" nod...
3
2
6,469
2014-02-19T08:38:21.943
data_quality
serverfault.com
291,361
Transform a varchar field with #-delimiters into multiple rows
I am working with a database where some data (integer values representing selected options of a dropdown menue) is saved as a string (varchar) inside only one table column. In [CODE] (let's say), there is a [CODE] column mapped to a [CODE] column. In the latter, data is saved as [CODE] where 3, 9 and 15 are IDs of drop...
Strongly based on @matigo's answer, I figured out the following SQL call to be included in phpMyAdmin's [CODE] . It takes a value from one table column (as well as an ID that is given to this value in another table), splits the value at every instance of a specified delimiter (here: [CODE] ) and outputs these split val...
0
0
200
2021-05-11T13:06:10.133
database_errors
dba.stackexchange.com
343,022
Best practices for marking build tarballs as unit/component test passed
During our current build process, we have C code that gets compiled and archived together with some Python code in a tarball. That tarball represents a commit (that can be or not be a release commit). In some of our Jenkins flows, the code is being tested and in some it isn't. But the information regarding to each spec...
This depends on your workflow. What do you do with the build tarballs? Adding the test results file to the tarball seems easiest for "manual" / in-place inspection. OTOH adding a name component allows to use [CODE] , [CODE] , and [CODE] to pick the latest successful tarball without inspecting the contents. If you move ...
6
1
244
2017-02-26T17:14:50.680
pipeline_ops
softwareengineering.stackexchange.com
833,341
Unable to connect VPS server hosted node js code to another provider MYSQL server
I have just bought the unmanaged VPS. I am running a node js application that uses a connection string for mysql database stored somewhere else. The connection between vps (nodejs web) and mysql server is not successful. It is successful, when I try a telnet call from my local machine to mysql server. However, when I d...
You appear to be only allow in ESTABLISHED connections, you need to allow NEW too for the connection to become ESTABLISHED. I would try [CODE] to see if it works then tune as required.
0
0
281
2017-02-18T05:54:20.500
database_errors
serverfault.com
11,767
K8s to Prometheus apiserver_client_certificate_expiration_seconds_count metric, why does it count more seconds than 86400 for a single day?
In the 2 pictures below I am comparing the metric from K8s apiserver_client_certificate_expiration_seconds_count{job="apiserver"} for my 3 master nodes on K8s 1.14.3. A single day should have 86400 seconds, how come at the start of the day for a given node Prometheus displays 59565 at 00:00 and at 24:00 it shows 205534...
Based on community answer to that question it turned out there isn't count of the seconds, it is count of all samples for given histogram. That means I had ~146,000 HTTP connections to that API server in that period.
-1
0
505
2020-06-04T15:34:05.280
bi_errors
devops.stackexchange.com
857,350
ZFS ARC cache and Linux Buffer cache contention (Ubuntu 16.04)
My test system setup is a simple raidz 5 disk (8 TBs each) zpool with 256 GB RAM. Performance starts out good, achieving around 650 MB/sec throughput. Eventually, the Linux Buffer cache fills up and starts to cause the ZFS ARC cache to shrink until it reaches around 32 MB in size. Once this occurs, throughput drops to ...
Set a minimum ARC value. That's all that's necessary. The ARC will grow/shrink as needed. Whatever is eating buffer cache must not be on a ZFS file system. What is this server doing?
8
5
8,990
2017-06-22T19:31:07.777
infrastructure
serverfault.com
897,031
mysqldump --single-transaction on slave (without stopping replication)
Is it okay to run [CODE] on Slave DB without stopping replication ( [CODE] )? This is for regular daily backup so we can restore Master DB in case of a storage disaster. Most of the tables are InnoDB, only a couple of them are MyISAM. Official documentation says that: "You should stop replication on the slave before st...
TL;DR - You don't actually need to issue a [CODE] when working with a backup on a replica. If you run [CODE] using the defaults and leave out [CODE] , a locking backup will be used by default which will automatically block any changes to the database during the backup; keeping your data consistent. This usually means d...
0
1
2,057
2018-02-13T12:30:42.243
database_errors
serverfault.com
1,010,236
Powershell script : Set-ADUser -clear with multiple attributes in variable
I want to clear multiple attributes by using variable in Powershell script (version 5.1.17763.1007) It's work : [CODE] It's work also: [CODE] It's not work : [CODE] and display : Set-ADUser : The specified directory service attribute or value does not exist Parameter name: Initials,info At Set-ADUserDesc.ps1:32 char:9 ...
To directly answer your question of why the third method does not work: There is no attribute by the name [CODE] which is why the cmdlet fails. Your input (a string with a comma) is not the same as an array of strings. The docmentation for the cmdlet Set-AdUser indicates that the -Clear attributes accepts an array of s...
0
3
35,948
2020-03-31T12:43:26.653
infrastructure
serverfault.com
25,578
How can I install Oracle on my Windows XP machine which uses DHCP?
I'm installing a copy of Oracle on my development workstation because running tests against a remote database is terribly slow. However, it says something about me having to set the loopback adapter as my primary network device since I'm using DHCP. However, my understanding is that this will effectively block all inte...
Here is how Oracle says you should install the loopback adapter for a 10g instance on XP.
2
2
830
2009-06-14T20:54:48.757
database_errors
serverfault.com
396,665
shared hosting with malware, .htaccess file gets modified every 2 hours or so
I spent all day today chasing malware on the shared hosting for one of my clients. The issue is as follows: Every 2 hours or so .htaccess file and all other .htaccess files gets modified, on the top of the file these lines are added: [CODE] and on the bottom: [CODE] The main problem I'm not root on the server, and cann...
Without root, or access to diagnostic tools you'd be beating your head against the wall. You could grep through files looking for that [CODE] to see if it's something under your control. There are tools you could take a shot in the dark and try: inotify, lsof (not likely) - or simply chowning the [CODE] file to not be ...
1
2
620
2012-06-07T22:36:31.237
infrastructure
serverfault.com
146,226
What is the benefit of having multiple databases in the same Availability Group vs single AG per database
We are planning a migration from current mirroring architecture to Availability Groups for several databases. For every Database we have defined the primary/secondary replica configuration. The question that I'm unsure is: do we need to group the databases with the same primary/secondary configuration into the same AG,...
An Availability Group is a unit of failover. Therefore, when considering how to group databases into an AG, keep in mind that all of these DBs will fail over together. If there are multiple databases that must failover together, then I would recommend putting those databases into a single AG. Similarly, you may have da...
5
5
2,154
2016-08-08T22:06:11.930
database_errors
dba.stackexchange.com
60,748
Oracle 11g max login fail attempts workaround
My problem with database starts with situation where I cant really modify anything in database. My project specialist has limited time to help me. Here is the thing: My user in Oracle database has older schema than actual production one. My section is working on stable and older version. After every release we are keep...
The account that your application server uses to connect to the database should not lock out under any circumstances. It's a very simple security issue - it makes for the easiest denial-of-service attack in the world. Send n db login requests with random password -> application can't connect. You should definitely set ...
0
1
617
2014-03-12T12:04:54.230
pipeline_ops
dba.stackexchange.com
228,137
Hardware options for hosting 5 websites
I plan to buy hardware for my organisation that is supposed to host 5 websites each getting not more than 5000 hits a day. What kind of hardware would I require for this purpose in terms of processing power, memory etc. Could you suggest some options? I basically need a web and database server on the same machine. Plea...
I wouldn't, for such low-usage sites why buy, house and support hardware - just rent a virtual or dedicated server somewhere else, let the worries be someone else's. Obviously you could, if buzzwords are your thing, go for the almost identical option of using a 'cloud' provider and score some points with easily-impress...
1
6
140
2011-01-28T14:30:32.270
api_errors
serverfault.com
418,447
How to handle pagination in a stateless application having multiple components involved for the data?
This problem statement is around one UI component, 3 service components. The current design of the application is like: UI makes request to Service-A to get data Service-A first makes a call to Service-B to get list of items. There can be multiple calls between Service-A and Service-B if there are huge number of record...
It seems like the only problem is the slowness but its not clear why it is slow. You have two possible approaches Approach A, get all the data, but faster. Do this if the volume of data isn't a problem, its just looping through all the calls which slows things down. Can you turn off pagination in the sub services? Can ...
-1
0
385
2020-10-29T09:04:49.870
api_errors
softwareengineering.stackexchange.com
934,598
whats secure_mode (miniupnpd.conf)
I am trying to set miniupnpd (UPnP server), but please point out if you understand miniupnpd.conf secure_mode. When set to secure_mode = yes, miniupnpd will assign the IP address of the local network to the client. that's ok? secure_mode There is a comment in miniupnpd.conf as follows: https://github.com/miniupnp/miniu...
miniupnpd will assign the IP address of the local network to the client. No, UPnP doesn't assign IP addresses (DHCP does that). UPnP in this context adds mappings , firewall rules that allows connections through NAT. This in general is a dangerous idea, whether it's in [CODE] or not: Chris Hoffman, Is UPnP a Security R...
1
4
1,931
2018-10-09T05:47:03.877
infrastructure
serverfault.com
129,589
How to obtain a good execution plan for (LIKE @p) when the pattern is of the form 'prefix%'
I'm using an ORM that executes queries of the form: [CODE] [CODE] is indexed and the index is covering. The predicate is very selective. The tables has 500,000 rows. I'm always querying for a string prefix (e.g. [CODE] ). Clearly, this is not statically known to SQL Server here. But I know that SQL Server is basically ...
I would like SQL Server to discover at execution time the relevant range of the index to scan and only scan that range. This is exactly the plan I get. [CODE] See Dynamic Seeks and Hidden Implicit Conversions for more about this. Check that the index is indeed covering and that the datatype of the parameter is correct ...
4
6
136
2016-02-17T19:00:55.200
database_errors
dba.stackexchange.com
265,053
MS SQL Login without password
I need to login to MS Sql from ODBC to my MS Sql instance on Linux server. Following are my question Is there a way to do it without Active Directory (maybe with LDAP or ADLDS if it does not change user profile)? I created a SQL Server Login without password by deselecting [CODE] . I can finish adding ODBC and Test Con...
You might want to have a look at How to transfer logins and passwords between instances of SQL Server to migrate the [CODE] user from the old SQL Server instance to the new SQL Server instance. Analysis The application will be logging in with the [CODE] account and a pre-defined password stored in the application. Beca...
2
2
7,537
2020-04-15T11:32:55.300
api_errors
dba.stackexchange.com
426,117
Determine which version of linux/unix/darwin I have
I have root ssh/terminal access to a linux server. How do I determine which version of centos I have? Some people suggested I run the command [CODE] but I got an error saying file not found. In fact, i'm not entirely sure i'm even using CentOS. That's what some suggested it might be. Here's a list of commands I tried t...
try this one to match all possibilities if there is some similar file by any chance [CODE]
2
0
1,581
2012-09-10T20:17:56.163
infrastructure
serverfault.com
22,219
Table and query design options
We have a alert table which have deviceID as a foreign key. At present one alert just refers to one devive so things works smoothly with join. The problem start now when one alert now is to refer to more then one device. Thus we plan to keep a separate table with this alertID as foreign keys and devices ID in a new tab...
While it is not exactly clear what you need but if you design your tables similar to below then you should be able to retrieve the details that you need. [CODE] Then when you query, you could use the following: [CODE] See SQL Fiddle with a Demo
0
4
95
2012-08-09T12:12:26.433
warehouse_errors
dba.stackexchange.com
105,196
how could I interview for a C# position if I master Java
Possible Duplicate: Interviewing a developer who's skilled in a language you don't know I must interview people for a C# position we have. I work on the java side of the project, and master it quite well. When I interview for java position, I ask some technical-questions/programming-problems so I can make sure the cand...
A good programmer is a good programmer and you should be able to identify that regardless of language differences. A person who understands data structures, object orientation, testing approaches and the fundamentals of the craft of programming will have little trouble with a different languages. A person who claims to...
6
2
2,273
2011-09-01T10:16:04.330
data_quality
softwareengineering.stackexchange.com
190,208
Un-Install OS Patch (KBs) in Physical PRODUCTION Servers - Consequences
We have our PRODUCTION Database and Application Servers which are Physical Servers . Recently , the October month OS Patches (specific KBs) are little problematic and reported by Microsoft too that they are going to fix in November patches . https://blogs.msdn.microsoft.com/dataaccesstechnologies/2017/10/18/unexpected-...
As the MSDN page you link to states that a fix has already been released, I would install that rather than removing the previous update as the fix is likely to be intended to go over the top (though is likely to be made such that it can replace the older update too) and it will only be one operation rather than two pot...
0
2
40
2017-11-06T13:50:43.397
database_errors
dba.stackexchange.com
309,043
SMTP Question. Why does send succeed when Authentication fails
I have an application written in .NET framework that sends emails using our STMP server. I was researching another emailing issue which caused me to look at the SMTP logs. Here is a sample SMPT log entry... [CODE] My question is how come that the SEND succeeds even though the AUTH login cmd is returning rsp 535 Authent...
This means that the client's trying and failing to authenticate, but the server doesn't require authentication to send. Regarding security of the server, it depends how the rest of the policies on the SMTP server are configured, but it certainly warrants a closer look; the server may be filtering on source IP, or by re...
1
4
825
2011-09-07T16:59:47.380
api_errors
serverfault.com
148,925
Can create and delete files through samba, but not modify?
I'm connecting from Windows 7 to Ubuntu Server 10.04 using samba. I can create new files in the share, delete those files, but if I try to edit a file, and then save it, I get an access denied. My User in Windows is the same as the one I'm connecting as and as setup in Ubuntu. This is very odd. I also have trouble copy...
Creating and deleting files is controlled by permissions on the directory. Modifying the file is controlled by permissions on the file. You may have a mask which is removing the write privilege from the file.
2
3
7,175
2010-06-07T15:03:15.803
infrastructure
serverfault.com
254,421
MySQL database server on a VPS: can it handle the spike in traffic I'm anticipating?
I have VPS service with Hostican.com. 2.7GHz CPU, 2GB RAM (level 5, if you look at the site ). I have a smartphone app that makes requests to PHP forms, which query the MySQL DB. I'm anticipating a huge surge of activity in a single day, due to an upcoming advertising campaign. Success of the campaign is pretty critica...
I'll start by saying that your best bet will be to benchmark the entire application (MySQL/PHP, not just one or the other) and see what the capabilities of your server is. This will probably involve some custom scripts that simulate your user's actions. This will give you a pretty good answer as to what amount of traff...
0
3
695
2011-04-01T01:39:26.393
database_errors
serverfault.com
690,611
OpenShift: MySQL PDO 'connection refused', works locally
I have an API i want to deploy to OpenShift, everything works locally, but when trying to use it online i get some problems. When trying to connect to the database, using PDO, i get this error: Failed to connect to the database: SQLSTATE[HY000] [2002] Connection refused i have the database set up correctly, and i have ...
Try each of these steps, clear cache, refresh and check From [CODE] change to [CODE] Check whether the default port is 3306 or anything else. Check the process name and port [CODE] Enable [CODE] (comment out # ) in my.cnf Have a look in [CODE] as well to ensure everything is fine there Also [CODE] if set to 127.0.0.1, ...
1
1
3,027
2015-05-08T13:30:03.020
database_errors
serverfault.com
513,186
DNS servers not set properly? Site failing to load by hostname, though loads fine by IP
We run www.tekiki.com. Some users, including us, cannot reach www.tekiki.com because of DNS issues. The site resolves fine on the desktop, but it fails from our iPhones and iPads. The frustrating thing is this isn't doesn't happen to everyone. We noticed the problem yesterday, then set our DNS servers to Cloudflare's D...
Your DNS servers ( [CODE] & [CODE] ) are both returning [CODE] -- something is wrong with the [CODE] zone, or the servers. We can't tell you any more without some effort on your end (log files from the DNS server would be a good starting point, though I doubt cloudflare will give you those). 1) Does anyone know what th...
-1
2
133
2013-06-04T17:52:23.083
infrastructure
serverfault.com
171,366
PostgreSQL update JSONB without jsonb_set
Would there be any drawbacks to using a normal update statement to update a json(b) column like so: [CODE] Instead of using the jsonb_set function provided by PostgreSQL, which would turn into this statement: [CODE] When using eg. an ORM, and calling .save() on a Model for which you've just updated a JSON field, the fi...
Update : If the result value of jsonb is the same, then the only difference is [CODE] would take additional CPU (and ms) to run. In both cases you run [CODE] , but if resulted jsonb value is bifferent,both your statements are very much different, here is example. sample: [CODE] jsonb_set [CODE] jsonb value changed at s...
8
8
25,114
2017-04-19T08:18:07.660
database_errors
dba.stackexchange.com
112,769
Can I make postgres more verbosely tell me what it's doing?
I'm trying to use [CODE] on a live db (not in production, just poking around at a dev box and trying to learn some things) Here is the command I'm trying: [CODE] And what happens is... nothing. postgres just sits there silently for many, many minutes, until i give up and cancel it: [CODE] Some reading I've done suggest...
The [CODE] state shown in the [CODE] output generally means that there's something that starts a transaction with [CODE] , does some work, and then doesn't issue the [CODE] so that the transaction is finished. This has the effect of leaving the [CODE] locks acquired by the [CODE] statements hanging around, which block ...
2
3
771
2015-08-31T22:42:30.560
data_quality
dba.stackexchange.com
341,359
Is a singleton with an update method and software state verification a valid pattern?
Stack overflow suggested that this question my be better suited here. I normally work in c#, but I'm working in a vb.net net application currently. So feel free to respond with vb.Net or c#... Essentially I have a singleton that does all of the heavy lifting of getting global settings which are stored in the database; ...
Your "singleton" isn't a singleton at all. It's a data cache, which can result in different parts of your app having different version of that cache. In C# code, as my VB.Net is weak: [CODE] Just because you are overriding the static [CODE] with a new instance won't affect references to the previous instances held by o...
0
6
3,789
2017-02-01T14:38:33.067
api_errors
softwareengineering.stackexchange.com
831,160
Nginx refused to connect to port 443
So, I am trying make Nginx serve my website via https, but it keeps hitting me with a refused to connect error. So here are the outputs for: curl https://juristnet.ro (this is the website) [CODE] netstat -anltp [CODE] As you can see, port 443 is open and Nginx is listening [CODE] Nmap shows port is open. UFW is inactiv...
I solved the problem but this is not a general solution. In my case, Docker was interferring with iptables and didn't allow connections on port 443. After I exposed the port from Docker, it started to work.
2
9
21,523
2017-02-07T18:45:37.407
infrastructure
serverfault.com
152,134
SQL Server Replication using Static IP
I'm trying to setup transaction replication using a static IP. I have 2 servers: one has a static IP but other one does not. In this case can I do replication. I am able to connect to the static IP SQL Server from the other server. I also created an alias for the static IP. I set most of it up, but at the end I got an ...
This means this job is already runing. You might want to stop it and start it again, if you really need to re-run it. [CODE] for a basic quick verification I check the log reader on the publication, see if the log reader agent is reading the transactions and passing them to the distributor. second thing I go to the pub...
0
1
845
2016-10-12T20:21:53.577
database_errors
dba.stackexchange.com
310,869
Would dependency injecting into entites be considered against SRP?
I asking a question on Stackoverflow earlier and someone pointed me to a previous post of his, He states that injecting a dependency into an entity violates the Single Responsibility Principle. To save you clicking the link and give some context here is the entity being discussed [CODE] I would have thought that having...
So, there's nothing here that seems like a SRP violation to me. The entity has properties and uses a helper to know if it's valid. These could be better separated (you need to get a validator yourself to test the entity), but letting an entity know if it's valid or not is fine. Having a factory provide validators is a ...
3
5
678
2016-02-23T14:25:29.387
data_quality
softwareengineering.stackexchange.com
387,473
Need help converting wildcard CRT to PFX for use with Windows Azure
I need help preparing a wildcard SSL certificate purchased from NetworkSolutions. I called their tech support, and Jason told me "I am unfamiliar with Windows, just google it...". Here is what I have done: Started IIS 7 Manager Went to "Server Certificates" and clicked "Complete Certificate Request" Entered the path fo...
find a different company. a place with a support staff telling you to 'just google it' is a company that does not deserve your business. also, this link might be able to help you.
0
3
1,856
2012-05-09T14:24:43.013
api_errors
serverfault.com
185,328
stop linux from emailing me cron errors?
Today i setup ssmtp to email me from sendmail. However what i didnt expect is that applications like cron would email me. One of my cron scripts before backing up the db tries to create path/year/month/ and since year and month already exist i get the email [CODE] How do i make it stop? Its only been up for an hour so ...
By default, cron mails you the output messages of a cronjob. More specifically, it saves stdout (standard output) and stderr (standard error output) of a cronjob and emails it the owner of the crontab, or the user named in the MAILTO variable in the crontab. To prevent output reaching you, you have to make sure that st...
5
5
3,686
2010-09-28T09:05:51.267
infrastructure
serverfault.com
5,018
MySQL 'LOAD DATA INFILE' : Can't replace entry when foreign key exists
Here's a minimal case for my database scheme: [CODE] Well , And what we have inside: [CODE] Now i need to read from an external csv file , with duplicate primary key , into the first table: [CODE] And the contents for /tmp/tar.csv: [CODE] As i know from MySQL , it probably does a 'delete' then 'insert' , which caused t...
http://dev.mysql.com/doc/refman/5.5/en/innodb-foreign-key-constraints.html The above link clearly explains that mysqldump too puts set foreign_key_checks = 0; in the dump file so that data can be restored without the foreign key constraint error. I have always used set foreign_key_checks = 0 for importing data into tab...
6
6
3,370
2011-08-25T09:41:41.513
data_quality
dba.stackexchange.com
364,321
Is there a valid alternative to HTTP headers for sending auth credentials
I have built simple auth for REST servers in academic projects. I always used the headers to pass the credentials. This is probably just because every tutorial I've ever seen did it this way. Initially, I'd have header fields for [CODE] and [CODE] , but I eventually switched to basic auth. Anyway, whatever it was, I al...
Am I correct in my thinking that HTTP headers is the single correct way to pass auth credentials in a stateless REST API? No. REST doesn't really address authentication and OAuth uses the query string and POST bodies to get credentials. A header is used for the access token, but this doesn't contain any passwords. Am I...
1
4
1,136
2018-01-20T00:50:19.217
api_errors
softwareengineering.stackexchange.com
816,688
Redis cluster master restarting after a time period
I have a Redis cluster with 3 masters and 3 slaves. I can add data to the cluster and get data back, no problems. The issue comes when the data is saved to a master node. After a while the master will restart itself (see output below) and then the data it held will be lost. If the cluster decides to use a slave to stor...
After reading many articles saying that in Centos 7 [CODE] needed to be commented out I finally tried just leaving it as yes. This fixed the problem instantly and it is no longer restarting the redis instance.
1
1
3,461
2016-11-23T17:44:58.550
database_errors
serverfault.com
61,032
How to fix failure of PHP code in windows:exec(”rm -rf F:/tmpJob/*”)
I've installed UnixUtils that's why I can run this kind of commands on windows. It's executed when browsing a PHP file( http://localhost/filename.php ) on windows. The web server is Apache. I think it should be divided into 2 steps: 1.found user of Apache threads 2.give enough permissions to that user towards "F:/tmpJo...
1 - Look at the properties of the Apache service in the service control manager. Under the "log on" tab, it should have the user that the service runs as; it's "local system" by default. 2 - I don't know if you'd want to give the local system account that permission; you may want to change the Apache user, and give the...
0
1
787
2009-09-01T05:22:56.503
infrastructure
serverfault.com
898,197
MariaDB is not listening on port 3306
I have MariaDB server running on Debian 9. Problem is that if I run [CODE] nothing shows, but MariaDB server is running, I can connect to it via [CODE] command. MariaDB config: [CODE]
[CODE] by default connects via unix sockets when [CODE] is used as the server. If you want your server to be available via TCP/IP you need to remove the [CODE] directive from your config (and restart the service).
3
5
11,903
2018-02-21T12:40:31.970
database_errors
serverfault.com
375,505
Build and migrated to software raid (mdadm) on GPT disk, now can't assemble array
mdadm, gpt issues, unrecognized partitions. Simplified question: How do I get mdadm to recognize GPT partitions? I have been attempting to convert/copy my Ubuntu 11.10 OS from a single drive to software raid 1. I have done similar in the past, but in this case, I was adding in a drive that has been configured for GPT a...
mdadm doesn't recognize partitions, the Linux kernel does. A software RAID array doesn't need to know or care what type of partitions the disk uses, because it just uses the block devices that the kernel provides for the partitions. I'm using mdadm arrays on GPT disks on several computers and they work fine. The partit...
1
1
9,160
2012-03-31T15:42:23.427
infrastructure
serverfault.com
35,575
ElementArrayFinder.filter() - how does it work under the hood?
In my UI, I have a project tree that contains a list of components that are in a project. Once my current spec is done running I'm calling a page object function to delete all the components to clean up the workspace before moving on to the next spec. I'd say about 50% of the time I'm noticing a stale element reference...
First of all, I don't think that your usage of getting text is correct.We need to get the text individually from each element, something like this: [CODE]
3
1
1,128
2018-09-10T15:26:56.327
data_quality
sqa.stackexchange.com
325,597
What's the difference between writing to the memory address of a declared int and writing directly to an int*?
I'm writing a program in which I fscanf a file and write to the same memory address repeatedly. I tried the following: [CODE] which, when I run it, produces Bus Error 10, which means to the best of my understanding that I'm trying to write to an unauthorized address. The following works, however: [CODE] Both compile fi...
In your first attempt, "num" is an uninitialized pointer, and fscanf (which is expecting a pointer) is attempting to store an int through that pointer. But "num" is probably pointing into protected memory (probably location 0), since it has not been initialized to point anywhere. In your second attempt, "num" is an int...
0
3
219
2016-07-24T04:36:06.130
api_errors
softwareengineering.stackexchange.com