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 |
|---|---|---|---|---|---|---|---|---|---|---|
337,108 | Is this a Proxy or Decorator pattern implementation? | The way many design patterns are described in the classical literature is somewhat different from their implementation in dynamic languages such as Javascript. The presence of some features like first-class functions makes some pattern implementations structurally the same, what sometimes makes it harder to distinguish... | Even in c++ or java some patterns are structurally identical. Heck I could call this a factory. The difference is intent. I see this more as a decorator. Your intent is to decorate input parameters with deployment details. Sure you could see it the other way but decorator seems the simplest way to see it and that's goo... | 1 | 1 | 425 | 2016-11-29T15:01:20.040 | data_quality | softwareengineering.stackexchange.com | |
55,238 | Improve Performance -Update query with OR in WHERE | How do we improve this Update query Performance as currently it is taking 1 Minute to update 17643 Rows. Query -> [CODE] Tables Row Count: - #tmp_sp_abc -> 125352 t_h_bg_pc_it -> 14798 Rows [CODE] table has 300 columns with primary key on id_i column and [CODE] has 11 columns with no primary key and no indexes. found t... | The best option if you really want to squeeze out the most is to parallelise the query. Instead of a single UPDATE, run multiple copies. Each of them operate on a subset of the data in the temporary table. Keep adding more copies and more subsets until you run out of cores of CPU (whatever happens first). If you don't ... | 2 | 1 | 3,798 | 2013-12-18T12:28:45.243 | database_errors | dba.stackexchange.com | |
903,640 | When secure calling with asterisk (SRTP), why are client certificates needed for SIP devices? | I just added security to Asterisk by following this tutorial: https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial#SecureCallingTutorial-Keys Note that asterisk does not install by default with srtp by default. In order to be able to follow that tutorial you must install asterisk with libsrtp and pjsip. H... | I've used SRTP with Asterisk before without requiring a client certificate, but as pointed out, this allows you to control access based on the issuer of the certificate and guarantee the source of the SIP request. This allows you to validate that the phone is setup by you, and not just some random who found your SIP se... | 2 | 3 | 2,428 | 2018-03-20T17:57:59.947 | infrastructure | serverfault.com | |
16,571 | Why do .Net books talk about stack vs heap memory allocation? | It seems like every .net book talks about value types vs reference types and makes it a point to (often incorrectly) state where each type is stored - the heap or the stack. Usually it's in the first few chapters and presented as some all-important fact. I think it's even covered on certification exams . Why does stack... | I'm becoming convinced that the primary reason this bit of information is considered important is tradition. In unmanaged environments, the disctinction between stack and heap is important and we have to manually allocate and delete the memory we use. Now, garbage collection takes care of the management, so they ignore... | 37 | 38 | 5,829 | 2010-11-03T17:50:23.397 | api_errors | softwareengineering.stackexchange.com | |
394,073 | LUKS with LVM, mount is not persistent after reboot | I have created a Logical vol and used luks to encrypt it. But while rebooting the server. I get a error message (below), therefore I would have to enter the root pass and disable the /etc/fstab entry. So mount of the LUKS partition is not persistent during reboot using LUKS. I have this setup on RHEL6 and wondering wha... | Here is the solution i found and i am just sharing it for the benefit others. Just typing the password in the /etc/crypttab does not work for me - Instead I created a random key which was used to encrypt the password with the following commands - However, the key is still still stored insecurely under /root/pass.key. [... | 0 | 1 | 2,900 | 2012-05-30T18:06:41.667 | infrastructure | serverfault.com | |
284,300 | Munin Aggregate Graph | I am trying to aggregate munin graphs ( http://munin-monitoring.org/wiki/aggregate_examples ) for my nginx_request plugin ( http://exchange.munin-monitoring.org/plugins/nginx_request/version/2 ) The configuration I have is: [CODE] I have also tried a few different configuration settings, but the graphs are not working.... | The code that finally worked for me [CODE] | 0 | 1 | 960 | 2011-06-26T16:34:55.023 | pipeline_ops | serverfault.com | |
348,263 | Why is the munin apache_activity plugin checking /server-status on a different server? | I have two web servers at different locations (let's call them [CODE] and [CODE] ) being monitored by the same Munin server. Today, I noticed the following error in the apache logs for [CODE] : [CODE] Naturally, I have server-status limited to localhost on both machines for security. It happens every 5 minutes at the e... | apache_activity retrieves " http://127.0.0.1:%d/server-status?auto ", so that rules out DNS or /etc/hosts issues (confirm this by looking at your copy of apache_activity.) Is apache on WEB2 is configured to redirect or proxy some requests to WEB1, and you've inadvertently included /server-status? | 1 | 0 | 295 | 2012-01-09T22:09:43.243 | infrastructure | serverfault.com | |
211,445 | 1x Xeon X5650 or 2x Xeon E5620? | I'm building a server and I'm not completely sure yet about the correct processor choice. The server is mostly handling IIS and SQL Server on Windows Server 2008 R2. From a pricing standpoint, the difference between a single X5650 (6-core) and dual E5620s (4-core each) is not much. The benefits I see with X5650 is the ... | Well it's 12 threads vs. 16 but presumably buying a single 6C leaves you s spare processor slot free for future use? If that's the case I'd personally stick with one CPU myself, don't Roget to use 3, 6, 9 or 12 memory modules for those CPUs, not 2, 4, 8 etc. | 0 | 0 | 2,422 | 2010-12-10T21:34:59.573 | database_errors | serverfault.com | |
749,116 | ZFS 100TB hardware setup | We received a quote for the following server setup : Intel Xeon E5-2609V2 2 x WD RE 2TB SATA III 34 x WD RE 4TB SAS II 32 GB memory (ECC) LSI MegaRAID 9271-8i bulk, 8 x SATA III/SAS II internal hardware RAID LSI CacheVault voor 9266-9271 series We wanne add (directly) a JBOD to that server, half filled with 8TB drives,... | I would work with a ZFS professional or vendor who specializes in ZFS-based solutions. You're talking about 100TB of data, and at that scale, there's too much opportunity to screw this up. ZFS is not an easy thing to get right; especially when you incorporate high-availability and design for resilience. I wouldn't plan... | 3 | 4 | 1,120 | 2016-01-14T15:02:11.577 | database_errors | serverfault.com | |
286,071 | Migrate existing data when altering the column type from string to json | I have a table with an existing column type [CODE] . I need to convert this column type to new type [CODE] . The problem is if the column has already data [CODE] then after converting the type to [CODE] column has invalid JSON string [CODE] . I want to migrate the existing string [CODE] into the proper JSON string with... | Rather than making up any keys, why not convert that to a json array? [CODE] That would turn [CODE] into [CODE] If you really need to make up some (numbered keys), you will have to write a helper function: [CODE] That can be used in the USING expression: [CODE] | 2 | 3 | 5,002 | 2021-02-26T09:47:54.097 | warehouse_errors | dba.stackexchange.com | |
144,939 | At least one database view per database table-Is this good or bad design and why? | We are building a Windows Mobile based application to interface with a customer's existing web application. We are reading and writing data to the customer's SQL server 2008 database. The customer wants all reads to happen through SQL views, and all writes to happen through stored procedures. But taking a look at their... | Its actually a pretty good design. Using views confers the following advantages:- It insulates your application from any changes in the underlying physical tables. A view can be regarded as the formal interface specification between client and server. The view allows fine grained access control to the underlying data. ... | 4 | 7 | 3,687 | 2012-04-18T04:00:46.053 | database_errors | softwareengineering.stackexchange.com | |
295,907 | JDBC oracle listener random port | I have an issue with our listener trying to assign random ports to JDBC connections. We have a 19c oracle db running on a RHEL server with two ports opened 1523 and 1524. When application tries to connect using JDBC it connects on one of the above ports assigned to listener but then we can see in the log that listener ... | The port in the log is the port on the client machine, not the port on the server. Client ports are essentially random, in the range you specified, as they are assigned sequentially by the client operating system on demand for outgoing connections. They cannot be set. For example, running [CODE] from my client after ma... | 0 | 1 | 933 | 2021-07-19T10:07:15.230 | database_errors | dba.stackexchange.com | |
768,762 | Get client ip from Google Network load balance | I can't use Google's HTTP load balance because it does not support web socket. So my NGINX is running in Google Container Engine, behind Google Network Load Balance. When the request arrives NGINX in docker container, it gets the IP of the NODE instead of the client ip. 2016/04/07 10:53:47 [error] 94#0: *73 access forb... | Getting the client IP when using Network Load balancer with Kubernetes is a known limitation. You can refer to this issue bug for updates and workarounds. | 1 | 2 | 2,824 | 2016-04-07T11:02:07.710 | pipeline_ops | serverfault.com | |
663,563 | Windows 2012 native VPN: Persistent server-server VPN possible? | We are working to set up a server to server vpn on two win2012-R2 systems. These systems are in different data centers, and we do not have access to/manage the firewalls/networking gear (aside from opening ports). The normal way to solve this is to set up an ipsec vpn from firewall to firewall, but as described above, ... | Use IPSec in transport mode. It's simple to set up and can be done using native tools. I've done this dozens of times on BSD/Linux, but unfortunately never on Windows (though I know it's possible), so I'm not able to provide more details or a pointer to a tutorial. In general, though IPSec is not all that complex to se... | 0 | 1 | 146 | 2015-01-29T21:53:00.013 | infrastructure | serverfault.com | |
395,415 | Remote Desktop Services Licensing - Does server have to have a RDS role? | I recently set up a "micro" size Windows 2008 Datacenter server on Amazon AWS. My small group needs several concurrent RDS users to be able to access the machine. Without installing the "Remote Desktop Server" role, it allows 2 concurrent connections. I read on MS' website that in order to set up multiple users, we nee... | I'm assuming that the performance problems exist even with just two users. I could certainly see performance problems with more than two users, especially if the programs being used are taxing. The minimum memory recommendation for Windows Server 2008 is 512 MB with a recommendation of 2GB. I certainly understand that ... | 3 | 2 | 1,969 | 2012-06-04T16:11:04.577 | infrastructure | serverfault.com | |
333,229 | How to sum up the distinct Total Time of an Event ignoring duplicate overlaps in Times? | I have the following [CODE] table: [CODE] With the following data: [CODE] Notice: The same [CODE] can have two time ranges that overlap each other. E.g. same [CODE] from 4 AM to 2 PM and and also from 6 AM to 11 AM. There can also be gaps between the two time ranges. E.g. same [CODE] from 1 PM to 2 PM and also from 2:3... | All the complexity results from the overlapping intervals. If we pack the intervals so there are no overlaps, the solution is a straightforward group and sum. The following code uses Itzik Ben-Gan's interval packing solution : Packing intervals is a classic T-SQL problem that involves packing groups of intersecting int... | 3 | 3 | 190 | 2023-11-17T17:36:46.557 | data_quality | dba.stackexchange.com | |
856,160 | Forward FTP traffic to a local sever through iptables | I have a load balanced infrastructure which has an edge server as the load balancer and some web servers as backend servers and a cpanel server which is my ftp server. I want to forward ftp traffic through iptables to the ftp server which is behind my load balancer server. The scenario is as follows: LB: ens19: public_... | So its connecting OK, but not transferring data. FTP uses 21TCP to establish a connection, but 20TCP to send/receive data. Try duplicating your forward/SNAT/DNAT rules for 20TCP too: -A FORWARD -i ens19 -o ens18 -p tcp --syn --dport 20 -m conntrack --ctstate NEW -j ACCEPT -A PREROUTING -i ens19 -p tcp --dport 20 -j DNA... | 0 | 0 | 2,118 | 2017-06-16T08:00:08.880 | infrastructure | serverfault.com | |
707,701 | Import a vm image to a new host machine with virt-manager | I need to recover a guest machine with Windows 2003 on a new host server on Centos 7 with virt-manager. I've shut down a guest machine and simply copied its .img file from /var/lib/libvirt/images. Then I've tried to restore it using virt-manager, I've pointer virt-manager to my .img file, checked to install NAT network... | Definitely, it's better to export/import the complete VM information, not only the disks. If you still have access to your original host, find your VM's definition (XML format). In Ubuntu it resides under /etc/libvirt/qemu , not sure about CentOS and likes. You can just copy it to the same location (with libvirt servic... | 0 | 0 | 6,576 | 2015-07-22T16:52:52.090 | database_errors | serverfault.com | |
911,600 | While accessing Fuse mounted Storage bucket, its showing 403 Forbidden Error | I have a google cloud project. In that project. I have a VM instance. I mounted uploads folder with Google Cloud Storage bucket using fuse. While mounting I get an error like this, [CODE] so i use sudo command now i get reponse like this [CODE] But i can't access the uploads folder, its showing 403 error (see image.) l... | This sounds like a permission error. I would suggest running gcsfuse including the [CODE] and [CODE] options to see the full error. Since you seems to have mounted the file system as root, the user accessing the file/folder doesn't have the permission to do so, as explained in this documentation . You can use [CODE] (l... | 3 | 1 | 1,664 | 2018-05-10T09:40:20.730 | api_errors | serverfault.com | |
244,983 | How to query data in backups? | I have an ASP.NET app using SQL Server 2017. There's a bug somewhere that's causing some records to be deleted, and I'm trying to recover the data and find the cause of the bug. We take daily backups, and I have a query to find which records should be there but aren't, so I want to go through and run the query on each ... | My advice would be to just restore the entire backup. In my current environment, someone accidentally screws up some table once every few months. It just happens. Of course, it always hits our biggest database. 200GB backup file, 1+TB when fully restored. It is just easier to restore a copy somewhere, find the specific... | 3 | 5 | 725 | 2019-08-09T13:48:54.293 | database_errors | dba.stackexchange.com | |
1,131,152 | Setup SSO : openldap, kerberos, nfs(truenas) : | Currently I am able to setup a SSO NFS setup with openldap ldap server and Truenas NFS server (with LDAP access configured). The ubuntu clients are able to use pam-mount to mount the nfs home shares. The purpose is have each LDAP users to authenticate using pam-ldap and nss-ldap and then mount the appropriate nfs home ... | a) Use sec=ldap , root_squash in nfs export. Setup ldap_pam auth in nfs server also. Does this approach provide any extra security ? As I understand, nfs_client provides nfs_server with uid/gid (which may be faked too) and even if nfs_server query the ldap server with these info, I dont see any manner in which some sec... | 1 | 0 | 478 | 2023-05-15T04:05:26.140 | infrastructure | serverfault.com | |
648,906 | Cant deploy images with WDS: PXE-E16: No offer received | I am currently playing around with a WDS lab environment on a virtual 2012 R2 server, which is patched to the latest available update-level. This server is running the DHCP server role and has two NICs configured. One NIC is bound to a private vSwitch and the other to an external vSwitch (so I can get updates from the ... | Have you added the boot images?? (boot.wim) Your DHCP server is providing IP but not the PXE information (TFTP server IP and NBP name) then you "need" the options: [CODE] where 192.168.1.1 is the IP address of the NIC that connects to the deployment network [CODE] of-course the file boot\x64\wdsnbp.com must exist! | 2 | 1 | 38,930 | 2014-12-03T16:13:46.947 | pipeline_ops | serverfault.com | |
254,728 | Is it ok to restart a BackgroundWorker inside its Completed event | I want a background worker to continue running and occasionally update the user interface. My first idea was to use a BackgroundWorker and in its completed event just fire it up again. Is using a BackgroundWorker in this fashion acceptable? Or are there potential issues from using the completed event to trigger the wor... | It's not absolutely clear from the spec whether a BackgroundWorker could be considered to be still running when the RunWorkerCompleted event is triggered - in which case calling RunWorkerAsync() will cause an exception. Because the spec is unclear I wouldn't re-use the BackgroundWorker object: it might work or it might... | 0 | 1 | 9,277 | 2014-08-28T19:19:59.893 | api_errors | softwareengineering.stackexchange.com | |
429,135 | Best Practice: Unit test coverage vs. in-method sanity checks | I have a code-coverage requirement of of a certain percentage, and face the following tradeoff: Should I sacrifice in-method sanity checks and error handling for ease of (unit-) testability? Lets consider two variants of a simple method addAndSquare . Variant A: [CODE] This method is wonderfully easy to test for the st... | If your code includes checks for exceptional conditions, your tests should test them, too. Of course, this increases the number of tests, but as your border case checks increase complexity, this is only natural. It is also good practice to test for the uncommon cases, as developers tend to "assume" how the code behaves... | 1 | 5 | 272 | 2021-06-08T15:18:07.580 | api_errors | softwareengineering.stackexchange.com | |
126,337 | How to import a single table in Windows environment | I am running Windows 7 with xampp. I can easily import a database with the following command: [CODE] The problem is that I have a database around 8.5 GB, which take a long long time to import. Mostly I just need to restore a single table from it. How can i restore single table in this environment? | This issue has been dealt with here . The approach described therein assumes that you have already separated your schema dump by filename. However, if I've understood you correctly, you have a schema dump from which you wish to extract a single file? I have written a small tool which extracts individual table data sepa... | 0 | 1 | 820 | 2016-01-15T08:25:03.127 | database_errors | dba.stackexchange.com | |
866,704 | bind on second network interface not working | I have two network interfaces eth0 and usb0. When eth0 is disconnected and only usb0 is connected everything works. When both are connected, ping -I or ssh -b does not work when specifying the address of the usb0 interface. [CODE] What am I missing? [CODE] Also, I don't have root access. After some questions below, I r... | You need to add an IP rule (route based on source IP address) with a separate routing table. The following commands will do the trick: [CODE] After that, your [CODE] command should work. Please, note that [CODE] can be assigned any unused number. This is just an arbitrary number that should be identical in both command... | -1 | 1 | 284 | 2017-08-03T13:23:05.107 | infrastructure | serverfault.com | |
182,510 | Using SELECT within to_tsvector call in CREATE INDEX | I'm attempting to create a GIN index for full-text search on a field that may have text in it that is one of several different languages. The languages are pre-set and we'll know which language we want to search in at query time. Here is the schema I've got thus far... [CODE] It reports a syntax error at or near "SELEC... | You don't. You can't create an index that references another table. To set the default see [CODE] Workaround You can however use functions in an index. And functions can references external tables. That said, using this is kind of hack because changing the table ( [CODE] ) will require reindexing and clearing the sessi... | 3 | 3 | 2,384 | 2017-08-02T15:05:34.587 | warehouse_errors | dba.stackexchange.com | |
20,372 | Capabilities of InnoDB INSERT Performance | Hi I am running the most recent version of Percona Server. Server version: 5.5.24-55 Percona Server (GPL), Release 26.0 I have a 10 cpu box of these characteristics. [CODE] It has SSD and 64GB of RAM. Innodb is approx 10GB, so innodb_buffer_pool_size set to 10GB. I have a table that is as follows : [CODE] If I start wi... | You need to tune your InnoDB settings in the following areas: Make InnoDB access all your cores Increase innodb_buffer_pool_size to 12G Increase innodb_buffer_pool_instances to 2 (First run [CODE] to determine the number of Physical CPUs. What every number of CPUs it reports, use that number. I learned this recently in... | 11 | 11 | 10,368 | 2012-07-04T03:12:37.393 | data_quality | dba.stackexchange.com | |
92,420 | What should be the ideal home directory permissions in linux | I have accidentally changed [CODE] 's permissions to [CODE] . What permissions should this directory have ? | I think the best permission would be [CODE] with 755 public can read which other users are on you home directory | 13 | 16 | 65,323 | 2009-12-08T23:39:52.607 | infrastructure | serverfault.com | |
457,704 | Url rewriting stops working after changing default port on iis7 | I have migrated the IIS6 webserver 2003 websites to IIS7 webserver 2008 using msdeploy tool. Application pool setting are changed with [CODE] . All the websites are working fine on default port along with url rewriting migrated from iis6. When I start the webserver on port other than default port by changing bindings, ... | Maybe silly, but I will ask anyway, did you restart IIS service? When you switch your website to listening on a non standard port, the port number become part of your base URL like following [CODE] Webapp or site config may have to be updated to match that. Rewrite rules involving base url may have to be updated. | 3 | 2 | 256 | 2012-12-13T08:31:52.343 | infrastructure | serverfault.com | |
568,719 | efficient, simple ‘lazy’ differential FTP upload tool? (i.e. for web dev workflows) | I am looking (over some time now and with some despair) for a tool, I guess most web developers need: A fast, ‘lazy’ aka ‘differential’ FTP upload tool. To quickly upload (without much server-side checking) those very few changed files from my develeper PC (client) to my webserver. Under Windows. Preferably scriptable,... | Cygwin would allow you to run an ssh server, in turn you would get SFTP. | 0 | 1 | 593 | 2014-01-21T09:28:32.607 | api_errors | serverfault.com | |
288,424 | Should I automatically install needed modules? | I'm writing a program for my grandpa. Occasionally an update will require a new module that's not installed on his computer. I don't want to have to manually install new modules every time, but he's not tech savvy enough to figure it out himself. Is it OK for me to check for ImportErrors and install a module from the e... | This is the job of the package manager. In the case of Python: [CODE] . If you package the library you are building and specify its dependencies, your users (grandpa), will simply need to run: [CODE] to get the latest version you've released and all of its dependencies. If you don't want to publish your code online, [C... | 1 | 3 | 4,092 | 2015-07-01T17:04:33.333 | api_errors | softwareengineering.stackexchange.com | |
1,008,696 | Powershell script to set AD permissions fails with "Access Denied" despite running account having the correct permissions | I'm using the following Powershell cmdlet as part of a script: [CODE] To summarize, the script above is intended to delegate password reset permissions, so that a certain security group (DelegationGroupName parameter) is allowed to reset passwords for all users inside a certain OU (OrganisationalUnit parameter). This w... | It seems that [CODE] doesn't work correctly in this context. Not sure exactly what was wrong with it, but when instead using [CODE] to set the ACL, the problem disappeared. That tells me the problem wasn't with AD permissions as I originally suspected. Here's the fixed version of the function I was trying to use: [CODE... | 4 | 3 | 2,485 | 2020-03-27T14:38:58.833 | infrastructure | serverfault.com | |
760,129 | What is a TCP Relay and when is it used? | Tcprelay is a TCP connection forwarder with load balancing capabilities. If compiled with TLS support, it may be used as SSL encryption wrapper. What are some practical applications of TCP relay? | TCP (and/or SSL/TLS) relays can be used to act as a proxy between two different networks. Consider the case where you have some servers on an internal LAN, and for whatever reason you do not want those servers exposed to the public Internet. But you'd like clients, outside of that LAN, to be able to connect to an appli... | 1 | 2 | 13,599 | 2016-02-26T20:18:19.053 | infrastructure | serverfault.com | |
283,345 | Shrink data file corruption risks? | Are there any risks of data file corruption resulting from shrinking sql data files? | No, shrink is safe. Unless you hit some bug in SQL Server of course, but that can happen whatever you do. The shrinkage is done as a series of mini transactions and it is also safe to terminate the operation. There are of course other disadvantages of doing shrink, but I take it that you are aware of those. | 0 | 5 | 142 | 2021-01-15T18:48:50.940 | data_quality | dba.stackexchange.com | |
951,049 | NGINX proxy to GCS bucket with redirect all urls to index.html, getting 200 blank responses on nested routes | I am configuring a reverse-proxy from NGINX to a GCP Cloud Storage bucket containing static HTML, JS, image files, with a rewrite for all non-matching URLS to index.html since it is a single-page-application. Config: [CODE] So here's the issue: Without a [CODE] present, first request to /nested/path returns 200 OK with... | I could not make this work in any way, although here is a supposedly working example: https://github.com/presslabs/gs-proxy I ended up mounting the bucket and simply using nginx by the file system. See https://github.com/maciekrb/gcs-fuse-sample | 2 | 2 | 10,032 | 2019-01-28T02:01:48.550 | infrastructure | serverfault.com | |
211,264 | Any experiences migrating from MDaemon to MS Exchange Online? | I will probably be moving from MDaemon to Exchange Online shortly - MDaemon's interface to Outlook is just too slow for remote users. Does anyone have any experiences with the migration that they would care to share? I have 100 users on MDaemon, some with >4Gb mailboxes, most of them are using IMAP. | I had to migrate one from MDaemon to Exchange 2007,because they had 20 users only, so we just exported each mailbox to a PST. Setup AD / Exchange and imported PSTs. How many mailboxes do you have on MDaemon ? | 0 | 0 | 1,403 | 2010-12-10T12:35:25.733 | infrastructure | serverfault.com | |
127,995 | MMC could not create the snap in | I have Windows SBS 2008 R2, and when I try to open console manager or event viewer I get the message [CODE] . How do I fix this? | Have a look here. http://support.microsoft.com/kb/826282 | 3 | 1 | 11,392 | 2010-03-31T08:05:00.750 | infrastructure | serverfault.com | |
673,718 | how to check if openvpn is active | i am runnning multiple openvpn instances each connected to different servers let's assume there are 3 and i am using a simple php script with this command [CODE] the config file conatin daemon and route-nopull ,at the end i'll tun0 tun1 tun2 enabled when i want to use tun0 i use [CODE] now the first problem is if there... | The easiest way I can think of is checking the link status. For example: [CODE] In the event it is active, you will see [CODE] in those <>. You can also check that there are active routes associated with the interface. No active routes would mean the interface would go unused. [CODE] The most correct way is to enable t... | -1 | 0 | 1,686 | 2015-03-07T15:59:09.633 | infrastructure | serverfault.com | |
89,492 | Users can't change passwords in Active Directory using LDAPS | We have a Linux server farm along with some Windows machines, and I finally moved us from two parallel authentication systems (using Fedora Directory Services and Active Directory) to one -- just Active Directory. I configured LDAPS, and everything works except one thing. I checked before deployment that I could change... | Sigh. Fixed it. This link had the necessary fix buried deep in it: the standard [CODE] in ldap.conf needs to be changed to [CODE] . | 4 | 3 | 2,195 | 2009-11-30T17:23:14.917 | api_errors | serverfault.com | |
550,079 | Renamed Windows 2008 R2 domain ---WindowsXP client could not updated with new Domain name | I have renamed Windows Server 2008 R2 with all the steps using rendom,repadmin,gpupdate and successfully updated domain. My windows vista and above client got updated new domain when restarted. The help taken is from site http://www.youtube.com/watch?v=RwXyi1_UDWo But problem is with windows XP clients, they could not ... | Apparently it's quite common for XP machines to not pick up the change properly, even after a number of reboots. You could manually rejoin the computers to the domain, or if that isn't practical you could script the process by using netdom , which is available as part of the Remote Server Administration Tools and shoul... | 0 | 0 | 124 | 2013-11-01T10:13:19.240 | infrastructure | serverfault.com | |
708,425 | Server crashes with incredibly high load | I got a problem with a KVM-virtualized server (Proxmox-based), running on Debian 7.8 and PLESK. Sometimes there are loads > 200 (sic!) and I just do not get the reason why. The monitoring shows the increasing load (at first: 19, some minutes later: 50, some minutes later: 200) but the logs do not show anything for this... | Finding the culprit of heavy system load is not easy without extensive information of the applications running on the server. Since you can reproduce every 30 minutes, you might want to use the following shell script and upload its output from immediately before the server crashes: [CODE] The [CODE] will be replaced by... | 0 | 0 | 381 | 2015-07-25T07:59:45.943 | pipeline_ops | serverfault.com | |
575,858 | Forwarding from rsyslog to syslog-ng over TCP not working (although packets are reaching server) | We use syslog-ng on our central syslog server (syslog-ng-2.1.4-9.el5 on CentOS 5.9). We were happily sending logs using syslogd and rsyslog from a mixture of Linux and Solaris hosts over UDP until yesterday when it finally became clear to me that we're losing a significant number of entries (yes, I should have heeded a... | Problem was tcpwrappers which was obvious once I set up a test syslog-ng instance and ran it with debug output turned on. Adding the following clause to /etc/hosts.allow did the trick [CODE] Also realised that we didn't handle syslog-ng's internal messages (which may well have told us what the problem was). Have now ad... | 2 | 3 | 4,699 | 2014-02-15T16:40:08.590 | infrastructure | serverfault.com | |
477,694 | Multiple broadband providers for internal web servers | Maybe I am using the wrong search terms, but I am having problems finding the answer to my question. We have internal servers hosting our web site. We would like to bring in an alternate provider so that we can have service should our current provider go down. Is it possible to set it up so that someone hitting our dom... | My suggestion for a business or organization looking for multi-WAN connectivity without complexity is to use a link-balancer device. My preference is the Elfiq offering , but these are also available from Peplink , Barracuda , Fortinet, etc. The Elfiq unit has an iDNS feature , which uses delegated DNS records to handl... | 0 | 2 | 255 | 2013-02-11T17:02:35.560 | infrastructure | serverfault.com | |
443,612 | Error when install Wordpress with mariadb "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." | [CODE] The above command helped me to install mariadb, also installed Wordpress. This was a great help. My problem now is when I reboot the server or restart apache here is the error: [CODE] How can I solve this problem? | You need to install php-mysql so that PHP could connect to a MySQL/MariaDB instance. Do this by [CODE] | 1 | 1 | 3,270 | 2012-10-30T08:50:55.207 | database_errors | serverfault.com | |
990,447 | Trying to use sshfs to mount directory from a puppet exec | Ununtu 16.04 and 18.04 (same problem on both) I am trying to use sshfs to mount a directory on another system, it works fine from the command line but when I execute the same command from a puppet "exec" it appears to succeed but the mount point is not usable: rful011@secmonprd10:~$ ls -l ~sensors/Rules/ ls: cannot acc... | Adding: [CODE] to the exec in puppet seems to have fixed the mount issue, to detect whether or not the disk is mounted I am now using [CODE] which seems to work fine | 1 | 1 | 290 | 2019-11-04T03:05:13.147 | pipeline_ops | serverfault.com | |
273,499 | Lost rebuilding state after every reboot on server with raid controller P410i/zero memory | I have installed a server HP Proliant ML350 with P410i RAID controller with Zero memory, (windows 2008 standard running). I have set up Raid 1+0 with two hard disk SAS and, as usually, I tested raid pull one hard disk. After that, I insert in the array hard disk. After 12 hours I check the rebuilding state and it was a... | Your hypothesis is not true. The memory (or lack of memory) on the controller is used to buffer or cache read and write operations. The controller you have has no memory and is simply less performant than a model that does have cache memory. This should have no effect on the ability of the array to rebuild (other than ... | 0 | 0 | 608 | 2011-05-25T07:34:34.627 | infrastructure | serverfault.com | |
993,432 | Keepalived doesn't gain quorum when tracked process comes up | I'm using keepalived v2.0.19 on CentOS7 with a single vrrp instance tracking haproxy process presence. Unfortunately the vrrp instance never leaves the FAULT state after a restart of haproxy process Here is my config [CODE] The syslogs logs show the quorm is lost when haproxy process comes down, but the quorum is never... | Had the same problem for keepalived version 2.0.19. In our case the problem was that for process with pids greater than 32767 keepalived tried to open de file: /proc/xxxxx/comm with xxxx as a negative number. So if the computer is running long time periods and pids get huge you can experiment this behavior. Luckily kee... | 1 | 0 | 1,746 | 2019-11-27T08:50:03.410 | infrastructure | serverfault.com | |
153,739 | Can you download files on your dedicated server using your computer | I have a dedicated server running CentOS 5, and I have a computer at home that runs windows 7. For a projects I need to download a large set of large files on the server. Now the problem I am facing is that I have only a SSH connection to my server, it has no GUI. The files are several gigs and there are a lot. First d... | You can install Firefox on your server (or any other broswer) and use a it remotly. On Unix the display can be exported over the network. So you can export it to your windows desktop (X11 can be exported inside SSH, makeing it simple to work) into an application such as xming . The result will be Firefox GUI on your wi... | 1 | 5 | 1,514 | 2010-06-22T18:58:14.443 | api_errors | serverfault.com | |
980,592 | Storing assets like css, js, images automatically to s3 | I have an ecommerce web app which constantly gets updated with modified css, js and new images that are being part of visuals like banners images, icons, promotion images etc. At present all of these assets are part of build which gets deployed on server. Due to constant addition of these assets, now my build has reach... | Hi @Abhi , today 200 MB on a development machine is not too much to decide to host the files only externally (on S3 for example). Especially if you need to test your application regularly with those assets on development machines. So, if you can do it I advise you to store your files both in your project and on an Amaz... | 0 | 0 | 123 | 2019-08-25T04:10:47.960 | infrastructure | serverfault.com | |
631,886 | File cannot be downloaded completely via PHP from my nginx | I have a file on my tiny server (BeagleBoneBlack) which I want to download to another machine. Therefore I try to do it via PHP from my nginx-web-server. The file size is about 1.2 GB and the download always stops at about 410MB. Since both computers are behind the same switch I wouldn't see a connection problem. Addit... | Is the PHP code sending the file contents (as opposed to redirecting to an actual file that nginx would serve directly)? It seems to be the case since you're experiencing high loads during the download, indicating that your server could be doing some heavy lifting instead of just passing data around. In that case, you ... | 0 | 2 | 2,315 | 2014-09-28T13:14:46.930 | infrastructure | serverfault.com | |
555,849 | Optmize server access for LAN and WAN (Internet Access) | I am trying to optimize my server so that accessing the local network as well as the internet. The OS is Solaris 9 running on a SUN V210 Connecting outside takes a long time, with sometimes there is a failure in the connection. I get the following error [CODE] Then I try ping again after a few seconds.. ping is success... | You have to troubleshoot the actual problem. If it says "unknown host", then you have to figure out why DNS isn't working sometimes. | 0 | 1 | 114 | 2013-11-18T22:04:48.077 | infrastructure | serverfault.com | |
911,421 | Jenkins: How to resolve resolve plugin errors? | I have a server on which Jenkins(2.12) is installed. There are no plugins are installed(actually I uninstalled every plugin from the plugin manager), though I get the error messages complaining about something related to the plugin dependency. How can I get rid of this error? | Removing the corresponding plugins did the trick. Plugin location ↓ [CODE] | 0 | 0 | 112 | 2018-05-09T09:18:42.873 | pipeline_ops | serverfault.com | |
95,415 | how to delete all rows with empty field via function/trigger combo in Postgres v 9.3? | In PostgreSQL 9.3 I am trying to write a trigger function that will be called after updates to table [CODE] and that will delete rows of [CODE] where field "email" is empty. Here's my attempt: [CODE] Then I set up the trigger like so: [CODE] This gives me an error when I then do an update on table test2: [CODE] And her... | There are several things wrong with this trigger. First: your delete statement. You can't compare [CODE] using [CODE] . You need to use [CODE] : [CODE] Second: a trigger function ( quote from the manual ) " must return either NULL or a record/row value having exactly the structure of the table the trigger was fired for... | 0 | 2 | 3,774 | 2015-03-17T04:32:45.957 | database_errors | dba.stackexchange.com | |
258,832 | What happens to MSMQ messages sent when a user does not have permissions to a Queue | Doing some testing, it looks like if I try and send a message to a queue that the user is denied the "Send Message" permission on, the message that was sent just disappears. It doesn't show up in the dead letter queue, the outgoing queue, or any other place that I have thought to look. Nor does any sort of exception ge... | By default, MSMQ will discard ALL messages that cannot be delivered for ANY reason. There will be no error messages unless you are sending to a local machine. Sending to a remote machine, you only have error messages if you cannot put a message in the outgoing queue which won't help with delivery to the remote queue. S... | 2 | 2 | 3,563 | 2011-04-12T16:06:13.987 | infrastructure | serverfault.com | |
108,842 | Postgres query plan has high rowcount, slow execution | I've identified this snippet of a query as running at incredibly slow speeds, although it's quite simple. It aims to find all the records in Table1 which don't have a more recent entry in Table2 with the same SessionID. [CODE] Where Table1 is a temporary table with 2640 rows and Table2 is permanent with 3756955 rows. E... | (Unsure whether this belongs as an answer, comment or edit so I'll leave it here unless I hear otherwise.) I was unable to find the cause of the bad row count. However, after rewriting the query like this, [CODE] the estimated row count went to a normal level and execution time decreased drastically, even on large data... | 4 | 2 | 481 | 2015-08-03T10:07:55.020 | database_errors | dba.stackexchange.com | |
390,863 | Weird PID less tcp process blocking port 80 keeps apache from starting | my machine is running on Ubuntu 12.04 LTS. I installed apache 2 on my system. When I try to start it, I get error [CODE] Now this is very common problem regarding apache. most solution are to hit command [CODE] then get pid and kill the process. Linux gods are angry in my case I think. When I hit the same command, I ge... | Did you run this command as root or via sudo - you don't get to see the PIDs otherwise. | -1 | 4 | 566 | 2012-05-20T21:28:07.883 | infrastructure | serverfault.com | |
780,046 | How to fix 'Relay Access Denied' | I'm trying to setup postfix as MTA on a AWS EC2 instance. I want to use this as mailserver for my domains and want to use it along with Outlook/Thunderbird. I've never setup postfix before, therefore I used this great guide here: http://flurdy.com/docs/postfix/ Now I can connect to the server via STARTTLS to mail.mydom... | I think the problem is here [CODE] Try to add and network 192.168.178.0/24 and del # [CODE] | 1 | 3 | 6,488 | 2016-05-31T15:09:23.497 | infrastructure | serverfault.com | |
710,428 | uwsgi native https support? | I want to run my uwsgi server with https. Yes, I know it is a wrong thing to do in production. The docs clearly say: configure your keys and use [CODE] option: http://uwsgi-docs.readthedocs.org/en/latest/HTTPS.html Problem is, no such option exists, apparently: [CODE] What am I missing here? | You probably have to rebuild uwsgi with ssl-support: On a debian server with uwsgi installed by pip this would be (as root): [CODE] [CODE] for reinstall, [CODE] for building new from scratch. | 1 | 3 | 2,141 | 2015-08-03T09:25:58.703 | infrastructure | serverfault.com | |
325,968 | MariaDB 11 fails to start: [ERROR] [FATAL] InnoDB: Unable to find charset-collation for 15 | after performing an upgrade from MariaDB 10.11 to 11.0.1 on AlmaLinux 9.1 MariaDB fails to start when I set my datadir to the location of our old MariaDB 10.11 databases: [CODE] If I don't set the datadir MariaDB 11 starts. I tried to set different InnoDB Recovery Modes but it didn't work. How can I find and fix the wr... | In MariaDB and MySQL, be cautious about pre-GA releases. They are not for the faint of heart. 10.11.1 would be such a case. Suggest 10.11.2 or 10.10.3 or the latest 10.6.xx, which will be "LTS" meaning that it will be supported for 6 years (until 2026). Meanwhile, you could help them by filing a bug report about the co... | 1 | 3 | 998 | 2023-04-13T10:43:04.430 | database_errors | dba.stackexchange.com | |
183,359 | How to join two tables with different numbers of rows | I've already search the net about this but it can't solve my problem. I have two tables one with 10 rows and other with 9 rows table 1 [CODE] table 2 [CODE] I want to join these two tables but I want the output to be like this [CODE] my first code is [CODE] but the result of my code is [CODE] I want to connect table 2'... | I think I find the right answer now: [CODE] | 3 | 0 | 8,872 | 2017-08-13T07:48:16.643 | warehouse_errors | dba.stackexchange.com | |
44,218 | SQL Server giving intermittant connection failures | I have a SQL Server 2000 running on Windows 2003 Server that is giving me intermittent connection failures. The user connections are getting closed on waiting but mature connections. Meaning when users are connected to an application that is running on this server, the programs start up fine. The problem usually shows ... | “I'm wondering if there is some odd setting that is killing older, not active connections?” – short answer is no. This is probably network issue, or SQL Server being under big performance impact or DNS or something similar. Is your application on the same machine as SQL Server ? Do you have any other issues? Can you ru... | 1 | 1 | 374 | 2013-06-10T15:31:21.520 | database_errors | dba.stackexchange.com | |
118,007 | Disk I/O issue with Solaris Zone | I m not even sure if this is an issue but before I dig deeper I wanted to check if it really is one. I have a Sun Solaris server running Solaris 10 with 2 non-global zones on it. Is there a problem with Disk I/O in non global zones. To be more specific, would a MySQL database in a non global zone be any worse than one ... | There is always a performance penalty associated with zones. Whether or not it impacts your application is a different question. It's not really possible to say that your disk performance will suffer on throughput or IOps without more information. One benefit you may get from zones is the ability to prioritize and limi... | 0 | 0 | 1,209 | 2010-03-01T19:19:24.473 | database_errors | serverfault.com | |
773,866 | AH00027: No authentication done error after upgrading from Apache 2.2 to 2.4 | I recently updated Apache on Cent OS 7 from 2.2 to 2.4 and after the update I am not able to access the root folder, I get the following error: [CODE] As mentioned here in the Authorization section you can still use old directives Order, Allow, Deny, and Satisfy by loading the module (Which I loaded obviously): [CODE] ... | For someone who intercepts with the same problem, the solution in my case was to add the following line in the httpd.conf file: [CODE] | 0 | 0 | 14,935 | 2016-04-29T14:49:24.567 | api_errors | serverfault.com | |
164,347 | Method flags as arguments or as member variables? | I think the title "Method flags as arguments or as member variables?" may be suboptimal, but as I'm missing any better terminology atm., here goes: I'm currently trying to get my head around the problem of whether flags for a given class ( private ) method should be passed as function arguments or via member variable a... | On the other hand, this member variable isn't really representing any object state (as it's neither set nor available outside), but is really a hidden additional argument for the "inner" private method. That reinforces my gut feeling upon reading your question: try to keep this data as local as possible, i.e. don't add... | 8 | 15 | 5,264 | 2012-09-10T11:26:34.607 | api_errors | softwareengineering.stackexchange.com | |
347,538 | Running rsync doesn't give desired results | I have a linux box that has a Windows 7 share mounted. The Linux box has a cron job to copy the contents of the Win7 share to another location on the Linux box -- a backup. The script run is simply [CODE] I have another Linux box outside the LAN that runs the same [CODE] command between the Linux box in the LAN back to... | Obviously the problem is in the [CODE] option, which means "skip updating files that exist on receiver" (as per man rsync(1)). Remove the option and everything should work as you expect. You could also consider using [CODE] ( http://www.nongnu.org/rdiff-backup/ ) to have incremental backups. | 0 | 1 | 348 | 2012-01-06T22:52:40.977 | database_errors | serverfault.com | |
195,449 | How to move snapshot Azure SQL db from prod to dev on a recurring basis | How can I take an existing production Azure SQL database (or one of its regular backups) and restore it to a dev environment on a regular basis? I want to give developers the option to work on their regular dev database but also have a snapshot of prod available in order to safely reproduce issues found on production. ... | The solution I think will go with is to give up on preserving the db name of the snapshot. Instead I can use Azure Powershell commands to copy the database, using the command [CODE] , and I will add some kind of datestamp on the end of the name. Then I will use [CODE] to update the connection strings with the new Initi... | 2 | 1 | 1,155 | 2018-01-16T02:03:57.630 | database_errors | dba.stackexchange.com | |
588,216 | Will tcnative-1.dll version 1.1.30 work with tomcat 7.0.29 without any issues? | In order to fix the Heartbleed vulnerability a new release of the tomcat java native libraries is being created. Will this release work with older versions of Tomcat 7 such as 7.0.29, or will this possibly cause problems with code running on the system? Would it be better to just update the whole stack at once? | I've tested with 7.0.45 and it worked just fine. All you need to do is replace the tcnative-1.dll from /bin folder and restart the tomcat service. catalina log file shall print the new OpenSSL version loaded by APR while initialization. Make sure this version string is different from earlier. I think this works for 7.0... | 0 | 0 | 637 | 2014-04-10T20:35:59.280 | infrastructure | serverfault.com | |
292,033 | Table name both exists and does not exist in the same query | I'm trying to send some data to an Oracle database. The parameterized query looks like this: [CODE] When I run it, I get a truly bizarre error message: Error: 942, Position: 506, Error msg: ORA-00942: table or view does not exist Position 506 is the fourth iteration of [CODE] in my query. But they're all the same table... | I know Oracle has a reputation for being difficult to deal with, No comment but this is just straight-up insane! Has anyone seen this before, who might know how to get it working? It's working just fine. As it parses that single sql statement, it is finding multiple errors . . . multiple times it refers to a non-existe... | 0 | 1 | 169 | 2021-05-21T19:05:07.340 | database_errors | dba.stackexchange.com | |
14,124 | Predict the best time of call | I have a dataset including a set of customers in different cities of California, time of calling for each customer, and the status of call (True if customer answers the call and False if customer does not answer). I have to find an appropriate time of calling for future customers such that the probability of answering ... | You might actually encounter problems if you model this as a regression problem without a suitable transformation. For instance, we know that most calls are probably answered during daytime and less during night time and early morning. A linear regression would have difficulty because the relationship is likely curvili... | 15 | 7 | 6,506 | 2016-09-21T08:08:19.270 | data_quality | datascience.stackexchange.com | |
835,861 | Nginx + Tomcat 8 + SSL reverse proxy | I'm following this example: https://devtidbits.com/2015/12/08/nginx-as-a-reverse-proxy-to-apache-tomcat/ my goal is to have Tomcat running and Nginx in front of it. I would like to have structure similar to this: test.com/ - static site from nginx test.com/tomcat - tomcat manger (with working links) test.com/app - tomc... | Try the following one instead of your two [CODE] locations: [CODE] | 0 | 0 | 4,166 | 2017-03-02T12:02:51.350 | infrastructure | serverfault.com | |
114,865 | Redundant code ok? | Using C#/.Net, I have a page where the user can enter data and save these data by clicking a button. To save data, the user needs to enter a valid date, this means a date which has a certain format. The page contains amongst others two modules. The ValidateDate-Event has the responsibility two check the format of the d... | Doing the same thing twice is nearly always a bad idea. (see DRY ) You have to change it in two places if your validation changes increasing your chance of bugs. My advice would be have both Save and Validate call another method that validates the input. Its still a good idea to check on save as well as validate as you... | 4 | 10 | 238 | 2011-10-18T10:40:48.860 | data_quality | softwareengineering.stackexchange.com | |
89,969 | SQL Job for Monitoring Blockings on SQL Server | Is it anyway possible to create a SQL Job for monitoring blocking on SQL Instance, if the blocking are still happening after some interval of time? We are using SCOM Monitoring tool to monitor events from the event viewer and generated alert on the basis of this that. Kindly guide as to what can I do generate an event ... | One way to do this is to set Blocked Process Report to 60 seconds, then an event will be raised by SQL. This event can be picked up in a number of ways. 1) Via SQL Profiler, this isnt a great way as you have to run trace etc to find them 2) Via Extended Events, again not great you would have to have a job constantly po... | 0 | 1 | 1,123 | 2015-01-22T20:43:33.483 | database_errors | dba.stackexchange.com | |
19,736 | Search for null in id column over all tables programmatically | I want to automatically check for null ID's over all id columns in my database, I have to check all tables of which there is about 50,000 so manually doing this is infeasible | This is a function that isn't very elegant, nor optimized, but perhaps it can be a start to get you going. It loops over all tables in a database and in case a table contains a column with name id and if any row value in that column is NULL it will return the table name. The function is quite stupid as it will not chec... | 1 | 2 | 948 | 2012-06-22T15:33:35.770 | warehouse_errors | dba.stackexchange.com | |
27,037 | Offsite backup of Terabytes of data | I'm looking for a way to create an offsite backup of around 8TB of data. I've currently broken the data down into 2-4TB file systems and I'm using ShadowProtect to backup the data from an SBS 2003 server to a Windows 2003 backup server using a weekly full backup, and nightly incrementals. I'm not very happy with this s... | We have ~1TB of data, and backup everything nightly using custom rsync scripts. The nice thing about rsync is that it only copies modified bytes (not the entire modified file) ... plus it compresses the data before transferring. In our old system, we had to cart tapes and disks home since every day about 200GB of files... | 5 | 2 | 2,048 | 2009-06-17T05:49:14.587 | database_errors | serverfault.com | |
115,258 | Why does this query not use the index that exists on SURNAME? | There is an index on SURNAME in the PATIENTS table, we run the following query but the index doesn't get used. [CODE] It seems to be because we check if the variable is [CODE] as if I remove that then I get a constant scan, compute scalar, index seek and nested loop. We need to check if the parameter is [CODE] as we th... | Why does this query not use the index that exists on SURNAME? Because it has to compile a plan that will work correctly for both the cases where [CODE] is NULL and when it is not. In principle it would not be impossible for SQL Server to create such a plan that works in both cases and still uses an index. The dynamic s... | 5 | 10 | 318 | 2015-09-16T15:35:39.340 | warehouse_errors | dba.stackexchange.com | |
62,480 | SharePoint service configuration fails on Windows Server 2008 R2 | I am building a SharePoint test farm with SharePoint server 2007 Enterprise based on Windows Server 2008 R2. There are 3 different virtual machines (Hyper-V), all in the same domain, UCTEST. When I installed SharePoint and ran the configuration wizard, I entered a domain account (svc_sp) as the main farm / central acco... | Deleting the user accounts and recreating them seemed to do the trick. Tried logging on to the machine as the service account didn't work, so i figured there had to be something wrong with the account. deleted it, added it, now it's all working again.. | 1 | 1 | 2,046 | 2009-09-04T15:32:17.373 | api_errors | serverfault.com | |
93,572 | query to find all dblink() | Besides manually searching for all the dblink() used in triggers/functions/stored procedures is there a way to query for this information? Example: There is a dblink inside of a trigger, can I select something from the postgres schema that would identify this? I'm thinking this is a manual effort but asking just to mak... | I would draw a text backup and search it with [CODE] or any tool of your choice. As far as plpgsql functions are concerned (there is one behind every trigger), you can query the system catalog [CODE] : [CODE] | 5 | 1 | 17,627 | 2015-02-23T15:26:37.277 | database_errors | dba.stackexchange.com | |
328,429 | Advice on most fitting choice of virtualization platform: Xen | OpenVZ | KVM | other? What suits the purpose best? | I am aware of the multitude of virtualization threads here but they all seem to be oldish and i'd like to have a brand new one ready for 2012. I'm currently evaluating Xen, OpenVZ and KVM for virtualization purposes. I'm having trouble deciding what to use. The OS this will be running off of is Debian, preferably. The ... | I'd say use KVM - that way your hypervisor & Dom0 can be the standard debian you're familiar with. With KVM, the hypervisor and the Dom0 are the same machine - it's one of the design principles behind KVM that the best hv to have is a full-featured linux system. With Xen, the hypervisor runs on the bare metal and the D... | 4 | 1 | 1,586 | 2011-11-07T10:22:59.383 | database_errors | serverfault.com | |
718,753 | GPO not applying on a Windows 2012 R2 Terminal Server with Citrix VDA | We have a Citrix XenApp environment. In the environment we mostly use Server 2012 R2 as Terminal Servers and have a domain running on 2k8 R2. Now I want to configure Folder Redirection. Therefore I created an OU and moved the Terminalservers in there and also created a group for the users that shall get their Folders r... | I solved the problem. The users and the GPO have to be in the same OU, since the Folder Redirection settings are User Configuration. I now linked the GPO in the Terminalserver OU and the User OU and everything works as expected. The Computer Configuration part from the GPO enables the roaming profiles only on the Termi... | 0 | 1 | 2,784 | 2015-09-03T07:23:47.183 | infrastructure | serverfault.com | |
526,495 | URL Encoding force UTF-8 in CentOS 6.4 | I have a simple html website in a CentOS 6.4 server. In every html page i have set [CODE] I have already added in a .htaccess file the following line [CODE] and in the httpd.conf file of the site i have added [CODE] In the main httpd.conf the line [CODE] is set as well. Still when i debug in Chrome i get that my reques... | The [CODE] directive has only effect for the apache autogenerated directory listings, and nothing to your actual html pages to be served. Your request doesn't specifies any type of encoding, it shouldn't have any effect to your page generation. The content (also the actual encoding of your static html file) also should... | 3 | 1 | 3,197 | 2013-07-26T10:28:42.093 | infrastructure | serverfault.com | |
974,839 | Two domains in one DNS zone file | I manage an authoritative DNS server for my organizations DNS. We recently purchased additional domain names which end in a different domain than the one my organization has. For example, my organizations domain is [CODE] ( [CODE] , [CODE] and so on) Due to management issues, we were required to purchase domain names t... | While it isn't possible to mix domains within the same zone file, it is certainly possible to use a single zone file for multiple domains, if all those domains share the same DNS entries. For example: [CODE] Using that (partial) zone file for all your domains would result in: AAA.GOV.CA has the same IP as MIKE.COM and ... | 0 | 1 | 2,056 | 2019-07-11T13:41:53.753 | infrastructure | serverfault.com | |
601,678 | MySQL won't start after reboot. Exiting with signal 11 | last night I was doing a server maintenance that required DB reboot. No changes in a config were made. Current setup is as follows: master (server1) - master (server2) and slave (server0) MySQL version: mysql-5.5.32 server0 and server1 started fine after a reboot but when i try to start server0 it crashes with signal 1... | Turns out it was a bug introduced in 5.5.32 http://bugs.mysql.com/bug.php?id=69623 where MySQL fails to open a second tablespace if stored in more than 1 file. Update to 5.5.39 solved the issue | 0 | 1 | 1,185 | 2014-06-04T08:54:11.507 | data_quality | serverfault.com | |
302,402 | How to start mysql-shell in mysql-js JavaScript mode? | How can I change the [CODE] shell to [CODE] JavaScript mode? Somehow initially I'm in [CODE] , and I cannot switch to [CODE] , only to [CODE] . Why? [CODE] Installed from: [CODE] . | Unfortunately the [CODE] mysql-shell is compiled without the [CODE] module... Installing manually solved it: https://dev.mysql.com/downloads/shell/ [CODE] | 1 | 1 | 1,463 | 2021-11-10T10:42:18.103 | database_errors | dba.stackexchange.com | |
565,167 | tried to spam postfix, doesn't log IP address | I've had some serious spam issues with my local postfix installation, until I found out that there was a postfix user wich was allowed to relay mails (I still don't know why this was possible in the first place, as relaying was closed for the whole server).. I disallowed submitting mails for this user. Anyway, my probl... | This is a local mail submission, as evident by the "sendmail" part of the log message. Unlike an incoming network connection (which would contain "smtpd" as the logging subsystem), there is no way for postfix to determine - reliably - which IP initiated the request. An educated guess would be that the server in questio... | 0 | 0 | 844 | 2014-01-05T14:23:42.667 | infrastructure | serverfault.com | |
109,575 | How to represent a time duration feature for cases where time is still counting | I have a problem where I am trying to classify the outcome of costumer complaint cases. I have several features already such as type of item bought, reason for complaint etc... I am trying to add a feature that represents how long a case is 'open' (meaning waiting for resolution). The logic being that a case that is 'o... | In my opinion OPENING_DATE - Now() is the right variable as it gives you idea about outcomes of case. A case open for long time may not give positive results. I think you need to think from production persepective rather than feature engineering. If you score a case only once you will face the problem what we discussed... | 0 | 0 | 24 | 2022-04-01T16:05:14.307 | data_quality | datascience.stackexchange.com | |
232,623 | MySQL replication with no connection | I configured MySQL replication between a Master and a Slave throught VPN. Everything works fine, when connection between them is down, and i make some changes to the Master (like insert a row), then when the connection comes back any operation is performed on the Slave. This is the SLAVE and MASTER status before the co... | The solution was to add slave-net-timeout lover like 10 seconds in the ini conf file of the slave and put master-repl=0 that means infinite retryes. So in this case if the connection goes down the slave will notice it after 10 seconds and it will update the db looking in the log file of the master when it comes back on... | 0 | 1 | 178 | 2019-03-20T14:50:26.177 | database_errors | dba.stackexchange.com | |
45,567 | RPM database corrupt | Sometime ago I managed to erase the /var/lib/rpm folder which basically contains information about all the rpms in the System The problem posed is that I cannot query nor Upgrade using the yum I did the steps mentioned like rpm --rebuild and ll that but it did not help Its my pure curiosity to know of a method by which... | Your only chance, if this system is important enough, is to reinstall only to db: [CODE] You could use your /root/install.log and /var/log/yum.log to get a list of installed RPMs, or, if you have a similar system you could get the RPM list from there. That said, if this system can suffer downtime, I'd suggest re-instal... | 2 | 4 | 2,469 | 2009-07-25T18:02:01.897 | data_quality | serverfault.com | |
109,348 | Apache httpd.conf: Multiple virtualhosts on a single ip | We have a local development server we have setup on a comcast business class connection with a single static ip. This is all routed through a DIR 655 router. Our issue is as follows: We have our main documentroot setup as /var/www/html of course, but the problem comes in when we try to setup our virtualhosts. We have a... | I'm not entirely sure that I understand your requirements… But, provided you don't need SSL, you can have as many virtual hosts on one IP as you'd like: [CODE] | 0 | 2 | 2,424 | 2010-02-02T22:54:04.053 | infrastructure | serverfault.com | |
495,726 | Antenna connection 3G modems | something less software related. :) I need to identify the antenna connector for two of 3g modems. the connector looks like this: I do have a crc9 antenna i would like to use, so i just have to find something like an adapter or so. Problem, I live in tanzania where something like this is usually not available best rega... | It look like diagnostc connector. Then to use it as external antenna connector you possibly must cut internal antenna. After this modification it can't work without external antenna. Think about reflector (usually grid antenna) antenna where you install modem itself in antenna focus. Like this - http://www.clearchain.c... | -2 | 1 | 936 | 2013-04-03T11:49:31.973 | infrastructure | serverfault.com | |
248,923 | Failed to install Full-Text Search on SQL Server 2008 | I'm trying to upgrade my SQL Server 2008 with Full-Text Search feature. Installation fails on it's very end with something like this in C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20110318_105034\Detail.log: [CODE] | I also failed to upgrade Full-Text Index in SQL server 2008 . The only thing worked for me is to uninstall the SQL server, then I installed it again in 2 stages: - Install only the Full Text Index - then I installed all other features don't know what was the problem in the first place | 0 | 1 | 1,021 | 2011-03-18T10:18:03.667 | database_errors | serverfault.com | |
776,057 | 802.3ad bonding configuration file on an Ubuntu 16.04 LTS Server | If I use a manual setup on the command line (following the kernel instructions ), I can properly setup my network connection: [CODE] For the record, the switch used is a Cisco Nexus 2248, and I do not specify an IP address because there's an additional 802.1q layer (whose presence or absence in the configuration file h... | I have a working setup running on 16.04 (linux 4.4.0-22) that is very similar. Apart from LACP rate and 1G (eno1+) vs 10G SFP+ (eno49+) the biggest difference seems to be the use of [CODE] . [CODE] Some of these options may be redundant. [CODE] Not seeing any stalls during boot. Doing a [CODE] yields a short wait of a ... | 4 | 2 | 25,849 | 2016-05-11T08:28:49.570 | infrastructure | serverfault.com | |
758,410 | Servers unexpectedly change to BDC on AD? | I've got two AD virtual machines runnning on HyperV. AD1(PDC) syncs its time with pool.ntp.org and AD2(BDC) syncs with AD1 to get the time correct. Both are windows server 2008 servers. This worked fine for a while, but lately servers seem to drop out from AD1 and authenticate with AD2 instead, even though AD1 is up an... | This doesn't have anything to do with time synchronization. Your time sync configuration appears to be correct from what you've stated in your question. The DC that holds the PDCe role should sync with a reliable external time source. All other domain members should sync with the domain hierarchy. This includes all oth... | 1 | 6 | 184 | 2016-02-19T15:08:57.263 | infrastructure | serverfault.com | |
842,556 | Is a smartphone recognized as a smartphone when connected to wifi? If so, how can I avoid that? | So I wanted to know if when I connected my iPhone to a wireless connection, the router or device that shares the connection is able to recognize my iPhone as an iPhone. I mean are all smartphones "registered" or read as smartphones under the provider's wifi? I know that with an ip address it's pretty impossible to dete... | Yes. There is an Organizationally Unique Identifier in your MAC Address that can identify your device (i.e. android, motorola, samsung). Levels of granularity depend on whatever device is actually watching the network traffic (e.g. you might have a firewall that automatically resolves the OUI to a particular vendor). A... | 0 | 1 | 50 | 2017-04-04T17:41:20.807 | infrastructure | serverfault.com | |
126,614 | How effective are "game programs" in interviews? | I write business applications for a living. Often, for whatever reason, an interviewer asks me to write up a program to solve some kind of game like problem. I find this to be an inappropriate question for two main reasons: Games often deal with constructs that are rarely used in business dev. E.G. Multi-dimensional ar... | It's one of those "We want to inteview like Google/Facebook/Amazon/etc" questions. Unless you're actually interviewing for a position at a game company, it wouldn't be useful to ask such questions. It would be more valuable to discuss/test something related to the problem domain of the company. For example, if I wanted... | 7 | 7 | 739 | 2011-12-22T19:19:34.120 | api_errors | softwareengineering.stackexchange.com | |
953,338 | MX record pointing to A record with two different IP's | So my problem is simple I just need a solid answer so that I don't break the email service. I have two servers one for mail and other for the web service. The web server is responsible for the SSL certificates renewal (I'm using Let's Encrypt Certificate Authority). My DNS A record is mail.example.com and points to the... | You've created a DNS round-robin . Do not create multiple A records with the same name unless you intend for them to point at the same service. There are other ways of solving what you are trying to do; for example by setting up a minimal web service on the mail server with the explicit task of renewing certificates, o... | 0 | 3 | 1,680 | 2019-02-11T11:25:25.290 | api_errors | serverfault.com | |
285,546 | is it safe to compress backups for databases with TDE enabled? | I've been reading about this for a long time, and it seems it's not safe to compress a backup when the database has TDE enabled. is anyone experiencing errors during restore with compressed backups for tde databases? I've never experienced these kind of errors but i'm really worried about it. It seems the problem is wi... | I've been reading about this for a long time, and it seems it's not safe to compress a backup when the database has TDE enabled. You asked about safety so replying. Using backup compression with TDE is safe and I have been using it quite a lot. What doesn't works well, for version SQL Server 2014 and below is the backu... | 2 | 6 | 951 | 2021-02-17T12:11:46.617 | database_errors | dba.stackexchange.com | |
85,047 | Maximum Likelihood with Gradient Descent or Coordinate Descent blows up | Context The maximum likelihood estimators for a Normal distribution with unknown mean and unknown variance are $$ \widehat{\mu} = \frac{1}{n}\sum_{i=1}^n x_i \qquad \text{and} \qquad \widehat{\sigma}^2 = \frac{1}{n}\sum_{i=1}^n (x_i - \mu)^2 $$ These can be found (for example) by taking derivatives of the average log-l... | You correctly computed the gradients, but the optimization step is incorrect. Your gradient is computed at point $(\mu,\sigma)$ , and, therefore, it should be used to update $\mu$ and $\sigma$ simultaneously. Correct update rule is $$ \begin{align} \mu_{t+1} &\longleftarrow \mu_t + \gamma \left(\frac{\overline{x}}{\sig... | 1 | 1 | 191 | 2020-11-06T23:17:29.533 | data_quality | datascience.stackexchange.com | |
429,942 | Why `struct` unconstrained method fails to accept `null` as `T?` parameter | Considering example below, one observe that for [CODE] argument is successfully understood as [CODE] parameter. For [CODE] conversion to [CODE] fails. [CODE] Comments show resolved method signature. For [CODE] [CODE] notion is completely ignored. That prevents [CODE] usage on input. It is not so obvious what prevents c... | Signature is definitively unique so it cannot represent 2 overloads at once. Signature [CODE] cannot be understand [CODE] and [CODE] at once . So it is chosen to go with [CODE] [CODE] . [CODE] IL [CODE] [CODE] serves compiler null state analysis of reference types . Thoughts If [CODE] declared [CODE] and [CODE] declare... | -2 | 0 | 423 | 2021-07-03T14:36:30.107 | api_errors | softwareengineering.stackexchange.com | |
713 | Cloudera QuickStart VM Error | I have installed cloudera CDH5 Quick start VM on VM player. When I login through HUE in the first page I am the following error “Potential misconfiguration detected. Fix and restart Hue.” How to solve this issue. | Go into the other link from home - to the cloudera manager. From there, you'll see Hue can be restarted, but there is probably an alert that needs to be resolved in there first. If I remember right there's some initial configuration that needs to be done on the quickstart VM that's spelled out as soon as you log into t... | 3 | 2 | 1,350 | 2014-07-09T17:51:40.583 | data_quality | datascience.stackexchange.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.