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
47,458
Unable to launch uiautomatorviewer in mac os Big Sur
I recently updated my Mac OS to Big Sur. After that uiautomatorviewer is not working. Before Big Sur, uiautomatorviewer use to work. I am getting the below error: /Users/xxxx/Library/Android/sdk/tools/bin/uiautomatorviewer ; exit; java.lang.NullPointerException at org.eclipse.swt.widgets.Control.internal_new_GC(Unknown...
I've found a solution here: https://github.com/android/android-test/issues/911#issuecomment-849389068 . Basically, you download the newest swt.jar from Eclipse site and use it (under a different name, e.g. [CODE] ) when starting [CODE] , something like: [CODE]
0
2
5,511
2021-05-11T21:39:02.580
data_quality
sqa.stackexchange.com
231,884
SSH global $PATH
When I'm logged in my ArchLinux server and type: [CODE] But when I'm NOT logged in and try: [CODE] The PATH is correct in my /etc/profile but ssh seems to not load that. Is there any way to fix it for all users/ssh sessions? It does not happen when i using ubuntu Posting here as suggested by Eugene Mayevski 'EldoS Corp
If you're using Bash as the default shell for the user, your [CODE] command starts a non-interactive non-login shell so it doesn't process [CODE] . You will need to source that file in your script.
1
1
422
2011-02-06T17:14:10.303
infrastructure
serverfault.com
5,437
MySQL, foreign key, can't create table error 150
UPDATE: Sorry, it was because i forgot to add UNSIGNED attribute to the lang_id column. Original: I'm trying to create a table with foreign key in MySQL. I get this error: #1005 - Can't create table 'xy.trans' (errno: 150) Any ideas whats wrong with the following create statement? [CODE]
I've had a similar problem with this, and I finally resolved it by checking the field types of the two fields that were being referenced - they have to be exactly the same type - all the way down to the "Not NUll" and "Unsigned" settings... In your original post, the "lang" table has the "id" field defined as "INT UNSI...
7
2
14,930
2011-09-06T10:39:12.957
database_errors
dba.stackexchange.com
885,012
DNS requests blocked by iptables
I am currently setting up IP Tables for our network. We have the following networking situation: We have 3 networks, the grey, green and red. The grey network has full internet access without restrictions, but no access to green or red. Green has access to grey and to the internet without restrictions, red has no inter...
I think you need to carefully re-read the iptables documentation. Please have a look at this diagram, visualizing the iptables chains: https://github.com/rda0/diagram/blob/master/iptables-chains-hooks.png Almost all the rules you will want to have to setup what you describe have to be in the [CODE] chain. All packets t...
0
0
1,146
2017-11-24T12:18:24.727
infrastructure
serverfault.com
291,709
Website & database hosted across multiple data centers
We recently had a major data center outage from our hosting provider. They lost a fibre connection, causing a 9 hours outage, where most of our customers could not connect. This has caused us to consider housing our website across 2 independent datacenters. The website is an asp.net website with Sql 2008 database. I've...
This is very difficult to achieve. Seriously. SQL Server doesn't play that well with high latency links (high latency in this case is >=1Ms) for mirroring and clustering, which are the only two methods avaliable for guaranteeing up-to-date data. You need to switch to replication or log shipping if you have any latency....
2
1
558
2011-07-19T04:07:57.643
infrastructure
serverfault.com
866,471
Zabbix Database growing too large (PostgreSQL backend)
We are currently running Zabbix 3.0 LTS with a PostgreSQL database on version 9.5.6 running on Ubuntu 16.04. We're running into an issue where our Zabbix database just continuously keeps growing. We're not too sure what is causing the issue, but so far we've allocated 400GB to Zabbix and it is close to growing past tha...
Without seeing statistics of the big tables (specifically are they being effectively vacuumed by auto-vacuum), my main suggestion is to limit the amount of history you keep (specifically what goes into the history* tables, as opposed to trend* tables). Generally speaking Zabbix manages the volume of data collected by t...
2
2
9,069
2017-08-02T12:18:54.400
database_errors
serverfault.com
766,396
Load Balancer and Proxy for Meteor not passing to 127.0.0.1 - Too Many Redirects?
I have the following setup, but see 302 Moved Temporarily when I curl the load balancer. In a browser it reports Too Many Redirects: 1 load balancer with SSL 2 web servers I request https://www.domain.com and I get back a 302 with the same URL in it (see edit below). Here's the server setup: Server 1 - IP eg 1.1.1.1 Ng...
On the web server I changed the scheme line to force https: [CODE] [CODE] and it worked.
1
0
586
2016-03-28T00:40:13.957
infrastructure
serverfault.com
424,198
How to I create a user that is allowed to only add/remove users to distribution lists in Active Directory?
I do have a third party product (Jira) that has Active Directory integration via LDAP. I want to enable Jira administrators to edit group memberships and have them syncronized inside Active Directory. This currently works but I needed to use a Domain Administrator service account in order to do this. The question is ho...
You can delegate administration to your service account in order to allow it to edit group membership, without giving it full Domain Admin rights. This can be done for a single group, for all groups in give OU, or for all groups in the whole domain, http://www.windowsecurity.com/articles/Implementing-Active-Directory-D...
0
3
73
2012-09-04T15:18:13.647
infrastructure
serverfault.com
66,189
Classify pdf files - image approach vs. text approach
I'm about to start a project with the objective to classify PDF-documents. I'm wondering if there's a best practice approach to tackle this problem. Concretely I'm wondering if one of the following two approaches performs usually better: use an OCR reader to convert the files to text and train the classifier model on t...
Both methods will be beneficial for different cases. If you think that dependencies in the text are more discriminative of the classes, then NLP apporach. Image approach in this case will need to be super complex to catch this kind of information. On the other hand layout and position could be very informative and this...
3
2
336
2020-01-09T11:38:59.420
data_quality
datascience.stackexchange.com
296,160
Finding Potential Primary Key In Tables
I have tables(more than 100) that are missing primary keys. Actually, these are legacy tables. Now as per some replication requirements, we need to add primary key on each of these tables. Is there any way to find out possible primary keys on a table (ready to purchase a commercial product)?
You need to define the criteria for what constitutes a "possible primary key". When you have done that, you/we can search for (for instance sp_special_columns) or produce a script that uses that criteria. Such criteria could be: A unique index on the column(s) (possibly created using a unique constraint). The table has...
0
1
597
2021-07-26T10:05:54.497
database_errors
dba.stackexchange.com
107,222
Can Reinforcement Learning learn to be deceptive?
I have seen several exampled of deploying RL agents in deceptive environnement or games and the agent learns to perform its tasks regardless. What about the other way around? Can RL be used to create deceptive agents? An example could be asking an agent a question "What color is this?" and it replies with a lie for exa...
There is definitely a lot of work to do on the NLP and knowledgebase side of things before you can realise your agent. However, as the question suggests, we can ignore those details and focus on: Can reinforcement learning (RL) be used to train a "deceptive" agent? The short answer is yes, this is entirely possible . I...
3
9
1,351
2022-01-19T11:36:05.203
data_quality
datascience.stackexchange.com
440,063
Guaranteeing different availability requirements
I have different availability requirements (90%, 95%, 99% guaranteed uptime) for certain subsets of data. For example, the subsets of data are split based on the possible values A, B, C. What would be a good way to do this? Guaranteeing 99% uptime for all sets would be a waste of resources and too expensive given the r...
Designing, implementing, and verifying application-side controls to manage which shard or cluster contains the data and that reads and writes are happening against the shard is probably going to be more expensive than taking advantage of out-of-the-box clustering and replication solution. Availability begins with the d...
1
6
82
2022-07-27T09:27:16.003
api_errors
softwareengineering.stackexchange.com
17,918
IOS: How to handle the Google ads appearing randomly while automating the IOS App test
I am getting random (Google) ads (banners) while automating the App test. The ads are covering the full screen of the device and there is one cross-mark at the top of the ad to close it. I tried autoacceptalert, false to close the ad but its not working. Any suggestions will be appreciated.
First option you have is to ask your developers to create a version of the application without ads. Advantages - No ads. Disadvantages - You will not be testing the exact same code as you plan to release. You can disable only fullscreen ad. I think there is no best way to do this. Stable automate checks or checking the...
0
1
479
2016-04-04T07:10:31.677
data_quality
sqa.stackexchange.com
867,261
Nginx non existing domains can not be routed to 404 page
My Nginx config file is included several server blocks that it's shown as below. With the following configuration, it redirects non-existing domains to the first server block in the config file. However I would like to redirect non-existing domains to 404 page. [CODE] I appreciate if you let me know how I can routes no...
You should use the following configuration to return 404 header. [CODE] If you need to add a custom 404 page then you can use the following [CODE]
0
1
3,373
2017-08-07T11:56:11.023
infrastructure
serverfault.com
90,395
Using user defined function in groupby
I am trying to use the groupby functionality in order to do the following given this example dataframe: [CODE] I want to take the largest n values grouped by date and take the sum of these values. This is how I understand I should do this: I should use groupby date, then define my own function that takes the grouped da...
You could do it simple and it should work like this: [CODE] and then: [CODE] You decide if "data_agg" is the proper name then. Good luck!
0
0
964
2021-03-08T19:09:05.930
data_quality
datascience.stackexchange.com
111,487
Disconnected Network Drive
We have a big problem that's just started happening. One of our network apps (may it rot in hell) requires a mapped network drive to function. Therefore, we map a drive to the network share in question for the users. This usually shows up of course in Explorer as: [CODE] Problem is, it now shows up as [CODE] And I can'...
Hmm, okay. I think this might have been a vendor problem! In case it should assist anyone else (I've seen this issue a few times on Google with various responses), I disabled all the new services installed by the vendor, and after a reboot all drives were fine. It seems one of their services was mapping a drive in (.Ne...
1
0
5,047
2010-02-10T10:48:46.180
infrastructure
serverfault.com
919,781
Problems with endpoint host name containing emoji
Recently while testing my application I stumbled upon the possibility to change the computer name of a windows device (probably also possible with unix and any other OS but did not test with that) to contain an emoji (). Now I started to wonder if I would run into trouble if I would configure a host name of an endpoint...
It depends. But in today’s world, I’d say yes, you need to be able to deal with not just emojis, but any sort of character covered by Unicode.
2
1
462
2018-07-06T14:08:55.180
infrastructure
serverfault.com
787,739
Why do the numbers shown in ip_conntrack_count and conntrack -L differ
I noticed the following today on our router: [CODE] However: [CODE] My understanding is that [CODE] shows the number of entries of the conntrack table. What am I missing?
The answer is that [CODE] only lists IPv4 connections by default. If I do [CODE] then the sum of the two results add up to the number in [CODE] . The pathname of this proc entry is actually pretty misleading as the count is for both IPv4 and IPv6.
0
0
737
2016-07-04T07:52:24.060
infrastructure
serverfault.com
86,548
How can I create a bool column for a view based on the result of a statement?
I'm using PostgreSQL as my database. [CODE] I want to create a view that includes a boolean column stating whether or not a group has any users based on the has many / belongs to relationship of the two tables above. If it's easier, I'd even be fine with an integer column stating how many users a group has in it. How c...
"a boolean column stating whether or not a group has any users" Use [CODE] : [CODE] This returns 1 row per group , no matter whether there are users or not - not one row per user like you had, but probably didn't want - so we don't need [CODE] . It's largely irrelevant whether you write [CODE] or [CODE] or [CODE] in th...
0
1
4,662
2014-12-18T18:06:41.070
database_errors
dba.stackexchange.com
1,125,575
Does issuing an SSL certificate at a new company immediately invalidate the certificates on our servers?
We have a wildcard certificate issued by GoDaddy coming up for renewal, and I would like to use a different company (which is yet to be chosen). The wildcard certificate is on use at a dozen sites across a few servers. There will be a gap of a few hours between the certificate being issued at the new authority, and whe...
A certificate will be valid as long as the system date that verifies the domain is between its validity not-before and not-after date, all other certificates in the chain are valid, and the issuer has not taken action to revoke the certificate by means of CRL or OCSP options at their disposal (most commonly due to coun...
17
29
3,114
2023-03-07T20:36:31.427
api_errors
serverfault.com
873,079
Change Network Location from Domain to Public
In Our environment, We have a Windows Server running the Routing and Remote Access role, and functioning as a VPN server. Since this is the case, the server has two interfaces; One going to our internet gateway, to allow connections in from outside our network, and the other connecting to our internal network. I would ...
You cannot change an adapters profile from Domain (DomainAuthenticated) to anything else. This is not good when you are trying to mix networks together. The way I worked around this was to block NLA using the firewall rules. Rule Type: Custom Program: Services -> Customize -> Network Location Awareness / NlaSvc Protoco...
0
1
5,843
2017-09-11T16:36:35.577
infrastructure
serverfault.com
90,238
Cisco 4404 Wireless Controller Load
I'm not a Cisco admin, so this is a little out of my depth. I'm trying to troubleshoot what seems to be a congestion problem on a wireless network. We have an access point outside one room that is currently reporting hangs and issues with the laptops; when I connect to the controller (the 4404 wireless controller) via ...
Attached clients is a count. The others are percentages. 20 clients on one AP radio is a lot (depending on what the users are doing). I would suggest adding more APs to that area.
0
0
2,235
2009-12-02T16:11:26.730
infrastructure
serverfault.com
324,522
Setup a good game servers?
I have a very bad experience in setting up a game server. My fail experience was that I put all the servers into one (mail, database, game and web server). In the end, mail server did not handle mails properly (cant send X number of emails), database and web getting slower and slower, not enough hardisk spaces etc. My ...
Hire a good sysadmin who knows how to do these things. It will be more than worth the investment.
-1
3
210
2011-10-25T07:39:56.753
database_errors
serverfault.com
372,034
Exceptions, error codes and discriminated unions
I've recently started a C# programming job, but I've got quite a bit of background in Haskell. But I understand C# is an object-orientated language, I don't want to force a round peg into a square hole. I read the article Exception Throwing from Microsoft which states: DO NOT return error codes. But being used to Haske...
but crashing your client's software is still not a good thing It most certainly is a good thing. You want anything that leaves the system in an undefined state to stop the system because an undefined system can do nasty things like corrupt data, format the hard drive, and send the president threatening emails. If you c...
85
137
16,317
2018-06-04T01:46:43.233
api_errors
softwareengineering.stackexchange.com
522,349
How to prevent termination of long-running Python script
I have a cron job running a Python script on a VM-based remote Ubuntu server. The script takes a couple hours to run, and I'm noticing the kernel appears to be terminating the script before it completes, as the log shows: [CODE] I've monitored my script's CPU and memory usage via top while it's running, and it never ge...
You may be exceeding some limits set by default or in [CODE] . You may want to run the command [CODE] as a cronjob. This should display the limits you are getting under cron. It is possible the job is mistakenly being killed by an idle terminal monitoring program or runaway process killer. There are a large number of s...
3
4
7,476
2013-07-10T20:13:08.150
infrastructure
serverfault.com
306,590
Fastest way to get total block time?
[CODE] The above code gives me exactly what I need, but I noticed it is a bit slow on some of my servers (~6 seconds). How else can I quickly get total block time on my servers? To give an example.. if User1 has been running a query for 10 seconds, and two more Users come in and are blocked for 3 seconds each, I want t...
[CODE] Not perfect, but the above should suffice.
0
0
207
2022-01-26T04:00:20.970
warehouse_errors
dba.stackexchange.com
1,152,217
nftables rules can't ping to other server
So I have a quick and dirty firewall that I plan to use on my vps using nftables. Here's the initial rule [CODE] But If I apply this, I can't ping from my vps instance. The ping command (e.g. ping yahoo.com )just hang there. However if I remove the [CODE] , I can ping to public but that would defeat the purpose of my f...
Reasons it doesn't work Reason 1: IPv6 NDP is dropped The current ruleset prevents IPv6 to work properly on Ethernet, because it drops ICMPv6 traffic related to NDP which is the equivalent of ARP for IPv6. So it kills IPv6 connectivity for most setups in the next seconds or minutes (can be seen with [CODE] with the rou...
2
2
229
2024-01-25T03:37:30.677
infrastructure
serverfault.com
8,842
Publish MSTest results to Microsoft Test Manager
I've written a series of integration tests and have associated them with matching test cases in TFS. I'm currently running the tests with MSTest and have successfully published the results to the server. Problem: None of my results are appearing in Microsoft Test Manager. How can I ensure that the test results become a...
Unfortunately, I don't think this scenario is possible with mstest. The /publish command is supposed to be used to associate test runs with builds. MTM is displaying test results that are associated with test plans/suites which are somewhat independent of builds. I think you're going to have to use tcm.exe to get what ...
2
0
3,185
2014-06-10T19:52:09.333
data_quality
sqa.stackexchange.com
110,945
How to solve MemoryError problem
I've created and normalized my colored image dataset of 3716 sample and size 493*491 as x_train, its type is list I'm tring to convert it into numpy array as follows [CODE] but i get the following error when L1 runs MemoryError: Unable to allocate 10.1 GiB for an array with shape (3716, 493, 491, 3) and data type float...
You could try the following: 1.) Convert to greyscale images instead of RGB if your application does not need RGB. Colored images consume relatively more memory than greyscale ones. 2.) Resize the images to a lower resolution than the current one Cheers!
0
1
828
2022-05-15T01:36:28.050
data_quality
datascience.stackexchange.com
533,473
Is this CentOS 6.2 system reasonably secure as described?
This is a CentOS 6.2 system. For my login with the hosting company website, I set a 20-character mixed case, letters, numbers, symbols password and enabled two-factor authentication. In [CODE] I turned off remote root login and turned of password-based login. I'm running sshd, Apache, SSL, and MySQL on standard ports (...
No, it is not secure. It is CentOS 6. 2 , which is rather old. You should update to the latest released CentOS 6.x and keep doing so. I would also not automatically run yum update, but get nagios to alert you when there are security updates, so you can update manually. Your firewall is reasonably safe, but I'd replace ...
-1
3
89
2013-08-24T15:16:39.997
database_errors
serverfault.com
232,886
Windows VPN with internet access
At work we have a Windows PPTP VPN server. I'm guessing it's an XP server, but I'm not sure and I'm not allowed to peek. At home I have a Mac Mini running Snow Leopard. When I connect to the PPTP server at work, I can access all work machines, but at the same time I can browse the internet from my Mac. The traffic is n...
You'll want to find and un-check the 'Use default gateway on remote network' option in your Windows 7 PPTP network connection settings. In XP this is found under the 'Networking' tab of the PPTP connection properties by highlighting TCP/IP in the list and hitting the 'Properties' button. Click 'Advanced' in the window ...
0
2
392
2011-02-08T19:36:27.217
infrastructure
serverfault.com
890,403
linux command found but not found when using sudo
I am trying to run a python3 install like this: [CODE] I get the error: PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/site-packages/pytz' I then try: [CODE] I get the error: sudo: pip3: command not found Here is what my $PATH looks like: [CODE] How can I get sudo access to pip3?
I issued the django install this way: [CODE] This fixed the problem.
11
0
4,557
2018-01-02T20:31:41.460
infrastructure
serverfault.com
585,048
Why setup domain.com as my ADDS domain, the ".com" is disappear?
Recently I setup a test environment for my self-test. On a win2008 I add ADDS role. I type in "domain.com" as the domain name. Everything is fine and installation completed without problem. However I don't get why everywhere the ".com" is missed. On the logon screen it shows "domain/user". When type in "whoami" in cmd ...
The name you're seeing is the NetBIOS (think legacy) name). When you configured the domain, you would have been asked for the domain name (domain.com) and later, the NetBIOS domain name (which you probably left as domain). The NetBIOS name dates from before Active Directory, and lives to support legacy apps. You can lo...
-2
0
223
2014-03-28T02:16:23.267
infrastructure
serverfault.com
313,557
What does `numactl --localalloc` do?
What does [CODE] do? Does it bind program allocation to only the single node that [CODE] was run on? Or does it ensure that whenever the program allocates its given memory from its local memory?
[CODE] will force memory allocation to come from the local pool for the node the process is running on, whatever node that may be. To force bind to a specific processor, the [CODE] option must be specified. When used in conjunction with localalloc, it'll force a process to run on a specified node and only draw memory f...
4
3
3,903
2011-09-20T18:16:33.200
infrastructure
serverfault.com
133,246
Best Practices for "temporary" accounts in a Windows server environment?
Are there any best practices for "temporary worker" accounts in a Windows server environment? We have a couple of contractors joining the organization temporarily. They only need access to a few folders. Aside from joining them to the "Domain Guests" group and granting them access only to the folders specified. Are the...
If you know when they will be leaving, the Account Expiration attribute is worth exploring.
2
4
436
2010-04-16T21:27:44.257
infrastructure
serverfault.com
589,235
Cloudstack: "move volume failed" Error while attaching volume
I have detached a volume from a VM and now want to attach it to a different VM. The status notification pop-up says, "move volume failed". In the events log I see : [CODE] I happens whether the destination machine is on or off. The volume's name is DATA-4124. I able to attach it only to a VM that has the volume ROOT-41...
I have a tentative reply from my Cloud Stack hosting service support desk: I am flagging this for [our expert] but, from the top of my head, this might be the case if the destination VM is an older instance from the times storage was arranged differently. We upgraded storage a lot in the meantime but at the cost of com...
0
0
198
2014-04-15T17:35:39.447
infrastructure
serverfault.com
675,906
Trouble connecting to Amazon EC2 over SSH via mac terminal
I'm having inexplicable trouble connecting to my EC2 instance. I'm using the below, and no solution seems to quite be working properly. Thank you very, very much for your time! [CODE]
You really need to check on the server for what sshd is logging but with the info provided my initial guess would be that the server is rejecting the keys. As to why - see the server logs it initially I'd guess incorrect permissions.
0
0
705
2015-03-16T18:48:15.967
infrastructure
serverfault.com
40,243
look for missing datetime records in database
I have a python script that scrapes a webpage every minute of every day and saves the results in a postgres database. As I browse through the database, I've noticed there are minutes here and there that are missing from the database. This may be because of my server's downtime or because of the website downtime (but th...
You can do something similar. First generate the minutes (if you do this often, probably you would like to store them in a permanent, indexed table), then pick the ones not in your table. The query would look like (no looping!): [CODE] You may have to transform your timestamp stored if the seconds part is non-zero. And...
0
2
144
2013-04-17T15:57:07.940
warehouse_errors
dba.stackexchange.com
278,005
Configuring SQL Server Agent with domain account still fails to start Agent
I am trying to follow best practices for Sharepoint 2010 installation and SQL Server Agent will not start. My first reference is: Installing SharePoint 2010 using Least Privilege Service Accounts In short, I am using a domain account for starting MSSQLSERVER itself and SQLSERVERAGENT services for both as he suggests (t...
This has nothing to do with SharePoint and everything to do with SQL Server. The account under which the SQL Server Agent service runs effectively needs full sysadmin access to the SQL Server instance it operates on, because its role is to perform jobs on the instance and its databases. If you select the Agent's servic...
1
2
5,477
2011-06-07T20:47:46.243
database_errors
serverfault.com
1,091,462
Cannot interact with directory, how to remove it
I have a directory with a lot of files that I want to remove but I cannot interact with it. The size of the folder is 29M. [CODE] ran overnight without it seems doing anything. [CODE] doesn't print anything, I can see in htop that it doesn't actually run but is in state [CODE] . Same with [CODE] . Could it be corrupted...
The [CODE] state means [CODE] - see here for a nice description. You may be forced to restart your server unless someone can chip in with a better solution to interrupt the uninterruptible! My original guess was that the file is probably as 'in use' by an open process. Try using [CODE] to find the process and restart i...
0
0
74
2022-01-28T10:42:53.000
data_quality
serverfault.com
855,175
Can't join machines to domain
I've installed Windows Server 2016 Datacenter on a physical machine called [CODE] . It is allocated the static IP [CODE] by the router. It is also set manually in [CODE] on the NIC. The gateway is set to [CODE] (the router). The Primary DNS Server is set to [CODE] . The Secondary DNS Server is blank. When adding the Ac...
If IPV6 is enabled, the clients must have valid domain controller DNS entries in the network adapter properties.
4
3
4,489
2017-06-12T00:30:38.080
infrastructure
serverfault.com
130,045
Updating Cisco VPN config to add vpnc support
I have a Cisco 1841 configured for VPN connections of two types: Site-to-site for partners' routers (IPSec) — using different [CODE] and [CODE] with [CODE] , [CODE] , [CODE] for every peer (same map name, different sequence numbers). That crypto map name is added to the WAN interface. Client access (PPTP) — using [CODE...
It's no different from setting it up for the Cisco VPN Client. Cisco has a great deal of information on their Web site for setting it up. This page is the best example I could find. The part relevant to you is the 2611 configuration. If that doesn't help, their general VPN configuration examples can be found here . Bas...
0
1
861
2010-04-07T09:58:28.600
infrastructure
serverfault.com
447,250
Reinstallation or redeployment after hardware crash?
What is the best way to bring back the server online after hardware crash. I suppose image won't work after hardware change. So I like to know what is the fastest way to bring everything back. I've the following software running on the server: MSSQL IIS Custom Server Software FTP Server Then there is configuration: Reg...
What's the point of the backup if you're not going to restore it when trouble arises? Do a restore and be done with it!
-3
3
79
2012-11-09T21:25:18.523
pipeline_ops
serverfault.com
680,897
Creating a bridged network in ESXi VSphere using VSphere client
I'm new to ESXi and i'm trying to configure a small server of guest machines, each running windows 7 starter. my goal is to let the workers connect to the ESXi server, get a windows "computer" and be able to connect to the cisco switch from inside. The server has 2 NICs, one connecting to the office network, and one co...
You'll need a VM, with connections to both vSwitches, configured to route traffic between the two networks. It can be any OS you want, so long as it can perform IP forwarding/routing duties between the two networks. Depending on your particular setup, you may want it to do other things as well (firewall or NAT for exam...
0
0
13,831
2015-04-07T09:59:06.413
infrastructure
serverfault.com
117,285
Instant synchronization of multiple SQL servers
First of all, I am sorry if this is a duplicate. I was unable to find anyone who adressed this particular question, or I might have failed to realize it as I read it. Most likely I used the wrong search-phrases, as I am not all that familiar with the terminology. We have 3 servers: A . SQL-server B . Alarm system C . W...
I may be understanding this slightly wrong so I apologise if I am. If you have two databases that you need to be identical and are on 2014 then use the AlwaysOn High Availability Group. Since you're data centres are at separate locations use the Async mode This will mean the database is kept completely up to date (all ...
7
3
4,259
2015-10-07T14:10:36.883
database_errors
dba.stackexchange.com
397,003
Exchange 2003 to 2010 migration with a smart host
I'm trying to migrate a SBS2003 to SBS2011 and the source has an Exchange 2003 forest running on it. I'm using the migration tool, it's a small forest with less than 50 mailboxes. The problem I am having after running the BPA tool, is that the server is configured to use a smart host for mailbox routing. I've read a fe...
First off, for a mail environment that small, I'd suggest that you probably don't want to do a co-existence migration, but more likely a cutover. It'll avoid a lot of PITA and extra work to just get the new environment stood up, transfer your data and cutover your MX records, DNS, gateway settings, etc. Secondly, a sma...
1
5
562
2012-06-08T17:51:49.723
infrastructure
serverfault.com
809,007
Incident reporting and logging
I am looking into tool (or advice) that would allow me to track and log all incidents that happen on my infrastructure. We have a few servers (50+) and that number is going to increase in the future, so I want to have a better overview of things that are going or could go wrong in one month or so and to help me improve...
Old answer was Off Topic due to misunderstanding . Keeping it for reference: There are in fact multiple tools which allow what you want. For example: logstash (which you already know) graylog Prometheus Every one of them requires you to define triggers in some way on which you would be notified. Diving into this matter...
3
0
115
2016-10-14T08:58:50.080
bi_errors
serverfault.com
223,537
importing-a-sql-db-dump-postgres11 pgadmin4
I have a SQL dump file: C:\Users\Rayyan\Desktop\dump_2.sql. I have been trying to import this for so long. I am using pgadmin 4, and since I could find nothing in that GUI to help, I tried using Windows command prompt. I created my new database "wecudos" in pgadmin4. Then tried the following command in windows command ...
try this [CODE] or [CODE]
0
1
1,819
2018-11-27T11:24:34.753
warehouse_errors
dba.stackexchange.com
273,679
add RECOMPILE for specific query server wide
I've SQL 2017 and i have a query performance problem. i did try to play with all those trace flag (4199,4136,4137,9481)server wide and play with the indexes and stats and the query is still running slow. the only thing that resolve the issue is if i add the OPTION (RECOMPILE) to the query. my problem is that i can't ad...
You can use a plan guide. What type of plan guide to use depends on whether the query is in a proc (OBJECT) or not (SQL). Example: [CODE] Documentation for plan guides here: https://learn.microsoft.com/en-us/sql/relational-databases/performance/plan-guides
0
3
44
2020-08-13T06:57:23.523
database_errors
dba.stackexchange.com
606,185
How does vm.overcommit_memory work?
When I use the default settings: [CODE] I can read these values from [CODE] file: [CODE] But when I change [CODE] from [CODE] to [CODE] , I'm unable to start the same set of applications that I could start before the change, especially amarok. I had to change [CODE] to [CODE] , so the limit could be increased. Now when...
You can find the documentation in [CODE] ( or at kernel.org ): [CODE] The simple answer is that setting overcommit to 1, will set the stage so that when a program calls something like [CODE] to allocate a chunk of memory ( [CODE] ), it will always succeed regardless if the system knows it will not have all the memory t...
82
108
164,704
2014-06-18T17:27:53.860
infrastructure
serverfault.com
607,629
Single MailCleaner installation for two distinct domains with user authentication
I would like to use one MailCleaner installation to handle two distinct domains as one centralised spam management system, sharing configuration and mainly the bayesian filtering database. Both domains have their own Active Directory on different locations, and both AD servers are inside the LAN. So there's no remote a...
If you can not access to your AD from outside, you can configure the user authentication with IMAP or SMTP The clustering of MailCleaner will not help you in this situation, it is just for load balancing and redundancy
2
2
780
2014-06-24T18:58:50.157
database_errors
serverfault.com
363,603
FreeNAS box has slow network transmit speeds
I'm seeing some really odd issues with network speeds on my FreeNas 8.0.3 box. Receiving traffic is fine, but sending traffic slows down to 10-50kb/s, and stalls a lot. Receiving: Transmitting: Iperf: Server receiving: Server sending: ifconfig: sysctl -a | grep tcp I have all other services disabled other than SSH and ...
This sounds like a possible duplex mismatch on your server and the network switch. It looks like your nas box is set to 1gb full duplex. Is your network switch also set to 1gb full duplex?
4
1
7,295
2012-02-24T23:17:39.380
infrastructure
serverfault.com
373,288
nginx: How can I set proxy_* directives only for matching URIs?
I've been at this for hours and I can't figure out a clean solution. Basically, I have an nginx proxy setup, which works really well, but I'd like to handle a few urls more manually. Specifically, there are 2-3 locations for which I'd like to set proxy_ignore_headers to Set-Cookie to force nginx to cache them (nginx do...
After trying literally 10 different things and consulting with Fenn Bailey of http://fennb.com , I have to resort to the include solution, which seems to be the only thing that avoids code duplication and actually works. I moved all directives from location / {} into their own file and did this: [CODE] At this point I'...
2
1
2,847
2012-03-26T00:53:08.587
infrastructure
serverfault.com
332,852
How can SQL Server's Query Store Reports show data for minute-length intervals, when "Statistics Collection Interval" is set to 1 hour?
In the database properties under Query Store, the "Statistics Collection Interval" is set to 1 hour. This is also confirmed by querying the view [CODE] - all intervals span exactly 1 hour. However, when viewing reports like "Overall Resource Consumption", it is possible to select "Minute" in the dropdown for "Aggregati...
Thank you @Grant for confirming that the colleciton interval indeed sets the granularity of the data. I looked into the queries a little more and would like to expand a bit on on the part about accurarcy. As I understand the query (*), the execution and report intervals only need to overlap for the plan to be listed in...
4
2
260
2023-11-07T07:05:31.483
database_errors
dba.stackexchange.com
798,737
windows 10 upgrade from IIS6
hi dear community, is there any way to upgrade to newer versions of IIS on windows 10 ? I am trying to install some crm for testing purposes, but its components need IIS version 7 or newer here's the error message I get: https://i.stack.imgur.com/awxxl.png "
IIS 10 is included with Windows 10, you just have to install it first. Here's how to : http://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/ (it is the same procedure on Windows 8 and 10)
0
1
2,577
2016-08-24T05:38:47.617
infrastructure
serverfault.com
1,027,232
FortiGate 100E IPSec disconnect
I think this problem is well known that the FortiGate does not reconnect IPSec tunnels sometimes. Is there a way to keep the tunnel open. Do I have to buy a newer product or update to a newer OS?
Are both IPSec tunnels connected with Fortigate ? It's more an IPsec configuration issue than the Fortigate itself. Please check idle-timeout in order to maintain a connection.
-1
0
507
2020-07-29T19:21:00.990
infrastructure
serverfault.com
540,804
Creating a new system user didn't create a folder in /var/mail for the user - why not?
I am using postfix with virtual domains. Normally I add a system user, and then add the email to /etc/postfix/virtual. For the latest user I added however, there was a problem, and in the maillog it said: [CODE] I checked /var/mail and there was no folder for user.name By default, is a folder a created in /var/mail for...
The error message says [CODE] ... Whatever user you're running that command as does not have write permissions to the [CODE] folder, so you're not allowed to create a subfolder.
0
1
1,057
2013-09-22T13:05:58.863
infrastructure
serverfault.com
348,878
Smoothwall Express interface issues
I have a SmoothWall Express box that is currently configured with a Green and Purple interface. Both interfaces are in the same /24 subnet (which seems odd to me). The green interface (address of .254) has a DHCP server that is pushing addresses from .1 to .100 and the purple interface (.253) is pushing addresses from ...
Keeping untrusted devices (i.e. guest wifi) separate from a trusted network is advised and putting them in a different sub-net would achieve this. From what I understand, your devices are being assigned addresses from the DHCP server running on your purple interface (.253) and you'd prefer them to take addresses from t...
2
0
3,858
2012-01-11T15:04:35.223
infrastructure
serverfault.com
548,242
Forward secrecy in Nginx (CentOS6)
I am trying to enable Forward secrecy in CentOS with nginx webserver. What I have tried I have read some tutorials and seems like we should have nginx, openssl latest versions to enable it. So I had installed the openssl latest from source. [CODE] Now OpenSSL supports the Eliptic Curve ciphers(ECDHE). I tested this wit...
You are right that ECC in RedHat's (and therefore in CentOS's) [CODE] is disabled, due to patent concerns; see (eg) this bugzilla entry for more details. Note how any time anyone opens a new tracker to compain, it's closed as a duplicate of this one, so don't be fooled by the age of the tracker into thinking that it's ...
4
5
1,071
2013-10-24T05:31:15.267
infrastructure
serverfault.com
943,425
MongoDB won't run if dbPath is symlinked
I have installed MongoDB 4.0.4 from the official repo. I followed these instructions . My OS is CentOS 7 and SELinux is in enforcing mode. If I use a [CODE] value which is a symlink to another directory, I get the following error in the log: [CODE] If I change the [CODE] to any other directory which is not symlinked, i...
You're almost certainly running into SELinux here. While it expects and permits access to the data directory [CODE] , or more specifically files and directories having the SELinux type [CODE] , it knows nothing of your symbolic link, as it probably doesn't have this type. If you change the SELinux type of the symlink, ...
2
3
1,390
2018-12-08T12:03:13.590
database_errors
serverfault.com
319,597
Database to save measurements
I am creating an infrastructure to save measurements coming from a fleet of around 2000 cars. Each car contains about 60 sensors (depending from car) with a sum of about 800 values par second coming from all the sensors. Each sensor is reading from 2 to 50 values of different type (boolean, integer and commasep). I wou...
I'm not really sure what your question is but if the data has a schema and / or is relational, use a relational database management system. You don't even necessarily need to use a timescale type of database system (as that's a micro-optimization of the existing classic RDBMS) but it's fine if you want to as well. Eith...
0
1
116
2022-11-13T13:35:46.283
airflow_errors
dba.stackexchange.com
239,762
resuming server replication on PostgreSQL servers
I got one main server and other two servers are replicating from the main. I got full disk space on the main server (I have an [CODE] that put wal archives into the [CODE] directory). It got full, and the PostgreSQL log shows the error: [CODE] I cleaned up the [CODE] directory with [CODE] , but PostgreSQL still throws ...
It seems like archiving managed to partly write the WAL archive file before the space ran out. Then the [CODE] in your [CODE] will notice that there is already a fike of that name and will fail. In this case the solution would be to manually remove that partially archived WAL segment so that the next attempt to archive...
0
2
328
2019-06-04T06:57:46.020
database_errors
dba.stackexchange.com
319,002
Iterate over Collection while removing elements from it
I am iterating over a collection and want to delete some entries of it. Example: [CODE] As you can see, if one condition is true, I want to delete the item from the collection. If I pass now a List of 20 items into this, what happens is that every 2nd element gets deleted for an obvious reason: If the item should be re...
Since lists grow and shrink from their end, you can easily solve the problem by simply looping over the list in reverse order. [CODE]
1
4
4,170
2016-05-19T23:25:53.307
api_errors
softwareengineering.stackexchange.com
483,648
update all the nodes with same data on a single update
Basically i owns 3 systems where one act as a Balancer Node , and the data for the websites resides over the other two. The Problem is : i want to update all the 2 nodes with the same data (means .php files , which my website is designed) when i update either one of them . note: .php source files have to be updated wha...
You can try using a git repo... basically what we do is we create a GIT repo and push our code to it, and on the webserver, we clone that repository on deployment path e.g. /var/www/html/xyz and evry time a developer commits to the repo, there is a custom script that is triggered to pull new files from git to target we...
0
0
36
2013-03-01T05:17:07.440
infrastructure
serverfault.com
10,782
SQL Server Indexing Performance in Unique/Duplicate column
It is said that if we create index on a column with more uniqueness than performance of that index will be more. But I believe that whether it is unique or not it will occupy same no. of blocks than why due to uniqueness it will be faster.
The more unique the key is, the more you filter the data. For example if you had an index on a field with only 2 unique values such as gender, the index would only split the search space in half or the number of records / 2. Choosing to index a field with a greater amount of unique records (cardinality) will divide the...
3
5
6,089
2012-01-17T04:56:03.917
database_errors
dba.stackexchange.com
54,815
Lotus Notes on Ubuntu 9.04
I thought id ask this here instead of superuser, as lotus notes is a bit more enterprisy. I have a thinkpad t61 with ubuntu 9.04 installed and Lotus Notes 8.5. Normally the system performance is fine/great, running at about 10% cpu usage with Firefox and some terminals open, and lotus notes not doing anything. As soon ...
Lotus notes taking 50% cpu sounds like 100% of a single core. If your machine is a dualcore, or dual cpu machine -- look at the numerous complaints regarding Ubuntu and Notes consuming an entire core here . This post seems to suggest it is a theme issue.
0
1
506
2009-08-17T01:08:08.933
infrastructure
serverfault.com
315,658
Running a command as root from my local machine
I'm currently trying to figure out backing up using rsync - and I've run into a little hitch. I've disabled root access via SSH for security reasons, and have to use my special user account (without sudo permissions) whenever I SSH in to do admin bits. I then use "su -" to get full root access when I'm SSHd so that I c...
Your backup jobs should be configured as "push" jobs rather than "pull". Initiate the backup job via root's cron on your server, and have it rsync its files to the backup destination.
2
2
149
2011-09-26T19:07:58.630
infrastructure
serverfault.com
146,808
is there a rule for the size of the page file on dedicated sql server servers?
Hi All, We've been investigating further into the C: disk on my_server in regards to the low disk space. We can see that there aren't many files that can be removed in order to free up storage. However, we have noticed the page file on this disk is using 32 GB of storage. The settings are currently set to allow Windows...
should I really disable the page file? and reduce it to 8 GB? It isn't talking about disabling the page file - it is referring to disabling the auto-size settings. is there a rule for the size of the page file on dedicated sql server servers? There are a great many, often contradictory , rules-of-thumb for the size and...
1
1
2,937
2016-08-15T10:10:29.167
database_errors
dba.stackexchange.com
170,969
Assembly Language being used in Aircraft System
Today my lecturer mentioned the reason why the aircraft system is programmed in assembly language is due to the program being written have less error . Is this statement true ? Because when he asked about our opinion I said assembly can create faster program thus it is a good language for real-time oriented aircraft sy...
Your lecturer's statement is provably false. The Joint Strike Fighter 's control code is written in C++. The 777 from Boeing uses 99%+ ADA . The JPL uses mostly C to drive spaceships. I'm sure there are more examples but I suspect many are proprietary or classified. Here is a paper that goes into some detail on the sub...
9
29
1,825
2012-10-23T07:53:53.007
api_errors
softwareengineering.stackexchange.com
404,201
Is this OK to call a method that subscribe to IObservable multiple times?
I have this method: [CODE] This method is called everytime a button is clicked, showing a child view than wait for error even and or close event. This method do the job great, what I want to ask is, what is the impact of this code, because this code subscribe to an event but never unsubsrcibe, does this method will cau...
Just try it and see if your callback is called once or twice when you call it twice. I mean if someone says “yes, it’s ok”, would you just believe it without verifying? And when you verify it, there’s no need to ask the question anymore. But if you call it twice, what’s absolutely needed is a comment that calling it tw...
-2
2
277
2020-01-24T05:33:09.017
api_errors
softwareengineering.stackexchange.com
416,488
Create an e-commerce that integrates other store
I would like to create an e-commerce website that integrate other e-commerce. I can retrieve their products using APIs or feeds. The problem is that all these information are different from shop to shop and I need something to uniform and show them in my e-store. I've tried to build a Woocommerce plugin but it lacks in...
The fastest and easiest way to solve this is through actual software architecture (I use clean architecture). A framework is not a real architecture. It may have suggestions for a pattern to work with it well or even enforce that pattern. This is not software architecture and doesn't solve very much outside of presenti...
-4
0
88
2020-10-02T09:10:16.053
api_errors
softwareengineering.stackexchange.com
334,048
Pass a parameter into an SQL file
In Oracle we have a tiny sql file (truncate_table.sql) that calls a function that truncates a table: [CODE] For [CODE] , we pass [CODE] . I realize that table names in PostgreSQL are in lower case. So, in PostgreSQL I tried [CODE] This SQL file is called by a shell script ( [CODE] ) that basically looks like this [CODE...
You can pass the table name to [CODE] as a variable: [CODE] and use it in the script as [CODE]
2
1
42
2023-12-14T04:13:08.073
database_errors
dba.stackexchange.com
875,178
Is it appropriate to use Docker for both long-running and short-running processes together?
Suppose I'm building a microservice that resizes and optimizes image files. It's a long-running daemon which provides an HTTP API responding to standard [CODE] / [CODE] responses. Based on my knowledge of Docker, this is a perfect use case for containerization -- one process (the HTTP server daemon) running indefinitel...
Simply design this with multiple "independent" containers, some of which depend on others through a remote API. There's no need to have "containers run containers". You simply have a container taking requests to process with ImageMagick, and that is simply waiting to process requests continuously. If you need to upgrad...
0
1
392
2017-09-23T19:10:13.077
pipeline_ops
serverfault.com
531,540
Long connecting, wait and receive time for my Apache VPS. Can I reduce them?
I have an Apache VPS. When I'm testing my blog posts page loading times on Pindom tools, it shows long connecting (192ms), waiting (73ms), and receiving time (899ms). My some pages loading time goes to 15 seconds. Are there any way to minimize those times? Apart from that I run Nginx Admin plug-in on this Apache VPS an...
With that kind of workload Apache hardly is the component to blame. Apache is the pizza delivery guy who gets blamed about the slow delivery times, even if the real reason is that the cook was very slow. So, time to look elsewhere. Does you WP installation have any exotic 3rd party plugins? Does it load resources from ...
0
0
1,032
2013-08-16T15:58:55.673
api_errors
serverfault.com
88,785
Why doesn't SQL Server rollback the identity_insert state?
I have a large script for setting up a new database that does lots of identity inserts on many tables; while I'm working on extending it I quite often have transient errors due to it being a work in progress. If one of these errors is between [CODE] and [CODE] the script refuses to run a second time with the following ...
This is a session setting; there is nothing to roll back. If you had issued [CODE] or [CODE] , would you expect an error to revert you to [CODE] or [CODE] ? What if you had [CODE] on, would you expect a rollback to stop showing you plans on subsequent queries? To be fair, the [CODE] case is a little special, since it's...
2
5
3,846
2015-01-07T20:53:54.737
database_errors
dba.stackexchange.com
994,860
RDP stops working, until user opens configuration and clicks into the computer field
We have VPN tunnel configured between office 1 and main office. From office 1 (Windows 10) we are connecting via RDP to the server (MS server) using internal VPN IP. From time to time, it happens that RDP connection does not work anymore. Everything else works, internet, pinging the internal address of the server, all ...
Can you brief the connectivity to the RDP device. Check possibility of IPS devices in between the connection(check the connection status).Or else check the packet capture and whichg state the conection is terminated from the destination device. Regards, Kannan K R
0
0
52
2019-12-09T09:56:06.437
infrastructure
serverfault.com
946,546
How to externally access a kubernetes service of type as "NodePort", using ec2 Public IP
On ec2, running a single node k8s cluster. On the node, a service is running with the type as "NodePort" with the exposed port "31380". I need to access this service externally over port 80. [CODE] What additional config is needed to access this from ec2 public IP e.g. a successful "curl ec2publicIp:80" or via a browse...
If you are looking for the solution to expose Kubernetes service externally (outside the cluster) then Kubernetes Ingress resource would be the best choice to achieve this goal. [CODE] , specifically used to offer functionality for HTTP and HTTPS routing from outside the cluster to the nested Kubernetes services. When ...
0
1
3,263
2018-12-25T03:20:46.597
pipeline_ops
serverfault.com
316,969
How to upgrade from psql 9.5 to 12 with short downtime and no corruption
We have two databases in two different servers with PostgreSQL 9.5 One database size is 800GB and the other is 1.8 TB. What would be the most efficient and safe way of upgrading both clusters from version 9.5 to 12? I have two backups of each DB: A [CODE] file and a copy of the whole main data directory. So, any type o...
Fastest is to use pg_upgrade and be moderately lucky. For a linked upgrade once you launch the new database there's no going back to the old one, but until then any errors will only abort the upgrade and you can revert to using the old database. After that going back would require restoring a dump. If you have a lot of...
-1
0
168
2022-09-15T23:34:05.837
database_errors
dba.stackexchange.com
269,403
DHCP helper with a single subnet and multiple scopes
First, a little bit about what we're trying to do. We are migrating from being multiple LANs ( multiple subnets) connected over slow VPN links to a single MAN ( single subnet) connected with gigabit fiber We are going to VLAN each site to control cross-site "chatter" We have a single "datacenter" that will host the ser...
Woah, there. What you're saying contradicts itself. You say "single subnet" in one point, but then "VLAN each site" in the second point. Then you say "the networks will NOT be routed". Are you sure you know what you're saying here? Typically 802.1q VLANs are deployed in a one-to-one relationship with IP subnets. Each 8...
1
3
1,732
2011-05-13T13:49:12.377
infrastructure
serverfault.com
761,992
Unable to install ffmpeg-php on Ubuntu
When I searched for this error, it seems to be more common in CentOS but I'm using Ubuntu 15.10. My issue is that I've followed this installation on ffmpeg-php's site and I've ran into an error when doing this command. [CODE] The following error I recieve is [CODE] How do I fix this? Some people said to just do [CODE] ...
In Ubuntu, FFmpeg headers are distributed among several packages, which are built from the [CODE] source package. I guess you should install all of them ( list here ): [CODE]
1
1
2,054
2016-03-07T03:29:56.050
infrastructure
serverfault.com
382,668
Poweredge 2850: replace disk with larger in RAID?
Is it possible / rational to replace a failed disk in a PE2850 (win2003) RAID-5 array with a larger size? Im not looking to expand the array - just to replace a failed disk with one that I have in stock. I don't care about losing the extra space on the disk. Just wondering if the RAID controller will use what it needs ...
Yes, it should work just fine. In fact, Dell has shipped us larger drives when we request replacements for failed units.
0
0
360
2012-04-24T17:47:08.750
infrastructure
serverfault.com
11,797
Split a list of values into columns of a dataframe?
I am new to python and stuck at a particular problem involving dataframes. The image has a sample column, however the data is not consistent. There are also some floats and NAN. I need these to be split across columns. That is each unique value becomes a column in the df. Any insights?
It looks like you're trying to "featurize" the genre column. [CODE] The output: [CODE]
9
9
30,496
2016-05-17T01:37:04.153
data_quality
datascience.stackexchange.com
259,733
MariaDB Can't Create New User
Fresh install of MariDB 10.4 (fedora 31). I login into mysql as root: [CODE] If I try to create a new user: [CODE] As stated from the first table, the user [CODE] doesn't exist. The permissions of root seem fine: [CODE]
The problem is that although the user was not listed in [CODE] table, there was an entry in [CODE] with that user. So the solution is: check also [CODE] for colliding usernames.
1
1
2,768
2020-02-14T19:29:51.080
database_errors
dba.stackexchange.com
100,486
How to feature engineering after getting test data in deployment?
I am kind of confuse about this topic of feature engineering. I am trying to make an web app in which people can upload test data as csv. Now I am confuse about how to do feature engineering after deploy the app, especially how to handle outliers and missing value ? Suppose I want to change all the outliers of the test...
Ok so basically the main rule thumb is - use whatever you can use in real-time, otherwise of course it is wrong to use it because you wouldn't be able to provide it on real time. If people upload test data, it means you assume it is unseen and therefore can't use its values. I will answer your question assuming real-ti...
0
1
133
2021-08-25T07:50:49.563
pipeline_ops
datascience.stackexchange.com
14,435
How to get the probability of belonging to clusters for k-means?
I need to get the probability for each point in my data set. The idea is to compute distance matrix (first column contsins distances to first cluster, second column conteins distances to second cluster and etc). The closest point has probability = 1, the most distant has probability = 0. The problem is linear function ...
Let us briefly talk about a probabilistic generalisation of k -means: the Gaussian Mixture Model (GMM). In k -means, you carry out the following procedure: - specify k centroids, initialising their coordinates randomly - calculate the distance of each data point to each centroid - assign each data point to its nearest ...
12
14
24,243
2016-10-10T06:17:43.313
data_quality
datascience.stackexchange.com
214,088
The effect of a Primary Key on a blocking situation
I'm studying about "Transaction and concurrency","Deadlock" and related stuff for some time. I have a question regarding this matter. The situation is that two records ( [CODE] [CODE] and [CODE] ) are updated by two different sessions : SESSION 60: [CODE] SESSION 63: [CODE] The problem is when I put a clustered index o...
Community wiki answer - please edit to improve: The reason is when you create an index, either specifically or by declaring it as primary key (which internally creates an index to enforce the constraint), it makes both update statements fast, and they finish quickly without blocking. With no index, each query has to sc...
2
3
1,641
2018-08-05T09:09:13.900
database_errors
dba.stackexchange.com
219,142
Windows Server 2008 (x64) won't boot past BIOS screen
Since a month or so ago I inherited responsibility for small network administration for my sins. The domain controller (yes there is only one, and yes I know it is best practice to have two even in a small domain setup) went down overnight and I have been trying all day to get it back up and running. Unfortunately this...
If you have an Enterprise Agreement with Software Assurance, you could take advantage of Microsoft DaRT (Diagnostics and Recovery Toolset). DaRT is based on Windows PE, and includes a strong set of tools for troubleshooting and recovering unusable systems. It includes a registry editor, file explorer, and crash analyze...
3
1
1,348
2011-01-05T20:29:38.160
infrastructure
serverfault.com
83,893
openvz performance issues
I have two VEs running on the same physical server. One VE sends requests and the other reads/processes them. I'm trying to benchmark the setup, but I keep blowing through the UBC limits. Things grind to a halt when this happens. Is there a way I can completely disable UBC so it doesn't keep hitting limits? Or is the o...
OpenVZ can be a bit difficult to set limits for. Documentation is not very clear and the configuration is quite arcane if you are a first timer. Instead of using the example configurations, I would encourage you to use [CODE] to help set up your limits. That solved a lot of my problems when hitting limits. The generic ...
0
1
406
2009-11-12T05:19:19.333
infrastructure
serverfault.com
198,840
Setting up replication with MariaDB 10.3.4 docker images
I'm attempting to set up replication between two docker containers, both running the stock MariaDB 10.3.4 images (which are the latest versions as of right now). When I start up the containers, I get error code 1062 (Duplicate key) on table [CODE] for key [CODE] . The slave is clearly trying to replicate the [CODE] tab...
I've come up with an answer for this - it seems like a bit of a hack, but it seems to work. To recap: the goal was to set up a master with a single slave using MariaDB 10.3.4 (in Docker containers, although this isn't necessarily a requirement) from scratch (ie. newly-installed, empty databases), so that the system wil...
6
2
4,130
2018-02-26T17:00:44.793
data_quality
dba.stackexchange.com
491,491
Are graphic capabilities included in CPU used in common servers (web + thinclient)?
I'm trying to decide between these two Intel processors The first of them has no graphic support in core. I know that this type of graphic "cards" can be used to execute code from common (non-graphic) apps, but I don't know if the applications I'm going to install make use of this processor characteristic. I'm going to...
That processor only support OpenCL 1.1, and has 12 execution units. Compare that with the AMD A10-5800K with OpenCL 1.2 and 384 execution units. Intel's graphics are notoriously unimpressive. It's highly unlikely any of your software will have the drivers or OpenCL capabilities to use the graphics "card" in that proces...
2
5
95
2013-03-26T15:25:17.543
database_errors
serverfault.com
496,491
Apache mpm worker + wsgi Python/Django workers stuck
Our Apache+Django server has the problem that workers get stuck. It's an mpm worker model, and after some time, each process that serves some dozen worker threads has all its workers frozen: [CODE] When doing [CODE] , you can see that it's exactly two PIDs that have all their workers in "working" state. Currently, PID ...
I fixed it some time ago by converting the sites to use daemon mode, instead of embedded mode, and putting an nginx proxy in front of it, which handles all the static file serving.
3
0
2,797
2013-04-05T14:09:51.213
infrastructure
serverfault.com
319,020
aws - ec2 - linux - apache : can't access index.html from the outside
I'm trying to figure out why index.html is invisible from the outside of ec2 instance on AWS. Already verified that the server is running (netstat -lp) and curl gets a 404 error ( all the gory details are here ) Now the logs, access just shows the 404 error, fine /var/log/httpd/elasticbeanstalk-access_log: [CODE] Error...
Your server is reponding with a 404 Not Found error. Check that your DocumentRoot is configured and that there is a directory containing an index file in it.
1
0
3,652
2011-10-06T11:20:29.070
database_errors
serverfault.com
197,159
Why 777 cause problem but 644 was fine
I have a VPS, for some reason php can only exec when permission is 644. If I changed the php file to 777 or 755, it would throw me an Error 500 internal server error. I thought 777 give everybody greatest permission, what makes a web server behave like that? Thank you for your time.
This is done for the same reason that [CODE] won't log you in if your [CODE] directory is too widely writable. How does your server know it is really your application if anyone could have changed it?
2
8
285
2010-11-02T04:21:06.917
api_errors
serverfault.com
286,830
Estimating scrum points for non cross-functional team
We are working to transition our development team to be more Agile. I have a question about story point estimation and their relationship to an individual's skill. The scenario is that our team members do not have cross-functional skills. One might focus entirely on front-end, another only does back-end. The problem we...
When planning in Scrum, the first thing to realize is that you should not try to plan the work to keep everybody busy, but rather you should try to plan a certain amount of functionality that your team will try to deliver at the end of the sprint. In Scrum, the input to the planning is the product backlog, which should...
5
3
2,056
2015-06-15T12:38:13.610
api_errors
softwareengineering.stackexchange.com
990,060
Unable to Start Azure Kali Linux VM - NetworkingInternalOperationError
I am unable to start my Azure Kali Linux VM. The VM was working yesterday and was shutdown yesterday. The Azure console shows it as stopped(deallocated). When I try to start the VM it fails with the error "Provisioning failed. An unexpected error occured while processing the network profile of the VM. Please retry late...
Try to redeploy the VM. Works in many cases. Or resize the VM temporarily to a bigger size, it will redeploy the VM as well to another host. I think the underlying host is the problem in your case.
0
0
709
2019-10-31T02:51:16.490
infrastructure
serverfault.com
77,102
How does one network at software conferences?
I'm still at Microsoft TechEd , and the response to my question about how to effectively use my time at software conferences was overwhelmingly "networking is the most useful part of software conferences". Problem: I have no idea how to even approach that task. I've always been kind of an introvert. At school and at wo...
You need to do three things... Start conversations - and the best way to do this is to introduce yourself to someone and ask questions . Most folks love to talk about themselves and their opinions - even introverts! Here are a few you can try... What's your favorite session so far? Where are you from? Do you use [a tec...
54
47
2,026
2011-05-18T04:04:42.010
pipeline_ops
softwareengineering.stackexchange.com
1,103,711
Postfix relayhost. Connection refused
Postfix is refusing to send email as relayhost. It keeps saying: connect to mydomain.com[xxx.xx.xxx.xxx]:25: Connection refused However the port 25 is open: [CODE] I have no idea where this problem comes from. Can someone help me ?
Your relayhost requres authentication. That is, you need to prove you are allowed to send mail through this relayhost. Usually relayhost operator provides you credentials (some login and password), which you configure in your Postfix to use when it talks to the relayhost. The configuration of SMTP client authentication...
-2
1
875
2022-06-20T17:46:01.037
api_errors
serverfault.com
65,577
How to do feature selection after using pre-trained word embeddings?
I am working on a multiclass text classification problem. I want to use the top k features based on mutual information ( [CODE] ) for training my model. I started this project on ML models: I used [CODE] for feature extraction and then used [CODE] for feature selection. [CODE] This was pretty straight-forward. Next, I ...
When using a RNN, you don't feed all the data at once, you usually have a seq2seq model. The models are created with an encoder-decoder architecture. The LSTM is used in the encoding phase. So, let's say you have a text of [CODE] words. You will feed the embedding vector (size [CODE] ) of those [CODE] words, 1-by-1 int...
2
1
1,063
2019-12-29T10:48:16.557
data_quality
datascience.stackexchange.com
908,156
Find windows process that is changing time back 1 hour
I have a windows machine which will periodically change the system time, for reasons unknown. It appears to happen every hour. This windows machine is a virtual machine (Parallels Desktop 9, Win7 guest, OSX host). It has an NTP service ( NetTime ) running that promptly corrects the error, but in those brief few seconds...
Ok, as all the worst types of problems do, this one had two parts. Windows updates the system time every hour to the hardware clock. (Note it also does this on boot, which sped up testing) Parallels was virtualising the hardware clock incorrectly. I have to say I'm using an old version of Parallels (PD9), I would hope ...
3
1
4,135
2018-04-18T02:38:19.543
infrastructure
serverfault.com
388,333
How much an iterator should do
I am working on creating iterators, for strings, lists, trees, graphs, and potentially other things. First a side note. I have a string data type in my engine. The string is implemented as a bunch of small chunks separated physically in memory, let's say 256-byte chunks. So a single string might look like this in memor...
Different iterators provide different contracts. C++ probably has the most fine-grained iterator concepts, distinguishing operators that can move forward can move backwards can jump to another element by random access can read elements can write the accessed element Similarly, Java iterators only move in one direction ...
1
3
219
2019-03-10T00:35:13.197
api_errors
softwareengineering.stackexchange.com