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 |
|---|---|---|---|---|---|---|---|---|---|---|
142,851 | Trying to run a codeigniter app on custom php | I have a CodeIgniter app that I deployed to a server with php 5.2 and my dev box has 5.3, and some stuff doesn't work anymore. I didn't want to upgrade php and risk the other app on the server having issues. Anyway I compiled a custom PHP and added the following to a single .conf file in /etc/httpd/conf.d/zcid.conf wit... | Maybe have a look at this thread: http://codeigniter.com/forums/viewthread/96347/ | 1 | 1 | 1,581 | 2010-05-18T04:37:17.923 | infrastructure | serverfault.com | |
130,142 | what is correct way of adding a user in admin with role userAdminAnyDatabase doing upgrade to 2.6 | I am running a mongodb 2.4 with auth enabled and want to upgrade to 2.6 Instructions in upgrade 2.6 says: Before beginning the upgrade process for a deployment that uses authentication and authorization: Ensure that at least one user exists in the admin database with the role userAdminAnyDatabase. then upgrade binaries... | IMPORTANT The userAdminAnyDatabase user can grant itself and any other user full access to the entire MongoDB instance. The credentials to log in as this user should be carefully controlled. Users with the userAdmin and userAdminAnyDatabase privileges are not the same as the UNIX root superuser in that this role confer... | 1 | 1 | 2,574 | 2016-02-23T08:00:50.913 | database_errors | dba.stackexchange.com | |
386,202 | setup postfix or equiv to only forward to new address | Is there a dead easy way to set up an MTA to only redirect incoming mail [CODE] Yes, I've tried various postfix guides but I'm lost in configuration. Host: fresh debian Thanks, | You set your [CODE] to a file: [CODE] Then you put in the file: [CODE] you need to active the change now: [CODE] That is all. | 2 | 3 | 102 | 2012-05-04T20:57:31.787 | infrastructure | serverfault.com | |
212,582 | KVM Virtualisation, Console output no longer working | I used to use KVM for virtualisation and have now moved back to it, but I have a problem. When i used to install the guest machine with virt-install i used to use the -x "extra args" part to set the console for the install and guest, but it no longer works. Here is the command i use: [CODE] As you can see im setting th... | Check if the serial console is initialized inside the guest. Ubuntu seems to have removed this from their server distro ( by default ) so no ttyS0 comes up ever ( even if there is one ). | 2 | 2 | 1,609 | 2010-12-14T19:33:27.340 | infrastructure | serverfault.com | |
5,133 | How to make a duplicate field cheap? | There are two tables associated with each one to many in a field. In Table 2, there are fields that duplicate the value in Table 1. Is there a cheaper way to ensure (guarantee) the correspondence fields except FK-type (id, x, y, z) in unique index in Table 1? Creation of an index of type (id, x, y, z) and one FK (there... | I don't know if there's a cheaper way to create a guarantee such as you are asking. But Foreign Key constraints are the tool for the job you are wanting to accomplish. It is probably better to use the right tool for the job in the long run. A hack solution might end up being a nightmare in administration and performanc... | 2 | 3 | 104 | 2011-08-28T07:01:31.547 | data_quality | dba.stackexchange.com | |
682,851 | Puppet noob, stuck on the same error for hours | I'm trying to setup a puppet master with hiera. When I try "puppet agent --test" on the mongo node I get this error. Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by name with 'mongo.example.com, mongo.example, mongo' on node mongo.example.com Warning: Not usi... | You have to define a node in [CODE] (or [CODE] , as this is usually imported from [CODE] and is meant to keep node defs). | -3 | 4 | 1,160 | 2015-04-15T12:48:22.177 | pipeline_ops | serverfault.com | |
214,516 | nagios Missing Dependency: perl(Net::SNMP) | I have an odd problem. I'm trying to install nagios NRPE but it keeps failing with [CODE] The package [CODE] is already installed and latest version. Thoughts? The environment is Centos 5.5 with Cpanel 11 installed. | Just in case someone else is having issues with this: check your yum exclude list here: /etc/yum.conf with Cpanel installed lots of packages are getting excluded. So for the one-off install of nagios-nrpe remove perl* from the list of excluded packages, run 'yum install nagios-nrpe.x86_64' and add it back after install... | 5 | 4 | 9,319 | 2010-12-20T17:34:41.947 | infrastructure | serverfault.com | |
215,585 | Does MERGE prevent deadlocks and server blocking? | I have started looking at [CODE] as an option that I would use in my application to process [CODE] transactions. Seems that a lot of SQL Server experts are recommending this approach. However, while exploring this method I found some common problems that [CODE] can cause, for example in Use Caution with SQL Server's ME... | In the example above you will see that I use WITH(HOLDLOCK) to prevent primary key violation and deadlocks. That is necessary and (normally) sufficient to prevent PK violations with concurrent MERGE. Deadlocks depend on the other locks in your transaction, but if you have a simple clustered index key lock for your MERG... | 4 | 2 | 3,707 | 2018-08-22T12:30:02.903 | database_errors | dba.stackexchange.com | |
129,928 | rsh connection from Linux to HP times out | I added Linux boxes to /etc/hosts.equiv and .rhosts file for rsh connectivity to an HP box. I am able to do rsh as root from Linux to HP. But if I run in a root shell as different user connection times out. Any reason? | Try running rsh with the "-l" option to specify username or try [CODE] If you don't it will default to the user you are currently logged in as. | -1 | 0 | 508 | 2010-04-06T22:17:29.250 | infrastructure | serverfault.com | |
39,282 | How do I fix a broken tar file? | I have a 46GB tar file containing an .img of an old partition. Unfortunately, it produces a 0-byte file when un-tar'ed. The tar file was produced on linux, I'm on windows now. I have tried WinRAR, and tar (from unixutils). Note: It was actually originally a tar.bz2, but apparantly bzip2 defaults to deleting the origina... | Can you untar it on Linux? If you don't have a convenient Linux machine, perhaps you could set up one on a virtual machine to try. I'm sort of assuming this backup is worth the effort. Some older tools don't necessarily work properly with files greater than 4 GB in size. You may be running into this problem; it might b... | 0 | 2 | 5,051 | 2009-07-11T11:32:17.800 | hadoop_errors | serverfault.com | |
286,366 | MySQL pivot row for multiple columns | I have the following table. Same user can be associated with multiple org and the contact details should eb separtae by org. User can have multiple roles. User can have multiple working days. Tables Sample Data [CODE] user_contact [CODE] user_role [CODE] user_role_mapping [CODE] user_working_hours [CODE] I need a query... | As the error message says. When you use [CODE] and ONLY_FULL_GROUP_BY is enabled(which should always be: Then all Columns of the [CODE] have to be in the [CODE] or has to have a aggregation function So your query should be [CODE] | 1 | 1 | 723 | 2021-03-03T14:32:03.740 | database_errors | dba.stackexchange.com | |
172,405 | reducing migration time of a large size postgresql database | We have a postgresql 9.4 DB server that handles 2 DBs , each ~800GB . No replication is implemented yet. We reduced pg_dump time with using -j & -Fd options to about 2 hours. The problem is, we need to separate DBs , so we setup a fresh new server with Postgresql 9.6, but pg_restore takes a very long time ( ~2 days ). ... | Bit of a FAQ. [CODE] with [CODE] (but understand that you can't easily go back); Logical streaming replication with [CODE] Trigger-based logical replication with Londiste etc Search for zero or low downtime PostgreSQL major version upgrade. | 1 | 3 | 687 | 2017-05-01T08:59:49.243 | database_errors | dba.stackexchange.com | |
415,398 | Avoiding infinite loops in SOA / Enterprise Integration messaging | Thinking within a Service Oriented Architecture / Microservices / Enterprise Integration framework how does one avoid infinite loops when publishing messages between systems, especially when one has limited control over certain services (e.g third party SaaS products). For example: System A tracks Entity E – I have ver... | In a comment, you wrote For example A might manage a customer's bank information but C manages their credit status, all syncs are one way depending on which set of information we're handling, with each field having a defined source of truth. So the actual problem here is, changes to some attributes of an entity are ini... | 3 | 2 | 810 | 2020-08-31T10:49:52.890 | api_errors | softwareengineering.stackexchange.com | |
382,602 | Index / Unique on `deleted_at` column? | We have an Accounts table in a Postgres DB that has a unique index on [CODE] and [CODE] . Users can have many accounts, there's no product table. Occasionally users will create an account accidentally, and we will need to add that account back to their original [CODE] record, after they've collected some information on... | You're toying with the idea of working immutably. Nothing is ever destroyed. You just change things by adding new things. This non-destructive approach is disorienting to people used to the CRUD mentality. But so long as you have the storage capacity it works. Just look at wikipedia. Changes all the time and nothing is... | 2 | 1 | 827 | 2018-12-06T21:22:59.693 | api_errors | softwareengineering.stackexchange.com | |
358,575 | How to handle UI updates dependent on slow API responses | A side project I'm working on with some friends currently deals with an API interface that, for many reasons, is slow and cannot be changed to improve speed. I'm talking API responses that take anywhere from 5 seconds to 25 seconds. It's old software, but we have to integrate with it, period. After that API response co... | You don't have to block the complete UI before the response comes back. You only have to disable the parts of the UI which allow to make another API call before the first one is processed completely (in an asynchronous operation, of course!). If that is feasible or not depends heavily on the UI, the features of your ap... | 2 | 6 | 1,881 | 2017-10-04T17:13:20.620 | api_errors | softwareengineering.stackexchange.com | |
754,747 | AWS: Serve up website from private subnet? | I'm unable to get from the internet to a web page hosted on my server in a private subnet. Using this: How can I place a Webserver in a private subnet in AWS and open it to the world on port 80 as a guide, I've got the following configuration in place: VPC w/ 1 public and private subnet (both are in same AZ). Public su... | Following this: http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-security-groups.html#elb-vpc-security-groups , specifically the section: Internet-facing Load Balancer: Recommended Rules I needed to update the outbound rules of my ELB to use my instance security group. | 0 | 1 | 2,564 | 2016-02-08T14:55:55.277 | infrastructure | serverfault.com | |
151,022 | Add query executed user information to Mysql binlog | We are using MYSQL as our production database and we have setup another salve for read requests. Time to time various database users can execute insert/update queries on master database. If we want identify those executed queries (auditing/troubleshooting) we are using mysql bingos for it (reading after decoding it). F... | Not sure about general log, but this behavior belongs to auditing system. If you don't insist to write into binlog, both Oracle and Percona offer solutions: https://dev.mysql.com/doc/refman/5.6/en/audit-log.html https://www.percona.com/doc/percona-server/5.6/management/audit_log_plugin.html | 2 | 1 | 1,283 | 2016-09-29T14:28:23.250 | database_errors | dba.stackexchange.com | |
9,011 | Creating a Share with Permissions with Windows Powershell | Using Powershell how can I create a share and set access permissions. For example as follows Create share called "public" that maps to the "path c:\shares\foo" Allow DOMAIN1\Users to have read-only access to the share (this does not mean setting acls on the files, rather on the share) | This should do the trick: [CODE] Of course, you'll need to launch PowerShell with administrative rights, depending where/how you're doing this. | 9 | 7 | 43,447 | 2009-05-16T23:54:26.027 | infrastructure | serverfault.com | |
418,756 | Export Active Directory data when Active Directory is not running | We have Windows Server 2008 Standard which had an instance of Active Directory (AD) running on it. Couple of days ago our Server crashed and we could not get Active Directory to fire up. We are trying to install AD on a backup server(Windows 2008). However to actually create all entries (usernames, groups, passwords, p... | Definitely just do a restore of this machine onto new hardware from your backups. (copying from comments.) | 1 | 0 | 159 | 2012-08-17T20:07:35.040 | database_errors | serverfault.com | |
848,428 | NGINX can't access html files and downloading php files | Everything was working fine, but I did a lot of modifications and then I could get only a blank page. It was a fresh install of NGINX so I decided to delete files in [CODE] and to reinstall it. [CODE] Now PHP files won't load and strangely I can't access the file 'test.html' which is in the document root directory (/us... | I should have had the reflex of checking for errors in the nginx log file [CODE] I had in error.log: [CODE] So I killed the 2 nginx processes [CODE] which were still running whereas I had stopped the nginx service. Now everything is working again :) | 2 | 1 | 6,397 | 2017-05-05T10:37:33.597 | infrastructure | serverfault.com | |
591,290 | Retrieving kickstart and other .img file in pxe remote installation in CentOS | I am trying to installation CentOS through pxe tftp installation. Installation starts but it fails to download image files from the http server. but file are accessible on the http server. Logs from the installing system are following. [CODE] (above links are http. cannot put links because i'm new here.) I've tried fol... | if you are retrieving components by HTTP then I think your urls do not look right. [CODE] it seems it should look like [CODE] this means you might have to check the url definition | 1 | 1 | 4,432 | 2014-04-25T09:20:21.207 | infrastructure | serverfault.com | |
409,908 | design a BI dashboard system - data aggregation logic on frontend or backend? | I'm working with a system that is very similar to a BI dashboard. Basically let's say the dashboard will show a couple of company's business metrics, for example, revenue, refunds, number of orders, average order value, etc. On the front end, it will show one year's data, right now daily value will be shown on a line g... | It is hard to assess this without context. How much data is there? What are the requirements of the dashboard, i.e. is it real-time? In general, I would tend towards doing aggregation in the backend, because I think I have more flexibility there in terms of implementation options and optimization, but it depends on you... | 1 | 1 | 577 | 2020-05-08T21:32:02.607 | warehouse_errors | softwareengineering.stackexchange.com | |
1,151,981 | Permission denied for unix socket mounted in docker container as volume | I try to containerize my nginx running currently on my server. For this I created the following docker compose file: [CODE] Everything works fine but the problem is, that I still have php-fpm's running "natively" (not dockerized) on my host system and I want to use their sockets for my nginx container (hence the line [... | I've done some digging :) If you enter the container running the nginx image, you can see that there's a couple of nginx processes running: [CODE] Some are run as [CODE] , and some as [CODE] user. You have added the user [CODE] into the [CODE] group inside your docker-compose file, but even without doing that, root use... | 1 | 3 | 649 | 2024-01-21T22:32:04.760 | pipeline_ops | serverfault.com | |
478,816 | Managing svn repo with puppet/mcollective | I'm interested to hear how people manage code deployments and how they tie it into their orchestration system. I've not been able to find a good puppet subversion module which works the way I want. Say I split my application servers into two groups, A and B and I do deploys in a see-saw fashion. What I pictured, is hav... | Most release processes I have come across deploy built artefacts rather than straight checkouts from svn. The management then becomes choosing which version of a file (be it a jar, tar, rpm etc) in a repository to deploy rather than playing with svn tags which is done in a release build process. If my experience holds ... | 0 | 1 | 457 | 2013-02-14T13:24:58.727 | pipeline_ops | serverfault.com | |
1,050,090 | Ansible unable to reach multiple hosts | I'm new to ansible but are having basic issues reaching multiple hosts via ansible. I'm able to reach all hosts via ssh and also if I use ansible to target any specific host in my inventory. It successfully reaches one of my hosts but fails all the others. If I run: [CODE] It returns: [CODE] It's not consistent which h... | I finally found the solution to my issue. I feel kinda dumb but it was because my id_ed25519 was encrpyted. I entered following commands to fix the issue: [CODE] | 2 | 0 | 1,573 | 2021-01-16T14:46:07.190 | pipeline_ops | serverfault.com | |
431,340 | VPN - DC not available | i have setup a site-to-site vpn and the connection works sofar ( i can ping and rdp to the DC's IP ). But i can not join the domain because it is not available. Nslookup says "Can't find server name". Although i have setup rDNS with A/R for subnets 192.168.3.* and 192.168.150.*. Here is the setup: DC Server Windows IP ... | So many things can be wrong here. Are all the ports required to join a domain open in both firewalls? Is the Windows Firewall enabled on the DC? If so, is the DC allowing connections from ips outside of the 192.168.150.0/24 subnet? You can find a list of ports required to join a domain here . | 2 | 0 | 130 | 2012-09-24T11:37:51.440 | infrastructure | serverfault.com | |
906,071 | IPTables blocking port despite Allow rule | I have an IPtables.sh file that allows me to quickly modify my IPtables and use variables. Everything was going well until I noticed that I have a lot of connections to my Ubuntu server from my private network at home (mix of Nix and Win boxes, plus Android devices). In my IPtables I have the following variables set. [... | The rules look good, something that's tripped me up in the past that might be going on here. When you append rules (-A INPUT), they're going to be added to the end of the chain. Check you havent got something there already that will drop the packet before it gets to your rule. Instead, try inserting the rule... [CODE] | 1 | 0 | 2,154 | 2018-04-05T00:55:43.263 | infrastructure | serverfault.com | |
391,923 | At what point is having a static class with utility methods better than having an injectable service? | I have a pretty general question about the design of Angular web applications. I'm a big fan of writing services. Sometimes I write services that have only utility methods that don't require state at all (think mathematical functions and the like). I feel that even in that case writing injectable services for the utili... | Performance is not the issue here. The real issue comes in when resolving the dependencies for the code using the "static" class (btw, a class is a Function object in JavaScript or just an object literal that can still be passed around like any other value). If the "static" class is being pulled in to the page asynchro... | 2 | 2 | 1,244 | 2019-05-15T14:14:33.273 | api_errors | softwareengineering.stackexchange.com | |
473,606 | WMI Impersonation levels within vbscript / ASP code | I have an IIS 7.5 web site running "classic" ASP code (not ASP.NET) where the site is running under the normal service context, and only "Windows Authentication" is enabled. Users and navigate the site without any problem, regardless of having implicit admin rights on the IIS host or not (most do not). However, when I ... | First is the trust level of your web site in IIS. Go into IIS and make sure it's set to full so your site can access internal server resources. Next would be to double check that the users accessing the site are actually being authenticated and not running the code anonymously. Just to be sure check that anonymous auth... | 5 | 2 | 1,450 | 2013-01-29T19:13:29.223 | api_errors | serverfault.com | |
792,987 | Kubernetes rolling update that usually retains local data? | A Kubernetes application which uses local node storage to hold mutable state (as in the Kubernetes 101 example) loses its storage when the app is updated. This is a side-effect of the typical Deployment update approach of turning up new pods and turning down the old pods. This is unfortunate, as it means recopying data... | As of the current Kubernetes design local storage should always be treated as ephemeral, just like a container or pod. Not just because of scenarios like this, but because your pod could crash and be rescheduled at any time. From the volume documentation : When a Pod is removed from a node for any reason, the data in t... | 1 | 3 | 510 | 2016-07-31T14:49:51.957 | pipeline_ops | serverfault.com | |
723,717 | Windows 10 vpn change the dns settings | My Windows 10 VPN IPv4 Properties button does not work. Others have found this too. There are powershell workarounds for changing default gateway options, e.g. [CODE] What I need, is to add the corporate DNS servers at the server end to my resolvers when my client is connected via the VPN. Is there a way to either, Mak... | Known bug The do-nothing properties button on the ipv4 protocol is a ubiquitous problem in Windows 10. The problem has been widely reported long ago (before Windows 10 was even released) so do not expect a fix anytime soon. ( Update: This is fixed in Win10TH2 ) The only way I could manually set the DNS settings was to ... | 3 | 3 | 13,797 | 2015-09-21T09:57:59.157 | infrastructure | serverfault.com | |
744,531 | Secure yum-cron.conf configuration and prevent them from getting auto-updated | The last CentOS upgrade from December 3, 2015 rpmsaved the [CODE] file and replaced it with the new one on bunch of the servers I manage, which had previously been configured with the following settings in the file: [CODE] to let all the systems auto-upgrade without sending notification messages. Unfortunately, both se... | The best way, IMHO, would be to file a bug against RHEL 7 (from which CentOS is a simple rebuild), asking that this file be marked as a configuration file instead of a normal payload file. That is the best fix, but will probably also take longer than you care to wait. The best workaround I can come up with is the set t... | 4 | 4 | 857 | 2015-12-21T15:44:56.993 | infrastructure | serverfault.com | |
931,708 | How to force the notifications of Defender Firewall using GPO? | I am preparing a set of GPO to harden W10. I enabled the Defender firewall blocking most of the connections but I also wanted to leave the notifications for helping me with the fine tuning of the settings. So I can get feedback of flows and applications that might need to be allowed. Firewall notification message I alr... | Mistery solved for now. At the end, I think I found a little bug in the Firewall GPO. Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security\Domain Profile\Settings Display a notification --> No Configured Computer Con... | 1 | 1 | 1,931 | 2018-09-19T14:42:41.273 | infrastructure | serverfault.com | |
38,809 | MySQL: parallel restores at same time from backup files? | Slightly related to this question, but for MySQL: Would it be possible/wise to execute 2 parallel restores from a single backup? Is it possible/wise to do a parallel restore of two independent databases from two separate MySQL dump files? Restoring one of them seems to only take up about 10% of CPU cycles consistently ... | This should not be a problem as long as the data in the two dump files involves different tables... however, it may or may not be as helpful as you might hope, because if the single restore is only using 10% cpu, that suggests that your disk, as opposed to cpu, may be the more significant determining factor in limiting... | 1 | 2 | 1,444 | 2013-03-28T22:14:04.950 | database_errors | dba.stackexchange.com | |
57,178 | SQL Area Unexpected Expansion | We are using Automatic Memory Management on Oracle 11.1.0.7. Last week Friday the Shared Pool unexpectedly increased from ~600MB to ~850MB. The memory came from the buffer cache which went from ~400 to ~150. Needless to say the system is doing significantly more disk reads than before. So far I haven't been able to pro... | Reboot! | 0 | 0 | 183 | 2009-08-21T14:51:02.310 | database_errors | serverfault.com | |
1,058,936 | How to use another DNS Server when the PC is not in domain? | I have two DNS servers (on DCs) in my domain that my clients use when they are connected direct in office or with VPN. I want to set up another external DNS server, and tell the PCs to use this server when they are not in domain. Is this possible via a script or GPO? Thank you for the answer Emil, Esa is right, my Lapt... | Yes! This post describes the one-liners you would probably use for setting dns. Like this one: Primary value: [CODE] For actually doing this specifically to clients outside of domain, i would suggest trying to combine netsh command with an if that checks for domain... which also is shown here : [CODE] Also you could ru... | 1 | 1 | 192 | 2021-03-31T11:11:31.390 | infrastructure | serverfault.com | |
95,760 | Number of effective spindles in a RAID array? | Ok, simple question here. When doing performance calculations on RAID arrays that involve number of spindles (such as measuring disk queue length), how many "spindles" do I use? The array in question is RAID 6. Should I use N-2 spindles? N-1 if it were RAID 5? | You can't simply subtract the number of parity disks from number of total spindles and end up with useful results if you're doing IOP transaction calculations. There's more going on behind the scenes: RAID 10: 1 frontend read translates into 1 backend IOP (d0 read) 1 frontend write translates into 2 backend IOPS (d0 wr... | 2 | 4 | 6,269 | 2009-12-18T18:02:12.387 | infrastructure | serverfault.com | |
784,146 | Monit cannot read content | I've installed the latest version of Monit and created a very basic rule: alert me when the word "Google" cannot be found on google.com (deface check). I keep getting following error: failed to [www.google.com]:443/ type TCP/IP using SSL/TLS protocol HTTP Should I open some kind of different port if I want to check the... | Here you are trying to access http://www.google.com but it seems google is now only supporting httpS. Try to change your rule to use HTTPS: [CODE] Syntax is more like (didn't try to validate it so not sure) [CODE] | 0 | 0 | 221 | 2016-06-15T15:16:00.827 | infrastructure | serverfault.com | |
948,391 | GKE nodes fail to upgrade | I hope this is the right place to ask, I've followed all the support links from the GCP console which have led me here! In the past I would frequently keep my GKE k8s master and nodes up to date using the GCP console. This all worked seamlessly... until now. And I have no idea why. I've found some GKE Stackdriver logs ... | Back in business! Both the node upgrade failure and SSH failures have been resolved after upgrading to 1.11.6-gke.2. Could it have been related to the Endpoint API fixes noted in the Jan 14, 2019 release notes ? Thanks for the support! | 0 | 1 | 588 | 2019-01-10T08:00:53.003 | pipeline_ops | serverfault.com | |
810,884 | XenServer 6.5 - Failing creating Virtual Disk Images on a SR set on an USB External Drive | I have a test server running XenServer 6.5, which precisily is the version 6.5.0-90233c. By now I have two linux (Debian and Ubuntu) VMs smoothly running. I have attached a 1TB USB drive in which I successfuly set the whole disk as a storage repository (SR). What I want is to create virtual disk images to be attached t... | I think you tried to create your file on a system that doesn't support o_direct. Are you using ZFS? You have the 'o_direct' parameter set to false in the log, but actually td-util does not open the file without passing O_DIRECT, its source code doesn't allow to pass an argument to avoid O_DIRECT. | 1 | 0 | 1,185 | 2016-10-24T10:27:02.250 | infrastructure | serverfault.com | |
1,045,213 | Refresh host a records for a server when changed in domain controller | In Active Directory DNS Manager, when I change the IP Address of a Host A record, how can I ensure the changes are replicated to all or specific computers in the domain. When I change the IP Address to another server, when I ping the FQDN on the computer, it resolves the old IP Address; even after a restart. I have tri... | You need to clear the cache of the DNS server itself too. See here in the section "Clear DNS Cache on Windows DNS Server". | 0 | 0 | 1,336 | 2020-12-06T15:38:20.867 | infrastructure | serverfault.com | |
219,721 | Optimize apache for 10K+ wordpress views a day on 2GB RAM E6500 CPU | I have a dedicated server with apache/php on ubuntu serving my Wordpress blog with about 10K+ pageviews a day. I have W3TC plug in installed with APC. But every now and then server stop responding or goes dead slow and i have to restart apache to get it back. Heres my config what am i doing wrong? [CODE] | My WordPress Performance and Caching Stack This is a great WordPress performance stack for a low to mid range single server or VPS. I am classifying mid range as single core with around 1G of memory and fairly fast drives. On your box this would be capable of serving over 10K page views per hour Server Stack Linux - Ei... | 10 | 23 | 21,649 | 2011-01-07T05:45:20.057 | api_errors | serverfault.com | |
137,830 | Jumping around to work on different features when you get stuck, is it a source of project failures? | On personal projects (or work), if one gets stuck on a problem, or waiting to figure out a solution to the problem, if you jump to another section of your code, don't you think it will be a good reason your application will be buggy or worse yet never get completed? Assuming you are not using git and code each feature ... | This is not a issue. Temporarily stepping away from a perplexing problem is one of the best ways to have a breakthrough on such a problem (either later when you are thinking about it or the next time you sit down with a fresh perspective/mind). Always make sure you utilize source control branching properly and you wont... | 16 | 33 | 646 | 2012-03-01T20:19:52.400 | api_errors | softwareengineering.stackexchange.com | |
152,349 | SQL Server Try Catch Transastion | I need to know if the T-SQL below is correct to roll back if something bad happens. I first create a temp table [CODE] then I populate the table [CODE] Then I start my try catch [CODE] I noticed when I did the insert into the [CODE] the columns didn't line up and I got an error. I expected things to roll back but in SS... | You want to do the [CODE] prior to the [CODE] : [CODE] Also, please schema-qualify references to database objects such as tables, views, stored procedures etc. Also, you should get in the habit of adding semi-colons to the end of each statement. [CODE] is not necessary if you are explicitly rolling back the transaction... | 1 | 3 | 434 | 2016-10-14T22:49:50.297 | database_errors | dba.stackexchange.com | |
157,095 | Multi cores/CPUs with locks | I'm not sure how the locks will work with multi processors/cores, I'm going to use shared memory in my application or FIFO, what worries me is the locks, I have a server with 2-CPU, how the lock will be able to lock a variable on one CPU while the another operation went to the 2nd CPU for the same variable? I'm in Linu... | Intel articles offers a good point of view about this. Also there is a small article about the top 3 solutions in multithreading programming . You didn't specify this, but if you are on Linux and you are programming in C you are probably talking about pthreads and this is a beginner tutorial that covers the main aspect... | 2 | 2 | 2,351 | 2012-07-17T16:31:48.653 | api_errors | softwareengineering.stackexchange.com | |
35,144 | What network-connectivity scenarios should be tested for a generic cellular IoT device? | I'm working on a variety of cellular IoT products. I have developed a sense of which parts of cell stack tend to go wrong, which guides my test cases: SIM card may or may not be present, therefore test the device in both scenarios Network APN may change; therefore test how the device responds when a network connection ... | For a purely abstract, general-purpose cellular IoT device, what edge cases are worthwhile to include in a test plan for network connectivity functions? It seems like you're trying for a universal test approach for similar IoT devices. Without being too general, here are some tips that might help: One approach that's e... | 2 | 1 | 60 | 2018-08-08T23:35:17.820 | data_quality | sqa.stackexchange.com | |
48,990 | What's the best way to plot a bar graph with large numeric difference in values? | I'm graphing the value of the Ruble against the US Dollar in the 1990s. There was hyper-inflation from 1992-1997 (where the "y" values expanded from 125 to 6000). On Jan 1st 1998, the government revalued the money to 5. Since then the number has trended upward but has only reached 70 or so. This creates a problem in my... | A log scale will make the difference before and after revaluation look less extreme, and a log transformation is usually pretty defensible for things measured in units of currency (especially when there are no 0-value entries). Other transformations exist, but since this is mostly for aesthetics I don't think that you'... | 0 | 1 | 1,115 | 2019-04-09T19:52:28.847 | data_quality | datascience.stackexchange.com | |
69,990 | What is the proper way to store a full table of data outside of a database? It needs to be able to be restored as well | I have a large SQL Server 2005 database that hasn't had the best maintenance over the years (I just took it over recently). There are around 100 tables that can be completely removed from the database, as well as some that just need data after a certain point removed. My employer wants to keep the data, but not in a da... | My employer wants to keep the data, but not in a database, and wants to be able to restore it to that database if the need arises. If you want the data to be restored later, then best is to Script out schema of the tables that you wish to drop and save it as a sql script. BCP out the data (without using -n switch as -n... | 4 | 3 | 2,445 | 2014-07-08T20:29:59.413 | data_quality | dba.stackexchange.com | |
232,440 | Copy/move data from one cassandra server to another | I'm in the midst of replacing a kubernetes stack (to more specific: moving it from a locally hosted cluster to an AKS cluster in Azure), and as a result have to re-create all of my services, including a Cassandra service. All of the data that is contained in the existing Cassandra has to be copied into a new one. Howev... | This is how I did by moving data from one VM to another in azure. Didn't test this in kubernates. Ex:- Below is process to migration 4 node old cluster to 4 node new cluster. OLD CLUSTER (node A) => NEW CLUSTER (node A), OLD CLUSTER (node B) => NEW CLUSTER (node B), OLD CLUSTER (node C) => NEW CLUSTER (node C), OLD CLU... | 2 | 3 | 4,457 | 2019-03-18T14:48:10.693 | database_errors | dba.stackexchange.com | |
61,577 | Process of solving a problem using ML | newbie here. I finished a couple of online courses and read Intro to Statistical Learning, thinking of working on a personal project and would appreciate it if you can clarify some issues: What does "cleaning" the data consists of? How do you know if your data needs cleaning anyway? What features of the data determines... | Going to your first question, What does "cleaning" the data consists of? How do you know if your data needs cleaning anyway? Cleaning refers to the various processes to transform the data so that we can utilize it to the fullest. Removing unwanted features, incomplete entries, NaN or null values ( if the dataset is num... | 0 | 0 | 46 | 2019-10-10T20:03:05.377 | data_quality | datascience.stackexchange.com | |
23,354 | Removing/overwriting sensitive data located in already deleted records in ibdata files | As far as I know, using InnoDB tables with [CODE] does not prevent deleted data from being visible in the [CODE] file. I know this is by-design, and that I could switch the system setup to use [CODE] , which would allow the system to shred the [CODE] files containing the sensitive information, however there is "no serv... | Switching to innodb_file_per_table is not enough because ibdata1 would still be the same size. Any tables that were inside ibdatat1 and you ran OPTIMIZE TABLE against, it would simply manifest the table and its indexes to a [CODE] file. You would still have the footprint of the table inside ibdata1. You are much better... | 1 | 2 | 1,714 | 2012-08-29T15:37:25.720 | warehouse_errors | dba.stackexchange.com | |
975,298 | Accidentally deleted python and yum is not working in centos7 | I am new to linux and was trying to delete python so I can install it from scratch. Instead of deleting only the python files in /usr/local/bin/ I also deleted these: [CODE] Now whenever I try to use yum I get: -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory Is there a way to fix this o... | You can simply download the packages and install them again with [CODE] , without having python on your system and a broken [CODE] . Find the version you had installed [CODE] Then find a download URL and either download and install in one go or in separate steps: [CODE] | 12 | 21 | 13,684 | 2019-07-15T11:15:20.230 | infrastructure | serverfault.com | |
992,144 | Cannot access Azure without VPN | I'm having trouble accessing my VM (hosted in East Asia, HK) after obtaining a new public IP address. I'm in mainland China (and thus behind the Great Firewall - not sure if this is relevant). I was able to RDP to it fine previously. But after getting the new public IP, there have been connection problems. I still rece... | I don't think this is an Azure problem, I think it is a Great Firewall issue. If your getting the certificate warning then you are able to make the initial connection to the machine, which indicates there is no IP level block at the Azure side. The fact that your RDP connection fails points at something blocking that a... | 0 | 0 | 196 | 2019-11-16T22:01:45.390 | infrastructure | serverfault.com | |
976,991 | Google cloud load balancer health check issue | I just created 2 VMs instance for my web service. I bind two ports 80 and 8080 for different web service. Firewall policy was allow tcp:80 and 8080 First, I created a http load balancer (80 port) everything was fine. Then I created a tcp load balancer (8080 port) the health check always fail. load balancer fail Since t... | Assuming your health-check for 34.80.167.244:8080 is properly configured to test port 8080 with protocol HTTP, I would suggest you double-check the following: As described here , the Network Load Balancer uses legacy health check and the source IP addresses for GCP probe systems are different. Make sure you create an i... | 0 | 1 | 4,627 | 2019-07-28T02:06:39.873 | infrastructure | serverfault.com | |
819,393 | Pointing DNS to the Web | So, I'm at my wits end here. I've been dealing with this issue off an on for months, and about a week this time around. I have been using Fatcow as a Nameserver for some time, it started off as hosting; now all domains are parked and are hosted on site. Now, the only thing they host are the nameservers and email, both ... | Use http://websistent.com/tools/open-port-check-tool/ to see if 53 is open or not. | -2 | 0 | 47 | 2016-12-07T21:29:47.040 | infrastructure | serverfault.com | |
1,050,069 | OpenVPN cannot Disable -ncp-disable Cipher Encryption | Would be really thankful if anyone could help. My OpenVPN version is 2.2.1-8 according to [CODE] According to numerous sources you have to use -ncp-disable in order to turn off encryption on your server side. Now I have tried all of the following (separately and one by one of course): [CODE] but none of them works afte... | Your OpenVPN is quite old. And [CODE] does not disable encryption. Official OpenVPN manual says: [CODE] OpenVPN introduced a cipher negotiation in version 2.4, and this directive is meant as a debug aid to disable negotiation and to work like previous versions, which just used whatever is configured with [CODE] option ... | 1 | 1 | 16,552 | 2021-01-16T09:39:06.243 | infrastructure | serverfault.com | |
194,419 | SQL Server 2008 R2 Standard Edition not using more than 32GB for BufferPool | I had SQL Server 2008 R2 Standard running on Windows Server 2008 R2 Standard with 32 GB of installed Memory. Since SQL Server 2008 R2 Standard can use 64 GB memory, Windows was upgraded in-place to Enterprise Edition and memory increased from 32 GB to 64 GB. SQL Server 2008 R2 Standard max memory was then increased fro... | In case someone reads this article in the future, SQL Server 2008 R2 on Windows Server 2008 R2 Enterprise (upgraded in-place) can and does use 64 GB RAM. Windows was patched last week and rebooted. After reboot: [CODE] Result: [CODE] | 2 | 2 | 409 | 2018-01-02T21:22:37.037 | database_errors | dba.stackexchange.com | |
927,360 | gcsfuse : connection to bucket drops and bucket has to be mounted again | I am running gcsfuse on a GCE and mounted a GCS bucket correctly. I am running a python program that needs to access data from that bucket. To avoid interrupting the program when the GCE connection sometimes drops, I am using a screen, so that the program still runs when the connection drops. However, sometimes (once a... | As far as I understand not every connection drop you are losing the bucket access, in some connection drops when you reconnect buckets are accessible, right? I couldn't reproduce the issue. I only lost the bucket access when the instance is restarted. Why your GCE instance is dropping connection? Can you try to set TCP... | 0 | 0 | 572 | 2018-08-21T14:46:32.950 | infrastructure | serverfault.com | |
592,492 | Updates to a BIND dynamic zone that is shared between views delayed | Here's the quick and dirty: On BIND9 with a dynamic zone that's shared between views , doing a nsupdate, updating/creating/deleting a record will work fine if I query for that record from a client that falls into the same view I did the nsupdate from. Querying from a view that isn't the same as the one I used to nsupda... | Different views act separately, it's essentially a convenience over running separate instances of named. If there are zones with the same name in different views this is just a coincidence, they are still entirely separate zones, no more related than any other zones. Having multiple separate zones use the same zone fil... | 8 | 7 | 12,321 | 2014-05-01T13:56:19.217 | infrastructure | serverfault.com | |
25,831 | Regularly import tab-seperated log file to MySQL | I'm looking to keep arpwatch entries in a MySQL database to crossreference with other information I'm storing based on mac addresses. I've manually imported the arpwatch database into my mysql database, but being a novice with databases I'm not sure what the best way to continually update the database with new entries ... | Sure, a simple script can parse the results of the tool and insert rows into the database. You can make composite unique keys in mysql: [CODE] If you try to insert a dup, it will fail (but will you ever have a duplicate time?). | 1 | 0 | 200 | 2012-10-11T21:52:01.733 | database_errors | dba.stackexchange.com | |
128,176 | Apache only transferring partial content from a Samba share | I have an Apache server running on CentOS 5.3. It currently hosts 12 sites with no known issues. (I say this to point out that up to this point my Apache installation has performed flawlessly) I'm adding a new site where the DocumentRoot of the new VirtualHost is a Samba share. When at the command line of the server I ... | Inside the your Apache configuration set the following Directive: [CODE] [CODE] [CODE] That worked for me! | 3 | 4 | 302 | 2010-03-31T17:02:21.767 | infrastructure | serverfault.com | |
325,917 | Moving huge amount (30+ TB daily) of data from AWS to on-prem Cassandra cluster | We started with the first approach listed below using sstableloader. We have a blocker now. Please find below the details of all the work we have done. Looking for suggestions on how to move the data. Thanks! Sstableloader : AWS JSON data dump is transformed to SSTables by a Spark app and written to the local disk of s... | How many sstables do you copy to Cassandra? and how many nodes in the cluster? Depending on the number, option 2 might be good, but you'd essentially copy every sstable to every node, then run 'nodetool refresh keyspace table' for all tables involved. If your number of nodes is greater than the number of replicas thoug... | 2 | 2 | 188 | 2023-04-12T14:29:50.837 | database_errors | dba.stackexchange.com | |
72,359 | Noramlization Time Series to Predict Stocks exact Price | I am trying to made a model for neural network that tries to predict prices of the stocks point by point using a LSTM (yeah I know that probably did not get anything and I should predict up/down or something realted boolean decision but I like to try this first) I wil use as features HIGH, LOW, OPEN of last 60 days and... | You should always fit the scaler with the train data. This is one of the typical validation problems, it is hard to replicate train test conditions. Have you considered doing rolling/rollout window split? This way the range of values will be closer between train and test. THe problem of this is that you loose some of t... | 1 | 1 | 95 | 2020-04-15T08:38:01.357 | api_errors | datascience.stackexchange.com | |
385,360 | MySQL high "sy" (kernel) CPU time | My MySQL server runs about 100 writes and 500 reads per second. The CPU usage looks strange to me. "us" (user) time shows 2-8%, while "sy" (kernel/system) time often shows 50+%. Here's some vmstat output: [CODE] And here is some mpstat output: [CODE] Is this normal? How could I troubleshoot very high "sy" CPU usage? I'... | [CODE] is good, but [CODE] adds somewhat more. Can you post its output as well? UPD. on mpstat : it looks like I/O bursts impacts sys notably, though one can't say it's the main reason, yet. What is your storage, what FS does it use, have you considered reducing I/O stress? UPD. on FS : Meanwhile XFS is a great FS for ... | 1 | 3 | 3,526 | 2012-05-02T16:59:18.300 | database_errors | serverfault.com | |
612,433 | Ansible ssh as user and execute has root (expect like) | I have to administer an important number of hosts where there is only one user able to access from SSH (let's call him foo) and then have to login as root to execute privilegied commands. Foo user doesn't have any kind of sudo privileges so I'm forced to login as root to execute privilegied commands. I'm actually using... | With [CODE] , you can use [CODE] or [CODE] : [CODE] You could also do that from the command line: [CODE] This functionality has been available since this pull request , and is present in current 1.6.6. | 8 | 13 | 27,809 | 2014-07-14T15:35:29.870 | pipeline_ops | serverfault.com | |
10,301 | Jenkins Plugin Install Failed | I am trying to set up new Jenkins. When I download Suggested Plugins OR try to install any plugin I am getting below error. I am using Jenkins Latest Version 2.204.1 . I have set up this on VM . I am getting this error for all the plugins even when I am trying to install suggested plugins during the initial setup, that... | You can try 3 different things- Try pinging https://updates.jenkins-ci.org/download/plugins/ and see if it gets any response. If it doesn't respond then make sure your internet is working fine. You can try installing the plugins by connecting to a VPN. Lastly, you can reinstall Jenkins to see if the error persists. | 1 | 1 | 7,080 | 2019-12-25T09:22:33.847 | pipeline_ops | devops.stackexchange.com | |
978,212 | Ansible, retrieve ip address for a given network interface via variables | I am currently facing an issue with my ansible role, actually my ansible role installed NRPE server on Linux. In some case, those servers have multiple NIC and need to bind the NRPE server to one particular NIC (dedicated for the monitoring network). My goal is to retrieve the IP address of a named network card (which ... | If your playbook has [CODE] or if you run a [CODE] task in your playbook there should be a variable like this available. [CODE] If you want to see all the possible variables that are normally discovered run a command like this [CODE] . I try to build the following variable {{ ansible_{{ nrpe_address_server }}.ipv4.addr... | 2 | 9 | 14,584 | 2019-08-06T20:17:49.840 | pipeline_ops | serverfault.com | |
603,901 | VLAN Tagging Traffic on Cisco Switch | I have a situation where I'm setting up multiple VLANS on a pfSense firewall on the same physical interface for a client. So in pfSense, I now have VLAN 100 (employees) and VLAN 200 (students - student computer lab). Downstream from pfSense, I have a Cisco SG200 switch, and coming off of the SG200 is the student lab (r... | Assuming that all the equipment attached to the student lab switch (the 2950) is supposed to be on the student network, and you never have a need to put staff computers on it, it's actually much simpler than that. Leave the 2950 alone - no configuration of VLANs. Everything runs untagged. The advantage here is when the... | 0 | 0 | 2,562 | 2014-06-09T18:12:00.423 | infrastructure | serverfault.com | |
33,252 | Why is "DbccFilesCompact" status is "Suspended"? | I am running SHRINK file on a 600G data file. Currently, status is reported as "suspended" and [CODE] for [CODE] command reports that it is running (but very slowly) Is there a way to check why it's being suspended and how to make it run smoother? FYI - SQL Query for Checking Status [CODE] | No, you can't check why it's running slowly, but I can give you some hints: 1) In SQL 2005, the management of nonclustered indexes changed from the Storage Engine (my team) to the Query Processor. This has many side-effects, one of which is the speed with which heap data pages can be moved by shrink. All nonclustered i... | 12 | 11 | 47,852 | 2009-06-29T13:46:05.563 | infrastructure | serverfault.com | |
183,840 | How should non-functional changes be committed? | I'm working a small-to-medium legacy codebase and when working on a ticket I will come across code that should be cleaned-up or that I need to clean-up just to be able to understand the follow of the application. A real example is: [CODE] Another is fixing typos and Engrish in comments and documentation across a dozen ... | I follow a process similar to Karl's answer. I prefer a separate commit of the cleanup / refactoring prior to the feature changes for a few reasons: Separating the two commits will explain your process and thinking better to others who look at the logs. It provides a specific set of changes useful during a code review.... | 9 | 11 | 2,143 | 2013-01-16T16:19:57.250 | data_quality | softwareengineering.stackexchange.com | |
414,580 | Rust/specs – what is the good/idiomatic way of design level walls/static objects handling in an ECS architecture | Warning : long question ahead, don't be afraid, I just tried to be as precise as possible about details for who wants them but many paragraphs are skipables if you already understood what I want ;). Context: I passed the last few weeks learning Rust (reading The Book , writing small apps and toying), and I'd like to st... | Typically you'd store these types of things in the standard ECS scene as usual with the data in one or more components. Where I'm thinking you might be hung up a bit is that the ECS isn't there to give you things like efficient collision detection or frustum culling off the bat. It's there to give you a very flexible w... | 2 | 1 | 390 | 2020-08-07T18:19:06.427 | api_errors | softwareengineering.stackexchange.com | |
314,584 | Does the SQL AG based corruption resolution work for a enterprise edition read scale AG and for basic AG? | SQL provides 2 kinds of AG architecture. Basic AG (when either of the server has standard SQL edition) Enterprise edition AG for HA Enterprise edition AG for read scale (this doesn't require WSFC) I am reading the SQL AG has a concept of automatic page repair upon corruption detection. Does the SQL AG based corruption ... | SQL provides 2 kinds of AG architecture. I wouldn't call those architectures, I know this wasn't your question, but it needed to be pointed out. Does the SQL AG based corruption resolution work for a non HA AG (that is - read scale AG [which is AG without the WSFC])? Yes. Does this work only with enterprise edition or ... | -2 | 2 | 31 | 2022-07-19T12:43:55.667 | data_quality | dba.stackexchange.com | |
536,334 | Intranet BIND server fallback to internet DNS servers? | On our local small business network, we have a need to run a intranet-only BIND (named) DNS server for only local, intranet-only addresses. For example, we do a lot of web development on the network, so having a DNS server to manage local addresses (example: testsite3.local) is beneficial. One aspect of this we are uns... | DNS clients do not work like this, they do not "fall back" to the other records. A properly-functioning DNS client should choose a server at random from its configured list to spread the query load evenly, and have alternate servers in case one should go offline. If you need to serve both internal and external DNS reco... | 1 | 2 | 3,289 | 2013-09-04T16:53:18.697 | infrastructure | serverfault.com | |
78,038 | PySpark Crossvalidation error | I want to do a very simple cross validation using LogisticRegression. Here is my code: [CODE] When I run this, I get the following error on [CODE] : [CODE] Here is my [CODE] dataset's schema: [CODE] I have fit this to a LogisticRegression before and it predicts fine. Can you help me figure out what I did wrong? | For some reason in cross validation we also need to set the label column of the evaluator (even tho it's already set for the estimator. So all you need to do is change [CODE] into [CODE] where "churn" is the name of your target variable. | 0 | 2 | 1,198 | 2020-07-20T16:50:15.233 | data_quality | datascience.stackexchange.com | |
791,438 | Postfix 2.11.3 Mail gateway: Recipient address rejected: User unknown in local recipient table | I am trying to recreate a mail-gateway for spam/antivirus-checks on a new debian system (Postfix 2.11.3) coming from an older OpenSuse Installation (Postfix 2.6.5). I tried to test it with "telnet localhost 25". When sending test email to the postmaster adress on the local server, everything works fine, however, if i u... | As this is a mail gateway, I think you should use the relay_domains parameter: [CODE] In order to accept only valid users, you need to add a relay_recipient_map parameter as well. | 0 | 0 | 2,689 | 2016-07-22T15:04:00.597 | infrastructure | serverfault.com | |
1,095,811 | How to limit log size on Elastic beanstalk with Corretto 8/Amazon Linux 2 platform? | We recently migrated one of our applications to the "Corretto 8 running on 64bit Amazon Linux 2/3.2.12" platform. Now we're seeing the issue that the log files are filling up our disk volume in a span of a bit over a week. We didn't have the issue before. What's annoying is that we're streaming those logs to cloudwatch... | If you look at [CODE] , you will find that there is already a provision to rotate the file [CODE] . But the configuration does not compress the rotated files and it keeps up to 4 weeks of rotated logs. This is okay for light use but on a server app which stream logs for each access, this can quickly exhaust the disk. A... | 3 | 1 | 1,911 | 2022-03-10T08:25:03.507 | database_errors | serverfault.com | |
176,057 | Is this really in 3nf? | I cannot comment on https://stackoverflow.com/questions/8437957/difference-between-3nf-and-bcnf-in-simple-terms-must-be-able-to-explain-to-an-8 , so I have to post my question here. It is about the relations on this table cited as the most favored answer on that thread: [CODE] According to the source of the answer, it ... | The example is provided in the answer in the linked question. The author of that answer - and example - states that [CODE] is a candidate key of the relation - ther's also discussion in the comments below the answer. So the example has the added restriction that every pizza has not more than one toppings of any type. T... | 0 | 4 | 109 | 2017-06-12T13:42:37.870 | warehouse_errors | dba.stackexchange.com | |
757,312 | One disk accessed more than others during md RAID6 rebuild | I am rebuilding one drive of an 8-drive RAID6 (using 'md' Linux software RAID), and have noticed that it doesn't seem to be going as fast as it could, presumably because one of the drives is being sent twice as many IOPS as the others: [CODE] (sdh is being rebuild, and sdg is getting more IOPS than I would expect). (I ... | My initial guess was that [CODE] had identified a problem with [CODE] , and was trying to pull data off of it "sooner" so that it could be replaced, too. That's not how [CODE] works, though (some hardware controllers might happen to do that - unsure). Lots of drives in an array slow down rebuilds ( pdf ) - from a rebui... | 2 | 1 | 202 | 2016-02-15T14:51:55.367 | infrastructure | serverfault.com | |
517,783 | Problems with port forwarding on a Arris TG862 | I am having a heck of a time getting port forwarding setup on an Arris TG862. I am trying to forward port 80 to a machine on my network but I am having exactly zero luck. Here is my setup: The Arris is the modem/router and DHCP is running on it. The NAT mode is RoutedWithNAT. Now plugged into the Arris is another route... | Did you try accessing it outside of your lan, from the internet? I had the same problem here, and the issue seems to be the Arris does not forward for the internal lan. None of the firewall settings had any effect when on the private network. I'm struggling to find if this is by (bad) design. So yes, Virtual Servers (p... | 0 | 2 | 4,762 | 2013-06-22T14:18:08.987 | infrastructure | serverfault.com | |
24,179 | Improve 2D data handling to classify according to sign of slope | As a stepping stone towards a project involving classification of data points having multidimensional and imaginary features, I decided to try to solve first a simple problem: given 2 random points with coordinates (x1,y1) and (x2,y2), can a program classify the data according to the sign of the slope these two points ... | Increasing the number of data points and using KernelPCA. Increasing the number of points for the PCA model increased also the scores of that model, something I overlooked. Furthermore, going to a KernelPCA component analysis also looked promising here (using 'rbf' kernel and n_dimensions=20 for the kernel model). All ... | 0 | 1 | 224 | 2017-10-29T17:32:44.413 | pipeline_ops | datascience.stackexchange.com | |
75,076 | The "blub paradox" and c++ | I was reading the article here: http://www.paulgraham.com/avg.html and the part about the "blub paradox" was particularly interesting. As someone who mainly codes in c++ but has exposure to other languages (mostly Haskell) I'm aware of a few useful things in these languages that are hard to replicate in c++. The questi... | Well, since you mentioned Haskell: Pattern Matching. I find pattern matching to be much easier to read and write. Consider the definition of map and think about how it would be implemented in a language without pattern matching. [CODE] The type system. It can be a pain sometimes but it is extremely helpful. You have to... | 39 | 17 | 6,146 | 2011-05-10T03:40:40.967 | api_errors | softwareengineering.stackexchange.com | |
53,839 | How to recursively search and replace from command line on unix/linux system | So I want to change several files at one with one command. This is what I have so far: [CODE] What it does: I find files with extension ext, send it to grep ignoring errors, and then send it to sed for replacement with new filename file.ext.new. The problem seems to be that the redirect > in the sed prevents the {} fro... | If you can live with the file being updated in place and a backup created. [CODE] Edit: If you absolutely can't have the files that way round - modified file in place and original with an extension - then you could bolt an extra command on the end of the exec to move them around. | 0 | 3 | 3,139 | 2009-08-13T16:34:37.613 | infrastructure | serverfault.com | |
11,010 | Word analysis in Python | I have a list of documents which look like this: [CODE] These text documents are just free text. I have processed with tokenization, lemmatization, stop words removal, and now I want to assign tags based on a list of words. Example: [CODE] After text normalization I have: [CODE] What technique is recommended to compare... | You can use word embedding in order to compare whole phrases. I am aware about two models: Google's word2vec and Stanford's GloVe . Now, word embedding works best with, well - words. However, you could concatenate every word in your phrase and re-train the models. Afterwards, you could calculate their similarity (say, ... | 3 | 1 | 1,259 | 2016-04-03T08:11:14.220 | data_quality | datascience.stackexchange.com | |
857,584 | How do I transfer a resource group from a disabled subscription? | We had a BizSpark subscription which expired. I had assumed it would just start billing me, but instead the actual Azure subscription became disabled with a status of "Disabled by administrator." After checking with the actual administrator of our BizSpark account, he did not disable it and cannot reactivate it. (Serio... | Raise a ticket with Microsoft billing support within Azure Portal and explain the situation. They should reactivate your subscription by adding the necessary credits for 1-day operation. That's enough time for you to migrate the resources, assuming these resources are movable. That happened to me before, but I can't at... | 6 | 5 | 9,783 | 2017-06-23T18:55:14.537 | spark_errors | serverfault.com | |
10,021 | How securely to keep google cloud service account key? | How securely to keep google cloud service account key? I want to ask about how we should securely keep service account key. The scenario looks like: Our product is connecting to BigQuery. We have project which is used only by developers as playground. We need to run integration tests in pipelines and they needs service... | I would recommend you use their Google Cloud Secrets Engine. Documentation is here: https://www.vaultproject.io/docs/secrets/gcp/index.html Managing such sensitive secrets by any means other than a Vault service is dangerous. | 1 | 1 | 118 | 2019-12-04T08:42:31.027 | pipeline_ops | devops.stackexchange.com | |
117,683 | NLP vs Keyword-Search. which one is the best? | I have constructed a natural language processing (NLP) model with the aim of identifying technology keywords within text. The model is trained on a large dataset that contains over 400,000 phrases and has been annotated with approximately 1000 technology keywords, of which only the keywords that I provided in the datas... | To add to @noe answer, you will face more issues when working with real data. Here are some examples: You might find sticky words. Ex: python,django,fastapi. You might find an alternative word. Ex: Python3.7. Sentences might be longer in real life than your training data. It will depend on how you prepare the sentences... | 0 | 1 | 92 | 2023-01-11T02:15:48.517 | data_quality | datascience.stackexchange.com | |
29,969 | Can't grant role permissions under sysadmin login | I'm trying to execute this script from Management Studio: [CODE] Execution fails with this message: Msg 15151, Level 16, State 1, Line 1 Cannot find the role 'AdaptTemplate', because it does not exist or you do not have permission. There are existing roles [CODE] , [CODE] and user [CODE] in database. User [CODE] is a m... | This is happening because the principal in the AS clause needs to have the permission with the "GRANT OPTION". Running this will allow you to run your original code: [CODE] My reading of Books Online made me think that what you're doing is right since AdminSapr is in the db_owner role but in testing I had to do somethi... | 1 | 2 | 9,406 | 2012-12-07T08:30:11.927 | warehouse_errors | dba.stackexchange.com | |
397,748 | wget not saving file as the triggered file to disk | What I am trying to do is download a file from a url like this: http://www.example.com/down/files/425/document-preview ? When I visit this url in my browser, it triggers a file called for example: 425.doc this can be a pdf, rtf, txt, docx etc. file format. wget is currently saving this file as: document-preview? is the... | The complete solution to the problem as stated above. [CODE] | -1 | 0 | 1,070 | 2012-06-11T22:49:41.103 | infrastructure | serverfault.com | |
386,790 | PostgreSQL 9.1 on Ubuntu Lucid fails to start - how to debug? | I'm using Vagrant with Chef Solo to setup a Lucid 64 box. I'm using a Chef recipe to install PostgreSQL 9.1 from Martin Pitt's backports. The install goes ok until the point where the database is started with [CODE] There's a log pause and the command fails. If I run pg_ctl manually, the database starts! The entire con... | Some things I would start with: ensure that postgresql is not already running check permisssions on [CODE] However I would advise starting postgresql using [CODE] . This script is called by the init script, and is a wrapper for [CODE] which among other things performs several sanity checks. If those checks were to fail... | 0 | 1 | 2,121 | 2012-05-07T18:29:44.747 | database_errors | serverfault.com | |
160,020 | How do I point PHP to OpenSSL directory within script? | I have a PHP script which needs to point to my server openssl directory but am lost. I know the directory resides at /usr/bin/openssl while my site pages rest at /var/www/vhosts/domain/httpdocs/test.php. Within test.php, I try to call the openssl directory using relative paths at /usr/bin/openssl but I know this is cau... | The issue laid in the way the directory structures differ between a Windows and Linux system. Quite dumb on my part but the double slashes in a windows directory were required | 1 | 1 | 1,504 | 2010-07-13T18:17:33.997 | infrastructure | serverfault.com | |
435,863 | Multiple public/private key pairs for the same user | First, sorry if this question has already been asked/answered - I've searched but perhaps I haven't recognised the answer.... What we have is a cluster of servers which need to access a single remote server using sftp. We are migrating from one remote server to another at the same (remote) location. We also want to ref... | Yes you can have multiple keypairs for a single user. On the remote site put all of the public keys in the users [CODE] file. On the local site have each private key in a separate file and then use the [CODE] to specify which private key to use. You could use [CODE] to use the default (current ?) private key and [CODE]... | 3 | 5 | 7,618 | 2012-10-08T08:46:29.303 | infrastructure | serverfault.com | |
277,944 | What is the effect of removing an installed package from Microsoft SMS server? | I have a legacy software package listed in SMS Management Server which is missing the package installation files. It was apparently deleted a long time ago but no one deleted the package definition from SMS. Because of this the server is logging thousands of error messages since it cannot locate the files. If I remove ... | I'm a little rusty on my SMS 2003 knowledge but from what I remember deleting packages worked the same way as it does in SMS 2007. Deleting a Package (and also any of its associated Adverts) has no effect on clients that already have the software installed. Just as removing a client from a Collection doesn't automatica... | 2 | 0 | 846 | 2011-06-07T18:05:30.950 | infrastructure | serverfault.com | |
2,353 | Log transport and aggregation at scale | How're you analysing log files from UNIX/Linux machines? We run several hundred servers which all generate their own log files, either directly or through syslog. I'm looking for a decent solution to aggregate these and pick out important events. This problem breaks down into 3 components: 1) Message transport The clas... | I've used three different systems for centralizing logs: Syslog/syslog-ng forwarding to one host Zenoss for aggregating and alerting events Splunk for log aggregation and search For #3, I typically use syslog-ng to forward the messages from each host directly into splunk. It can also parse log files directly, but that ... | 14 | 5 | 3,346 | 2009-05-01T13:09:46.360 | infrastructure | serverfault.com | |
221,543 | Costly HASH MATCH Aggregate | I have a view,which is slow when i query a simple select statement with a [CODE] clause.The where clause column is indexed( [CODE] index) Here is the view and the plan. execution plan [CODE] I analyzed the plan in [CODE] and learned that the [CODE] is the costly operation in the plan. I am trying to avoid/remove that [... | This is not a full answer, but I need more room than a comment allows, so... First, you should consolidate your query - you have an unnecessary step in it: [CODE] Second, you should get rid of the redundant use of the Report table, ending up with a query like this: [CODE] With these simplifications, please check the qu... | 0 | 0 | 4,484 | 2018-11-01T15:05:36.677 | database_errors | dba.stackexchange.com | |
31,482 | SQL Server 2008 licensing - do I need an external connector license? | Possible Duplicate: Can you help me with my software licensing question? I want to purchase a SQL Server 2008 license to run an ASP.NET website. I have a question about external connectors that you need to purchase in this case. These are the specs of my production box Windows Server 2008 SP2 64 bit, dual quad core 557... | We asked this very question of our Microsoft LARS (Large Account Reseller) advisor, and the answer is 'if you have the per-processor licensing, then you do not need the external connector license'. Nuff said really. You will, however, need an external connector license for Windows itself. | 4 | 3 | 8,724 | 2009-06-25T10:41:40.510 | data_quality | serverfault.com | |
216,123 | mysql INNODB inserts very slow | The database's schema is as follows. [CODE] Now, doing an insert on this table takes 0.22 seconds. I don't know why it's taking so long to do a single row insert. Reads are really really fast something like 0.005 seconds. With using the example configuration from here dev mysql innodb it averages ~0.002 to ~0.005 secon... | Well, my first guess is that your InnoDB is probably broken. You can check whether there aren't any triggers that would do slow operation on insert processes going on that would lock the table foreign keys/constraints pointing to this table Best way to completely audit a database against anything that would cause such ... | 4 | 0 | 2,639 | 2010-12-25T22:39:54.510 | database_errors | serverfault.com | |
177,844 | Figuring out if SQL Server database needs to be defragmented | I am tasked with looking at if a database in SQL Server 2014 needs to be defragmented. I ran DBCC SHOWCONTIG but am having trouble interpreting the results. [CODE] The results are: [CODE] Questions: What do the percentages above mean? (like the difference between logical and extent scan fragmentation). What percentage ... | Logical Scan Fragmentation Percentage of out-of-order pages returned from scanning the leaf pages of an index. This number is not relevant to heaps. An out-of-order page is a page for which the next physical page allocated to the index is not the page pointed to by the next-page pointer in the current leaf page. Extent... | 0 | 0 | 187 | 2017-06-26T21:08:51.707 | database_errors | dba.stackexchange.com | |
321,881 | Hide schemas (tables,views,etc under schema) from users | I want users not to be able to see the objects under a schema , as well as the schema. I have denied their access to all these objects on select, update, etc, which is successful. Hence they can’t view the data or work with it! But they still can see the the name of the objects in the object explorer. I want to only se... | It's not possible, as mentioned in this StackOverflow answer : There is No [CODE] feature in SQL Server instead, you can Deny the permission to that Table for Certain Users of User Groups... The only thing you may be able to do is globally hide the objects for everyone, via extended properties, as discussed in the arti... | 0 | 1 | 947 | 2023-01-09T05:36:43.423 | database_errors | dba.stackexchange.com | |
37,391 | PostgreSQL CREATE EXTENSION file not found error on Mac OS | On PostgreSQL 9.2.3 when trying this: [CODE] I get this error: ERROR: could not open extension control file "/opt/local/share/postgresql92/extension/btree_gist.control": No such file or directory Running [CODE] shows that indeed is not available. | The problem is that the needed contrib files are not installed. This was actually the case for several contrib modules. I found help with the solution to this here: https://wiki-bsse.ethz.ch/display/ITDOC/Get+PostgreSQL+contrib+modules+on+Mac+OS+X [CODE] I suspect reinstalling everything would work too, but this highli... | 3 | 3 | 3,923 | 2013-03-22T21:57:28.373 | database_errors | dba.stackexchange.com | |
195,418 | How to handle null value number DataWarehouse | I have a question. I'm developing a Data Warehouse, I retrieve the data from my reconciled level, this in order to keep updated my Data Warehouse, but i am not sure how to handle some numeric fields that have a null value. I was thinking to replace it with some special numeric value like -1 for example, that never appe... | If you don't have a thorough understanding on the business meaning of the data point, you should NEVER put in a dummy or made-up value. If this is a fact table, you will need to work with the business teams to understand the scenarios in which the [CODE] can occur. If the column represents a monetary value, using zero ... | 1 | 1 | 1,704 | 2018-01-15T15:38:29.277 | warehouse_errors | dba.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.