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
215,253
What will be the better way for data retrieval on application that needs to handle limited amount of data.?
This is not really a coding question since, I am not adding any code in here. Since, adding my code snippets itself would make this question really long. Instead, I am pretty interested in knowing a better ways for data retrieval on application that needs to handle limited amount of data which isn't updated regularly. ...
1- Since the updates are infrequent, you have a good chance to do them in a background service, so it won't interrupt the user experience. 2- It is a bad idea to parse the XML every time since it does not change that often, using SQLite will be much faster.
0
2
434
2013-02-09T07:33:18.260
api_errors
softwareengineering.stackexchange.com
1,020,613
One Mac user still stuck with expired AddTrust Root CA Certificate but the server has been updated
I recently ran into this issue of the Sectigo Root certs expiring on May 30th of this year: https://gist.github.com/minaguib/c8db186af450bceaaa7c452ba6a9901b I updated the certificate chain on our servers and the change was seamless for all employees and users except ONE USER. The single user experiencing problems is l...
Figured this out. The user is on MacOS 10.11 (El Capitan) which doesn't have modern root CA's and Apple stopped updating the OS in 2019. Because of this, the Mac Keychain didn't have the updated Root CA so my site certificate wasn't trusted. Clients Most Notably Impacted: Apple Mac OS X 10.11 (El Capitan) or earlier Ap...
1
1
1,166
2020-06-09T01:27:55.393
data_quality
serverfault.com
490,952
AMI Micro Linux Instance, Configure tomcat7 to work with Mysql
I've installed tomcat7 and mysql55 on my ami linux micro instance. I'm trying to figure out how to configure tomcat7 to communicate with mysql, but have had no luck. I've always been a glassfish user, so it was pretty simple to do through the gui, however with tomcat, I'm not sure how to configure this. I've looked at ...
You need to install a JDBC driver, here is the link: http://dev.mysql.com/downloads/connector/j/3.1.html You then need to add to the classpath, there are many ways to do it, to test just try to put the jar file in the lib directory under your Tomcat 7 installation. The "tomcat-users.xml" has nothing to do with database...
0
1
733
2013-03-24T20:39:23.190
database_errors
serverfault.com
589,745
How do I get postfix to send and receive emails after server OS update?
I apologize in advance if this is a duplicate. As I've mentioned in other questions, I'm not a server guy by any means. Background information: I'm currently using an Ubuntu server which was updated to 'precise' with 98 security updates. When logging into the server via Putty the server version displayed is: Ubuntu 12....
The problem is that the upgrade to 12.0.4 includes a big change in the way that DNS resolvers are set, and the installer probably overwrote [CODE] without ensuring that there were [CODE] entries in [CODE] . To resolve the issue you just need to add in a line at the bottom of your /etc/network/interfaces` with your (you...
-1
2
306
2014-04-17T14:51:33.097
data_quality
serverfault.com
328,212
5.5GB written daily to 1.2GB root volume - 4 times previous levels
Problem: I recently revamped one of my servers, it was tested prior to use, and functions well, however, a few days ago, I noticed approximately 4 times the usual amount of writes to the root volume. This is not a performance issue - the server runs fine. My revamping was fairly extensive (a full rebuild) so I don't ha...
Since the leading cause seemed to be journaling, that would have been my next step. In order to remove journaling, however, I would need to attach the EBS volume to another instance. I decided to test the procedure out using a (day old) snapshot, however, before removing journaling, I re-ran the 10 minute iotop test (o...
9
5
1,420
2011-11-06T07:01:04.230
database_errors
serverfault.com
1,088,663
Netplan - Error in network definition: Updated definition changes device type
I'm trying to set a static ip on Ubuntu. ip a: [CODE] ethtool -i wkp1s0: [CODE] ethtool -i epn2s0: [CODE] default "/etc/netplan/00-installer-config.yaml": [CODE] When I try to change the yaml file to this: "/etc/netplan/00-installer-config.yaml": [CODE] it gives this error: sudo netplan try [CODE] What am I doing wrong...
Your device wkp1s0 appears to be a wifi interface, not a ethernet interface. According to the netplan(5) man page, this needs to be in a [CODE] section instead of a [CODE] section. The man page also notes you will need wpasupplicant installed, and you may also need to add static configuration options to set up the conn...
0
2
14,559
2021-12-31T10:52:01.450
infrastructure
serverfault.com
328,342
Can I develop a Dashboard Report for Data Allocated vs Max Storage for my Azure Database?
I have an Azure SQL Server Database - Managed Instance I'd like to monitor. Here is the widget that Azure shows me on the database summary page. I'd like to put this widget, or at least the information which this widget exposes, on my comprehensive monitoring dashboard. The problem is, I don't see any metric for Max St...
‘Data space used percent’ metric can be useful for monitoring database storage consumption.
1
1
73
2023-06-15T19:45:02.950
pipeline_ops
dba.stackexchange.com
443,536
Iptables blocks outgoing HTTP connection
I've setup IPTables with the following script... however, I cannot get outgoing HTTP queries to work (I've tried using lynx & curl). Background - server is hosted remotely (and I'm connecting via SSH). Your help will be greatly appreciated... Here's my iptables setup: [CODE] Here's the output of [CODE] : [CODE]
Try to add this iptables -A INPUT -p tcp --sport 80 -j ACCEPT Also, you might want to start whit [CODE] Also don't forget to set NAT translation, to open the port 53 for DNS request (it use both UDP and TCP). If you accept all connection, are you able to access internet ? Try accessing using a IP adress. Don't forget t...
0
0
2,209
2012-10-29T22:30:17.967
infrastructure
serverfault.com
14,570
Does an IOT guarantee order in a select?
We need to add a [CODE] column to a table that gets hit about 250 times a second, approx 170 selects, 125 inserts and 60 updates. The column will be a simple [CODE] . The [CODE] does not matter for the inserts or updates i.e. not part of the primary key, which I'll enforce separately. We basically don't want to have to...
No. The only thing that guarantees result set order is an [CODE] clause in your query. This is a popular question about SQL so it's worth repeating what I've written in response to similar questions about SQL Server and MySQL : In the SQL world, order is not an inherent property of a set of data. Thus, you get no guara...
7
13
1,504
2012-03-07T16:56:24.117
data_quality
dba.stackexchange.com
434,154
Exchange 2003 and 2010 coexistence - when is there downtime?
I currently have a very simple single server exchange 2003 setup. I'm planning to add a single exchange 2010 server with all roles, and slowly move people over to it. Technet and several blogs have plenty of guides to setting this up, but none of them seem to mention at which points in the setup there is downtime. Can ...
The only real downtime you will have is when you are moving the mailboxes as Exchange 2003 will force the mailbox being moved to be offline (or if something is not configured correctly when you switch mail flow). I would suggest that you have your mail flow through the Exchange 2010 HT/CAS before you move your first ma...
6
8
487
2012-10-02T18:41:28.533
infrastructure
serverfault.com
161,478
Return the first row of a group in MySQL
This query gives me the 50 closest addresses around a point: [CODE] Now, to make this useful, I need to join two tables: company_has_address, which is essentially a tuple of id, company_id, and address_id, and then join (again) the company table. This all works. Kind of. The problem I have is that I want a list of the ...
The next query is not doing exactly what you ask for in your title, but it conceptually does what you're looking for. The inner SELECT computes the distances for all geocodes (JOIN company_address). The outer SELECT GROUPs BY company_id, gets the "minimum distance", sorts through it; the LIMIT 50 is respected. [CODE] T...
1
0
10,263
2017-01-18T15:46:08.977
database_errors
dba.stackexchange.com
741,872
Ansible loops and conditions with arrays
I want to be able to control the behaviour of a module by specifying a changed_when condition. This works fine when executing a simple task like the one in the docs: [CODE] The problem comes when I start using loops. I can't figure out how to access stderr, stdout, rc results from the current iteration of a loop. For e...
In one of our roles we do this: [CODE] I think this should also work for your use case.
1
0
2,056
2015-12-09T14:41:54.753
pipeline_ops
serverfault.com
848,960
Bind RPZ setup issue
I've tried all possible howto's and failed, therefore need your help - I'm trying to setup DNS (bind) only for RPZ proposes. Config is clean and simple (removed all other options and want to run on defaults - easier to debug): [CODE] There's no prob with named.conf syntax. rpz.db is a file from provider so syntax is co...
Check your syntax for your Response Policy Zone Configuration . You should be more careful! As in all configuration files, one character can count. You could have these corrected by using any tutorial: The statement is [CODE] , not [CODE] . You must have [CODE] before the zone name. You should have: [CODE] The Connecti...
0
2
2,348
2017-05-09T05:56:48.510
infrastructure
serverfault.com
7,104
Devices / Drivers not working in Windows 7?
For anyone who is running the Win7 RC, are you running into any unexpected problems with regards to hardware incompatibility? If so, have you been able to work through them in what you would call a reasonable fashion? Any big name things out there that are breaking with Win7? EDIT: Make that devices AND drivers per Dav...
I am running Windows 7 RC1 x64 on both my laptop as personal desktop and am pretty happy with it. Personal Desktop: Dell XPS 420 Intel Core 2 Quad Q6600 2GB Ram 2x250 GB HDD running in RAID 0 MSI NX8800GT zilent graphics card. Some other peripheral hardware No issues whatsoever. Laptop: Dell XPS M1530 Intel Core 2 Duo ...
7
3
2,141
2009-05-11T17:58:39.063
infrastructure
serverfault.com
661,191
Optimal configuration with Synology as HA iSCSI backend for vSphere
I'm looking into purchasing a new storage backend for our VMware vSphere Essentials package. We have 3 ESXi hosts, currently mainly using DAS. The goal is to upgrade to Essentials Plus this year, to leverage its extra power in High Availability and other integrated availability options. As a long-time Synology user, I ...
To answer your questions: RAID5 is not advisable, period. A single bad read during a rebuild kills your entire array. This is more of an issue with HDDs than SSDs, but it's still a consideration. RAID10 is generally the best option, but RAID6 (dual-parity) can also do quite well. You're comparing Jaguars to Hyundais, t...
4
4
2,091
2015-01-21T11:33:53.280
data_quality
serverfault.com
568,830
Nginx + php-fcgi website loads 4-5 seconds, slow issue
My website started loading for like 4-5 seconds (in peak hours) - it is almost not usable. Traffic: 40MB/s out, 6MB/s in. (almost 95% of out is downloading files 0.5-2GB large). Over 100 simultaneous connections. Machine works fine and responds without a problem, I am uploading via website very slowly, about 50KB/s and...
Solved! Everything was in MySQL (problems with queries -> lack of indexes (20 times slower queries). UPDATE: Had to tune Read-Ahead in linux to increase throughput. From 256 (default) to 16384. [CODE] After this operation read speed increased from 40MBps to 260MBps and I've monitored in MRTG that out traffic increased ...
0
2
1,773
2014-01-21T17:54:01.180
database_errors
serverfault.com
18,790
Will writing unit tests block developers from coding?
We are about to implement TDD in our software company and we met some serious questions. As you know, this is the TDD life cycle: Add a test Run all tests and see if the new test fails Write the code Run tests Refactor code Repeat We have many development tasks, with nice and readable user stories in the backlog. I jus...
The TDD cycle is more a development cycle for a developer, to quote James Shore, The Art of Agile, Test-Driven Development chapter : Programmers new to TDD are often surprised at how small each increment can be. Although you might think that only beginners need to work in small steps, my experience is the reverse: the ...
3
9
377
2016-05-22T07:51:18.173
data_quality
sqa.stackexchange.com
308,780
SQL | Shuffle order set by row_number based on another table
I need to manually shuffle the order set by row_number in a table based order mentioned in the different table - Table A Name A B C D Table B name manual_order_no C 1 D 3 Expected result using table B name final_order_no C 1 A 2 D 3 B 4 I am trying with below query but it doesn't fully work ; banging my head to see wha...
[CODE] and [CODE] https://dbfiddle.uk/?rdbms=mysql_8.0&fiddle=a767751d4f21961ba3946a457f5baa40
0
0
348
2022-03-16T04:59:34.773
warehouse_errors
dba.stackexchange.com
901,547
Linux netns: run different commands with different IP's on one physical interface
I have a Debian Stretch VPS with 4 IPv4 addresses. I want to run several programs, binding them to specific IP addresses (To make outgoing HTTP requests from different IP's). So for example command [CODE] would output specific different IP's. What I've done: 0) Ordered extra IP's from my ISP 1) Edited /etc/network/inte...
A given physical interface can only be in one network namespace, so each of your alias can not be in their own namespaces. As soon as you start to move one, everything will move, which explains your observation. See this question: Secondary IP in its own netns namespace for both explanations on why it is so, and also a...
0
1
871
2018-03-14T08:07:52.630
infrastructure
serverfault.com
338,476
Is saving disk space a valid reason to forgo migrating to a standard text format (e.g. JSON)?
A while ago I asked a question about custom text data formats , instead of using existing tools such as XML, JSON, YAML, etc. Now, in favor of converting our custom format to a relational database and some segments of JSON (in a JSON field), I'm running into the problem of 'data bloat'. By this I mean that there will b...
You shouldn't store JSON text in a relational database in the first place, especially not if you are concerned about storage space. Store the data in regular tables, and then construct the JSON when you need it for communication. This will be much more efficient than storing either JSON or your custom data format. Ther...
4
4
587
2016-12-20T04:51:15.583
data_quality
softwareengineering.stackexchange.com
837,846
Redirect some HTTPS traffic to HTTP in Caddy
I am using Caddy as a proxy for many sites on the same server. Some of my sites are not ready for HTTPS. I can route them on HTTP just fine, but if I visit those sites with HTTPS, I get an ugly... [CODE] ...error. How can I use Caddy to redirect to HTTP instead? This works but gives me the error: [CODE] This gives me a...
In order to establish a valid SSL connection to a domain, the server must have a valid certificate for that domain. Otherwise you will get error message about invalid certificate. If you want to redirect from HTTPS to HTTP, you need the a valid certificate. This is because SSL is below HTTP, and the HTTP redirect respo...
1
0
3,108
2017-03-12T22:01:33.370
api_errors
serverfault.com
152,621
Compare two users permissions on SQL Server database?
Is it possible to compare permissions of two users on one SQL Server database? Is there any simple query to do it? I am asking this because I want to find out if user B has different or same level of permissions as user A on a database.
With help of colleague I got answer on my question. EDIT: Forgot to mention, we had to check first if two or more users have server side permissions over database and than to check did anyone get permissions on database itself. [CODE]
5
1
13,902
2016-10-18T14:03:35.023
database_errors
dba.stackexchange.com
228,282
Allow access to specific user only
I have a database with an owner for it. My problem is that, though I have assigned a password for the owner, any other database user can access this database locally, even without a password. How can I configure the database so that only a specific user has access to it (only with right password)?
You will have to edit your [CODE] file. If you really want to reduce possible access to a single user (see the note below), you will need the following lines, and only these: [CODE] This means that only [CODE] will have access to any DB, logging in via the Unix socket or a TCP connection (from all addresses, including ...
0
2
2,238
2019-01-28T19:07:21.680
warehouse_errors
dba.stackexchange.com
353,599
Can't vMotion specific VM
I have a VM (2008 R2, running SQL) that sits on a dedicated VLAN 70 that sits behind my TMG firewall. There is also a small CentOS web server that sits in the same DMZ, usually on the same ESXi box. When I do a vMotion of the SQL box there is no network response. When I do a vMotion for the web server everything works ...
There was something odd going on with the VMware Tools installation on that system. Why that would impact a vMotion is beyond me. There were several VSS errors thrown by the client OS and several network related errors thrown by the ESXi host specific to this VM. EDIT - The network errors requested are: [CODE]
2
1
875
2012-01-25T19:58:57.497
infrastructure
serverfault.com
275,497
Persistent static route stops working after VPN drops and reconnects
I've got a VPN between two networks, one home and one office (A and B). Their subnets are: (A) 192.168.1.0 and (B) 192.168.0.0 The two networks have identical ADSL routers. Unfortunately these can only do dial-out VPN. So I've got a Windows 2008 server on Network B acting as a VPN server (ServerB). Network A's router (...
Are you running the Routing and Remote Access service on the Windows server? I havent used it myself on Windows 2008 but in earlier Windows versions. When using this service you can manage routes used for VPN interfaces and all network interfaces for routing. Doing this manually with batch files is error prone I think.
-1
0
2,272
2011-05-31T12:07:00.300
infrastructure
serverfault.com
154,215
How do I migrate an existing FBA database to work with Claims Based Authentication?
I have an existing FBA database of ~2000 users for one of my clients in WSS 3.0. I have successfully upgraded their WSS site collection (in a test environment) to SharePoint 2010. I have also configured the 2010 installation to use FBA (through Claims Based Authentication) and verified that the users can be seen from t...
I ended up building a user remove/replace web part, which makes this more of a StackOverflow solution. Check out the Blog at http://sharepoint-foundations.blogspot.com/2010/06/fba-users-in-sharepoint-2010.html
0
0
998
2010-06-23T21:33:07.553
api_errors
serverfault.com
15,478
Where does openstack_networking_port_v2 show up in OpenStack Horizons (web interface)?
I'm creating an instance with Terraform and I'm using the Terraform resource [CODE] . I can see this corresponds to a [CODE] OpenStack resource . I'm using this, [CODE] Creating this instance works in Terraform, but when I log into to Horizons I don't see this reflected in the UI anywhere. Does the [CODE] show up anywh...
To get the ports set up with [CODE] in Horizons you'll want to, On the Navigation bar on the left, click [CODE] to open the drop down. Under the drop down click on [CODE] Click on the [CODE] in the case above [CODE] Click on the [CODE] in the case above [CODE] You can now verify it's right by checking the ID against th...
1
1
205
2022-02-21T19:44:17.513
pipeline_ops
devops.stackexchange.com
152,727
schroot: pass a command to be executed as if it's in a shell
i want to do something like: [CODE] but i get the error: [CODE] In other words, I want to be able to programmatically execute shell commands inside the schroot environment. What is the right way to get this behavior?
schroot bash -c "export....
0
1
906
2010-06-19T05:49:01.537
infrastructure
serverfault.com
496,609
NGINX location clause for only root domain
How do I only redirect too [CODE] when hitting [CODE] on [CODE] . For example if I'm on [CODE] , hitting [CODE] wont redirect me back too [CODE] but rather the actual page [CODE] ? My NGINX config: [CODE] How do I use the [CODE] clause for only root domain? Update @ Marcel: [CODE]
Don't use [CODE] inside [CODE] block. much better to declare several sections [CODE] in config with different [CODE] . Instead [CODE] use [CODE] directive.
1
1
4,668
2013-04-05T19:13:00.700
infrastructure
serverfault.com
140,836
What is a ‘best practice’ backup plan for a website?
I have a website which is very large and has a large user-base. I am trying to think of a 'best practice' way to create a back up or mirror website, so if something happens on domain.com, I can quickly point the site to backup.domain.com via 401 redirect. This would give me time to troubleshoot domain.com while everyon...
For this types of cases where you'd like a quick failover to a different host (in case your webhost bombs), configure a low TTL (Time To Live) on your web host's DNS record. I'm not sure how low you can go, probably minutes. What this means is that DNS servers will only cache that address for that period of time.
3
2
364
2010-05-11T21:01:02.690
api_errors
serverfault.com
760,751
Integrating squid with active directory
I am trying to integrate squid as a web proxy for my users in active directory. I have followed the tutorial in the squid site in here . When i run the command : [CODE] i got the error : SASL/GSSAPI authentication started Error: ldap_sasl_interactive_bind_s failed (Local error) additional info: SASL(-1): generic failur...
There is another way to get Squid integrated with AD - by not joining the machine to AD but by mapping the AD user to principal name of Squid. This seems to be simpler - see http://docs.diladele.com/administrator_guide_4_3/active_directory/install_prerequisites_for_kerberos_authentication.html#prepare-a-user-in-example...
2
0
2,114
2016-03-01T15:03:21.363
api_errors
serverfault.com
224,352
Can't reach guests from host and vice versa in Hyper-V
I'm configuring a Hyper-V server (2008 R2) with two NICs. I'm trying to follow the MS best practice advice of leaving one NIC for the host OS. NIC #1 is used for the OS and has no associated virtual network. NIC #2 has a virtual network with "Allow management operating system to share this network adapter" unchecked. B...
I've since managed to solve the problem. I doubt that anyone else is dumb enough to make the same mistake, but I'll leave the answer here where it might at least give someone a good laugh. Firstly, the "without issue" above wasn't entirely true - there were network dropouts and near-dropouts every now and then, Remote ...
0
1
340
2011-01-19T19:40:35.223
infrastructure
serverfault.com
5,597
Is a university education worth it for a good programmer?
I've been doing design and programming for about as long as I can remember. If there's a programming problem, I can figure it out. (Though admittedly Stack Overflow has allowed me to skip the figuring out and get straight to the doing in many instances.) I've made games, esoteric programming languages, and widgets and ...
Hooboy. This is a tough position to be in; you have my sympathies. I'm biased towards getting a degree, most likely because 1) I have one (BS in Computer Science) and 2) I've often found the knowledge gained pursuing it to be very useful. But it's hardly a pre-requisite for a successful career; the IT world is rich wit...
36
26
14,711
2010-09-20T14:55:02.860
api_errors
softwareengineering.stackexchange.com
12,125
How to copy library source code from other Git repo to an Android Gradle application GitLab build process?
There is an Android application using Grandle for build. It uses a "library" stated in build.gradle file: [CODE] It is configured in settings.gradle: [CODE] Developers currently have the main project and specialprojectlibrary projects side-by-side on their computers. So when they build it, Gradle fetches specialproject...
What you need is not to checkout both projects side by side, but to add the library as a Git submodule in your application repository. Then set up GitLab CI to checkout submodules before build. This will not only make your CI work, but as an added benefit each commit from application repository will reference a specifi...
1
2
409
2020-08-03T10:57:31.157
pipeline_ops
devops.stackexchange.com
999,915
My Site is under DDoS Attack
I hosted my website couponx.com in google cloud. For 24 hrs my site is under DDOS Attack. I have tried every way to get my site back. I spoke with Cloudflare as well. Still, the issue is not resolved. Can anyone suggest me how to stop this?
Depends, you can check which IP addresses are trying to connect to your site, and manualy block them, try to block also IP range. Also you can do "under attack mode" if you use cloudflare. Possibility is also that, you can block countries from where is attack going, but thats really harsh solution and may inpact your t...
0
0
51
2020-01-22T11:19:44.263
infrastructure
serverfault.com
163,635
Fail to start TMG server
Is there any conflict between Backup EXEC 2010 Remote agent and TMG Server (on 2008 R2)? Because when I install Backup EXEC 2010 Remote agent on TMG Server, server failed to start!!! and after disable it's service in safe mode, solved...but Backup EXEC not working (because service not running)
Backup Exec uses the Network Port 10000 TCP and this is already used by AD Web Services. Have a look in this Post: http://www.symantec.com/business/support/index?page=content&id=TECH60245 greetz chris
0
1
670
2010-07-24T04:39:16.507
database_errors
serverfault.com
15,681
Is it possible to split traffic by fixed ratio among two Deployments using only Service
Context: Kubernetes (1.23), 2 Deployments of the same app with different version/config/etc., 1 Service Let's say I have a web application deployed in Kubernetes using a Deployment. I want to add a new (canary, A/B testing) version of the same app as a new separate Deployment, so we're not touching the original Deploym...
Closest solution I found so far is creating those two deployments with such number of pod replicas, that corresponds to the required ratio (or close to it). I.e. if the required ratio is 7:3, Deployment A would have 7 pods, Deployment B would have 3. Service being simple round-robin, should ensure the requests spread a...
1
0
203
2022-03-26T12:40:30.157
pipeline_ops
devops.stackexchange.com
322,518
Need info on malloc trace
When I try the below code I am not clearly able to analyze malloc api internal calls.What I am not clear is about the system call mmap is called only once for 2 or more malloc calls.If I am assigning more then 4069 bytes also it is calling only one mmap internally(trace is identified by using strace -p processid ). [CO...
If you really want to understand [CODE] internals, look into the source code. On Linux systems it is likely to be in GNU libc but there are other implementations of the C standard library (the musl-libc source code is nice to read) and of [CODE] (e.g. tcmalloc ). Here is a very fast and simple [CODE] , but completely u...
1
3
1,877
2016-06-17T04:25:03.197
api_errors
softwareengineering.stackexchange.com
1,048,883
SSH fails to create a pseudo terminal
Our company's product is an application running in a container. It listens on port 2222 to establish a Command Line Interface. A customer is having issues with SSH, we have never seen this issue before, and cannot reproduce with the exact same OS (RHEL 7.8), Docker version (RHEL packaged 1.13.1) + Container (our app, s...
We found the issue to be the customer's NIS was setting tty to group 7. We set up strace on the ssh process within the container. When they try to ssh in, openpty() will try to chown and fail, we see this in strace logs: [CODE] Then when we do [CODE] we saw NIS was setting tty to group 7. This failure will not happen i...
4
1
2,547
2021-01-07T04:16:05.283
pipeline_ops
serverfault.com
634,594
Allowing passive FTP connections in FirewallD (CentOS 7)
In CentOS 7 which comes with FirewallD, enabling HTTP access was easy: [CODE] However, [CODE] doesn't work: the rule applies, but I can't access FTP by any means except disabling FirewallD. Some diagnostic info: I have checked the service definition file (ftp.xml) and it makes use of nf_conntrack_ftp module. On my VPS ...
I did not researched the issue throughly, so I do not understand the details, but it seems this has something to do with how the active - passive connections are setup both for vsftpd on the server and for the client (ex: Filezilla). Basically you will need to: configure vsfptd passive mode by adding the following to /...
6
8
28,933
2014-10-08T23:25:12.943
infrastructure
serverfault.com
48,801
Predict how many days late or early someone will finish their work
So I have a set of deadlines and people, with a database of when those people finished their previous work and how much after the deadline it was, as well as when the work was given. The work itself were articles, so I also have the word count for each. How do you, based on the previous data, calculate the amount of da...
If we assume that each task delivery is independent of eachother, and the process does not change a lot over time (stationary), we can treat this as a standard regression problem. Since this is about deadlines, we expect that there might be variations over time, or patterns of delay across the seasons of the year or we...
2
2
420
2019-04-07T10:10:50.027
data_quality
datascience.stackexchange.com
840,870
Windows Server stuck on Checking for Updates
[Windows Server 2012 Standard] I have been tasked with updating some servers here at the office, and one of them is giving me problems. Windows Update has now been in the "Checking for updates..." phase for 5 days, with no signs of completing. (It has not had updates applied for over a year, so it definitely has needed...
Window Server 2012 is based on Windows 8 code and here the Microsoft doesn't fix the long update scan like in Windows 8.1/2012 R2 . So upgrade to 2012 R2 + apply the fix or accept the slow update scanning.
5
3
22,560
2017-03-27T12:53:41.653
infrastructure
serverfault.com
35,971
SQL Server domain account login and user
What is the difference between adding a domain account login to an SQL Server (2008 R2) instance then add a corresponding user to a database adding a domain account user to a database without adding as a login first Is there any advantage, benefits, etc of one over the other. I notice when the latter strategy is used (...
Unless you're referring to contained databases (which are new in SQL Server 2012), you can't use the second approach. Whenever a person authenticates to SQL Server, they are authenticating against a particular server login (or possibly multiple logins if you're creating logins for domain groups). This server login can ...
0
2
1,639
2013-03-05T00:08:41.827
database_errors
dba.stackexchange.com
904,221
Using posix attributes instead of normal LDAP?
Due to the way a software we use interacts with Unix, when I am setting up a certain application to interact with LDAP I need to use Posix attributes instead of normal LDAP attributes. So far all I have found is that for [CODE] I must use [CODE] instead of [CODE] and for [CODE] I must use [CODE] instead of [CODE] . My ...
LDAP's a bit of a complicated thing so without exactly knowing what your directory server is, or what application this is for, it's a bit out of scope to be able to recommend exactly what you need, but you could try [CODE] for [CODE] and [CODE] for [CODE]
1
0
2,122
2018-03-23T13:33:39.550
hadoop_errors
serverfault.com
1,268
Best Setup for Database Cluster
I need to set up a good database clustering solution for a system that I am putting into production. I was hoping to get some advice from the experts as I am a primarily a developer and not a database administrator. Background My team and I are replacing a legacy system with a .NET-based system. Currently, we are doing...
Failover is easy to do. That just requires shared storage, and a couple of servers. SQL Server doesn't support scale out to multiple nodes. However a properly designed database with only a couple of thousand users should be able to run on a dual chip server pretty easily. My companies systems support about 35k transact...
5
6
870
2011-02-16T20:08:51.863
database_errors
dba.stackexchange.com
388,549
Secure connection to MySQL with VPN?
I have a VPS with MySQL 5.5, which is listening only on localhost because of obvious security reasons. I have set up VPN connection from my own machine to that VPS and I connect successfully. What would be the best way to grant same access to all MySQL databases to anyone connected to the VPN as if it was a localhost r...
you can let mysql itself listen on connections coming on all interfaces [ comment out bind-address in my.cnf ] and control access using the iptables: [CODE] you can be more elaborate and add -i to specify particular interface.
1
4
2,202
2012-05-12T20:22:39.970
database_errors
serverfault.com
247,368
What is a good strategy to develop apps that run in console and as API?
I develop quite often scripts that are primary used as a console application but later they are used in other scripts, webservices and other things where it is very convenient, to just import the script and call methods directly rather than using a Process and parsing stdout. The question is now, what is a good design ...
If you are working on a script where you know (or suspect) that it will later be used as a library in a larger project, then it is easier to start out with writing the functionality in a library and then tagging on a driver script to use the library from the command line. There are no specific design patterns to help i...
3
5
117
2014-07-09T10:14:09.660
api_errors
softwareengineering.stackexchange.com
293,469
How to read the "MS ForeFront" antispam report in email header?
I'm trying to diagnose why emails I'm sending out from my server's IIS SMTP Pickup Folder are getting bounced back occasionally. One tech from a receiving company who couldn't receive the emails said: [CODE] I navigated to the following place in IIS: Internet Information Services myservername (local computer) Default S...
"H:" is the host name - name assigned to the server "RD:" appears to be the Fully Qualified Domain Name (FQDN) This is actually more of a SMTP server configuration situation as to how your server is "announcing" itself to the other servers when they negotiate SMTP sessions. It just happens to be "ForeFront" being your ...
4
1
6,041
2011-07-24T03:42:10.337
infrastructure
serverfault.com
607,961
boot2docker mysql privileges
I'm using boot2docker on mac osx 10.9. I have an image with mysql 5.1 installed. I grant my user with [CODE] like following: [CODE] Where [CODE] is [CODE] ip of boot2docker vm (result of [CODE] ). but when I try [CODE] Moreover if I change [CODE] to [CODE] its work but I don't want to open to all IPs. May docker and po...
You seem to not be allowing that IP address to connect. If you change host to 192.168.59.% it should allow any host in that range (192.168.59.0/24) to connect. GRANT ALL PRIVILEGES ON . TO 'root'@'192.168.59.%' IDENTIFIED BY PASSWORD 'blah' WITH GRANT OPTION; FLUSH PRIVILEGES;
2
2
1,466
2014-06-25T22:06:03.293
database_errors
serverfault.com
748,961
Gitlab omnibus fails to add ssh key
tldr: there is no [CODE] directory where [CODE] should be. Is this the expected with Omnibus installs? System is Debian 8.2 I'm trying to set up ssh keys for my gitlab user. I can add it into the webui, but on the admin>background jobs page, sidekiq indicates a failed job. I looked around and people mentioned fixing [C...
I have fixed it by following this article http://doc.gitlab.com/ce/raketasks/maintenance.html#rebuild-authorized_keys-file I'm not sure if this is a pre-requisite, but I created the directory and file: [CODE] and [CODE] Then I used the permissions settings on this answer. [CODE] and [CODE] and finally [CODE] Last, I pr...
0
0
1,161
2016-01-14T00:35:12.113
infrastructure
serverfault.com
213,700
ssh connection issue - can i shutdown while script running on server?
i've established a vpn-connection. in the vpn i connected to a server via: ssh -X ipadress . then the prompt comes up and i start a script on the server with: sh script . this script will take a very long time, but how can i shutdown my pc without affecting the connection to the sever, or better asked: how can i leave ...
You need to install screen and run it inside of screen (which will replace the controlling ptty) and you'll be able to recover your session when you log back in again.
1
2
250
2010-12-17T15:35:59.660
infrastructure
serverfault.com
755,051
Unable to create CentOS 7.2 Kickstart DVD
I'm quite new to the kickstart concept and I've been reading and testing this for the past few days and I'm having an issue I can't seem to find anywhere on the web right now... At first I wanted to create a PXE boot kickstart installation, but this option requires a DHCP server, which my current network will not allow...
So I have found what was the issue, if anyone else encounters this. Basically, all the guides I was following were all missing an argument in the mkisofs command. Here is the actual commands: [CODE] The "-hfs" argument is needed to make the ISO filesystem hfs. Without hfs, the ISO won't boot. To sum up everything, here...
0
0
1,071
2016-02-09T17:08:08.337
infrastructure
serverfault.com
150,058
Backup/Multihomed network connection
We have a couple locations that require 24/7 access to Internet and our current provider (AT&T) while mostly good is not always up. My concern would be if I go with another provider (for example Comcast) I'm going to be subject to the same down time if it's in the "last mile". I for the most part don't know where the f...
If you really care about reliability/availabilty stop using broadband and get a dedicated non-DSL link (or two, fro different suppliers). If you're using T1's or similar then almost certainly two suppliers won't share the last mile (it was that concern that made me assume you were talking DSL sorry) - basically each su...
0
1
86
2010-06-10T13:20:53.790
database_errors
serverfault.com
12,150
Does the DisablePagingExecutive registry change have any actual effect?
On a number of machines in the past, across different versions of Windows (2000, XP, and no Vista), I've enabled DisablePagingExecutive to try and improve performance. In each case, and I've had plenty of memory, and in the especially so in the current case. However, after enabling this registry tweak and rebooting, I'...
There is an enormous amount of confusion on the internet regarding this function. The setting only affects the portion of the kernel known as the executive, and then only to the portions that are pageable. There are other parts of the kernel that are completely unaffected by this setting. Kernel paging works the same w...
9
14
39,883
2009-05-26T05:32:26.183
infrastructure
serverfault.com
447,651
Bad network performance on KVM guest
I have a dedicated server connected to a 1000 Mbit port. However, the Debian guest is only getting half to a 1/4 the speeds: On the node itself (Linux node 2.6.32-279.9.1.el6.x86_64 #1 SMP Tue Sep 25 21:43:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux): [CODE] On the guest (Debian 6.0.5, x64: Linux debian 2.6.32-5-amd64 #...
It has been fixed with: [CODE] It seems there were some mangle iptable rules.
1
1
1,894
2012-11-11T22:15:40.930
infrastructure
serverfault.com
704,203
Bitlocker without TPM on Hyper-V 2012 r2 from the command line?
I know that Bitlocker can be used from a Hyper-V Server 2012 r2 install. And I know that it can be done on a machine that lacks a TPM chip. The problem is that all of the examples I've found depend on a GUI. I don't want all of the complicated setup to allow remote management via a GUI, and I'm not using Active Directo...
Essentially, there are 2 registry values that need to be set before Bitlocker will allow a USB drive to be used to hold the startup/recovery keys. You don't need to edit a GPO via a GUI. This is how I protected my c: drive with Bitlocker, storing my keys on a USB drive mounted as the k: drive. Step #3 is the part that ...
1
3
2,083
2015-07-07T22:45:36.860
infrastructure
serverfault.com
331,609
`pg_restore` unable to read `toc.dat` created by `pg_dump -Fd`: `pg_restore: error: expected format (1) differs from format found in file (3)`
The [CODE] command creates a [CODE] directory with a [CODE] file. The [CODE] man page mentions that [CODE] is able to read this file, but after skimming its man page and stumbling upon this PostgreSQL mailing list thread , I get this cryptic error: [CODE]
TL;DR [CODE] expects the a directory when reading from directory dumps: [CODE] So, in the case above, it is [CODE] . After a more careful reading of the [CODE] man page , I found the [CODE] option: -F format --format=format Specify format of the archive. It is not necessary to specify the format, since [CODE] will dete...
0
1
857
2023-09-26T18:32:52.867
database_errors
dba.stackexchange.com
51,492
Constraint referencing multiple tables
I believe my problem is something similar to this but I am not really sure. I am not even sure my title is on topic. Using mysql. I have the following ACL design for a website: [CODE] Website has several tools, each tool can do several tasks. Each tool has several roles (ex: admin, mod, user) and each role is allowed t...
What you have described is modeled as follows: What you are attempting to do is a design flaw (logic bomb); it's called a Fan-Trap in relational database design. To get around the logic flaw that you are bumping into, you must collect (resolve) the relation from all three tables, Tasks, Roles and Tools into a single as...
0
0
84
2013-10-14T16:00:57.477
data_quality
dba.stackexchange.com
46,189
How to determine key frames in a video for video classification?
How to detect changes between when the changes between 2 frames of videos that are significant enough to be counted for video classification? Thinking of the problem as analogous to edge detection in an image where the change between 2 adjacent pixel is threshold-ed to detect an edge.
Most video formats should already mark such frames marked as "Key Frames" (Frames 1 in this example). It is possible to get identifiers of such frames (or split video around such frame). For example, mkvmerge tool. https://mkvtoolnix.download/doc/mkvmerge.html http://nickyguides.digital-digest.com/keyframes.htm
2
1
530
2019-02-25T10:58:03.233
data_quality
datascience.stackexchange.com
173,160
How to scale out by elvolving from database partitions to sharding?
Say I have a MySQL table: [CODE] All is good. The table lives on a single server - Server1. But eventually I may want to scale out. So I'd want to shard the table and move 6 of the 12 partitions onto a new server - Server2. 1) Is there any quick & easy way to move those partitions from Server1 to Server2? 2) Now that I...
i cannot really comment on "PARTITION BY HASH(tweet_id) PARTITIONS 12;" part... but usual trick with autoincrements when you're partitioning is done on the application level is to use [CODE] in my cnf. so if you have 4 machines and assign them numbers from 0 to 3 your #3 machine would have: [CODE] this guarantees that ...
2
2
630
2010-08-22T00:11:58.910
database_errors
serverfault.com
15,755
Can not find selenium webdriver element in HtmlUnitDriver but can find it in Firefox
[CODE] It gives above errors. But when i use firefox like that,no errors: [CODE] For html driver, unworking code: [CODE] I also tried [CODE] but same Also did this [CODE] but still same.
I solved. As i wanted a headless browser, i tried to use [CODE] and i succeed. [CODE] Because i dont want to use firefox driver and htmlunitdriver rhino is low for this, i tried phantom and it is really cool. Thanks everyone.
0
0
4,120
2015-11-21T16:48:50.707
data_quality
sqa.stackexchange.com
351,177
Designing a mechanism to synchronize states with commands despite timing / network inconsistencies
I have two browser clients: [CODE] and [CODE] . They communicate through a signalling server [CODE] . [CODE] has a clientside heartbeat that signals its [CODE] to other clients. [CODE] can be one of the following: [CODE] [CODE] Sometimes, [CODE] wants to change the state of [CODE] . It maintains a representation of [CO...
Keep a version number on the ClientState. Increment it anytime the state changes. When client B sends a change to client A, B keeps record of the next version it expects from A. When it receives a heartbeat from A that has a smaller version, it can ignore the state in that heartbeat. The most sure way to get around thi...
1
1
65
2017-06-19T12:50:30.497
api_errors
softwareengineering.stackexchange.com
376,232
Event Driven Microservice Architecture & Dealing with synchronous external neighboring systems
Let’s say I have an event driven microservice system - a microservice cluster - that takes orders and works with them. Orders are placed by an external neighbor system that is working synchronously via a REST endpoint provided by one of my microservices. This service is acting as a facade to keep all the synchronous st...
Synchronous calls are only a problem when the work required is slow. Since you just have to check a db, You can have a queue for cancellation validation requests with an RPC style return queue and call it from your REST service, while keeping the incoming request waiting. Where you might end up with issues is when the ...
3
1
2,619
2018-08-01T05:39:25.113
api_errors
softwareengineering.stackexchange.com
75,153
Can I use attribute name to identify XML element?
Rather than using the element index [CODE] below, is it possible to retrieve the column value by specifying an attribute name such as: [CODE] ? When I tried, I got this error: Msg 2389, Level 16, State 1, Line 41 XQuery [value()]: 'value()' requires a singleton (or empty sequence), found operand of type 'xdt:untypedAto...
The .value method must always return a single value so you normally wrap it in brackets and move the ordinal ( eg [1] ) to the end. Here's an example: [CODE]
7
9
6,358
2014-08-27T21:47:45.867
warehouse_errors
dba.stackexchange.com
114,818
MySQL creating a concat_WS delimiter function, one part not working
I have a function that looks like this: [CODE] I use the function like this: [CODE] So the field "mac" looks like this: [CODE] So I expect to see this: [CODE] But instead when I run the function I get this: [CODE] I've been messing around with all sorts of different fields, but haven't had success. What is my logical e...
http://sqlfiddle.com/#!9/ba747/1 You have off-by-one error (in the function and in the expected output too) [CODE] So all your computations were offset by one character - in the SUBSTRING inside the loop of your function you try to get "last" two characters of a mac, but there you put [CODE] as [CODE] which means you w...
1
2
99
2015-09-11T20:02:21.007
database_errors
dba.stackexchange.com
964,449
Turning On compute engine VM instance automatically on a schedule without using cloud functions
I'm looking for a way to automatically turn On VM instance at a specific time. I know there is a step by step guide from Google on how to do this using Cloud Scheduler, Cloud Functions & Cloud Pub/Sub, but my company wants everything to be stored on the Sydney server. Problem is, cloud functions are not supported in Sy...
I think that what you want to achieve it is not as easy as appear. The term "easy" it is also relative so I will tell you my idea to overcome this situation. As you cannot use Cloud Functions and you want something free, or cheap at least, my suggestion is to use some Compute Engine instance to execute a script that st...
1
1
258
2019-04-24T18:22:20.930
infrastructure
serverfault.com
165,967
Would I be able to use code hosting services to host malware code?
Let me start by saying that I am a computer security researcher. Part of my job is to create malware to deploy on a controlled environment in order to study or evaluate several aspects of computer security. Now, I am starting to think that using an online code hosting service (such as BitBucket , Github , etc...) to ha...
As a former host operator (so no, I'm not selling) I would suggest that you'd probably fall foul of the general T&Cs of all reputable hosts. However, I'd suggest contacting some, and explain what you are wanting... assuming they know what's what, you may find them amenable - especially if you pick a smaller company whe...
6
5
403
2012-09-24T06:06:58.383
api_errors
softwareengineering.stackexchange.com
522,370
Configuring htaccess file for self hosted CDN
I am trying to set up a self hosted cdn for my site, but I am having problems with the rules in the htaccess file and I can't get it to work. At the moment the ftp server that will act as CDN has the following filesystem structure: [CODE] My .htaccess looks like this right now: [CODE] I want to allow access to the cdn ...
Not to be a jerk but this doesn't sound at all like you're building a CDN. The whole concept of a CDN hinges on delivering your users content from a node closest to them vs. your users having to trudge through the internet to a single box. It's possible in your research you're having trouble finding out what to do beca...
1
1
2,706
2013-07-10T21:51:59.017
database_errors
serverfault.com
65,690
MySQL: What happens to the row when skip-errors=1062 is set
I found out that I can set [CODE] in the [CODE] but I need to know what happens to the row when the error happens. Does it get silently dropped? Or is that config option the equivalent to [CODE]
Yes, it is equivalent, provided the slave error you are skipping is 1062 (Duplicate Key) It would have to appear in the [CODE] section of my.cnf like this [CODE] All other error numbers will stop the SQL thread and would require [CODE] to have replication conitnue If you have multiple error numbers to skip, it should b...
9
11
30,486
2014-05-22T14:02:22.477
database_errors
dba.stackexchange.com
861,050
Postfix unsupported dictionary type: mysql
Basically I follow this tutorial: https://www.linode.com/docs/email/postfix/email-with-postfix-dovecot-and-mysql My problems strated with first test Postfix. postconf -m [CODE] It's look like i forgot install postfix-mysql but when i try again install i get: [CODE] postmap -q example.com mysql:/etc/postfix/mysql-virtua...
Ok after many hours spending time on this issue i finally found resolve: Postfix trying read file : [CODE] and can't, becouse have wrong permissions. I set new owners and modification permission resolve my problem. [CODE] Maybe this answer will help somebody else.
1
2
8,885
2017-07-08T15:52:42.120
database_errors
serverfault.com
195,836
Server Memory - Brand names or other magic cost components
We're repurposing some old servers and need to put new RAM in them. There's a disconnect between the quote I'm getting from our usual supplier and what it seems like things should cost. (This is kind of an ongoing thing.) I'd like to know if, as more of a development guy than an admin guy, I'm just missing something. W...
pc3200 is DDR (one). PC5300 is DDR2 which is NOT compatable, it has a different connector and works on a different voltage. Before you decide if your supplier is charging too much you need to find someone still selling DDR which is going to be more than DDR2. EDIT: Just checked on scan.co.uk, a 2GB stick of ECC registe...
3
3
1,358
2010-10-28T16:01:29.933
api_errors
serverfault.com
945,907
IPTables w/ UFW on Debian 9 - Port Forwarding does not Work
I am trying to solve this since yesterday but no luck. I have [CODE] , [CODE] , [CODE] , [CODE] configured. Port forwarding does not work. The IPTables rules are depicted below. My [CODE] output: [CODE] My [CODE] line: [CODE] My [CODE] file: [CODE] [CODE] output: [CODE] [CODE] output: [CODE] I am a newbie on IPTables. ...
Found the problem. I do not know if it is a bug but when you use [CODE] option in [CODE] it does not work.
0
0
859
2018-12-19T02:18:41.393
infrastructure
serverfault.com
140,807
CUPS printer on Vritual Machine can be access via CUPS admin, but not by XP?
I have a Zebra label printer connected to a Linux Mint virtual machine. It was set up with CUPS and a Windows XP computer can then print to it via http://192.168.1.76:632/printers/labelprinter . That was all fine and dandy I then hooked up a Fargo Pro L PVC card printer to a Windows XP virtual machine. I had to disconn...
I tried connecting to the CUPS printer from another XP machine, and it worked fine. I couldn't find nay differences between services running or anything else that was different between the two XP computers. The only thing I could find about connecting to a CUPS printer from XP was to install it as a local computer with...
1
1
1,031
2010-05-11T19:16:42.787
infrastructure
serverfault.com
23,567
Oracle High-water Mark: how relevant it is when using ASSM tablespace for tables?
I have several questions: 1) If Oracle manages both High-water Mark and Low High-water Mark in ASSM tablespace then do we have to think about that when thinking about performance? I mean, does Oracle manages deleted blocks itself and does not scan those blocks during table full scan, or do we still have to shrink those...
ASSM is not about reducing high water mark of the table. The main benefit of ASSM is it automates the task of freelist management in order to handle the concurrent DML on the table. Freelists are used to allocate new blocks when data is added to the table. You will be able to see the performance benefits of ASSM when m...
4
2
2,962
2012-09-02T16:06:02.270
database_errors
dba.stackexchange.com
436,737
Forcing a particular SSL protocol for an nginx proxying server
I am developing an application against a remote https web service. While developing I need to proxy requests from my local development server (running nginx on ubuntu) to the remote https web server. Here is the relevant nginx config: [CODE] The problem is that the remote HTTPS server can only accept connections over S...
The possible solution to your Problem is decribed here You have to downgrade to OpenSSL 1.0.0 in the Nginx system because of a bug.
5
1
16,498
2012-10-10T09:26:53.503
infrastructure
serverfault.com
100,601
1D target tensor expected, multi-target not supported
I am trying to train my model. My model outputs a [4,2] tensor where 4 is the batch size and 2 because of binary classification. After receiving the outputs I found the index of the maximum element for each row.so , now the shape is [4,1] and the shape of my label is [4,1] as well.I could not understand why am I still ...
If this is a binary classification problem then your model should only need to predict one output - a value between 0 and 1. A predicted value close to 0 would indicate the input likely belongs to your first class, and a predicted value close to 1 would indicate the input likely belongs to the second class. Then you ca...
1
1
4,453
2021-08-29T07:57:44.660
data_quality
datascience.stackexchange.com
369,866
Apache: redirect specific URL to a local server on different port
This seems straightforward, but I can't make it work. I have a pretty trivial webserver that only needs to do two things: example.com/status.html returns a local file (this works) example.com/atom redirects the contents of the firewalled server running on the same machine on port 4000 This didn't work: [CODE] That redi...
Don't use mod_rewrite unless you have a reason to do so. Try this (put it in the [CODE] block): [CODE]
8
10
31,363
2012-03-15T00:33:51.737
infrastructure
serverfault.com
909,560
Cannot get new computer to connect to domain
Windows server essential connector, cannot get new computer to connect to domain, states server unavailable. I have made sure server and client have correct synced time, updates are current on both machines Note: Task tray has a yellow triangle on network connection indicating no connection, I can connect to all networ...
I think it might be worth adding some more information if the below fix does not work. While I have not used the Windows server essential connector before, I have experienced something similar while trying a regular domain join. The yellow triangle on the workstation (assuming it’s on the, but regardless) is controlled...
-3
0
74
2018-04-26T12:15:24.993
infrastructure
serverfault.com
810,711
Cannot remove default gateway from NIC
On a Server 2008 R2 box one NIC is connected to the internet, one (just recently) to a private network. I noticed that IE was taking a long time to connect, and sometimes failing without a refresh, so I checked NIC 2 via the UI - the default gateway is blank. Ran IPCONFIG and it's showing a gateway IP address. Tried ch...
Open command with admin privileges and run this command. netsh winsock reset catalog
0
0
1,130
2016-10-22T23:55:55.580
infrastructure
serverfault.com
162,727
Vista 64x Enterprise repair boot manager
I had two Vista versions on my PC and I deleted one and now I cannot boot my other vista 64x Enterprise anymore. I have tried the bcd instructions to repair the boot loader, however I cannot get it to work, as [CODE] is missing. Does anyone know how I can fix my boot manager? Does it matter that my Vista partition is n...
Do you have a separate boot partition and system partitions? bootmgr and the boot folder containing the BCD need to be on the active partition; whatever that is. Only a Primary partition can be active, and you have have up to 4 primary partitions. Edit: Looks like you'll have to put the bootmgr and BCD on the recovery ...
1
2
182
2010-07-21T17:28:03.623
infrastructure
serverfault.com
479,553
Run multiple commands over SSH as sudo
I am trying to run commands as sudo over SSH, without success: [CODE] This is not working. Without -t and /usr/bin/sudo: [CODE] Single line command is working: [CODE]
This should work: [CODE]
3
11
10,698
2013-02-16T20:11:25.197
infrastructure
serverfault.com
357,052
Clean Architecture: Use case containing the presenter or returning data?
The Clean Architecture suggests to let a use case interactor call the actual implementation of the presenter (which is injected, following the DIP) to handle the response/display. However, I see people implementing this architecture, returning the output data from the interactor, and then let the controller (in the ada...
The Clean Architecture suggests to let a use case interactor call the actual implementation of the presenter (which is injected, following the DIP) to handle the response/display. However, I see people implementing this architecture, returning the output data from the interactor, and then let the controller (in the ada...
131
126
72,242
2017-09-08T15:14:49.563
api_errors
softwareengineering.stackexchange.com
234,583
dovecot/postfix: can send & receive via webmin, however squirrel mail and outlook fail to connect
I have just finished setting up dovecot and postfix on my server (centos 5.5/apache) earlier today. So far I've been able to get email working through webmin (can send/receive to and from external domains). However, attempting to telnet xxx.xxx.xx.xxx 110 returns the following errors: Connected to xxx.xxx.xx.xxx. Escap...
Looks like the problem is "stat(/home/mailtest/MailDir/cur) failed: Permission denied". Make sure that directory is readable by whatever user is running the Dovecot process.
1
1
2,173
2011-02-11T22:59:52.617
infrastructure
serverfault.com
4,725
How to use Jenkins to manage a repository from Github with a submodule from Bitbucket?
For my Jenkins build, I need to manage a Github repository to automate building a project. However, the issue is that this repository needs to pull a submodule from Bitbucket. This requires two difference instances of authentication, one for each service. As of now, Jenkins is only allowing the use of a single set of c...
It is a convenience that Jenkins will pull from git for you. With such a complex setup as needing to pull from two repos you can simply use a pipeline job that runs "sh" to explicitly git checkout the code and pull the submodules: [CODE] The good news with this slightly manual approach is that you can debug the sh comm...
4
2
402
2018-08-08T23:16:09.210
pipeline_ops
devops.stackexchange.com
894,908
resolve dns in my remote ubuntu server through my local ubuntu server
I have a linux server at remote location and i am connected to it via openvpn. I tried ssh into the server and found that i don't have internet access to it. When asked about it to the remote site IT person, he is asking me to use proxy to provide internet access from my local pc . Just need to redirect my dns to the r...
The above answer also seems correct. But i found the easy way to go about it. For that we will need pac manager v4.5.5.7. The lower version has bug. So better wget to get the package. steps: Install squid in your ubuntu machine. apt-get install squid Go to /etc/squid/squid.conf and edit the port as desired. nano /etc/s...
0
0
1,710
2018-01-31T07:21:00.817
infrastructure
serverfault.com
54,739
Data wrangling for a big set of docx files advice!
I'm looking for some advice on a data wrangling problem I'm trying to solve. I've spent a week solid taking different approaches and nothing seems to be quite perfect. Just FYI, this is my first big (for me anyway) data science project, so I'm really in need of some wisdom on the best way to approach it. Essentially I ...
The big problem with docx files is that they have a ton of content related to formatting that most people find irreverent when scraping docx files. Hence, one approach is to convert the docx files to something more friendly like json that excludes all the irrelevant bits, and then use existing frameworks like JSON sche...
4
2
668
2019-06-29T11:16:07.883
data_quality
datascience.stackexchange.com
239,138
Migrating from one dedicated linux server to another?
I have a dedicated server running ubuntu server 9.04 for web, database and mail. There's about 5 GB of data on the entire hard drive. I want to migrate the server to a more affordable dedicated server provider but I am unsure how to do this. Can I clone an entire hard drive? What about hardware specific files/dirs? Or ...
My suggestion is to take backups of everything and restore it on the new server. Ie: Dump databases and restore them on the new server Copy webserver, database, email configs on the new one Of course it requires a little downtime. There are some things you can do to make the downtime smaller: Do a previous rsync for al...
7
7
6,423
2011-02-23T12:56:48.677
database_errors
serverfault.com
98,658
Problem accessing the remote working space on my new SBS 2008 box
This supposedly easy to install OS is starting to drive me nuts... SYMPTOMS: When trying to connect to the remote workplace I get (and ignore) the security warning because I am currently testing with the self issued certificate. After loggin in the remote workplace's main screen displays but the images on it do not loa...
I have to investigate further, but it seems to be a problem at the laptops, not at the server. I will post what was wrong if I think it will be of general interest.
0
0
88
2010-01-01T10:45:38.310
api_errors
serverfault.com
803,423
nginx + php 7 + $_GET params + Homestead
My .htaccess is: [CODE] I have nginx configured like this: [CODE] If I call: http://prueba_nginx.net/a/b/c and I run the php commant: echo $_GET['url´] it must return: : a/b/c but currently it is returning: empty. PHP: [CODE] If I made the test with apache it works perfect: [CODE] what is the problem? Are there into th...
You've got at least two problems I can see. First: [CODE] This is redundant and conflicts with the earlier defined [CODE] in [CODE] . It should be disabled or removed. Second: [CODE] Unlike what you appear to have in [CODE] , [CODE] is the correct way to do this. But, you aren't providing the URL in the format that you...
0
1
1,265
2016-09-16T03:14:09.450
infrastructure
serverfault.com
420,007
Check if can delete before save
I am designing an application that works with REST API requests for dealing with information stored in a database. The user will add, edit, delete information in this client and after SAVE the information will be rolled out to the server (database) with the corresponding API request (GET, POST, PUT, DELETE) Now I have ...
Here's another way of approaching this: The data used to build the grid could include flags that denote whether each item can be deleted so if, for example, there were outstanding transactions on an item, the User should not be allowed to even try to delete it from the grid in the first place. OK, you could still have ...
0
1
229
2020-12-14T12:56:38.750
api_errors
softwareengineering.stackexchange.com
220,142
Is this a symbolic link?
I type ls -l and a directory shows up like this: [CODE] Is that a symlink? I am trying to replicate this, so I type [CODE] because I need to make sure the thumbs folder points to /storage/thumbs/ but it's not working?
Yes, that's a symbolic link. The reason you're unable to create one is you're using the wrong syntax: you're using [CODE] instead of [CODE] , and also [CODE] wants the name of the existing file (or directory) as its first parameter, and the name of the symbolic link to create as the second one. In your case, the right ...
0
3
263
2011-01-08T16:14:00.363
infrastructure
serverfault.com
961,862
Ubuntu: Multiple interfaces, one lan only
I have 2 interfaces: wlan0: Connected to normal network with DHCP (has internet) eth0: Connected to LAN only. Used for PXE boot and NFS The network-manager service is not installed on this machine. If I leave /etc/network/interfaces totally blank, both interfaces come up OK but each has a default gateway set. I run [CO...
My problem was with the dnsmasq configuration on the PXE server. It was sending out a gateway address so even when that address was removed from a client, it would eventually be resent as the client got a new DHCP lease. The permanent fix suggested by Michael Hampton is to stop the DHCP server from suggesting a gateway...
0
0
650
2019-04-07T04:30:48.197
infrastructure
serverfault.com
715,555
Exim - handling email from multiple domains as one
My local registrar allows registration of domains ending with [CODE] and has recently started offering [CODE] domains (freely offering [CODE] addresses to their existing [CODE] customers). In my case, I own two domains, namely [CODE] and [CODE] . Email is currently working nicely at [CODE] on my server, which currently...
Rewrite does exactly what you want. Respectively to the flags all mentions of one domain in the message will be replaced by the other domain. That behavior can be simulated by redirect router that remove and add the headers, result will be exactly the same.
1
1
406
2015-08-20T14:23:39.707
api_errors
serverfault.com
755,792
IPv4 assigment strategy in LAN: based on location vs. based on uniqueness of device
In our small office for many years I use IPv4 address assignment scheme based on location of user device, like: room #1: ip-range #1 room #2: ip-range #3 room #N: ip-range #N For me it has an advantage: it's easy to recall where user device located (аnd what is the device) by IP address. But this approach is violated c...
If you switches suppport it, you could use 802.1x computer authentication to dynamically assign a VLAN to the computer, wherever it is connected. Then the computer will always be in the correct VLAN and IP range. This require an authentication server, typically radius. A windows machine runinng Network Policy Server ca...
0
1
40
2016-02-12T11:54:55.197
infrastructure
serverfault.com
237,980
nginX hot linking protection failing
I have the fallowing configuration to disable hotlinking on nginX. [CODE] I have reloaded nginX several times and I am still able to access images from facebook. I have several folders within /var/www/html. Am I missing something?
Not sure if you know , but there is a bug in nginx and if that code is in separate file (not nginx.conf , reloading won't get the changes in included file; you will need to stop/start the nginx. Also a bit change in logic, since you listed valid referrers wouldn't it be better to say [CODE]
0
1
612
2011-02-21T00:04:16.183
infrastructure
serverfault.com
8,125
What does Spanning Tree Protocol (STP) do?
Someone please explain what Spanning Tree Protocol (STP) actually does in layman's terms. I know it can cause problems with some network gear, but that's the extent of my knowledge.
It disables dynamically all links except one connecting two any switches. So it prevents network loops. And allows to have automatically enabled backup link in case the main one stops working. But under bad configuration it can leave more then one link connecting two switches, then broadcast traffic starts multiplying ...
9
6
24,148
2009-05-14T10:13:16.543
infrastructure
serverfault.com
314,907
Security of remote management through MMC and other microsoft tools
When you connect to a server through an MMC console on a local computer (dsa.msc for example), what ports does the connection occur on? Is there any kind of protection from a rogue station hijaking the connection?
If I use Computer Management and connect to another computer, it's using microsoft-ds, which is port 445. Since there's a lot of traffic in a Microsoft network traveling over 445, I'm pretty certain that they do good things to prevent it being "hijacked" - whatever you mean by that. Do you mean MiTM attacks? In most AD...
2
1
636
2011-09-23T16:49:35.363
infrastructure
serverfault.com
179,604
Get maximum memory usage of linux executable
I need a shell script which will retrieve the maximum memory consumption of a linux executable. The executable may spawn child processes using significant amounts of RAM which should be included in the total. I've tried [CODE] , but this always yields [CODE] though using [CODE] I can verify the process is indeed consum...
I think [CODE] only works in recent Linux kernels (experimentally, it's not supported in 2.6.26/amd64, and it is supported in 2.6.32/i386). An earlier thread at Stack Overflow didn't turn up much. Without kernel support, monitoring memory usage is fairly hard. There are a few ways to do it: [CODE] a small library that ...
6
3
4,275
2010-09-09T16:36:16.590
infrastructure
serverfault.com
246,381
Change referenced index for a Foreign Key
I have something like this: [CODE] For performance (and deadlock) reasons I created a new index on T1 [CODE] But if I check to which Index references the FK, keeps referencing to the clustered index [CODE] If I drop the constraint and create again it references the nonclustered index, but this lead to check all t2 FK a...
Well, after continue searching I found this article Unlike a normal query, it won't pick up a new index due to statistics being updated, a new index being created, or even a server being rebooted. The only way I'm aware of to have a FK bind to a different index is to drop and recreate the FK, letting it automatically s...
9
6
672
2019-08-27T16:28:37.490
database_errors
dba.stackexchange.com
9,531
Create User Using Ansible with Authenticate Pem File
Community, I am creating a user on the client machine using Ansible but the issue is it creates a user and add authenticate file but getting an error while SSH to that machine using created, User. Following is my source code. [CODE] required_varlist.yml [CODE]
I suspect what is happening here is you are trying to insert the private key into the [CODE] file, which is invalid as only the public key is required on the target machine. What you need to do is extract the public key from the private key : [CODE] and then use the public key: [CODE]
1
2
738
2019-10-23T07:40:03.873
pipeline_ops
devops.stackexchange.com