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
4,063
Is the PostgreSQL 'connection limit' shared across all users in a role?
I have created a role that many users can share: [CODE] I have then assigned permissions to that role: [CODE] Then I have assigned that role to people: [CODE] Question: Do both fred and ginger get a connection limit of 5, or would that limit be shared between them? Thanks!
The [CODE] attribute only affects roles that are able to log in (that is "users", or those roles which have the [CODE] attribute set). Roles that are a member of another role with a [CODE] do not inherit that limit , so in the situation you describe above [CODE] and [CODE] would have the default connection limit of -1 ...
6
6
2,095
2011-07-23T22:24:04.873
database_errors
dba.stackexchange.com
1,099,148
Windows Server 2012 R2 TLS 1.2 Issue
I am facing issues with TLS 1.2 on my Windows Server 2012 R2 (application web server,IIS), where I am unable to access https://api.nuget.org/v3/index.json via Internet Explorer even after I see that TLS 1.2 has been enabled. I have another server with the same OS and same OS updates (but no IIS) and this server has no ...
So, After hours of troubleshooting I was finally able to resolve the issue and get the API accessible from our server over TLS 1.2. We have .net framework on our server which was having trouble accessing the API. Microsoft recommends we set the following registry to force SystemDefaultTlsVersions [CODE]
3
3
22,412
2022-04-21T16:53:21.347
infrastructure
serverfault.com
232,557
What are the disadvantages of using surrogate keys?
I am using MS SQL Server but in general database design I want to know what problems can arise when every row in a database has its auto generated surrogate key value. I know some advantages, for example that there is no need to identify unique columns without NULLs for primary keys, and there is no need to manage comp...
There are many disadvantages to using surrogate keys, the most important ones IMHO are: Using natural keys significantly reduces the number of joins that your queries need to perform. With a surrogate key, you will always have to join back to the original table to get meaningful values. Surrogate keys 'abstract' the ac...
1
6
2,541
2019-03-19T19:15:58.893
database_errors
dba.stackexchange.com
378,042
qsub: How can I find out what DRM middleware exactly is installed on a cluster?
I have a user account on a very big cluster. I have previous experience with Grid Engine and want to use the cluster for array jobs. The documentation tells me to use "qsub" for load balancing / submission of many jobs. Therefore I assumed this means the cluster has Grid Engine. However all my Grid Engine scripts faile...
Although this does not answer your question directly, I'd like to point out that qsub/qstat/qselect... commands are all part of interface defined in POSIX Batch Environment Services specification, hence the [CODE] prefix for variables. Restricting your BE interface to the standartized subset is supposed to make your sc...
2
1
144
2012-04-10T08:41:09.500
infrastructure
serverfault.com
1,044,760
Lets Encrypt Auto Renew Quiet Mode Error
I have installed let's encrypt with Nginx configuration with DNS validation mode, As instructed on the documentation to auto-renew, I added the below entry: [CODE] However, this didn't work, so I run it in the command line to see what happened. I get the error below, I do understand that port 80/443 is in use by Nginx ...
Run certbot with the [CODE] or [CODE] parameter, as documented, to have it use your running nginx instead of starting it's open webserver. [CODE] or [CODE] Don't forget to also use the [CODE] parameter to reload your nginx after a successful renewal. Note: you must install the nginx plugin if you haven't already instal...
0
3
3,167
2020-12-02T23:14:34.583
data_quality
serverfault.com
435,005
Protect Files from unauthorized access
I have this very big problem I've been trying to solve for last few days with no success. I have some files which are class schedules, these are imported to the server from an external source (html format). I need to block direct access to those files. They are displayed by PHP script. So, these are assumptions: -files...
use [CODE] Sample RewriteRule [CODE]
0
1
3,535
2012-10-04T16:42:44.500
infrastructure
serverfault.com
9,916
Wrap specflow scenario within try-catch
I have been running into a problem with the C# selenium bindings decribed here: https://stackoverflow.com/questions/22322596/ where a timeout exception is thrown occasionally while running my selenium tests. The tests are all written using spec flow, and I would love to have a way to catch that exception and have the t...
I found a workaround for this issue where I can check for the exception after each step using the [AfterStep] binding. This works for me, and tests that failed are now marked as inconclusive: [CODE] Hopefully someone finds this helpful!
1
2
2,359
2014-10-09T15:56:22.273
data_quality
sqa.stackexchange.com
1,085,714
command to add the port 80 to the sftpgo service
While doing sftpgo setup on linux, getting below error, what I believe is we might need to add the 80 port to sftpgo service. But not getting command that we can use to add the port to the service, configurations looks good and have compared them with one existing setup and don't see any discrepancy. Would appreciate i...
SFTPGo author here, please add the [CODE] on the sftpgo binary using this command: [CODE] please take a look at the doc here for more details. You can open a GitHub issue/discussion and provide more details if this does not fix the problem
0
1
868
2021-12-08T10:54:28.123
infrastructure
serverfault.com
542,234
Nginx: serving files as text without having .txt appended to it
I have some .rb (Ruby script) files that I link to on my website. By default, the browser just downloads them to the "Downloads" folder, as it does zip files. I want the browser to treat it as text, so the Ruby script will show within the browser. If I do this the normal way however, it does indeed show up in the brows...
You can specify in which mimetype you would like nginx to serve files by setting the types directive in your nginx configuration. I don't know about other linux distributions, but if you're using ubuntu, [CODE] is included by default. To serve [CODE] files as [CODE] make sure [CODE] contains the following: [CODE] Then ...
3
5
8,093
2013-09-27T19:32:32.093
infrastructure
serverfault.com
39,021
HTML file is not generated in the extent report
I have made a script to generate an extent report, but HTML is not generated. Please check below code : [CODE] The .xml file : [CODE]
I have created an example on the basis of your code, please note that here i'm using the Extent Report Version 3 so change your code accordingly. I hope this code help you- [CODE] Please refresh your project after run the test. For the more information about report please check Here
0
1
7,867
2019-05-02T10:18:15.117
data_quality
sqa.stackexchange.com
47,217
Cannot remove unused filegroups
I wanted to remove some unused filegroups/files in a SQL Server Database but am stuck because SQL Server thinks the filegroups/files are still in use. Some background: We had some partioned tables that we converted back to non-partitioned ones All partition-functions and -schemes were deleted I queried the dm views for...
I actually found an easy solution to this fix since I had the same issue. I was trying to remove the filegroup [CODE] but got the "cannot be removed because it is not empty" error. This filegroup's only sin was being associated with a partition scheme. This filegroup had no data. So after finding there's no opposite to...
8
4
30,870
2013-07-29T13:14:23.883
database_errors
dba.stackexchange.com
228,845
Transaction deadlock during restore
I am working on PS script to restore database backups and I have following SQL script that I am running from PS Invoke-SQLcmd command: [CODE] As you can see I am switching database to single mode and even making it offline before restore operation. However from time to time I am getting error like: [CODE] I am not an e...
There is no point in taking db into single user mode and then making it offline. background service like sql agent might try to connect to the db. If you want to get more details of what process is getting deadlock then you can enable [CODE] ( [CODE] ) and then disable it ( [CODE] ) or use Event notification ( link to ...
2
5
1,399
2019-02-04T14:09:51.533
database_errors
dba.stackexchange.com
320,436
sp_executesql Not Working with Parameters
I am running into a strange problem with dynamic sql that I believe is some sort of formatting issue, and I've been tearing my hair out the last few hours over this. I would really appreciate any assistance I can get. For some background information the purpose of this stored procedure is to clean up data in our centra...
erland You can't use object names as parameters in dynamic SQL . That's why your first attempt doesn't work If you combine your first and second attempts, you can at least parameterize the [CODE] parameter. Also, keep in mind that just using square brackets isn't fully safe . You need to use QUOTENAME . [CODE]
5
11
1,520
2022-12-01T10:01:13.273
database_errors
dba.stackexchange.com
143,066
How should I select a primary key in my use case
I have an app wherein I want to give offers to certain devices which fall in range of IMEI numbers (I have a separate algo to calculate this range). So I want to create a structure in which I have a column as IMEI and next column as status, which can be true or false. Now for those devices which have more than one IMEI...
Since a device can have more than one IMEI number, that is obviously not the primary key of the devices. Is there no existing attribute, such as serial number, that can serve as unique identifier? If not, then you probably need a devices master table with one entry per device and a generated ID for the primary key. Thi...
2
1
247
2016-07-06T05:03:28.763
warehouse_errors
dba.stackexchange.com
102,702
RHEL 4.8 / Sybase 12.5.4 64 bit install error - I have libaio i368 installed I need libaio x86_64 installed
I am trying to install Sybase ASE 12.5.4 64 bit. I know the machine has a 64 bit processor It is giving me an error during install saying: "error while loading shared libraries: libaio.s0.1" I run the command: [CODE] Which returns: [CODE] I found a src rpm for libaio-0.3.102. I followed the steps to install which inclu...
Are you sure you're actually running 64 bit Linux? Try checking [CODE] . If you have libaio-0.3.105-2 (i386), don't use -0.3.102 (x86_64). Grab the proper RPM from a CentOS mirror if you don't have access to up2date. The libraries can coexist. Edit: SRPMs are usually [CODE] . [CODE] isn't typically required. Building t...
0
1
808
2010-01-14T15:23:15.670
infrastructure
serverfault.com
496,487
How do I span my WAN subnet to my L3 switch using SonicOS L2 bridge mode? (Sonicwall and JunOS)
I have two sets of ESXi hosts, one set for management and one for tenants. Each ESXi host has 8 nics and four vSwitches. All vSwitches are trunked via aggregated interfaces to a pair of EX in VC mode. I only have one ISP connection with a network allocation (/28) which is bridged (the ISP provides the gateway that we u...
As I understand it, the bridge mode will turn the Sonic Wall into a L2 Bridge. They use confusing terminology on their homepage but that is how I understand it. If so you can imagine it as being just a wire between your EX and the ISP gateway. So you configure your port on the EX as if your ISP gateway would be plugged...
1
1
858
2013-04-05T13:53:03.467
infrastructure
serverfault.com
588,180
LDAP Login fails, but su to ldap users works
I have a new ldap setup and I am trying to login, either directory to the machine or remotely over SSH. When I try to actually login, my authentication fails. If I login with a local user, (root), than I succeed. Once I am logged in, I have no problem issuing su user and switching to that user. Running getent passwd wi...
[CODE] has to be the last line in each section.
2
1
4,154
2014-04-10T18:51:24.543
api_errors
serverfault.com
825,618
Unbound refuses requests from localhost even though `access-control: 127.0.0.1 allow_snoop`
This is my unbound.conf [CODE] Reading the documentation, it should be enough. And then in resolv.conf: [CODE] However this does not work. [CODE] gives me [CODE] The problem can be resolved if I add [CODE] to unbound configuration, but this requires me to put the address into the config file, and that address might cha...
You need to set it to allow queries from localhost... [CODE] This will fix the issue you are having.
4
0
9,918
2017-01-11T15:50:07.843
infrastructure
serverfault.com
334,035
Why is the following decomposition into 2NF wrong?
Consider the relation [CODE] , with the functional dependencies being [CODE] . What is [CODE] 's decomposition in 2NF? The answer is [CODE] I've derived that the candidate key is [CODE] . Since the only problematic part that violates 2NF's definition is D, E being in the same relation, using lossless conversion formula...
Your "I have these FDs" doesn't make sense. "These are all the FDs that hold"?--Not possible. "These are all the non-trivial FDs that hold"?--Not possible. "These are some FDs that hold"?--Question can't be answered. When some FDs hold, the FDs implied by them per Armstrong's axioms also hold. Moreover, others might ho...
1
1
43
2023-12-13T19:45:57.110
warehouse_errors
dba.stackexchange.com
176,637
Postfix setup to send mail only?
I'm trying to setup postfix to send mail on my machine (Ubuntu 10.04). It only needs to send mail and will be used by the php mail() function in a few scripts. I have a google apps account that will receive all the mail for the domain (and it is currently working with no problems). I've just installed postfix, and am t...
The problem is your relayhost parameter, it should be the hostname of the SMTP server all mail should be sent to. For the master.conf file, the line you want to comment out is the one that looks like: [CODE]
2
1
4,328
2010-08-31T18:07:43.367
infrastructure
serverfault.com
429,269
DDD - Is it valid to have entities that are not part of any aggregate? (problem domain description included)
I've tried Googling this using several phrases and I simply can't find this asked anywhere so I hope this isn't too silly a question. I'm just dipping my toes into DDD and I have a toy project I'm building around Defi in the crypto space. In short the point of the project is to read a bunch of information from smart co...
By definition Entities should be part of an Aggregate in DDD. Maybe the Aggregate is very simple: just one entity. However, to see Aggregate boundaries clearly it is better to focus on the behavior and object lifecycle: commands and state transitions will point you to the objects that will have to change together. If a...
3
1
1,466
2021-06-12T11:52:56.763
api_errors
softwareengineering.stackexchange.com
857,221
Latency issues when inserting content to China
Background We have an app that will write into a postgres db hosted in Frankfurt datacenter. The app is installed in each of the 8 sites we have around the world, from China, Korea, India , Germany, France and Mexico. When connecting in Europe, to the Frankfurt database, the response times are good. However, when conne...
Both the distance and the meddling middleboxes add latency, there is no avoiding that. There may be other locations to host the database with an acceptable latency compromise. That much latency will hurt response times though. Keep testing. I understand multi-master replication solutions exist for PostgreSQL. This woul...
4
1
110
2017-06-22T09:19:38.220
database_errors
serverfault.com
586,216
Should engineering have its own DNS zone, delegate, or subdomain?
We have our organization's primary domain (with AD) example.com. In the past, previous admins have created several other zones - such as dmn.com, lab.example.com, dmn-geo.com etc - as well as subdomains and delegates all of which are for different engineering groups. Our DNS right now is a bit of a mess. And of course ...
In today's world, I do not recommend creating new zones with arbitrary top level domains , as these might make it into "official dns" at any point in time. I personally would favor the subdomain delegation scenario, as it seems to be fitting what you try to do. (Consolidate but give control to engineering) Maybe you ca...
14
14
2,085
2014-04-02T16:24:25.417
infrastructure
serverfault.com
193,417
SQL Substring in WHERE clause
I'm trying to build a SQL query that will show me all the products that have [CODE] but also have a corresponding description in the descriptions table. So code is always a substring of info. The [CODE] is a substring of [CODE] , so I'm not sure how to pull this. products [CODE] descriptions [CODE]
You need t o compare [CODE] with [CODE] . If the needed condition is for one to be a substring of the other, it can be done with [CODE] . Since there may be more than one descriptions matching (having as substring) a product code, we should use an [CODE] subquery: [CODE]
0
2
1,068
2017-12-18T17:03:37.367
warehouse_errors
dba.stackexchange.com
334,614
Algorithm for searching a domain name in list of wildcard
I have a list of domain name that contains wildcard ( '*' character) Example: *.google.com *.domain.com ... It contains nearly 1 million domains. The data will be stored on a mongodb or redis database. Given a domain name, such as " abc.domain.com ", I need an algorithm that will check the data for a match. For example...
The quickest algorithm for matching a [CODE] pattern is to just find [CODE] : [CODE]
0
1
977
2016-10-26T03:09:44.867
database_errors
softwareengineering.stackexchange.com
807,946
Unauthorized requests to Amazon S3 bucket
I developed an open source library and hosted its assets on Amazon S3 (CSS, JS), these files were used in demo via URLs like: [CODE] (my bad, I know). Without my permission, some websites started hot-linking these files. It was fine for a while, but recently a few large NSFW sites hot-linked it and I get tens of millio...
You can either: Delete the bucket or disable static website access to the bucket and keep the bucket. Then use a new bucket. You might want to add a policy to this bucket to restrict the access to the bucket, e.g. Restricting Access to a Specific HTTP Referrer
5
1
1,278
2016-10-09T06:28:26.243
api_errors
serverfault.com
133,768
Regulation of the software industry
Every few years someone proposes tighter regulation for the software industry. This IEEE article has been getting some attention lately on the subject. If software engineers who write programs for systems that expose the public to physical or financial risk knew they would be tested on their competence, the thinking go...
The view that the software engineers can be pigeon-holed into the same classification as medical professionals or accountants is an ignorant view of the "problem" that they are trying to solve. Before I give my opinion on this, lets break down some of the arguments of Mr. Thornton, who is Vice Chair of the regulatory b...
85
104
10,532
2012-02-07T16:58:18.940
api_errors
softwareengineering.stackexchange.com
914,571
cassandra port is closed
I am trying to connect to a cassandra installation from a remote machine. Cassandra is running the thrift service on 9160 which is the default port. But I cannot connect the DB and I always get connection timed out exception. Here are the details. the app machine trying to connect to the DB is a CentOS 7 VM Cassandra i...
The database is listening on 127.0.0.1 :9160. That means it is currently configured to listen for loopback IP address only. In other words, it only listens for connections originating from the same host. The parameter you'll need in your [CODE] file is [CODE] . Its default value is 127.0.0.1. To allow your application ...
1
2
3,114
2018-05-31T08:41:56.327
database_errors
serverfault.com
957,707
How to Remote Connection to mongodb server
I added [CODE] and I have a db with user and pass, when I run this Command from Ubuntu Terminal, everything is ok and I can Connect to db, But When I run That from my Laptop I Get This Error: Command: [CODE] Error: [CODE]
I Added My Laptop Ip to server and Solved. [CODE]
0
1
70
2019-03-11T09:52:19.433
database_errors
serverfault.com
76,947
using string concatenation to reference a table
For a database systems project which tracks entities histories, I stumbled acros the following problem. Assume we have the table "entity" [CODE] as well as "entity_history" [CODE] Usually, the idea is that the history gets an entry on update/insert of the main table. I have to do it the other way around (due to the ent...
You can't use variables for columns. So you would need to do something like this: [CODE] Now I guess you didn't show us the whole picture and you have more than just two columns in the [CODE] table (which will make the above update statement very inefficient and cumbersome). The whole thing looks like a variation of th...
0
2
150
2014-09-18T08:19:57.537
warehouse_errors
dba.stackexchange.com
281,171
Sqlite: Finding the next or previous element in a table consisting of integer tuples
I have a sqlite table called tuples defined like [CODE] filled with millions of unique tuples (>1TB). New tuples are inserted quite often, with "random" values. Rows are removed only in very rare occasions. For an external process accessing the database, I need to find the "next" or "previous" existing 4-tuple in the t...
At the moment I try to find the next tuple with ("center" is (1-1-1-3)) Test [CODE] fiddle
8
9
388
2020-12-09T10:40:46.470
warehouse_errors
dba.stackexchange.com
208,723
How to create lots of SQL-Developer Connections quickly?
I wonder if there is a way to create lots of SQL-Developer connections in "one shot" ? Eg: By modifying a config file or password file.
SQL Developer stores its connection information in (on Windows): [CODE] The path obviously changes within different versions because of the version number. I am not aware of any built-in solution for adding entries except the GUI, but it is not that difficult to copy an existing entry and modify the values. Passwords a...
0
2
1,034
2018-06-04T17:46:27.547
warehouse_errors
dba.stackexchange.com
866,010
Let's Encrypt certbot-auto setuptools version error when run from cron
CentOS 6, certbot 0.16.0. When I run it manually as root (not by sudo) everything works. When I setup /etc/crontab to run it automatically it returns an error: [CODE] cat /tmp/tmp5jOtY3 [CODE] cat /etc/crontab [CODE] I tried Let's Encrypt community and found someone having this exact problem, but the only help offered ...
This is the issue: [CODE] To fix it HOME variable with /root value needs to be passed to the script: [CODE]
2
3
1,084
2017-07-31T09:54:37.230
infrastructure
serverfault.com
410,321
DRY Violation for Logical Code Organization and Readability
I have a block of code that branches into 2 pathways, let's call them the "simple" and "complex" branch, based on user input. Either the simple or complex logic has 4 steps, let's call them A, B, C and D. A, B and C each have 2 different variations depending on whether we're in the simple or complex branch. In the comp...
When to introduce functions You're looking at that question from a code-centric view, deciding how to organize it mainly from the "repetition" viewpoint. When I started programming back in the 1970s, we were taught that subroutines are to be introduced if you find yourself repeating the same sequence of instructions in...
0
2
196
2020-05-19T00:22:08.563
api_errors
softwareengineering.stackexchange.com
834,998
Kerberos Failure Audit Event Id 4769 on Domain Controller
I have an average of 17-18 failure audit events per hour recorded in the Security event log of a Windows 2012R2 domain controller, related to attempts of a Windows 2008R2 member server to obtain a Kerberos service ticket [CODE] The failure code 0xE indicates an unsupported authentication type. I have monitored the traf...
You need to raise your DFL to use the 'newer' (circa 2008) AES encryption types. Note that when raising from 2003, the krbtgt account passwords will be changed (both of them), and this may result in impact, so you should be prepared to restart servers/services as necessary to recover. Also, you should not enable DES en...
1
1
7,335
2017-02-26T16:17:31.663
api_errors
serverfault.com
493,351
MikroTik not accepting VPN connections over wifi
I'm using MikroTik RouterOS v5.18 x86 on a Dell PC. I have done the following: Set Addresses Set PPPoE Client & Server Set PPTP/L2TP Server Make Profiles and Secrets SRCNAT MASQUERADE the IPs of PPPoE and PPTP POOL Now the problem is this: I have the Setup as shown below. 4 PCs Connected to RouterOS via LAN Switch. 1 P...
I seem to have handled the problem myself luckily. I added PortForwarding to my router for the PPTP Ports. Now it works seamlessly. For any one with same problem, please Port Forward the Port 1723 for VPN passthrough. Regards
1
0
3,282
2013-03-28T20:04:59.600
infrastructure
serverfault.com
181,731
Linked Server : Syncing two tables on two SQL Servers
Suppose these database structure : [CODE] A [CODE] may use on gate, so on the gate just its [CODE] may change. At server, a [CODE] may blocked, deleted; or after importing gate's data, set its [CODE] . I want to sync them online. I wrote sp_server_export , sp_gate_import for transport data from server and sp_gate_expor...
If you want to use [CODE] to sync the table on the remote server, but you can't because it's on the remote server... From [CODE] (Transact-SQL) : target_table cannot be a remote table. ...you should still be able to use separate [CODE] and [CODE] statements, for the same effect. Using the same basic criteria as in the ...
0
1
7,581
2017-07-25T14:44:41.643
database_errors
dba.stackexchange.com
368,353
Building fault tolerant IIS/MSSQL stacks (Sql Clustering?)
We had a raid failure yesterday on a server that was hosting databases and IIS. We're trying to determine the best way forward in terms of our IIS and MSSQL hosting environment. We'd like redundancy on the IIS side and the SQL side. For some of our applications we're using pfSense to load balance two web servers (stick...
Although this isn't the focus of the question, I do want to point out that you're incurring a performance penalty by using session state in the DB. There are some nasty issues (with some workarounds) known to occur with that session storage model. It's worth the time to get sticky sessions working right so you can use ...
2
1
657
2012-03-10T16:47:40.273
database_errors
serverfault.com
250,145
SSH run as unprivileged user, custom authentication, no shells
I'd like to have an SSH server running on an unprivileged port (say, 2222) such that I could have users be able to use the Bazaar DVCS ; the idea would be whole set of repositories and the like would be owned by a single user (from the operating system’s point of view, that is) and then the SSH server that is running u...
I strongly suggest you look at how gitosis and gitolite solve this (through the use of [CODE] and its ability to configure a forced command, ideally accepting a username as part of the commandline rather than altering the environment).
1
1
790
2011-03-22T02:25:21.170
api_errors
serverfault.com
238,174
Migration of Xen domains using libvirt API and perl failing
I am trying to get work offline migration using libvirt API in perl. I have 2 servers (on both is): - debian squeeze - xen-hypervisor-4.0-i386 - libvirt (1st server - 0.8.7 and 2nd server - 0.8.3) In xend-config.sxp on both servers I set up: - (xend-relocation-server yes) - (xend-relocation-port 8002) - (xend-relocatio...
I found how it works few days after posting this question. To make offline and also live migration shared storage is needed. So it doesn't matter whether offline or live migration is running, for both types shared storage is needed (e.g. NFS,...). That libvirt error code 42 was caused by doing offline migration without...
1
0
906
2011-02-21T13:25:24.623
infrastructure
serverfault.com
309,562
CREATE DATABASE permission denied in database 'master' ... A database with the same name exists, or specified file
Background: I'm trying to get the Live Demos of Telerik's Rad Controls for ASP.NET AJAX working on my local machine in IIS 7. I'm getting an error when I view the ComboBox demo. Error I get: Server Error in '/' Application .... CREATE DATABASE permission denied in database 'master'. An attempt to attach an auto-named d...
Sounds like you already have a database on the instance called Northwind. See this link for more details on entire setup, issues and solution: https://stackoverflow.com/questions/7366295/sqlexpress-connection-fails-in-iis-7-w-user-instance-error-failed-to-generate
1
1
9,018
2011-09-08T21:50:12.850
infrastructure
serverfault.com
290,868
How to reuse domain model logic in services?
I am trying to avoid anemic domain models as it's said to be an anti-pattern. But doing so leaves my services to duplicate some of the logic. [CODE] Now, a ban service allows to ban users by only having user's id, so there's no need to fetch the whole model. [CODE] What is the commonly used pattern to deal with this?
I would call one object's method from the other, to avoid code replication. I would find a way to do this like that : [CODE] or the other way (maybe better, if there is a banService need) : [CODE]
2
2
297
2015-07-26T15:47:54.567
data_quality
softwareengineering.stackexchange.com
175,303
IIS, Application Pools and Event Logs
Running IIS 6 on a handful of Windows 2003 Web Ed. servers. Each has some App Pools configured with "Idle Timeout" of x minutes. No recycling, just the idle timeout from the Properties Performance tab. I'd like to see when these guys shutdown from idle in the Event Viewer logs. So far haven't managed to make that happe...
Awww snap. I just found this nugget: Important The metabase property IdleTimeout does not have an associated LogEventOnRecycle property flag. Therefore, when an application pool is shut down because the IdleTimeout value is reached, an Event log entry will not be logged. at How to modify Application Pool Recycling even...
2
2
2,698
2010-08-27T15:13:05.617
bi_errors
serverfault.com
450,753
Nagios Configuration Error
Running [CODE] Does not give any error. The output is Things look okay - No serious problems were detected during the pre-flight check However when i try to do some configurations thru the xi interface, the configuration verification fails. [CODE] Nagios is till able to monitor my services and hosts but i cant do any c...
Try tuning your service timeout in your nagios.cfg, usually when I have large configs I get this error as a result of timeouts. I've had success bumping the default 60 (in R1.6) to 300.
1
1
2,415
2012-11-21T08:10:17.450
infrastructure
serverfault.com
330,934
Got an error when trying to get ER-diagram on SQL Server
We are using Microsoft SQL Server 2016 Management Studio (version 13.0.16106.4) connecting to an instance of SQL Server 2016 running on Windows 2016. The authentication is "SQL Server Authentication" and the username has admin permissions. When we try to get the ER-diagram of a database, by right clicking "Databases > ...
Windows error code 0x534 indicates an invalid SID, likely an invalid database owner. Change the database owner to a valid login to keep the SSMS diagram tool happy: [CODE]
0
2
141
2023-09-05T23:25:18.213
api_errors
dba.stackexchange.com
697,671
Where should the preferred DNS server be in a LAN?
I had a hard time formulating this question’s title, but I think I’ve stated it correctly. My question may stem from a misunderstanding, so I will explain what happened to cause me to think I might have things incorrectly setup. The system : There is currently a single physical Dell server running hyper-V to host all t...
You're over thinking things a bit, but your basic understanding is correct. You should have at least two Domain Controllers (in your scenario two should be sufficient). The Domain Controllers should also be DNS servers and should host the AD DNS zone (this isn't a requirement but it's the easiest deployment method for ...
1
4
5,661
2015-06-09T15:03:08.130
infrastructure
serverfault.com
267,911
MariaDB 10.1 shutdown stuck at "Event Scheduler: Purging the queue"
I have read many different questions about slow MariaDB/MySQL shutdown, but I have not found an answer which solves my problem yet. On one of our servers with the highest load, when I issue a stop command for MariaDB, in the logfile I see: [CODE] From there, it won't move, at least not in the 15-20 minutes I waited, an...
MySQL also have the same problem. I encountered the same problem in MySQl5.7.19. When shutdown a mysql server, it stuck at "Event Scheduler: Purging the queue. 0 events". In MySQL5.7.25 offical version, the release note say,they fix a bug for a slave cann't shutdown: Replication: If autocommit was set to 0 for a replic...
0
1
1,190
2020-05-26T11:55:57.000
pipeline_ops
dba.stackexchange.com
2,341
Proper mapping for service architectures, Docker and BitBucket mapping - how do you do it?
With Atlassian BitBucket, you can have: Projects, which incorporate.. Source code repositories. Now, you could have a microservices with more than just one codebase and need therefore more than just repository. What is the best practice to reflect this if you have many different projects? My idea now is to encode micro...
One could also create libraries and call them using a dependency manager like a package.json if node is used or ivy if the code is written in java.
2
1
81
2017-10-17T07:12:19.727
pipeline_ops
devops.stackexchange.com
473,474
How to make sure that ssh is ready to go while booting
We have an automation tool which tries to log in through ssh and send commands, which works fine when server is running. On the other hand while server is booting up, our tool check if the ssh port (22) is open, and if it is open it tries to connect to server and send commands. However, when the server is in bootup seq...
First it seems that the automation tool is not verifying the exit status of ssh. I would try to fix the problem there. One solution is to try to fill a bug for the team that created the tool. Another solution would be to wrap the ssh command in a script that would do this transparently. E.g. create a script in /opt/myp...
4
3
3,518
2013-01-29T14:27:37.600
infrastructure
serverfault.com
293,364
Microsoft DHCP - scope was changed and now some clients refuse to get a new IP address
We had a problem yesterday where one of our DHCP servers had a scope run out of IP addresses. We expanded the scope's range of IP addresses only to find out that it impinged on the 2nd DHCP server's scope, that still had IP addresses available for lease. Let's say original was: [CODE] and the change was: [CODE] Why the...
The server cleared itself up on its own...sorry for just now closing this. The following Monday everything was fine again.
2
1
2,024
2011-07-23T15:30:03.910
infrastructure
serverfault.com
219,543
Transaction log filling the drive if mirroring fails
I am having two SQL Server 2016 machines with mirroring set up. This is supposed to be hot-standby scheme. HDD size is 1TB, and database size is around 600GB (just one DB). This is 90 days worth of archived data, everything older than 90 days is getting deleted every night (automatically through an external application...
What I see from your question is that you are not addressing the root cause, instead you are building solutions around the core problem which will resurface until you address the root cause - why does mirroring get suspended ? Did you see any errors in error logs (windows or sql server) ? Does it happen on a frequent b...
2
2
1,080
2018-10-08T15:05:01.740
hadoop_errors
dba.stackexchange.com
83,319
postgres materialized views and indexes to improve aggregate performance
I have a large table with a number of materialized views used for pre-calculating aggregates. New data is inserted only once a day so think of this as a data warehouse type system. Obviously when I query my main (non-aggregated) table, the planner uses any indexes it deems appropriate. Does that extend to materialized ...
No. How would the query processor recognize that it should use the materialized view. The materialized view is another object. See http://www.postgresql.org/docs/9.4/static/rules-materializedviews.html In part that explains: "When a materialized view is referenced in a query, the data is returned directly from the mate...
4
5
3,863
2014-11-21T18:39:40.900
warehouse_errors
dba.stackexchange.com
1,045,606
Secure “hello world” Google cloud function
I need a very secure cloud function so I'm trying to put it behind a API Gateway. The function works fine when I call it directy passing a Bearer token in header: [CODE] However I want to allow it to be used with a API token thru API Gateway (and then do something more useful than saying "hello"): [CODE] When I try to ...
hope you are doing well. I am not an expert, but after reading the docs and checking your snippet again, shouldn't the [CODE] in [CODE] be [CODE] instead of [CODE] if that's what you use in the url? my-gateway-xxxxxxxx.uc.gateway.dev/v1/stats& key =
1
0
88
2020-12-09T19:03:02.760
api_errors
serverfault.com
585,975
startpar process left hanging when starting processes from rc.local or init.d
I have a peculiar issue when starting ongoing(service-like) processes from either full blown init.d script (SysV style) or a simple one-line call from rc.local file like so: [CODE] Where watchdog.sh contains this: [CODE] I'm always left with one additional process in the processes list: [CODE] If I launch it from my in...
My investigation further into this led me to a solution. So now I know how to do it correctly, but I still do not understand why startpar behaved like it did. So if anyone is willing to step in and explain that, I'm more than willing to accept that answer than this one. Basically the problem was that I called the scrip...
5
6
5,823
2014-04-01T18:50:43.347
api_errors
serverfault.com
98,564
Can I migrate my SSL certificate to windows SBS 2008?
I have currently on my windows SBS 2003 box an SSL certificate for www.mydomain.com. I understand that for the 2008 SBS box I need a certificate for remote.mydomain.com. Can I simply export and import the certificate, or must I contact the issuer to get a changed one?
While Zypher's answer is true (I received an email from comodo that they will not edit my old certificate to remote.mydomain.com), it seems that it is possible to change the default remote access url to www.mydomain.com: In the get an internet address wizard at the page where you have to fill in your domain name you ca...
1
0
480
2009-12-31T19:25:46.533
api_errors
serverfault.com
914,807
Windows server 2016 unable to complete update KB4103723 (roll back on 99%)
i'm on a strange problem for the last 12 hours unable to update the KB4103723, it rolls back every time. I have tried all of these: sfc /scannow: finish 100% but with error for windows protection error. i have looked at the CBS file and the only error is for the IIS MANAGER.LNK file that is corrupted: the path it says ...
This seems to be a known issue that applies to: Windows 10 Version 1607 and Windows Server 2016. And as per this May 8, 2018—KB4103723 (OS Build 14393.2248) release: This update isn't available with express installation files for Windows Server 2016. If you installed earlier updates, only the new fixes in this package ...
2
0
7,806
2018-06-01T16:08:50.023
data_quality
serverfault.com
1,050,813
Cannot connect to on-premise Exchage Powershell remotelly from Linux
I'm trying connect to my on-premise Exchange 2013 Powershell remotely from Centos 7. I do every steps as in microsoft docs ( https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell ) except chaging authentication to 'Basic'. When I run New-PSSession command prompt (pwsh)...
Based on the above microsoft docs, the supportability of the remote PowerShell session on the Linux is not mentioned, remote connecting to Exchange Server PowerShell only works on the following clients and servers: However, I found a thread which mentions the ways to remote connect to Exchange Server on Linux, please c...
0
0
553
2021-01-22T14:37:35.730
api_errors
serverfault.com
870,285
fail2ban appends to chain after installing iptables-persistent
I've used fail2ban a while now. Today I wanted to learn more about iptables and found iptables-persistent. After installing, saving and cleanup the iptables rules in /etc/iptables/rules.v4 it looks like this [CODE] My /etc/fail2ban/jail.local contains the following lines [CODE] After restarting the Server, the fail2ban...
create a chain [CODE] ( [CODE] ) inserted at the top of the input chain ( [CODE] ) and then set [CODE] in fail2ban.
2
0
1,011
2017-08-24T13:58:00.053
infrastructure
serverfault.com
418,878
Disadvantages for having completely different codebases in different git branches
One senior member of my team setup a new git repository for our product we are working on, since we are migrating from SVN to git. Our product consists of different software components that are working more or less completely independent and are also completely different in terms of code. On SVN, these components were ...
First, I just want to say I don't understand why you are migrating if they don't want to use git like git. I agree with you that it's workable, and it's not even that problematic to split it up later. You would basically just duplicate the monorepo and delete the branches you don't want in each copy. The main concern I...
9
9
714
2020-11-11T16:49:18.813
api_errors
softwareengineering.stackexchange.com
383,462
unix ssh block ipaddress
I'm working on a unix server, sshing into the machine using plink or session.net (a C# module that opens an ssh connection to the server and runs commands). Everything was fine until we restarted the machine on Monday. Now whenever I attempt to access the machine with the program it does something like bans my ip addre...
there was a rule in iptables similar to this one that caused it not to work: [CODE]
2
1
1,347
2012-04-26T15:33:40.803
infrastructure
serverfault.com
249,526
Install problems with XSendFile on Ubuntu
I installed the apache dev headers: [CODE] Downloaded and compiled the module as outlined here: http://tn123.ath.cx/mod_xsendfile/ Added the following line to /etc/apache2/mods-available/xsendfile.load: [CODE] Added this to my VirtualHost: [CODE] Enabled the module by doing: [CODE] Then I restarted Apache. Then this co...
I got my code to work. The only difference is: [CODE]
6
1
2,385
2011-03-20T14:35:09.753
infrastructure
serverfault.com
378,969
SNMP segfaults on Ubuntu 10.04 after some time
Just had snmpd segfault on an Ubuntu 10.04 LTS box. snmpd has been running on this system for some time (weeks). There has been a reasonable amount of load, but nothing too extreme for the system. [CODE] Anyone seen this before? Is this a known issue with snmpd? I'm using snmpd 5.4.2.1~dfsg0ubuntu1-0ubuntu2.1 SNMP (Sim...
I don't see anything at a cursory glance. You could try upgrading if a newer version is available, or possibly run memtest86.
1
1
182
2012-04-12T19:19:33.837
infrastructure
serverfault.com
1,061,332
GKE - network is not ready: Kubenet does not have netConfig
We are running 11 nodes on GKE and get this error between a few hundred and a thousand times a day: [CODE] I couldn't find much info related to the issue. All other posts I've found are fruitless. There is this issue in Azure github that indicates people have given up w/o a resolution. There is this inactive github iss...
This means that you choose a CIDR with less IPs than you need, when we deploy a cluster on Kubernetes be on Google Cloud or Baremetal we define a range of CIDR, you should commonly use a /16 CIDR like 10.50.0.0/16 this will give you options to use more than 65K ips internally, please remember that on Kubernetes you hav...
0
1
901
2021-04-23T15:08:35.683
infrastructure
serverfault.com
252,560
Upgrading to SQL Server 2014 SP3 _ Clarifications help needed
We have SQL Server 2014 SP2 GDR with below: Availability Groups TDE enabled for structured data EFS enabled for unstructured data Now the DBs are with AOAGs and encrypted , I am planning to upgrade current SQL Server 2014 SP2 GDR to SQL Server 2014 SP3. Can anyone help me with any issues / pre-requisites or anything th...
As far as I know, Service Packs on same major version ( 2014 ) does not have any impacts on these features.
0
1
55
2019-11-05T08:39:24.603
database_errors
dba.stackexchange.com
969,040
MariaDB 10.3 InnoDB random crash due to memory exhaust on VPS
after migrating to new VPS my server occassionally experiences database crashes. This may happen 1-2x in 2-3 days. Server runs MariaDB 10.3 on CentOS 7 with nginx 1.16. Virtual server has 1 GB memory, no swap. During normal day-peak traffic I see cca 600 - 700 MB of memory occupied, 300 - 400 MB free. I found logs in [...
It is hard to analyze the memory requirements for such a tiny (1GB) system. Especially since you have the entire stack in the single VM. The obvious culprit is so many PHP threads. They are probably sitting idle. Does [CODE] have a way to tune the number of threads it will run? If so, set it much lower, say [CODE] . Th...
0
1
1,126
2019-05-27T21:43:43.583
database_errors
serverfault.com
516,950
HTTPS listen on additional port apache/httpd
I have a pretty simple configuration on a dev server where everything in the web root is available over http and https. I would like to add an additional listening port such as 8443 so that I have https on 443 and 8443, but adding [CODE] to my ssl.conf did nothing. I looked at the manual for mod_ssl but haven't got it ...
Besides the addition of the listen directive, you're going to need to change your Virtual Host to also respond to requests on that port. From [CODE] to [CODE] or a new entry for [CODE] .
0
1
17,468
2013-06-19T13:18:13.267
infrastructure
serverfault.com
586,890
Installation of Windows Management Framework 4.0 (Powershell 4.0) on Server 2012 failed
I've been trying to test PowerShell Desired State configuration on a Windows Server 2012 instance on Amazon EC2. I downloaded the Windows Management Framework 4.0 from the MS download center: Windows Management Framework 4.0 http://www.microsoft.com/en-au/download/details.aspx?id=40855 When attempting to install, I enc...
I was downloading the wrong file. The correct file for Server 2012 was the following (from the same link posted in the question): Windows8-RT-KB2799888-x64.msu Installing the MSU above worked flawlessly.
7
7
11,854
2014-04-05T11:59:01.737
infrastructure
serverfault.com
1,003,500
Can I use a local proxy mail server (using no username/password) to connect to a remote SMTP server (requiring username/password)?
The title is a bit wordy but I couldn't think of a way to make it more concise without losing some meaning. Context On a Windows machine I have an application which sends mail and can connect to an SMTP mail server, but due to a bug only it can only connect if it doesn't require a username/password. I can specify the f...
Yes it's perfectly possible. The function you are looking for is normally called smarthost or relayhost Postfix and sendmail both support this feature. Instructions for setting up sendmail here and postfix here For the best security you probably want to make sure you limit the proxy mail server to only accept unauthent...
1
2
254
2020-02-18T10:21:00.767
api_errors
serverfault.com
1,044,057
Attribute a static public ip for a pod in kubernetes
In my data center, I implemented a Kubernetes infrastructure with 3 workers and one master node. I'm looking to build 5 pods running [CODE] , but because of risking to be blacklisted, I'm looking to assign a specific public IP to each pod for the outbound traffic. I don't know if it's possible to do that and is there a...
Posting this answer as more of a potential pointers to check as there could be specific requirements and limitations of each solution and each infrastructure. Feel free to expand it. Possible solutions: [CODE] CNI [CODE] CNI [CODE] CNI As I said in the comment, one of the possible solutions is [CODE] : Multus CNI is a ...
1
0
604
2020-11-26T20:45:33.020
pipeline_ops
serverfault.com
159,498
Apache local verses external (domain)
I have an Apache server running on Ubuntu server 10, using Passenger for Ruby on Rails. I have configured my site under the sites-enabled directory of Apache and can hit the server with an internal IP address (192.168.X.X) and the site comes back as expected. However, whenever I try to hit the site externally, either t...
These settings worked. Taken from Passenger: [CODE] From the networking side here are the other changes I made: /etc/network/interfaces [CODE] /etc/hosts [CODE]
0
0
368
2010-07-09T21:23:54.543
infrastructure
serverfault.com
83,229
Is this update, select combination query thread safe?
I have a table called seats, which has a schema like this id,taken For each user, I take a random untaken id and assign to that user, here for simplicity say, I make taken =1. The query I am using [CODE] This query takes a random seat with taken flag null, and for that seat it makes the flag 1. While this query is work...
ASSESSMENT Your query is kind of dangerous to the MySQL Query Optimizer. I have an old post ( Problem with MySQL subquery ). The question posed involved this query [CODE] Although the MySQL Query Parser will work with this query and accept it's syntax, the MySQL Documentation implies that some data may disappear during...
6
2
2,230
2014-11-21T00:43:47.270
warehouse_errors
dba.stackexchange.com
895,197
RewriteCond folder existence based on subdomain
I own multiple domains which I would like to all serve off one host. There are a number of users creating their projects on this host, which should all be routed on a per-subdomain basis. I have a handful of rules I would like to set up in my Apache config that automatically determine the document root, but I do not kn...
Because each sub-domain relates to different content, i.e. points at a corresponding DocumentRoot, and has it's own settings e.g. custom 404 documents, what you probably want is to use is "name based" VirtualHost directives (rather than match on the host in the request yourself). See the apache documentation on Virtual...
0
1
106
2018-02-01T15:24:09.213
infrastructure
serverfault.com
318,511
Install Gitorious -- Ubuntu server 11.04 -- Repository_Base_Path error
I followed this tutorial on installing gitorious http://coding-journal.com/installing-gitorious-on-ubuntu-11-04/ . I have never install ruby on rails or gitorious so my knowledge is new. I am getting an error after browsing to the domain that I am using. The error reads Syntax error line 3 col 22; repository_base_path:...
What about removing tabs? I was having similar problem than I found this and solved: "I suspect this is a YAML parser error; you should make sure you use the same indentation throughout the file (spaces vs tabs, number of spaces etc.). Your editor probably has a switch for displaying spaces/tabs, this should be of help...
1
0
227
2011-10-04T22:03:31.523
infrastructure
serverfault.com
161,787
I report SQL sysntax error
I'm getting sql error for the below select [CODE] I appreciate your help ERROR: column "q22percentage" does not exist LINE 10: (SELECT CASE WHEN Q22Percentage = Q22oPercentage THEN 'SAME' ^
The table [CODE] does not have a column [CODE] How much clearer can that message get?
-1
1
40
2017-01-20T17:02:51.357
warehouse_errors
dba.stackexchange.com
840,106
Prevent php script from overriding php.ini
How can I prevent php scripts from overriding max_execution_time value ? Someone found a way to inject malicious code on a server through wordpress... We are in the process of patching the vulnerability. That php code defines : @ini_set('max_execution_time', 0); @set_time_limit(0); That kept on crashing my apache serve...
OMG NO! Your server got hacked - that was bad. You found out about the problem because the code running starting exhibiting strange systems - that was good. You want to prevent your system from exhibiting the systems of an attack in future - that's bad. That it got hacked in the first case and you are now able to apply...
-3
0
436
2017-03-23T10:07:18.713
infrastructure
serverfault.com
73,772
Can Mac OS X interface with Cisco Pix 501 firewall?
Our office currently uses a dated Pix 501 to allow VPN connections. We have the option to upgrade to an ASA, but I'm wondering first if Pix are known to work with Macs? We've recently setup a Xserve storage array and need to get people remote access. An alternative might be to setup VPN on an Xserve, but we don't have ...
The newer versions of the software that are available in ASA units (with PIX 501 you're stuck with 6.3) have certain features that might make the upgrade worthwhile. However, none of them improves anything specific to OS X. PIXes can protect Macs, they can allow Macs to connect as VPN clients, you can use a Mac to mana...
0
0
1,263
2009-10-12T20:08:36.663
infrastructure
serverfault.com
930,023
Update PHP 5.3 to PHP 5.6 on Debian Squeeze
I wonder if anybody has successfully updated PHP 5.3 to PHP 5.6 yet on Debian squeeze and would kindly share how this can be done. My server's current system is running since 7+ years. Debian GNU/Linux 6.0.7 (squeeze) PHP 5.3.3-7+squeeze15 with Suhosin-Patch Apache/2.2.16 (Debian) Already was reading updating Debian to...
Sven's comment needs to be an answer: Squeeze is end of life since 2016-02-29. You should get to a version with security or LTS updates , currently Stretch or maybe Jessie. I do not have a problem with using frozen versions of old software with suitable security controls. But the need to get later versions of component...
-1
4
1,499
2018-09-08T10:34:50.633
infrastructure
serverfault.com
220,441
django/uwsgi/nginx invalid HTTP protocol
Any idea why this error happen when accessing nginx? uwsgi is running with the command: [CODE] /home/user/project/wsgi_app.py : [CODE] Any help is appreciated.
uwsgi uses its own protocl. you can put nginx in front of it to serve it, or just as a test you can add the parameters "--http-only --http :8080" to get a http server running to view your site.
0
1
467
2011-01-09T22:25:44.283
infrastructure
serverfault.com
626,719
Cannot start MySQL server following upgrade
Cannot start MySQL server following upgrade I've just upgraded MySQL from 5.1.59 to 5.6.20 (OSX 10.7) and now the MySQL server will not start. In MySQL Workbench (v6.1.7), in the startup/shutdown view, upon trying to start the server, the Startup Message Log reads as follows: [CODE] And in /usr/local/mysql-5.6.20-osx10...
According to http://dev.mysql.com/doc/refman/5.5/en/mysql-nutshell.html the [CODE] feature/option has been removed. Remove that option from your mysql startup parameters.
-2
1
1,017
2014-09-06T15:51:36.930
database_errors
serverfault.com
358,700
Structure nested data
I have an issue with structuring som data. The idea is to have some sort of menu card, where you can build your own menu. The different products are categorized into groups, and in some of the groups you can choose between eg. three different predefined 'submenus' - so you would have nested menus. As it is now, they ar...
A potential solution, create a parent child relationship in the table. Table Constructed Menu, The Menu Id is the original Menu item if there is a list of pre-defined menu items. Id, ParentId, Name, Menu Id 1, Null, Root Menu, 9 2, 1, Sub Menu 1, 15 3, 1, Sub Menu 2, 25 4, 3, Menu Item under Sub Menu 2, 45 ..And So for...
-1
0
604
2017-10-06T17:08:57.437
api_errors
softwareengineering.stackexchange.com
242,816
How can Swift be so much faster than Objective-C in these comparisons?
Apple launched its new programming language Swift at WWDC14 . In the presentation, they made some performance comparisons between Objective-C and Python. The following is a picture of one of their slides, of a comparison of those three languages performing some complex object sort: There was an even more incredible gra...
First, (IMO) comparing with Python is nearly meaningless. Only comparison with Objective-C is meaningful. How can a new programming language be so much faster? Objective-C is a slow language. (Only C part is fast, but that's because it's C) It has never been extremely fast. It was just fast enough for their (Apple's) p...
118
62
62,490
2014-06-02T21:55:00.513
api_errors
softwareengineering.stackexchange.com
700,798
Outbound SMTP email not being delivered, but still disappearing from the queue and pickup folder
After setting up my smtp server on a Windows 2012 server r2 on port 587. I tested the email functions by creating a text file labeled email with the following code inside: [CODE] Then I saved the email.txt file. Dropped it in the pickup folder inside mailroot. After a few seconds the email.txt dissapeared from the pick...
I solved it! I just followed these steps. Go to IIS 6.0 manager Right click on your domain - Select properties On the delivery tab choose outbound security Select basic authentication Type up your isp username in my case it was my comcast username and password Check the box for TLS encryption and press Ok Press Apply. ...
0
1
7,283
2015-06-22T20:59:36.187
infrastructure
serverfault.com
262,079
Index Fragmentation - log issues
I have a few questions that I want to understand in order to take informed decision. I am not a DBA by profession, I have done some administrative tasks in the past and now I would have to create a maintenance plans to some of my new servers and understand the issues with my old servers. My database log size is 50GB(co...
Doesn't this log file get trimmed at some point in time after hourly transactional backup and reduce the size of the log file? No, it does not reduce the size of the log file on disk. The physical log file is made up of virtual log files (VLFs) and each VLF represents a portion of the transaction log. When a VLF is inc...
0
4
88
2020-03-17T00:02:33.953
database_errors
dba.stackexchange.com
633,888
Failed to ping through gateway which is not default gateway
I have the following network interface configuration, eth0: 192.168.78.1/24 eth1: 192.168.254.76/24 (Gateway 192.168.254.1) eth2: 192.168.253.131/24 (Gateway 192.168.253.1) where both gateways have access to internet. In this scenario [CODE] is not working. Below are outputs of commands: [CODE] All [CODE] values are se...
As far I understand it shouldn't work the way you think. Packets will go through the default gateway unless you add a static route for a concrete destination IP or use policy routing. So try adding some policy routing rules: [CODE] After that [CODE] should work. I hope it helps. I am also confused why does the [CODE] w...
0
2
3,860
2014-10-06T15:13:58.783
infrastructure
serverfault.com
259,133
What role is able to grant role permissions on MSSQL 2016?
Unfortunately, we'll have to remove db_owner role from not admin users, because people were abusing it. We'll split roles permissions in 3 groups: 1) readonly (SELECT) with specific write (INSERT,UPDATE,DELETE) on some tables 2) DDL (ALTER) without RW 3) "restricted admin" custom role, able to add other AD groups and u...
A restricted admin should only add users to roles through ALTER ROLE . The ability to grant new permissions to a role or user should be reserved for a real admin.
0
2
708
2020-02-07T12:55:24.043
warehouse_errors
dba.stackexchange.com
513,209
Cluster validation: "The servers are not all in the same organizational unit"
I'm setting up a cluster between two Windows 2012 servers (for use with SQL Server), and among the warnings that the cluster validation wizard points out to me is this one in the Active Directory section: The servers are not all in the same organizational unit. I know what that means, but what I don't know is whether t...
The implications are that there is the potential for group policy, or other processes that rely on the OU structure in AD, to make non-uniform changes to cluster members. Best practices are to have them in the same OU, and it only takes a moment to correct, so I would ask your client to move them into the same OU. Also...
2
2
1,853
2013-06-04T19:39:55.400
database_errors
serverfault.com
867,037
Why is ping working when all incoming and outgoing connections are blocked in the firewall?
I have DENIED both incoming and outgoing connections using [CODE] on Debian VPS. There is only one rule defined, which is to allow connection to SSH port. [CODE] is enabled and working. Yet I am still able to ping from my laptop to server using its IP. Why is ping still working if both incoming and outgoing connections...
Ping is ICMP so there's no TCP/UDP connections to block or accept (and that's what you probably denied). ICMP rules are configured in [CODE] . See this for more information.
19
39
4,834
2017-08-05T15:46:22.507
infrastructure
serverfault.com
259,603
Does a unique clustered index give array-like lookup performance?
Suppose I have a MySQL table with a unique integer index [CODE] that is auto-incremented for each row. [CODE] Suppose that I am primarily interested in optimizing queries that look up rows by the unique index. For example: [CODE] If I were programming in another language and I had the data loaded up into an array, then...
Yes and no. An "array" in a programming language does some trivial address arithmetic to quickly locate the Nth entry in the array. In MySQL, most indexes are built as B+Trees. (See Wikipedia) This structure is more complex than an array, but still the best available. [CODE] requires drilling down a "tree" of nodes to ...
0
1
189
2020-02-13T10:40:15.077
database_errors
dba.stackexchange.com
263,556
Distant update of a linux box
I have a bunch of home-made Linux boxes (made with buildroot) and I would like them to get auto-updated throught an internet fixed IP of my ubuntu server. I would like to update the kernel and also some files or directories etc. I began my own ssh script that would list the files of a /home/update/ on the box from the ...
If you can package all your files as Debian packages and all the systems are identical, you could create a custom repository on your server containing the packages that these system needs, then they would just need to [CODE] and [CODE] on a regular basis. You'll want to be sure you test this repository on a local copy ...
0
1
111
2011-04-26T15:43:04.147
infrastructure
serverfault.com
892,661
Chromecast mDNS burst slowing down PCs
Starting a few weeks ago, at seemingly random intervals, 3 of 5 PCs will lag at the same time for a few seconds to the extent where mouse and keyboard input is delayed and VoIP calls are dropped. After ruling out a few potential root causes, I suspected that something on the network was causing it. So, a few times, I r...
This hasn't recurred for a while so I presume that Google pushed an update which fixed this.
0
0
365
2018-01-17T13:39:00.170
api_errors
serverfault.com
224,381
Auto update "TIMESTAMP" column only when a manual phpmyadmin edit occurs?
I have a column in my MySQL database that uses a "TIMESTAMP" to capture the current time. I have an attribute set to "on update CURRENT_TIMESTAMP" so it auto updates the column whenever and update change is made. Works great, except I have a small issue. My database also tracks views/votes for each row so basically the...
The defaults for [CODE] are quite limited. Instead of depending on it, take charge. You should supply values when you need them: [CODE]
0
1
1,571
2018-12-07T09:28:05.387
database_errors
dba.stackexchange.com
166,381
SSIS/SSAS 2016 intermittent fault: An error was encountered in the transport layer
I have an intermittent fault in my SSIS ETL process when I try and process my OLAP cube. There are no error messages in the SQL log, and there's nothing else significant running at the time. The only error message I can find in the event log is: An error was encountered in the transport layer. SSIS and SSAS are SQL are...
I think we solved this or at least found a workaround. I believe the problem is a timeout when connecting to SSAS when it has been inactive for some time. It has nothing to do with the actual processing of the cube. We added a step to our ETL process which queried the OLAP cube before the processing step was triggered....
1
1
1,980
2017-03-06T21:20:55.500
database_errors
dba.stackexchange.com
447,273
Advice on Developing Shared Public Libraries in Visual Studio
I’m looking for some advice on best practices for Visual Studio workflows. I maintain several C# libraries which I use in various projects I develop. I also make them available publicly, as packages on NuGet and as source code on GitHub. Because I am often tinkering and tweaking my common libraries as I use them, I typ...
I think you've positioned yourself inbetween two workable scenarios and the hassle you're dealing with now is the result of not sticking to one scenario in particular. You're using Nuget packages, which are great for versioning and publishing purposes, but this process takes a bit of time and complexity and is generall...
1
3
131
2023-08-27T21:49:01.513
data_quality
softwareengineering.stackexchange.com
703,497
Download speed from server extremely slow
I have rented many servers @server4you and from time to I face the same problem. Download speed from a server decreases dramatically and after some weeks goes back to normal. Now when I download a file from my Debian server, the speed is only 400-500 kbps.It's not my Internet connection problem. I tested it by download...
There are lots of possible causes of the problem - the most likely being bottlnecks between providers, or between points of presence in a providers network. There are a number of tools which can help with diagnosing the problems, but no single bullet. The easiest tool to use is MTR, which combines traceroute and ping t...
1
1
10,149
2015-07-04T08:22:01.353
api_errors
serverfault.com
188,982
active directory client restriction and security
I have active directory and several clients joined the domain. Every user logs to the computer with domain user and password credentials. I need the users only to be able to log in to the specified computer and no other computer. This computer is monitored. If someone discovers the password (or malicious worker who kno...
It sounds like you want to restrict an AD user to only log in from a single computer? Within the user properties in AD, on the account tab, you can bind that user to a specific computer account.
0
1
218
2010-10-08T11:20:37.743
api_errors
serverfault.com
391,156
Mac OSX Lion: Switch on SMB share depending on network connection
we have a Scanner that can save the scanned documents to an SMB share. So I need to switch on SMB sharing on the Mac - should be no problem. Issue: The Mac is a MacBook, which will also be used in foreign networks - and obviously we would not want SMB sharing on outside my own network. So, I am looking for a way to aut...
Liberally stolen from https://superuser.com/questions/187650/enable-file-sharing-only-when-on-home-wi-fi-network-in-mac-os-x : Even if slightly expensive, you can use NetworkLocation to autodetect your location, and after configuring it for your home network, add [CODE] > [CODE] and configure it so that it runs this St...
1
5
637
2012-05-21T18:50:45.380
infrastructure
serverfault.com
1,066,293
Unable to create a Cloud Composer environment
When I try to create a Composer environment, I get an error saying http error status code 400, bad request. Any help would be appreciated.
Cloud composer needs a VPC network to run on. Either you may have deleted the default network or you don't have a subnet in the region where you want your Composer environment, in case you are using a custom network. Please refer this for network configuration Setting up a Composer environment . For creating a custom n...
0
0
425
2021-06-10T12:44:25.410
api_errors
serverfault.com
170,941
TinyProxy: blank screen
I'm trying to serve some pages via TinyProxy. When I change my Firefox proxy settings to: localhost:8888 (yes, I'm using a tunnel), all I get is a white screen? When I comment out the line: [CODE] I get a 403 error: [CODE] At least I'm sure my tunnelling is working when I get this error... However, can someone please h...
That means that TinyProxy is working. Look further down to find the ACL configuration for tinyproxy. You need to tell it what IP ranges to accept. From the documentation : [CODE]
3
7
11,287
2010-08-16T12:20:52.617
api_errors
serverfault.com
390,958
Virtual Private Servers/Cloud hosting - Suitable for CPU intensive tasks?
Can anyone with experience of deploying CPU intensive applications into 'cloud' environments (like e.g. Linode), comment on whether these environments have been suitable? It seems to me that with VPS/Cloud hosting, specifications like RAM, Disk space, network, are very well defined, whereas CPU power is rather more of ...
Cloud is hosting is that cost effective, since it allows hosting provider to re-use resources that would be idle in case of dedicated server. If you have an application that is using a lot of resources 24/7 - dedicated servers will be cheaper, since there's no overhead for co-locating many applications on one server. I...
3
1
1,048
2012-05-21T08:07:04.947
infrastructure
serverfault.com
114,002
Is it a good idea to always use Google as the first step to solving a problem?
Possible Duplicate: Importance of learning to google efficiently for a programmer? Avoiding lengthy discussions, as a senior level student in CS, how can I get away from Googling problems I run into? I find myself using it too much; I seemingly reach for the instant answer and then blindly copy and paste code, hoping i...
I research most problems I encounter. If I encounter an issue, my first assumption is that I am not the first one to have encountered it. I also don't believe in reinventing the wheel - so will look for an existing solution before writing my own. The thing about research is that you need to evaluate the results and how...
33
81
4,617
2011-10-12T20:37:24.010
data_quality
softwareengineering.stackexchange.com