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 |
|---|---|---|---|---|---|---|---|---|---|---|
37,002 | how to enable assertions through the Gradle Kotlin DSL? | The simplest possible [CODE] usage I could think of: [CODE] Which is fine, so far as it goes. How would I modify the build file: [CODE] so that it will run with assertions enabled? | You must enable assertions via the [CODE] flag. [CODE] | 2 | 1 | 782 | 2018-12-23T16:37:03.010 | data_quality | sqa.stackexchange.com | |
656,299 | NGINX Permissions: 'sudo nginx' vs 'sudo service nginx start' | I'm doing a capistrano Setup here with nginx 1.6.2 and Unicorn. But Under my current setup nginx doesn't create the server i have written in con file. Im sure its a permission error for my user's directory as thats where the conf files are located under two rails app dir. My nginx file is as below: [CODE] [CODE] is emp... | This is an selinux problem. When you run [CODE] it starts [CODE] as [CODE] , when you run [CODE] it starts nginx as [CODE] . By initially starting with just sudo it creates a bunch of files and initializes its state as [CODE] . For example the pid file will be the wrong context. Thus when using [CODE] to terminate it t... | 1 | 7 | 7,480 | 2015-01-05T08:22:23.863 | infrastructure | serverfault.com | |
779,233 | server with public IP cannot be accessed internally | Most of our servers only have private IPs. I am assigning additional public IP to one of our servers (server A), keeping its private IP at the same time. Here's what happens: Server A can be accessed externally by its assigned public IP. Server A can be accessed internally by its assigned public IP. Server A cannot be ... | Windows update may fix your issue. I am assuming that you are trying to connect using the IP address not the DNS name you may have assigned to your public and private IP address. This could avoid any DNS issue. Time or date difference using remote desktop | -1 | 0 | 869 | 2016-05-26T16:55:00.863 | infrastructure | serverfault.com | |
150,264 | Is there any way to collect script of running SP with it's input value using DMVs? | I am using below script to collect information about active sessions. It returns Query/SP (script), it's estimated E-Plan, resource consumption and other information. I know to use profiler to collect script of SP with it's input value but because performance of SP varies on different input value, `it's not good idea t... | Have a look at a possible method here - Getting the Query Plans and Parameters Directly from the Plan Cache | 2 | 1 | 62 | 2016-09-21T10:44:13.423 | warehouse_errors | dba.stackexchange.com | |
574,236 | Nginx no-cache header for ?random query string | On an Nginx install using WordPress with the Jetpack plugin, it has the ability to use domainname.com/?random to redirect to a random blog post. The problem is that this page is getting cached and after visiting the random link once. It will not randomly redirect anymore - you simply get the same page as the first time... | Inspired by Michael Hampton's comment, I dug deeper. It made me realize that W3 Total Cache is probably to blame for caching ?random links on a per-user basis. In the W3TC plugin's settings I added "?random" (no quotes) to the "Cache exception list" on the Page Cache setting page (/wp-admin/admin.php?page=w3tc_pgcache)... | 1 | 0 | 1,016 | 2014-02-09T02:33:18.637 | infrastructure | serverfault.com | |
629,823 | MediaWiki in multi-server environment | I'd like to ask about some strategies with MediaWiki. How would you run MediaWiki with good performance on a multi-server environment? Since it has configuration files it will also need some sort of central configuration. Resources available are all of AWS' services. Does anybody have experience and ideas? Here are the... | Your question is rather generic, so I can only provide a rather generic answer. In particular, you mention a multi-server environment, but it's not clear to me whether you want a multi-site installation. In general: consider first of all what you actually need. Most MediaWiki sites don't need squid, simpler caching wil... | 0 | 0 | 342 | 2014-09-19T11:44:44.020 | infrastructure | serverfault.com | |
194,230 | Filter records that have a certain status | I am using mysql and I have two tables, product and revision. Joining them gives me the following table: [CODE] A Product has a unique ID that identifies a product. Due to price changes each product can have several different prices. Each product has a revision id. The revision table has a revision_status and can have ... | Try the following query (for starters): [CODE] If this gives you the required result, maybe we should cover the (revision_status) cases '1' and 'null' explicitly, by refactoring the WHERE clause as follows: [CODE] | 2 | 1 | 79 | 2017-12-30T10:51:27.430 | database_errors | dba.stackexchange.com | |
591,246 | Verify OpenVPN is no longer vulnerable to Heartbleed | As you may know, OpenVPN is vulnerable to the heartbleed attack. However, I can't find any guide online on how to fix it. The only source I've found is this: http://community.openvpn.net/openvpn/wiki/heartbleed Is just doing (in Ubuntu) apt-get update; apt-get upgrade; apt-get dist-upgrade enough to make sure that my O... | Let's follow the trail! What does [CODE] use? [CODE] OK, it's using [CODE] provided by...? [CODE] ... provided by [CODE] : [CODE] Looks good to me. | 0 | 4 | 1,240 | 2014-04-25T03:09:55.263 | infrastructure | serverfault.com | |
37,155 | What is a resonable workflow for designing webapps? | It has been a while since I have done any substantial web development and I'd like to take advantage of the latest practices but I'm struggling to visualize the workflow to incorporate everything. Here's what I'm looking to use: CakePHP framework jsmin (JavaScript Minify) SASS (Synctactically Awesome StyleSheets) Git C... | You could check out Google's PageSpeed extension for Apache : afaik, there is an option to aggregate and minify Javascript and CSS automatically and combined with caching, this would fit what you mention you're looking for at the end of your post. | 9 | 2 | 1,391 | 2011-01-16T02:34:37.747 | database_errors | softwareengineering.stackexchange.com | |
254,222 | How do I forward and autoreply to incoming emails? | Our company just switched to a new email domain and wants to keep the old domain around for a year as they notify everyone about the change. The old email domain was on Exchange 2007 and the new email domain is on Google Apps. Everyone is 100% on Google Apps, and the Exchange server just forwards on emails. I would lik... | I expect you want to fake a bounce message on the old domain. I use Exim and their is a control to do this. You will also want a clear bounce message that indicates that the email was accepted for delivery, but future messages should be sent to the new address. Exim also allows for custom bounce messages in the aliases... | 3 | 3 | 11,758 | 2011-03-31T16:53:09.643 | infrastructure | serverfault.com | |
576,287 | Passing arguments to a Powershell Script using Nagios NRPE | Short powershell script for testing: [CODE] nsclient.ini settings: [CODE] And the Error message: $ /usr/local/nagios/libexec/check_nrpe -H 10.11.11.101 -c test -a blablabla RETURN CODE: 3 (UNKNOWN) OUTPUT: Arguments not allowed What am I missing? | Arguments can be allowed on multiple levels (depending on how you want to slice your "security"). In essence this means you can allow arguments at the NRPE level as well as the external scripts level (and in your case you probably want them in both places) You can find some background details here: http://docs.nsclient... | 2 | 2 | 19,361 | 2014-02-17T22:18:03.023 | infrastructure | serverfault.com | |
290,097 | Document and best practices for configuration of a dedicated server (Centos) to serve just one website | I have just bought a dedicated server and they provide me a IP address, access info as root and machive with Centos 5. I would like to serve my django app in that machine but because I have no experiences such server issues I don't know what is the best way to do that. I have install mysql, python 2.7.1 and django as r... | don't run it as root, it is a safety risk make a seperate user for mysql that only has the rights it needs, you can even make different ones : (if you only need to read for certain users only give that user read rights) http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide install a firewall, close everything a... | 3 | 4 | 287 | 2011-07-13T18:40:42.283 | database_errors | serverfault.com | |
270,379 | Indexing a date column in MySQL doesn't work if a date function is used | I have a table with the following schema [CODE] I run EXPLAIN on this query [CODE] This query runs and fetches records using the index on completed_date However, While running the same query with a date function [CODE] The index isn't made use of resulting in a slow query. Can someone explain the reason behind this beh... | This is a common issue with functional transformations of any type not only dates. To avoid this issue just move the transformation to the constant side of comparison. Instead of [CODE] use the next syntax: (notice the reverse transformation of the TZs) [CODE] The reason of that behaviour is that plain index contains t... | 2 | 6 | 3,335 | 2020-07-04T18:05:53.140 | database_errors | dba.stackexchange.com | |
690,277 | How to allow more than two simultanous sessions on Azure | One of our servers is on Azure and we are remotely connecting to it. Unfortunately Azure allows only two users to be logged in at the same time. When the third user tries to log in, he is given the option to disconnect one of the already logged in users. Is there any way for more users to log in simultaneously? Is ther... | This is nothing to do with Azure, this is the limit imposed by Windows Server on remote administration, you can only have 2 administrators connecting to a server to manage it at once. If you need more than two connections then this is no longer remote administration, you are running a remote desktop server and providin... | 7 | 12 | 16,332 | 2015-05-07T11:09:03.380 | infrastructure | serverfault.com | |
244,878 | How I can find out the foreign wrapper that a foreign table belongs to? | I have found that the following query lists all my foreign tables in my PostgreSQL database: [CODE] Now I want to find out the foreign wrapper connection that a database is referred into. In this answer the following query lists all my foreign wrappers: [CODE] Now what I want is to find out how to combine this informat... | This should do the trick: [CODE] You may find more information on [CODE] in the documentation . | 1 | 3 | 328 | 2019-08-08T13:35:40.290 | database_errors | dba.stackexchange.com | |
646,642 | Orange blinking warning on Fujitsu Siemens RX-100 | I am managing an aged Fujitsu Siemens RX-100 server running raid-1, Red Hat Enterprise and Oracle 11-G. There are no apparent faults, but the orange triangle warning light is flashing. How do I figure out what is causing the flashing light? I don't have ServerView or Nagios installed, and the only tool I have found so ... | If upon a reboot you don't see specific POST errors that can be diagnosed by the user guides that HopelessNoob linked: S5 RX100 User Guide S3 RX100 User Guide Then you'll need to install the ServerView agent for Linux and get ServerView operational to diagnose the server's hardware. If that's not an option, then you wi... | -1 | 4 | 3,927 | 2014-11-24T13:22:33.237 | airflow_errors | serverfault.com | |
261,341 | What are the main principles of SQL Server AGs depending on WSFC? | We have WSFC with 4 nodes + a file share witness. Only nodes 1-3 have SQL server on it with Availability Groups (AGs), and node 4 is shut down gracefully. Node 1 has the primary AAG server. Now, we recently had an uncontrollable outage for which the only thing we know for certain is that nodes 1 and 2 were together wit... | Should not the current WSFC host also be the primary AG server? No. The hosting of the core cluster resources is independent of the AG primary. Generally speaking, it's not super important which server is the WSFC host when dealing with a WSFC cluster for SQL Server Availability Groups. How does the listener work? In o... | 2 | 3 | 114 | 2020-03-06T09:19:32.110 | database_errors | dba.stackexchange.com | |
204,955 | MySQL - Left Join takes too long, how to optimize query? | A leader may have many followers. A [CODE] table gets a single notification when a leader adds a post with an entry [CODE] and [CODE] (id 1,2 in table). The same table gets a single notification when the current user [CODE] is followed by someone, with an entry [CODE] and [CODE] (id 3 in table). [CODE] ( id is PRIMARY,... | Summary from the comments: So far I'm getting the best result with [CODE] and [CODE] and all the other indexes, except the primary ones, dropped. For [CODE] it used the [CODE] index with me. I couldn't find anything better than [CODE] for this table so far. Tests were done on a MySQL v5.7.21 32 bit on Windows 7 32 bit.... | 2 | 3 | 21,823 | 2018-04-25T19:42:08.580 | database_errors | dba.stackexchange.com | |
574,801 | Adding eth0 to openvswitch bridge makes internet stop working | Adding my eth0 interface to openvswitch bridge with: [CODE] makes me unable to accesso to the internet both on the host and , obviously, on the guest. How to solve this problem? My intention is to connect my virtual machines to the internet forcing them to pass through my openswitch bridge, so to control their traffic. | It guess you must assign your IP to the bridge br0 and set br0 as your new default gateway as soon as eth0 is added to the bridge. | 0 | 1 | 2,642 | 2014-02-11T18:50:43.340 | infrastructure | serverfault.com | |
422,999 | How to boost reusability and extendability in a MVVM .Net application? | I'm a software engineer that primarily writes C code but now and then makes [CODE] applications for fun. This is a question about the fun part. Over a duration of about 15 years, I have used and expanded my own framework and now I am stuck . I would love feedback from someone who has experience in writing complex appli... | Based on the responses of @Robert Harvey, some more research and actually trying out the mentioned scenarios I feel like making interfaces for all models used by the services is the best choice. This way, the models are an implementation detail of the services - which are just singleton domain models that are injected ... | 2 | 0 | 353 | 2021-03-04T16:31:22.670 | pipeline_ops | softwareengineering.stackexchange.com | |
341,161 | Handling Master/Slave on the Application Layer | So I am working on a legacy system, that had one database server. For reporting and to split the work load it has been moved to a Master / Slave setup. This process is done and seems to be working well with little to no lag between an insert or update on the master, and it being copied to the slave. The problem I have ... | My solution to this question has been to do this: I already had a database class to do all queries with, so I added a check to the top of the $db->query() function to check if it was a select call, if it wasn't, it is auto-sent to the master. If it was a select call, it checks the cached version of SECONDS_BEHIND_MASTE... | 1 | 1 | 427 | 2017-01-29T04:29:34.100 | database_errors | softwareengineering.stackexchange.com | |
314,710 | Local computer for serving a web app via LAN | Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites I'm planning to create a "voting tool" to help votation in a conference of my NGO. My idea would be to create a small app with node.js + mongodb for server and websocket for pushing to the various clients. My machine is a not so young ma... | You don't say anything about how big your conference is, how many people you expect to vote, how many workstation/kiosks you're going to provide, etc. It's hard to imagine this not being enough, but who knows. Your router may simply be slaughtered from everyone downloading movies on your WiFi, and they'll never even hi... | 0 | 1 | 140 | 2011-09-21T17:54:27.643 | data_quality | serverfault.com | |
873,159 | Why can't I use a DSC resource in push mode from a module that is installed in my user's module path? | I have a Powershell DSC custom resource, embedded in a module. The full code is available here if you want to see it, but that may not be necessary; my problem isn't (I think) in the code I wrote, but in how to access it. In my case, I'm using DSC Push Mode. There's a normal Powershell script I use to install required ... | Processing the DSC configuration runs under a system account, and therefore isn't searching a particular user's PSModulePath. Put the module in one of the standard locations, typically under [CODE] . When you say you modified your [CODE] , I assume you did that for your current user, rather than modifying a machine wid... | 5 | 2 | 1,213 | 2017-09-12T01:04:46.120 | infrastructure | serverfault.com | |
285,945 | All Requests Directed to one Virtual Host | I just installed Apache 2.2, and am trying to have two domains hosted on the same server configuration. I first created a Virtual Host ( a.com ), and debugged my configuration so that it was working. When I tried to add virtual host b.com , and tried to access it, all I get is the correct page for a.com. Both Virtual H... | I figured out the solution to my problem while trying BMDan's suggestion. I opened up [CODE] , which should have been (and was saved as) including files from client [CODE] and [CODE] . Instead, all it had was the include for [CODE] . I have no clue why it didn't contain the right data, but my Apache install is now work... | 3 | 0 | 347 | 2011-06-30T21:02:48.897 | infrastructure | serverfault.com | |
298,600 | Struggling about the benefits of using a plugin approach in a Industrial Software Architecture | I'm trying to design an application, something quite generic over a .NET C# Stack. It's supposed to be an desktop application intended to control industrial equipment and to perform measurements and testing, however it's planned to be able to switch later on different UIs dealing with different I'm trying to have a pre... | We are working on same Architecture with different approaches. Currently we working with plug-in approaches with EF because when we talking about Licensing and Reporting that’s should be customer based need or requirement, For example currently some customer need some basic feature of application that’s based on licens... | 2 | 2 | 987 | 2015-09-30T02:50:19.983 | data_quality | softwareengineering.stackexchange.com | |
260,868 | Tomcat server not starting up with Tomcat5.sh | I have installed Tomcat 6.0.32 and have been trying to use the Tomcat5.sh script to startup jvsc. The problem I'm having is when I run the Tomcat5.sh script Tomcat does not actually start up. When ever I run the script I get this message in the catalina.out log [CODE] Here is the code to my Tomcat5.sh [CODE] Thanks for... | I had the same problem. libclient.dylib is a 32 bits executable. You have to use the server JVM instead by specifying [CODE] as parameter when starting [CODE] . | 0 | 1 | 427 | 2011-04-16T22:39:04.880 | infrastructure | serverfault.com | |
151,752 | Same schema, same data, same execution plan? | I have a T-SQL stored procedure in SQL Server 2014 SP2 that takes 3x as long on the server as it does from my local environment. I restored my local database to what was on the server, so schema and data are the same. I'm a programmer, not really a DBA, so bear with me on this. The execution plans seem the same until y... | The hardware configuration can affect plan selection as I discuss in my answer to the related Q & A: difference in execution plans on UAT and PROD server The question doesn't quantify the "3x" performance difference, but assuming it is important enough to be concerned about: You can force the broad shape of a plan comp... | 3 | 8 | 119 | 2016-10-07T22:04:44.807 | database_errors | dba.stackexchange.com | |
55,307 | Display table names in titles in SQL Server Management Studio | Does anyone know how to get SQL Server Management Studio to display the Table names in the Title. Right now they are next to useless and every time I need to look at a table I have to reopen it. In the good old days I used to use to Enterprise Manager and that was much more useful. I found Brent Ozars article here , an... | If, when opening a table you choose [CODE] instead of [CODE] : The table name will then be displayed in the address bar: which makes navigating between already open tables much easier. You can use the SQL button if you need to edit the query in any way, but if you change it too much it defeats the object of having the ... | 8 | 2 | 11,616 | 2013-12-19T14:33:22.450 | database_errors | dba.stackexchange.com | |
1,054,250 | Nginx server blocks and socket.io - CORS | I have been running apps with this server blocks structure for sometime and it has never given me any problems. [CODE] However I am trying to use socket.io and I am having problems understanding if the subfolder is a problem as I keep getting CORS if I try to connect from the client as in [CODE] On the server I got thi... | In your second picture, the socket.io lib is using polling. This may come because you didn't set the nginx config properly. [CODE] Here is a good example.After changing this you should be able to reach your backend just using the following: [CODE] Notice that if all your request go through the Nginx, you don't need the... | 0 | 1 | 3,997 | 2021-02-19T11:29:13.353 | api_errors | serverfault.com | |
1,099,190 | Getting 401 Unauthorized while trying to pull images from local docker registry (harbor) from k3s | Due to work I need to self-host a local docker proxy cache using Harbor . So i wen to their doc and I installed the server and configured it properly, accesing it via FQDN and using a self-signed certificate. I'm able to use [CODE] from external clients and [CODE] without a problem. My idea is to serve this Harbor serv... | The [CODE] entries contain the [CODE] and [CODE] sections but it appears that the [CODE] section is not taken into account due to a redundant misplaced registry entry [CODE] "https://harbor.virtalus.com": [CODE] Feel free to remove it and let me know if that solves the issue Additionally, as a side note you might want ... | 2 | 2 | 10,127 | 2022-04-22T03:49:12.297 | pipeline_ops | serverfault.com | |
347,091 | Scientific data storage: many small files, one volume or several? | I have about 8 TB worth of 'sample' data with the following characteristics: each sample: 5-15 GB in one folder containing ~20k files and ~10k subfolders (2000 top-level, 5 sub-level containing a ~.5-2MB data files and small settings files). I am setting up a Dell T710 server running Windows server 2008 R2 with 19 TB e... | 19TB in a single RAID-5 volume is awfully big. You don't mention how many disks you have in that volume but, being in a Dell T710, I think it's highly likely that you've got more than 1TB per disk. I get antsy with RAID-5 members being that large. If that's a single RAID-5 span that's even more scary to me. (I don't li... | 1 | 4 | 814 | 2012-01-05T20:11:03.513 | data_quality | serverfault.com | |
331,904 | SBS 2008 IIS7 and Linux Apache2 in the same LAN on the same port | I have an SBS 2008 with IIS7 on it running a web site "www.domain.com", I also have a Web Server (Linux) with Apache2 in the same LAN running a web site "apps.domain.com". The problem I have is that all the requests on port 80 from WAN goes straight to the SBS's IIS7, even thou I have specified in the SBS DNS Server th... | The problem is that you've only got 1 public ip address (I'm assuming) and as such your router/firewall can only forward traffic coming in to that public ip address to one internal host for port 80. If you want to forward port 80 traffic to the other host you'll need to change the port forwarding on the router/firewall... | 0 | 0 | 69 | 2011-11-17T11:34:32.853 | infrastructure | serverfault.com | |
699,339 | Puppet-Dashboard Doesn't Load With Ruby Gem Passenger 5 | Has anyone encountered problem of running Puppet Dashboard on Ruby Passenger 5? If yes does it really work with that Passenger version? I've already setup and configured the necessary files required to run Puppet Dashboard via Passenger. Currently, the Apache test page is shown instead of the dashboard menu. This will ... | I had this issue and noted that [CODE] didn't exist. I was able to correct the issue by doing [CODE] while in [CODE] . | 0 | 0 | 190 | 2015-06-16T10:43:39.043 | bi_errors | serverfault.com | |
919,759 | Domain Controller error after removing legacy SBS server from the local network | I am migrating a [CODE] to a [CODE] and thought I was on the last mile, shtting down the source SBS server. It seems my domain still depends on the legacy SBS though. When I remove the old server from the network (either by shutting it down or just pulling the network cable) I am getting 2 problems: Error when starting... | AD is multi-master environment able to determine which DC is alive and which is dead. In general, you should remove all those DNS records in the end but that shouldn't prevent you to use new DC if old DC is simply off network. This seems like some kind of replication issue to me. if you navigate to \\newserver do you s... | 1 | 1 | 1,193 | 2018-07-06T11:51:01.533 | bi_errors | serverfault.com | |
135,703 | Why does removing these LOWER calls change the execution plan like this? | While troubleshooting a slow query I was misled for a while by the actual execution plan telling me a sort late in the query where there should be few rows was taking >80% of the query time. At the time the query was built dynamically in a stored procedure and the bulk of the slowness was being caused by parameter snif... | SQL Server maintains statistics on substrings in string columns in the form of tries that are usable by [CODE] queries. See the String Summary Statistics section for more about this. Wrapping the column in a function call quite likely blocks any attempt to sniff the value of the parameters and use the statistics on the... | 4 | 10 | 248 | 2016-04-18T19:33:15.480 | database_errors | dba.stackexchange.com | |
692,023 | Custom root folder for apache giving access denied | I just installed ubuntu desktop (because I figured server will be too much for me, and apparently I was right) and I'm trying to configure my apache web server but unfortunately it has nothing to do with the way I'm used to configuring it on windows. I installed the package [CODE] which supposedly packs php and mysql a... | As the error message says, try setting [CODE] in the main server context, that is, outside of a VirtualHost container. To do that, put the directive in a file e.g. /etc/apache2/conf-available/servername.conf, then run [CODE] to enable it, and restart apache with [CODE] . As for the 403 error, /home/user/www/html probab... | 3 | 1 | 1,721 | 2015-05-14T12:48:28.227 | database_errors | serverfault.com | |
664,488 | Installing VirtIO drivers on Win7 | Context: I am attempting to convince a 64bit Win7 VirtualBox image to run under OpenStack, and Windows isn't my usual platform. Installing the Virtio drivers hasn't been going well. Thus far, what has gotten closest to working is running [CODE] for the RHEL drivers. Shutting down the virtual host, I can then change the... | You tried to install the 32-bit drivers on 64-bit Windows. The 64-bit drivers can be found on the virtio CD image in the [CODE] folder. | 1 | 2 | 6,795 | 2015-02-03T00:39:55.777 | infrastructure | serverfault.com | |
37,816 | What is your experience with launching Sharepoint from a login script? | We are currently lobbying to management to remove launching SharePoint in a users browser from our network login script, as we face numerous race conditions and other issues when users log into the network. In other words, when a user logs on to the network the last step of the network login script is to launch IE with... | This is a bit of an unconventional kind of thing to start from a logon script. If I were asked to do it, I'd be doing it through the "legacy run" key of the user's registry or the "Startup" program group such that the browser was called after Explorer.exe started. Having said that, though, I'm at a loss as to tell you ... | 1 | 1 | 517 | 2009-07-08T17:08:02.317 | data_quality | serverfault.com | |
871,587 | What privileges are needed to restart jenkins successfully from the web interface? | I'm having an issue when I try to restart Jenkins using the web interface (either through http(s)://theserver/restart or http(s)://theserver/saferestart) because Jenkins gets stuck on the screen "Please wait while Jenkins is restarting Your browser will reload automatically when Jenkins is ready." and the service never... | What I use to restart Jenkins, is the following pipeline script: [CODE] Just create a new "Pipeline" type job, paste the code above and make sure you uncheck the "Use Groovy Sandbox" checkbox. In my configuration, the service account has additional privileges, but this approach may also work for a restricted account. Y... | 0 | 0 | 1,230 | 2017-09-01T02:57:00.563 | pipeline_ops | serverfault.com | |
400,670 | Trouble setting up chef-client on a vagrant | I've been using opscode chef for remote configuration and I wanted to test my chef scripts locally, so I started working on setting up a vagrant box. But, I can't seem to get my vagrant boxes to register. I get errors like the ones listed here: https://gist.github.com/2961246 My Vagrantfile looks like this: [CODE] And ... | It appears you are trying to register a new client by a name that already exists. If you run [CODE] you should see a client name that matches your vagrant vm's host name Assuming the hostname is 'vagrant' you could run this: [CODE] then run [CODE] or [CODE] You will probably want to delete the client and node after eve... | 1 | 2 | 2,252 | 2012-06-20T18:05:07.760 | pipeline_ops | serverfault.com | |
116,176 | Access Denied / Server 2008 / Home Directories | Domain Controller: BDC01 (192.168.9.2) Storage Server: BrightonSAN1 (192.168.9.3) Domain: brighton.local Last night I moved our users home directories off of our Domain Controller onto a storage server using the MS FSMT. I'm getting a mixed bag of errors. The first being some users cannot logon properly, they can't acc... | Presumably you have checked sharing permissions as well as ntfs security? The strictest of the two will take effect. Eg. Have you shared a homedirs folder to a domain group but some users are not members of that group? Also, do you have any deny permissions set on either of these as they can combine unintuatively? | 0 | 1 | 1,151 | 2010-02-24T10:56:39.387 | infrastructure | serverfault.com | |
12,791 | Getting to know SQL via the "short questions/simple answers style of learning" | Looking for a incremental SQL course that would likely be similar to the this Ruby Koan course ; which is in fact inspired by the book, " The Little Lisper ", which uses a short questions/simple answers style of learning. Basically the format is short questions are within a well defined context, with a simple answer, t... | Have a look at: http://sqlzoo.net/ This seems to be what you are looking for. | 4 | 6 | 760 | 2012-02-13T14:30:30.533 | warehouse_errors | dba.stackexchange.com | |
353,048 | svn: Too many arguments to import command | Having a problem with the --message flag to the svn import command. On some servers it works, but on others it gets confused if the message contains spaces, even if you single or double quote the message string thus: [CODE] When it fails, I get the error: [CODE] If I limit the message to one without any spaces, it succ... | You can use this syntax in ksh: [CODE] | 0 | 0 | 2,183 | 2012-01-24T11:28:11.873 | infrastructure | serverfault.com | |
25,537 | Do I need an index on this? | I have a sql server db and have a question regarding foreign key indices. Here's a snippet from the db: In programme_affiliates, I have a computed field, this is always set to '2' in this instance. The reason for it is that it maintains integrity between programmes and programmes_affiliates. I also have a link to progr... | Go through this link: http://blog.sqlauthority.com/2010/08/22/sql-server-computed-columns-index-and-performance/ Since all values are constant and same creating non clustered index will not help here. | 1 | 1 | 64 | 2012-10-05T09:21:41.433 | database_errors | dba.stackexchange.com | |
334,945 | Managing the order of aggregation in Postgres | Suppose I have the following merging function that merges two jsonb values overwriting duplicate keys with the values from the second [CODE] Since I want to use that function in aggregates I need to define an aggregate function like so [CODE] And suppose I have the following table id (bigint) username (text) event (jso... | In the Aggregate functions page (chapter 9, section 20 in postgresql 12 documentation "Aggregate Functions" ( 1 )) there's a paragraph specifically addressing this The aggregate functions array_agg, json_agg, jsonb_agg, json_object_agg, jsonb_object_agg, string_agg, and xmlagg, as well as similar user-defined aggregate... | 3 | 2 | 128 | 2024-01-17T09:22:11.893 | data_quality | dba.stackexchange.com | |
647,506 | Make Monit check OpenVPN client connection status | We're running a multi-site business, each site connected to a central OpenVPN server to provide access to internal systems. I'm currently using Monit to check if OpenVPN client is running and if the remote server is working, but since a few of the sites are running on unstable 4G modems, the VPN connection sometimes br... | it seems that the workaround is to have 2 checks: 1 for the processs and 1 to ensure the gateway host is reachable [CODE] | 1 | 1 | 5,745 | 2014-11-27T10:10:07.423 | infrastructure | serverfault.com | |
752,836 | iLO and server through same external IP | I have a HP ProLiant server which supports iLO. Also I have some services running on that server. Now, I only have one external IP address available, initially I wanted to use that IP address for a VPN to my server, but I cannot create to a server that is for example turned off. Does anybody have a proper solution for ... | As TomTom said in the comments... You want to use a router or acquire multiple IP addresses from your provider. Placing your ILO on the public internet without any protection is also a bad idea. | -1 | 2 | 745 | 2016-01-30T10:21:33.713 | infrastructure | serverfault.com | |
299,959 | Oracle database startup leads to errors | Used the Oracle Linux Server 8.2 and its terminal shows below errors. ORA-01261: Parameter db_recovery_file_dest destination string cannot be translated ORA-01262: Stat failed on a file destination directory Linux-x86_64 Error: 2: No such file or directory | The problem is literally written on your terminal. You seem to have a db_recovery_file_dest parameter set to a location that does not exist. As with many oracle database failures, the alertlog will show the problem with a bit more detail. The alertlog will show the parameter value. Since you don't have a question, just... | 0 | 1 | 1,731 | 2021-09-22T04:00:09.700 | database_errors | dba.stackexchange.com | |
452,685 | Allow-Rendering-Prevent-Download Architecture | I am trying to devise a simple system that, with the use of tokens, allows a specific file to be rendered in the client's browser, yet prevents the user agent from being able to download the file. Below is a simplified description of the process: A user agent or client requests the web page from the web-page server. Th... | The solution is to do the rendering on the server and just send an image of the part of the file currently being viewed. This is fairly simple, but you need some sort of rendering engine for the file types you want to render. If you have pdf files for example, you will need to render them to an image, divide into pages... | 0 | 2 | 122 | 2024-03-31T00:46:51.353 | api_errors | softwareengineering.stackexchange.com | |
51,543 | How to check the perfomance for the site in mobile browser using jmeter | Please provide me the step of checking the performance and website open in a mobile browser and get the OTP after adding the mobile number. I want to know the configuration of the mobile with Jmeter and also how to test using mobile OTP for the performance testing | Simulating mobile browser is not a big deal, it can be done by simply sending the relevant User-Agent header via HTTP Header Manager When it comes to OTP, if it's received over email you can read it using Mail Reader Sampler . However in case of SMS it might be tricky, there are Java libraries like smppapi or SMSC SMPP... | 0 | 0 | 47 | 2023-04-14T14:27:52.357 | data_quality | sqa.stackexchange.com | |
263,649 | What would be the easiest way to host an intranet Mono web application? | I've just finished migrating a lightweight Microsoft® .NET™ web application to Mono and now I'm looking for a straight-forward way to host such development on a (perhaps virtualized) Ubuntu 10.10 server within an intranet environment. I was wondering if you guys have any advice to share as I'm not quite experienced whe... | I think that what you need is a [CODE] installation on apache, to run ASP.NET applications, the Mono Project wiki has a guide on it that includes simple installation instructions on Ubuntu. About the type of server you are going to use, a real or a virtual server will probably do fine. | 2 | 4 | 245 | 2011-04-26T19:58:29.380 | infrastructure | serverfault.com | |
386,715 | Migrating to a new SQL Server machine: should master database be restored? | I'm currently working on a migration plan to migrate our SQL Server to some new hardware. The current installation is SQL Server 2005 standard: it used to be clustered but the node got removed at some point, but still is configured as a clustered. The new server will be a SQL Server 2008 standard machine, non-clustered... | You should not restore the master database to a different target machine than the one it was backed up from. Since you say the backup is part of a (failed) cluster, you definitely don't want to restore that to a non-clustered server (with a completely different hostname.) Among the reasons why you shouldn't is that eac... | 2 | 2 | 3,371 | 2012-05-07T14:56:14.027 | database_errors | serverfault.com | |
52,106 | Cannot connect to database remotely (not even locally when using ip address) | I can login using this command: [CODE] But not this one: (where 192.168.0.240) is my IP [CODE] I am absolutely sure that my ip address (server's adress) is [CODE] . So why am I getting the following error? [CODE] I get a connection timeout when trying to connect from other computers. [CODE] gives me the following: [COD... | [CODE] You have the localhost ip in the listener.ora (127.0.0.1), change this or add another line with the NIC ip. | 1 | 3 | 19,036 | 2013-10-24T10:09:55.230 | warehouse_errors | dba.stackexchange.com | |
1,002,758 | How to make production ready connection between VNET and Web app for containers? | I am struggling with picking right solution for given scenario: This is how VNet is looking now: Gateway is showing adress from 10.10.XXX.XXX. Connection is policy based and it CAN'T be changed Currently public IPs are used for development and tunneling purposes Problem: We have WebApp for Containers with Docker image ... | You only really have 3 supported solutions for vNet integration in Web Apps: vNet Integration for web apps currently in preview virtual network gateway connection App service environment providing a single tenanted web app in your vNet Sounds like the first two won't work for you given your requirements, so using ASE i... | 0 | 1 | 158 | 2020-02-12T10:17:35.667 | pipeline_ops | serverfault.com | |
108,664 | How to change Internet Options for NETWORK SERVICE | We have a service that runs on a Windows 2008 server under the identity of the builtin Network Service user. The service needs to communicate with the Internet. In our network we need to set the Proxy Server in the LAN Settings of IE, for this to work. No problem doing it for the logged in user, but how do I do it for ... | The "NT AUTHORITY\NetworkService" account (well-known SID S-1-5-20) has its own HKEY_USERS subkey (HKEY_USERS\S-1-5-20) where its per-user settings are stored. You could specify your proxy settings in its registry (HKEY_USERS\S-1-5-20\Software\Microsoft\Windows\CurrentVersion\Internet Settings). I'm not aware of a plac... | 1 | 1 | 5,238 | 2010-02-02T10:09:13.007 | infrastructure | serverfault.com | |
139,075 | Terminal Server 2008 - Slow File open dialog in Office 2003 | I have yet another small issue that annoys me everyday in our Terminal Server environment. It seems when logging into Terminal Server users report the initial File | Open or File | Save As from within an application such as Word, Excel (2003 edition) is very slow to display the actual dialog box. The dialog appears qui... | Is there any mapped network drives? I belive that the slow in the first time, is because the system is checking the permissions (user/password) to open this mapped drivers.. | 1 | 1 | 1,009 | 2010-05-06T03:24:34.913 | infrastructure | serverfault.com | |
226,893 | Is it possible to optimize this query? Currently taking days (no sign of stopping) on ~11 million records | Table in question: [CODE] With index: [CODE] Query: [CODE] [CODE] and [CODE] uniquely identify an observed entity. Goal of this query is to find for each entity the last observation and the delay seen on this last observation. This query is currently running for 140 hours (and has not finished) with the table containin... | First of all you need to get rid of the dependent subquery. For this you could rewrite your query like this: [CODE] or this: [CODE] Then it would be a good idea if you had a primary key. It can be an auto_increment column, too. The columns in the index you have are in the wrong order. [CODE] should be the last column i... | 1 | 1 | 82 | 2019-01-11T12:31:45.637 | database_errors | dba.stackexchange.com | |
317,118 | What algorithm would have the fastest average run time and least memory requirements for sorting a deck of playing cards? | Considering a deck of N playing cards with X different rankings and Y different suits (i.e. there are Y cards with X ranking, thus N=X*Y). What is the fastest algorithm to sort them assuming that X, Y, and N will be known at run-time and may be passed as parameters into the algorithm? Can we beat the performance of qui... | You should be able to so this with a form of Bucket Sort in [CODE] time. Create an array of cards with N elements (buckets), with each bucket initialized to empty 1 Iterate the cards examine card calculate bucket number as [CODE] put card into bucket In one pass, you can place all cards into the correct bucket. The sor... | -2 | 3 | 948 | 2016-04-29T10:47:19.787 | api_errors | softwareengineering.stackexchange.com | |
347,316 | Should Micro services talk to the monolith that they where extracted from? | I'm planning out a microservice adoption for a rather big monolith. The current plan is to create new features using microservices and constantly extracting features from the monolith into services. During that process is it problematic to let microservices talk to the old monolith? For example, A new Product is develo... | If you split a monolith into microservices, then those microservices will need to talk to each other to obtain the result you requested (instead of one monolith doing all, you have communicating services doing the same). Sure, they should not be too chatty, but they still need to communicate with each other when needed... | 7 | 12 | 648 | 2017-04-18T11:50:44.753 | api_errors | softwareengineering.stackexchange.com | |
962,711 | SMART - Understanding Offline Data Collection | I have two Kingston A400 120GB SSD as cache in a Synology NAS, which don't seem to support automatic offline data collection. [CODE] Yet when I check the attributes marked as "Offline", the [CODE] one of them keeps changing (specifically [CODE] ), even if I dont run the manual offline data collection or self-tests in b... | Short answer: SSDs encapsulate internal data collection and reporting behind complex controller and FTL firmware, so what you see at SMART level rarely is a complete representation of their internal state. Don't worry about offline tests being apparently disabled, as most probably the controller runs its own sanity tes... | 6 | 3 | 4,633 | 2019-04-12T05:10:50.357 | infrastructure | serverfault.com | |
168,652 | Why does query runtime dramatically increase when made into subquery? | I'm working on a query that selects counts from 2 servers and joins those together. Here is what I have: [CODE] The Execution plan suggests that the problem comes from the remote query (Sub-Grid 2). How can I improve the runtime of this? Why does a 7 second sub-query take over 3 minutes when joined on a basically insta... | Querying across databases introduces a lot of uncertainty to the query optimizer because it doesn't know much about the other end. For example, if you try to join two tables, it has no idea how big the other table is (10 rows? 1 million?), what is indexed, or how the data is organized. Should it try to use an index to ... | 2 | 3 | 1,119 | 2017-03-30T15:13:51.567 | database_errors | dba.stackexchange.com | |
505,856 | 1. XFS: how to find path / directory of inodes 2. XFS in a file -o loop and ddrescue? | how to find the full original file/directory path of some damaged XFS inodes? and how to list the last modified few 10000 inodes (=edited or moved files/directories) rapidly among millions of total files? is it better to ddrescue only the damaged website.image filesystem in a file or the whole harddrive including its p... | Your best recovery option is UFS Explorer. Obviously, it makes sense to get away from the convoluted loop device and filesystem arrangement. See: How to recover XFS file system with "superblock read failed" | 0 | 0 | 1,455 | 2013-05-08T02:21:41.657 | api_errors | serverfault.com | |
64,599 | ASP.NET via mono on linux? | Has anyone tried running an ASP.NET project via mono on a linux server? Can it be done? was the performance good? | I am successfully running an ASP.NET MVC application on Ubuntu 8.04 LTS in a Rackspace Cloud Server. If you are planning on working with ASP.NET v2.0 and .NET 3.5 including LINQ, I suggest the following procedure , which has led to my own setup. I am still struggling with some HTTPS requests under Apache but with xsp i... | 1 | 2 | 832 | 2009-09-11T17:46:46.813 | infrastructure | serverfault.com | |
122,482 | Problem with squid log files | I am using SARG to get a report on the squid log files, I get this result [CODE] What could be the problem? this is a small part of the squid log [CODE] | Number 1 i was suing an old version of SARG, the latest version is 2.2.7.1 this has no problems apart from one file that needs to be changed, ip2name.c [CODE] After doing this, the reports will run very well on a MAC | 0 | 0 | 1,247 | 2010-03-15T06:20:21.350 | infrastructure | serverfault.com | |
78,872 | Does a project typically get built or designed (graphically) first? | Say you are going to build a fairly large website. Would all the pages be designed before they are built, or would all the pages be built and functional before they are graphically designed? I am a programmer and a graphic designer. When build a new website I usually have a rough outline of all the pages I am going to ... | What you are looking for is the idea of Wireframing . I use WireframeSketcher with great success on all the graphical components of all the projects we work on. Whether it is a website, a desktop applicaton or a mobile application, the wireframing step is critical. Next step is Mock Ups where someone actually does the ... | 5 | 8 | 316 | 2011-05-24T18:01:16.420 | data_quality | softwareengineering.stackexchange.com | |
391,743 | Monitor file copies with SCP done via SSH | Is there a way to keep a log of the files copied using SCP? I am administering a server which contains some files that should be monitored (in a specific folder and its subfolders), so when someone copies them via SSH, the copying process should be logged. I thought of looking into the Bash command history of users and... | I would use incron . It utilizes Linux kernel [CODE] subsystem and if some monitored directory tree / file gets modified, you can execute anything you want. The [CODE] file format is very straightforward, for example [CODE] would run [CODE] every time something gets modified at [CODE] directory tree, calling the script... | 3 | 9 | 23,733 | 2012-05-23T05:50:11.850 | infrastructure | serverfault.com | |
273,870 | Mailbox unavailable. The server response was: 5.7.1 | I have developed on application for sending email. I have Specified SMTP address, credentials, and I am using Windows Server 2008, IIS 7. I am getting this error: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for Abc@xyz.com To fix it you have to configure relay restrictions in the IIS admin. But ... | To configure relay restrictions in IIS admin follow below mentioned steps Go to “Default SMTP Virtual Server” in IIS and then go to properties Select tab “Access” Select last Option "Relay Restriction" by clicking the "Realy" button a new window will pop up Select the appropriate radio button and add IP addresses accor... | 2 | 1 | 3,614 | 2010-08-30T11:42:42.683 | infrastructure | serverfault.com | |
40,926 | How to insert in a table with only an IDENTITY column? | Given a table with only an IDENTITY column, how do you insert a new row? I've tried the following: [CODE] I am testing something and only need the IDENTITY column. It's not for production. Otherwise, such a table can be used as a sequence generator, where no other columns are needed. | From the documentation : [CODE] Forces the new row to contain the default values defined for each column. So: [CODE] In addition: always use the schema prefix always terminate statements with semi-colons | 27 | 37 | 11,558 | 2013-04-25T15:57:13.650 | warehouse_errors | dba.stackexchange.com | |
181,730 | Do You Still Need Indexing After Database Normalization | After you have done a good normalization, do you still need to index the table? How is this going to affect the performance? Will it even affect the performance in some way after a good normalization? Which columns are usually indexed if you already have the primary key and the foreign key? It's seems like it's already... | Yes. In fact, you very well may need to pay more attention to your indexes. Normalization is about optimal storage . That's often at odds with retrieval speed , as more complex queries with complicated joins are used. Sometimes people maintaining databases that require fast retrieval speeds will de-normalize, or arrang... | 14 | 35 | 4,968 | 2013-01-06T22:16:17.870 | api_errors | softwareengineering.stackexchange.com | |
1,057,682 | How to use scp when cygwin is used as default shell | I have installed openssh-server from optional features on a Windows machine. I can ssh and scp (I need upload only) from my Linux box; However I don't like cmd shell, so I installed Cygwin and set it as default shell for openssh-server ( configure shell for openssh ). Now the ssh works but scp doesn't (again from my Li... | After I removed [CODE] switch from [CODE] command in [CODE] file, [CODE] worked as expected. I think removing this switch prevents [CODE] script to be executed, I couldn't find anything conflicting with [CODE] in this file, so there may be other behavior changes too. | 1 | 1 | 770 | 2021-03-20T03:40:46.533 | infrastructure | serverfault.com | |
368,279 | CentOS 6.2: apache stops accepting connections | I have server with CentOS 6.2, apache 2.2, php 5.3, mysql 5.1. Server is installed in KVM container. From time to time apache stalls. It just stops accepting connections. Looks like it reaches [CODE] and keep accepted connections opened. The strange thing in my opinion is that after [CODE] server goes down again very f... | Try lowering: MinSpareServers 5 and MaxSpareServer 10. Also tell us how much RAM do you have ? | 2 | 0 | 800 | 2012-03-10T10:49:53.943 | database_errors | serverfault.com | |
171,440 | What databases can I use to represent ordered sets? | In a SQL database, the only way to represent an arbitrarily ordered set is to give every record an "Order" and every time you update or move an item around in this ordering you have to update or somehow maintain the entire list of ranks with a nightly job or something like that. For example, I can represent the ordered... | Most of the major relational DBMSs support structured types in the form of XML or JSON. These are order-preserving. Typically the corresponding programming language (T-SQL, PL/SQL) will have built-in features to manipulate these types much as SQL manipulates columns and rows. Some relational stores also support ARRAY d... | 4 | 2 | 1,446 | 2017-04-19T18:31:07.090 | database_errors | dba.stackexchange.com | |
480,302 | Why do these two SSL cert offerings differ so much in price? | I'm shopping for a wildcard SSL certificate. I found the following one from a reseller for $84/year: http://www.namecheap.com/ssl-certificates/comodo/positivessl-wildcard-certificate.aspx Just out of curiosity, I went straight to Comodo to see how much it would cost straight from them. http://ssl.comodo.com/wildcard-ss... | Some reasons I can see: The expensive one is a wildcard certificate. It works for all subdomains of example.com. The cheap one only works for a single domain. The Comodo equivalent of the NameCheap one is http://ssl.comodo.com/comodo-ssl.php which is $41. It's not stated whether the Comodo one is domain-validated or or... | 4 | 4 | 2,202 | 2013-02-19T15:00:44.573 | api_errors | serverfault.com | |
532,272 | What are the performance implications of running VMs on a ZFS host? | I'm considering migrating from ext3 to ZFS for data storage on my Debian Linux host, using ZFS on Linux . One killer feature of ZFS that I really want is its data integrity guarantees. The ability to trivially grow storage as my storage needs increase is also something I'd look forward to. However, I also run a few VMs... | Since ZFS works at a block level the size of the files makes no difference. ZFS requires more memory and CPU but is not inherently significantly slower as a filesystem. Though you need to be aware that RAIDZ is not equivalent in speed to RAID5. RAID10 is fine where speed is a priority. | 12 | 4 | 12,805 | 2013-08-20T09:57:48.833 | data_quality | serverfault.com | |
677,114 | How To Remove Non-Existent/Phantom Yum Repository? | TL;DR... I'm replacing public yum repos with an internal one and I can't figure out why two public ones continue to display in " [CODE] " when they don't appear in the normal config files. I've installed Oracle Linux 7.1 (closely derived from RHEL 7.1) and am switching the system's yum repositories from the public repo... | Edit [CODE] And set : [CODE] | 1 | 2 | 4,849 | 2015-03-20T22:35:10.840 | database_errors | serverfault.com | |
427,039 | postfix incoming emails | Where do i find incoming emails?, i mean in their txt format, i have search in /var/spool/postix/incoming but the folder is always empty. ubuntu 10.04.4 thanks | What exactly do you mean by "incoming e-mails"? Postfix either forwards mail (if it's not the final destination for that mail), or delivers it to a mailbox (if it is the final destination). How and whereto the delivery happens is defined in your Postfix configuration. Show the output of [CODE] if you want someone to lo... | -5 | 2 | 140 | 2012-09-13T10:38:28.423 | infrastructure | serverfault.com | |
80,264 | What is the most effective way to discover all running instances of SQL Server using PowerShell? | I've been tasked with discovering all the instances of SQL Server that are running within our domain. In several cases there are multiple instances per server. I've seen two different PowerShell methods of finding these instances, but neither seem to find all the instances. 1) Use WMI [CODE] 2) Use remote registry (as ... | If you want something that will be useful for the future I would probably steer clear of trying to search the registry. The hives for SQL Server have changed a bit over the years and it can be troublesome to keep up with. The method with the [CODE] is flaky at times and although I will use it, not concrete evidence tha... | 14 | 12 | 46,534 | 2014-10-15T15:09:19.250 | database_errors | dba.stackexchange.com | |
198,275 | Millions of reads for a single table used for reports | I am currently looking into a query that retrieves lots of records, and it's used for reporting different balances during each month of the year(periods). The original query joins a few extra tables but the main culprit is this one: [CODE] I need to get the information from last financial period and any other entry tha... | [CODE] : 180 rows [CODE] :75334 rows after applying those filter at the end of index spool At [CODE] : [CODE] which is [CODE] rows. Final output [CODE] which is way above [CODE] . This prove your query is wrong.you have to improve cardianility estimate. In [CODE] table [CODE] is [CODE] and in [CODE] table it is int. Wh... | 2 | 1 | 179 | 2018-02-19T15:10:42.583 | database_errors | dba.stackexchange.com | |
840,039 | HAProxy Interface/eth aware binding as non root user | I have 2 network interfaces on my instance (eth0 and eth1) I am trying to setup HAProxy to be interface aware and have separate frontends per interface. The config below works as root (ie. i do not set [CODE] portion). Wondering if there is a way to bind to interfaces and still run as non root user? https://cbonte.gith... | You try to bind to port 80 bind 0.0.0.0:80 This is a privileged port https://www.w3.org/Daemon/User/Installation/PrivilegedPorts.html To bind to this port you will need root privileges as described in the documentation. https://cbonte.github.io/haproxy-dconv/1.6/management.html#13 bind to privileged port numbers | 0 | 0 | 1,337 | 2017-03-23T01:17:54.887 | infrastructure | serverfault.com | |
41,998 | Disk space full but logical space available in database | We have a fairly big MS SQL 2008R2 database that resides on a SSD drive. The drive itself only has ~110Gb of space, and the database files are the only files on the drive. The database is in "Simple" recovery mode, and only has two files, .MDF and .LDF. The disk is now nearly full: the MDF is currently 109Gb in size. H... | Space is available inside the database because data has been moved around. Perhaps you have very high levels of page splits, or have recently deleted a large portion of data that had previously caused the data file to grow. SQL Server does not shrink database files automatically when you've freed up space within them, ... | 5 | 8 | 13,663 | 2013-05-12T13:41:40.177 | database_errors | dba.stackexchange.com | |
1,001,084 | Windows 2019 backup: bare metal restore | I'm rehearsing a virtual machine bare metal restore. Backups are taken daily and saved on a secure external server. We are assuming a total disaster, so bad that no domain controller is available, so, I can't use [CODE] just the 'default' Hyper-v manager. The recovery I'm trying to do is as follows: Setup a new windows... | That sounds ridiculously complicated. Basically keep backups for a start config separately. So, after step 2 you restore the backups (dc etc.) and take it from there. | 1 | 0 | 971 | 2020-01-30T15:30:36.313 | database_errors | serverfault.com | |
33,630 | Syntax highlight in bugzilla | I have Bugzilla installed on Ubuntu Server. Is that possible to add syntax highlight to Bugzilla comments (for C++ code)? Now code pasted in comments looks not well formatted and it makes harder to understand it. | No, unfortunately that's not yet implemented, though people have asked for it: Last Comment Bug 358987 - Show attachments with colored syntax highlighting in certain views An alternative might be to put a code highlighting tool into your browser. There are at least tow Firefox add-ons which do that: CodeViewer: https:/... | 1 | 2 | 656 | 2009-06-30T06:21:54.247 | infrastructure | serverfault.com | |
471,860 | How to fix from the server side: ERROR: The certificate of ‘www.example.org’ is not trusted | I am managing a website which uses a SSL/TLS Certificate from a well known issuer (GoDaddy in this case, although this same error appears with certificates from other issuers). The website is hosted on an Apache webserver. Some webbrowsers complain about the SSL/TLS certificate with an error like: The site's security c... | If you look at the full certificate chain from one of the affected browsers, which certificate isn't trusted? If it's the intermediate certificate that isn't trusted, make sure that the intermediate certificate is installed on the web server. If it's the root certificate that isn't trusted, then this can't be fixed fro... | 1 | 2 | 3,164 | 2013-01-23T21:00:45.690 | infrastructure | serverfault.com | |
583,884 | Apache - listen only on specific domain, not IP | How can I configure apache so that it refuses connections coming directly to the IP address ( http://xxx.xxx.xxx.xxx ) instead of the vhost name http://example.com ? My VirtualHost configuration: [CODE] | You cannot have it refuse connections, since the hostname (or IP) that the user is trying to use as their HTTP host is not known to the server until the client actually sends an HTTP request. The TCP listener is always bound to the IP address. Would an HTTP error response be acceptable instead? [CODE] | 16 | 32 | 46,686 | 2014-03-22T18:19:19.290 | infrastructure | serverfault.com | |
121,306 | How can I generate the code-containing comments like mysqldump? | I'm needing to duplicate the mysqldump command in Python, and I am trying to figure out how automatically generate the code comments like mysqldump generates. If you're wondering why I am doing such a stupid thing, it's because I am creating a utility that will make daily dumps of the production server for use in dev e... | Well you can review what mysqldump does on git and try working on it!! Though I'd not go this way... Few things to suggest: You want to hide column names --> use --no-create-info to dump only data. (onlydata.sql) --> Have standard table definitions ready and intact for dev server. (definition.sql) --> Refreshing dev =>... | 2 | 1 | 732 | 2015-11-17T07:44:52.620 | api_errors | dba.stackexchange.com | |
905,550 | MUltiple App Instances To One Remote Redis Server | I need to setup 4 locations / servers that all run one instance of an app. Traffic will be fed through a load balancer and directed to the closest node depending on location. The problem I am running into is Redis. Each node cannot cannot run its own instance, instead they all need to connect to one central Redis node.... | Redis has a option to replicate data in a master-slave fasion, however this does mean you need to make your application aware of this. Writes to redis should go to a single node (HA preferably) which then may replicate data to nodes in each location for reading. The full how-to guide on this is a bit much to write out.... | -2 | 0 | 1,371 | 2018-04-02T00:11:41.157 | database_errors | serverfault.com | |
264,885 | Error when assigning a role to user | I have created a role called "role1" with these steps : [CODE] The steps above are all successful. However, when I run the command below : [CODE] As you can see, an error is thrown. I am in the db called "paybills", and the user details are stored in a table called "myeg_users" within this database. How do I add all th... | You can only GRANT to a PostgreSQL role. If you have created your own role system at the application level, storing the data about them in the database, PostgreSQL has no idea that you did that and certainly isn't going to grant PostgreSQL privileges to these roles. You either need to convert the users listed in "myeg_... | 0 | 2 | 41 | 2020-04-13T11:58:39.997 | warehouse_errors | dba.stackexchange.com | |
258,506 | Booting Nexenta root mirror results in GRUB error "Filesystem type unknown, partition type 0xbf" | I have a Nexenta system that's been running fine for the last few years. Recently one of the system disks failed --- the syspool was part of a ZFS mirror. If I configure the system's BIOS to boot from the working drive, the text [CODE] ("GRUB" followed by a space) appears on the screen, and the system doesn't respond. ... | This sounds a lot like a similar issue I experienced on my Nexenta installation. I had recently done a ZFS version upgrade across both the [CODE] and my other pools, but failed to re-install grub afterwards. The result was that the next power outage left grub unable to read the ZFS filesystem and the system was unboota... | 4 | 3 | 1,840 | 2011-04-11T22:47:01.120 | infrastructure | serverfault.com | |
324,493 | Place circle such that it overlaps the most possible other circles | Given a list of circles (each with parameters (x,y,radius) ) I want to place another circle with a fixed radius such that it overlaps the maximum possible circles from the list of circles. As long as the placed circle overlaps the optimal amount of circles, I don't care about the exact placement (i.e. if there are mult... | Here is a suggestion. I assume you want the maximum disk- area overlap, but this idea also works if you just want to maximize the number of circles partially covered. Let r be the radius of the covering disk whose center you seek. Grow the radii of all the other disks by r . Call the resulting set of enlarged circles/d... | 2 | 2 | 162 | 2016-07-10T20:27:27.840 | api_errors | softwareengineering.stackexchange.com | |
997,875 | ssh with mysql instruction | I have the following instruction and it works. [CODE] But when I execute the instruction below: [CODE] It asks for my passphrase. I entered it but the command appears to fail and the output shows mysql options. I don't know if another quotation mark is required. This is the output: [CODE] Instruction: [CODE] Output: [C... | MySQL says: [CODE] because you didn't specify a database. Your command should look like this: [CODE] Edit : The answer originally had a command in which escaping was off, this way, the [CODE] character was interpreted as the end of the command. I've updated the answer, but clearly, this will become more and more confus... | 1 | 1 | 322 | 2020-01-07T02:08:33.717 | database_errors | serverfault.com | |
3,780 | MySQL very slow query when changing one WHERE field despite no index/key | This is quite a confusing issue for me. I have a database full of baseball statistics. Running this query: [CODE] Returns: [CODE] But running this query: [CODE] Hangs for a long time. The index on the games table is only games.gameName and nothing else. SELECT DISTINCT type FROM games gives 8 single-character rows (VAR... | VIEWPOINT #1 : You many need to take a look at column value population [CODE] From your question, I gather two things: The number of rows in games with type='R' must be a low number against the number of rows in the games table. The number of rows in games with leaguelevel='mlb' must be a high number (greater than 5% o... | 4 | 5 | 1,666 | 2011-07-12T01:57:26.317 | database_errors | dba.stackexchange.com | |
425,958 | Why does the C++ standard still allow uninitialized primitive variables? | If reading uninitialized memory is undefined behavior anyway, why has the C++ standard not been changed so that objects of primitive type (int, unsigned, float, double, bool, char) get default-initialized to 0? Wouldn't this prevent an entire class of typical beginner mistakes? From my understanding, it should be possi... | The guiding principle there is still "You don't pay for what you don't use". It has not been changed to "Let's try to play it safe, and hope the compiler fixes our performance". It's only " try to play it safe", as zero/null while a valid value for all fundamental types, is not always sensible. Put another way, not all... | 8 | 13 | 1,486 | 2021-05-02T00:25:20.190 | api_errors | softwareengineering.stackexchange.com | |
289,795 | Is modifying the User Agent potentially dangerous? | I'm working on an hybrid mobile application, and I'd really benefit of having the app version, OS build and screen sizes of the users that issue our API, just to know if issues come up due to a poorly developed feature or a bugfix that can't fulfill everyone's problems. That way, in a semi transparent procedure I'd be ... | The easiest way to find out is to disable the [CODE] customization and see if the problem goes away :) . In general, [CODE] is not guaranteed to be what you set. For example, a corporate firewall might use deep packet inspection to rewrite User-Agent and reduce browser entropy . Philosophically, I think modifying [CODE... | 1 | 2 | 310 | 2015-07-15T09:21:16.740 | api_errors | softwareengineering.stackexchange.com | |
317,675 | cassandra-stress returns "Failed to connect over JMX; not collecting these stats" | I took the DS210 course offered by Datastax and prepared a cluster of almost the same configuration by myself. I edited the /etc/dse/cassandra/cassandra-env.sh file in Exercise 2.3, but I still got "Failed to connect over JMX; not collecting these statscassandra-stress" error message; I get "not collecting these stats"... | Check your cassandra-env.sh file. Remote JMX needs to be enabled for that to work. Look for the [CODE] variable, and make sure that’s getting set to something other than ”yes.” Once that’s done, cassandra-stress should be able to pull metrics w/JMX. | 1 | 1 | 338 | 2022-10-01T01:47:07.753 | database_errors | dba.stackexchange.com | |
243,005 | MS SQL Server monitoring / debugging tools | We are evaluating some of the SQL Server monitoring / debugging tools out there (Quest, Idera, Symantec etc.). Anyone here has war stories, opinions about tools that they might have used they want to share? Much appreciated. | My view is that there are three aspects to application monitoring, such as SQL Server - you want to monitor availability (is SQL down?), and if you get good - take it to the next level by monitoring resource utilisation/performance (and logging it historically). The third and final level is monitoring the SQL workload ... | 1 | 1 | 230 | 2011-03-03T23:26:49.470 | database_errors | serverfault.com | |
330,047 | T-SQL Development debate, which is the correct approach | The company I work at uses stored procedures (and a home-grown ORM) exclusively for all database interaction, selects, updates, deletes. We have numerous procs that will insert and/or update and/or delete from tables. When it's required to "transactionalize" an entire proc, then we obviously needed to have our [CODE] a... | This would be better on dba.stackexchange.com XACT_STATE() does not effect the behavior of the rollback. It is about state. 1 The current request has an active user transaction. The request can perform any actions, including writing data and committing the transaction. 0 There is no active user transaction for the curr... | 3 | 2 | 141 | 2016-09-02T19:13:21.260 | database_errors | softwareengineering.stackexchange.com | |
326,644 | Enable APC User Cache on certain sites only (Apache) | First of all, we're not interested in the file cache at all for the time being, its the user cache that is important. We need to store information about database structures and query results in a cache for some applications we are developing. Our server has dozens of sites on it, some of which are controlled by custome... | This kind of usage asks for memcache. Go get memcache, read the documentation at http://memcached.org . | 1 | 1 | 1,945 | 2011-11-01T12:50:16.410 | infrastructure | serverfault.com | |
685,168 | Windows SBS 2011 - Have Exchange send via Office365? | I have Windows SBS 2011. As you know, Exchange 2010 is built in to this. Some time ago, I have started using Office 365 for email. In a perfect world, I would uninstall Exchange 2010, but this cannot be done in SBS. I've also been well advised against turning off services etc. My problem is this: I want server notifica... | Uninstall all components of Exchange 2010 except for Hub Transport and Management Tools. As long as your send connector is correctly configured, server reports will go out to the internet. I'd also recommend removing the internet domain from the accepted domains list and just leave domain.local. I've migrated half a do... | 2 | 1 | 1,017 | 2015-04-23T23:10:14.787 | infrastructure | serverfault.com | |
1,101,266 | Alternative to Gmail Postfix relay | I have been using Gmail as a Postfix relay for years. Works perfectly. But it seems that on May 30th 2022 this will be disabled by Google . They will not allow us to use "less secure apps" that rely only on username/password authentication. So I need a solution. I need either a way to continue using Gmail as a Postfix ... | There is an option called "App passwords" in the security tab of the Google account dashboard. It is only available after you enable 2-step verification. This option provides a single use password that can be used in Postfix relay. It seems that this option will remain available after May 30th 2022. | 0 | 4 | 818 | 2022-05-18T19:44:42.593 | api_errors | serverfault.com | |
1,109,102 | Is it possible with IPTABLES to ACCEPT a service by NAME like ssh or only by PORT? | I have a local machine in my network [CODE] and i [CODE] over [CODE] , setting in my [CODE] file. I done changes to [CODE] : [CODE] [CODE] So my machine accept only input from [CODE] now, this works i can ssh into it On this machine i run an [CODE] from a [CODE] , for [CODE] to get access from outside. Command in my sc... | You can use service names from [CODE] but internally [CODE] works with [CODE] , only translated from this file since [CODE] protocol headers use numbers not strings for ports. Moreover there are no names for all port numbers since service names just conventionality http://www.iana.org/assignments/port-numbers Also a [C... | 2 | 4 | 400 | 2022-08-25T18:05:51.010 | infrastructure | serverfault.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.