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
22,989
Escaping T-SQL Keywords
[CODE] Problem is that I end up with: [CODE] . Because [CODE] is a T-SQL command... any way to bypass it? I can't change the column name because it's used by the software a lot and I cant change the software that's using the database. So it simply fails if I use [CODE] to select data from that column. '' or "" wont hel...
If you want to use reserved words as table or column names, you have 2 options: use brackets (the SQL-Server's way): [CODE] or double-quotes * (the ANSI/ISO standard): [CODE] Your whole statement would become: [CODE] *: Of course, using double quotes ( [CODE] ) would necessitate that [CODE] is [CODE] . You may encounte...
6
13
12,206
2012-08-23T12:03:52.443
warehouse_errors
dba.stackexchange.com
866,355
Not receiving email : Relay access denied in Postfix (CentOS 7)
For some reason my Postfix mail server running on CentOS 7 stopped working recently, maybe because I updated the modules through Webmin, I don't know. I am able to send out emails but I am not receiving emails. Also, POP3 and IMAP aren't working. I've tried many things but haven't been able to figure it out by myself, ...
The error message is 550 5.1.1 user unknown in local recipient table I think you may need to look at the local recipients map/alias maps and ensure that they are configured correctly. Also look at mydestinations value in main.conf as if domain is configured their then local delivery should occur Worth reading this answ...
0
3
4,951
2017-08-01T19:54:07.163
infrastructure
serverfault.com
659,426
ipt_CLUSTERIP: unknown protocol 1
I am trying to create a web cluster with two load balancers and a single public ip address The command I use is the following: [CODE] I am losing about 10% of requests and I do not know the reason. On the first node dmesg says: [CODE] Do you have any idea where I should look to fix the problem?
I've got the same issue recently. Supposed to be is not a packets losing in fact, it have to be invalid packets I guess. One of ClusterIP howtos suggests just to filter them out. [CODE]
2
2
972
2015-01-14T13:01:09.390
infrastructure
serverfault.com
243,661
NFS Datastore in VMWare Server 2 on Ubuntu Server amd64
OK so here's the problem. I'm running 4 Dell PowerEdge 3850 Servers on Ubuntu Server amd64 with VMWare Server 2.0. I want to setup a centralized NFS so all my vm's live there and I can be able to run them on any of my VMWare Server servers. The problem is that everytime I reboot Ubuntu server, the nfs datastore becomes...
I agree with Chopper and esxi would reduce the overhead being used by Ubuntu and VMware Server 2. On to your question though, my thought is that the vmware service is being started before the nfs service can get the exports loaded. Perhaps one of these two will help? if the nfs and vmware services both have a startup o...
0
0
456
2011-03-05T18:31:58.760
infrastructure
serverfault.com
117,224
How (if at all) does Galera enforce authentication for SST via rsync when adding a node?
I have to be missing something here. It just hit me as added a new node to my cluster in order to prepare for the removal of a different node: "How does the cluster know that it is okay to send the new node a SST?" I am pretty sure that the only information the new node has about the cluster is the gcomm:// address. Su...
The cluster simply doesn't know. It'll send a sst to every node which requests it.
5
1
658
2015-10-07T06:11:36.363
api_errors
dba.stackexchange.com
936,292
Poste.io - can't login by mail application - bad SSL certificate
I have a proble with poste.io and configuration with nginx-proxy. DOMAIN is valid domain :) This is my docker-compose for poste.io: [CODE] And this is configuration for nginx-proxy: [CODE] Almost everything works fine (I can login into dashboard with https, send and receive mail via roundcube), but I can't login to mai...
I found solution. Solution is use external volume for well-known. After that in Poste.io attach external volume to [CODE] And [CODE] For each nginx container. After that you can call TLS certificate for Poste.io .
0
0
2,407
2018-10-19T09:43:55.127
bi_errors
serverfault.com
766,050
Google Datastore Backup causes errors
We are performing backups for our Google Datastore documents through a cron as describere here . The database is about 55GB including indices and we do a full backup every 24 hours. The bucket we save into belongs to another project. The backups succeed and we are able to restore them into our staging environment witho...
The backup kicks off a MapReduce job which fans work out into push tasks. It's normal for one of these tasks to occasionally time out while waiting in the pending queue and be retried, which would result in a " [CODE] " error in the logs. If seeing these errors is a problem, you can try to eliminate them by adjusting y...
1
2
263
2016-03-25T08:29:42.703
pipeline_ops
serverfault.com
376
How to compare experiments run over different infrastructures
I'm developing a distributed algorithm, and to improve efficiency, it relies both on the number of disks (one per machine), and on an efficient load balance strategy. With more disks, we're able to reduce the time spent with I/O; and with an efficient load balance policy, we can distribute tasks without much data repli...
This is a very good question and a common situation. In my opinion there are three different factors that must be controlled: Data: There exist already different benchmarks in order to evaluate algorithms and architectures. These data must be publicly available so that everybody can contrast their approaches. Architect...
8
3
178
2014-06-15T00:00:51.657
database_errors
datascience.stackexchange.com
147,103
MySQL DELETE becomes exceptionaly slow with a large number of rows
When performing a DELETE against a large number of rows in the Prices table, the DELETE becomes progressively slower. If deleting 15,000 rows it runs in about 15 seconds. 20K rows takes 3 or 4 minutes. 40,000 rows takes 15 minutes, 100,000 rows runs for well over an hour. The below After DELETE trigger updates the Item...
With InnoDB, deleted rows must be held in case there is a crash or other reason to rollback the action. This is costly, and may get more costly with larger counts, as you are seeing. Plan A: Delete in smaller chunks and [CODE] after each chunk. (Similarly, chunking should be applied to Updates.) Plan B, C, D, ... See m...
13
16
37,873
2016-08-17T17:49:21.610
database_errors
dba.stackexchange.com
283,096
(PostgreSQL 11) Reading in an array of JSON objects (or composite types) from a CSV file into Postgres
So I am trying to import rows into a table using a CSV file, but have been running into problems I haven't been able to solve. I would like one column of a row to be an array of JSON objects. How I would generally like my table to look like: statement_id INT statement VARCHAR(100) options JSON[] 1 I am cool [{label: 'N...
This works for me: My CSV [CODE] My Table: [CODE] My COPY statement: [CODE] Explanation: The array literal in PostgresSQL is a list of elements between curly braces, ex: {1,2,3} or {'a','b','c'} I didn't find a clear explanation in the docs of the reason why the [CODE] command wants to have the JSON array elements quot...
0
0
1,846
2021-01-12T19:18:26.497
database_errors
dba.stackexchange.com
542,806
PowerDNS slaves not updating after being notified
I'm running two machines with PowerDNS, one being the master (SQL) and one being the slave (Bind backend). After I modify a domain and bump the serial, I get this in the log: [CODE] I understand it's notifying itself (146.185.146.149) because it is set as nameserver, and that those errors can be ignored. It (looks like...
The problem was port 53 being firewalled from the outside port, but not on the localhost or on the VPN interface. I hadn't noticed because I usually tried [CODE] . If I understand correctly, master sends a message to UDP/53 (via Stefan). This was thus partially firewalled and caused the problem. Master: [CODE] Slave: [...
4
1
24,239
2013-09-30T22:26:15.637
infrastructure
serverfault.com
474,494
IIS 404 error where file exists
I have a fresh VPS installation from my provider (Windows 2008 R2, IIS 7.5). The default web site works fine: [CODE] I created a new website, and binding for http://new.ianquigley.com On that server and everywhere else that Domain maps to the IP address. (ping new.ianquigley.com for example). I created the sub folder [...
Facepalm New VPS box, means default behaviour. i.e. "Hide file type extensions for known types". When I turned that off, I discovered my file was actually named [CODE] . Renamed it to [CODE] and problem solved.
17
30
63,482
2013-02-01T09:34:41.107
infrastructure
serverfault.com
173,574
Datapump export
I'm trying to export the full database using the datapump API, I tried to use this following code: [CODE] But it gives me this next error: [CODE] the line 21 is : [CODE] Where is the problem exactly in that function?
In the Argument 'Directory' of the ADD_FILE procedure, i should specify the name of the directory created by the next command instead of the actual path: [CODE] PS: the name of the directory specified in ADD_FILE should be in upper case (CAPITAL LETTERS).
-1
0
455
2017-05-15T08:22:14.333
warehouse_errors
dba.stackexchange.com
774,242
Apache2 redirect www to non-www (with SSL)
Wise people, I am trying to accomplish the following: Redirect these: [CODE] To [CODE] Goal is to send all related URL's to the non-www, SSL address. This is the code in mij apache2 config (Lines that point to SSL keys removed): [CODE] The result is that http://veluwsvuurbarneveld.nl is rerouted correctly, but the two ...
Thank you for answering my question. After using your (RDA's) code for the apache2 config file, the problem persisted. It turns out your code is completely correct but the problem was with my DNS records. I forgot to add DNS records to the www. domains with my provider (Digital Ocean). For the above code to work, both ...
4
0
7,052
2016-05-02T08:22:21.390
infrastructure
serverfault.com
78,032
Confused AUC ROC score
I am working on binary classification problem, I try to evaluate the performance of some classification algorithms ( LR,Decission Tree , Random forest ...). I am using a cross validation technique (to avoid over-fitting) with AUC ROC as scoring function to compare the performance of the algorithms, but I am getting a w...
Oh, I think I've finally got it. It's just an averaging problem: for each fold in your k-fold cross-validation, you get perfect auROC, but at the default threshold of 0.5 your hard classifiers (for each fold) sometimes have $FPR=0$ and $TPR , but some other times $FPR>0$ and $TPR=1$ . Then averaging you are able to get...
5
1
260
2020-07-20T14:55:01.023
data_quality
datascience.stackexchange.com
701,843
How to make Postfix skipping some recipient's hosts as unreachable?
I would be really happy to learn how to make Postfix to "remember" that certain host is unreachable at the moment, so it would be good if we didn't perform any new connection attempts to this host for a while. I know Postfix is following exponential backoff algorythm for recipients, but can the same idea be applied to ...
In the event of a remote server being unreachable, Postfix (and any such MTA) will just queue/spool the message and keep retrying - you can configure the threshold/duration of the retries by changing the [CODE] , [CODE] , [CODE] and [CODE] settings. If you don't want to force global values, a quite hacky approach is to...
2
3
175
2015-06-26T11:17:36.950
infrastructure
serverfault.com
890,758
Puppet Master Could not request certificate Permission Denied
I have been all over the internet and tried different fixes to which none have worked. Issue: When setting up a new agent to connect to the Puppet Master I run: [CODE] The output of this command is (with certain text removed or modified): [CODE] Couple of things I have tried/verified that have not worked: --I can succe...
The ownership (user and group) for your [CODE] directory is wrong. The [CODE] directory and its children need to be owned by the [CODE] user and group: [CODE] After fixing the ownership you may need to restart puppetserver: [CODE] Now your puppetserver should be able to issue certificates to Puppet agents.
0
1
3,934
2018-01-04T20:07:09.817
pipeline_ops
serverfault.com
6,569
Conficker: Should steps taken in group policy to secure against virus remain?
We got nailed two weeks ago by Conficker, I ran through the 26 step checklist from Mircrosoft on my own computer, as well as on our domain server. It says near the end to reverse all the changes, but I kinda like the changes (Disables Autorun and some other settings). Is there anything in that fix that'll come back to ...
Can you scale back your protections against Conficker? The article you linked has a lot of good practice, that in my humble opinion, you should keep. Isolating old hosts from the evil internet, having your boxes patched with up to date AV, and keeping AutoRun disabled are good ideas. Strong password rules with regular ...
4
2
1,004
2009-05-09T06:18:14.723
infrastructure
serverfault.com
743,761
How to install nginx 1.9x with HTTP 2 support (1.95 or higher) on Ubuntu 15.10
I tried to install the latest nginx version (1.99) on my ubuntu 15.10. I want a nginx version >= 1.95 because I like to have http 2 support. I followed the instructions I found on the internet for ubuntu 14.04, but which should be the same for ubuntu 15.10 ( http://www.liberiangeek.net/2014/10/install-latest-version-ng...
Have a look at the Nginx mainline PPA: https://launchpad.net/~nginx/+archive/ubuntu/development . You can run [CODE] to set it up.
5
3
1,379
2015-12-17T16:37:00.590
api_errors
serverfault.com
411,970
How to avoid lftp Certificate verification error?
I'm trying to get my Pelican blog working. It uses lftp to transfer the actual blog to ones server, but I always get an error: [CODE] I think lftp is checking the SSL and the quick setup of Pelican just forgot to include that I don't have SSL on my FTP. This is the code in Pelican's Makefile: [CODE] which renders in te...
From the manpage : -c commands Execute the given commands and exit. Commands can be separated with a semicolon ( [CODE] ), AND ( [CODE] ) or OR ( [CODE] ). Remember to quote the commands argument properly in the shell. This option must be used alone without other arguments. So you want to specify the commands as a sing...
81
62
198,774
2012-07-27T20:56:16.800
infrastructure
serverfault.com
7,344
Optimizing MySQL query_cache_size
Is my query_cache_size too big? [CODE]
You can analyze the usage of your query cache using the following formulas: Current size compared with maximum available size: To calculate the percentage used value for the query cache you can use the following formula: [CODE] The Query Cache Hit Rate: The percentage hit rate on the cache can be calculated as follows:...
7
7
18,903
2011-10-28T05:00:02.590
database_errors
dba.stackexchange.com
166,544
How can I restore a SQL Server database file from a shadow copy?
We run a Windows Small Business Server 2003 with SQL Server 2005 Express on it. The server is configured to do a daily backup of system state and all files. Today I need to restore a single database from the back-up, but the back-up is corrupt. I thought I'd use the shadow copy that is created as part of the backup pro...
i read your question a few days ago & stumbled across this blog by a computer forensics guy who is using robocopy to pull files out of shadow copy volumes & remembered your question! No idea if this will work for you, you can try copying out the data/log files & see how it goes!
1
2
1,465
2010-08-03T06:36:37.023
database_errors
serverfault.com
247,334
UEC 10.10 Node Controller installation problem; no access to internet
I am trying to setup a new UEC Cloud network using Ubuntu UEC 10.10, but I am having some difficulties with the Node Controller setup ! I am working (for the moment) on a small setup, using two computers. The first one, for CLC, CC, Walrus and SC. Second computer to be used as NC. I am doing fresh and clean re-installa...
Assuming your public IPs are in the network 12.0.0.0 and that your private switch is using the network 192.168.1.0. You need to enable the communications to get through between the private addresses (ranging from 192.168.1.1 to 192.168.1.254) to all the public addresses (ranging from 12.1.1.1 to 12.254.254.254). Callin...
1
2
734
2011-03-14T20:20:20.530
infrastructure
serverfault.com
303,439
Do the Number of Columns "Slow Down" the Time Required for SQL Joins?
I am running the following SQL query using the R programming language to perform an inner join: [CODE] My Question: In my actual data, "table_1" and "table_2" contain around 20 columns each - however, most of these columns are not required for the "join". If I include all these columns (e.g. select * from table_1 vs. s...
Honestly, it depends on the indexes that exist on the table. For example, if SQL is able to perform an Index seek, and the index contains the columns needed, it could stop there and join the results together. In this scenario, including any number of the columns would not really change the duration of the query. Howeve...
0
1
2,358
2021-12-03T03:10:27.030
warehouse_errors
dba.stackexchange.com
315,361
How to diagnose whether a customer's ISP is throttling access to my website?
We host a website that servers up mostly static files, such as html and flash SWF files. The server is hosted in Auckland, New Zealand. Our customers are mainly secondary/high-schools. In general, most customers can access our website at perfectly acceptable speeds. For some customers in a certain region of Australia, ...
The only way to establish this in fact would be for the ISP to confirm it. If you are providing a legitimate service to one of those schools, and have a good relationship with a sys admin at the school, then you could do worse than ask one of them to contact their ISP and check. Why would they be throttling your servic...
1
2
130
2011-09-25T20:37:16.380
infrastructure
serverfault.com
56,636
How to approach a problem when the information is in the relationship between the points, and not the points itself?
I am trying to analyze vehicular mobility models, where I am trying to learn how a particular vehicle moves and then detect similar patterns from the testing data. Here's what I have done for now: I have mobility data for 9 users, collected over 5 minutes for each of them at a frequency of 2 seconds. I have a userID va...
If I understand you correctly, you are trying to determine which data points in your testing set correspond to which user ids ie you are attempting to categorize each of your testing set data points as belonging to one of your 9 users. My answers to your question are as follows. If this is the case, it seems that it wo...
-1
1
31
2019-07-30T18:28:48.873
data_quality
datascience.stackexchange.com
958,472
Can I verify failure of port forwarding using wireshark / packet capture
I've recently configured a Debian 9 server (Debian 4.9.130-2) to run as a lightweight server, running a series of Docker containers (nextcloud, sync, etc.) alongside basic services like ssh. Services are properly configured and running without issue: I can connect to ssh and docker containers from any device on my LAN ...
The [TCP Retransmission] mean the packet was sent, and the PC still try to resend it, as it got no answer. It usually mean the receiver didn't sent back a AC to aknowledge the data was received. It could be bad route on the receiver's side, as often the receiver might not have a route back to your IP 196.52.84.14 I sug...
2
0
2,130
2019-03-15T16:31:03.630
pipeline_ops
serverfault.com
249,543
Cast string to decimal without rounding the decimal part
I'm having this problem when casting a column from string to decimal. The problem is that after I do the cast on the column, it writes it in the new table as decimal, but rounding the decimals. I don't want that, I just want that it keeps all the decimals that the original table had. Here is the query I'm using to popu...
You don't show the column definition, but it must be similar to [CODE] At any rate, the scale of the column must be 2, so PostgreSQL has to round the number to be able to sore it in that column. You will have to use [CODE] to change the colum definition to be able to store more fractional digits in the column.
0
2
1,581
2019-09-24T23:33:49.007
warehouse_errors
dba.stackexchange.com
509,910
Dell SC1425 fans running at full speed all the time and hooked up monitor shows nothing
I have a Dell SC1425 that runs fine for roughly 48 hours and then the fans start running at full speed all the time. I have hooked up a monitor but nothing is being displayed on it. I also have a blue light slowly flashing on the back and front of the server. The also also loses all network connectivity at this point a...
Sounds like you have a hardware issue that causes the machine to fail to load the BIOS. The "blue flashing light" sounds like the server identification light. It's just there so you can easily identify the physical machine when you're on the OOB management board or RDP (or when you're in the front and want to be sure y...
0
0
157
2013-05-22T14:32:32.370
infrastructure
serverfault.com
208,985
session persisting problem after system restart
Is there a way to prevent session id restore on startup/restart of user's system? We are using a asp.net app and I am able to login and access the site. For the first time session id is created and stored in cookies. Problem: But if I restart my system without signing out, the session is still alive. How can I prevent ...
I assume we are talking about a web application over HTTP, which is stateless by nature. I'm not sure this is doable. How would a server know that your client has restarted? Alternative is to make session time-out really short (1 minute) and refresh it every 30 seconds through AJAX calls.
1
1
801
2013-08-21T06:29:03.877
database_errors
softwareengineering.stackexchange.com
570,088
Should I suspicious of this behaviour?
My website users have perceived that sometimes the server performance is not as it used to be (basically they say that a page that normally loads immediately, could take more than 3 seconds now). This happens for 15-30 minutes and then the server becomes responsive again. Today a user warned me just when this was happe...
My guess is that a script kiddie in Lithuania is looking for WordPress on a wide range of IPs. Not having found it on your site, he'll probably move on. This kind of thing happens all the time , and probably isn't the cause of your high load. Also, what symcbean said.
-1
5
3,462
2014-01-27T10:20:21.973
infrastructure
serverfault.com
102,356
Amavis and Postfix VirusMails
I have a postfix server with amavisd and a clamav scanner. I have encountered a situation where clamav has issued false positives and quarantined messages in /var/virusmails/ What is the simplest way of taking these mails and pushing them through the postfix que again. I believe the false positive was temporary and wou...
If your using amavisd-new, you can simply run the amavisd-release command, passing it the quarantine ID of the mail in question. It will take care of removing the email from the quarantine and injecting the email into Postfix, bypassing any content filtering. You can find out the details at http://www.ijs.si/software/a...
5
6
1,044
2010-01-13T16:32:34.587
infrastructure
serverfault.com
297,906
Oracle - Understanding Password Hash Versions
We ran into a problem, and so we're trying to understand all about the password versions. Here is what happened: We upgraded from 11g to 12c. Our sqlnet.ora had this parameter: SQLNET.ALLOWED_LOGON_VERSION = 8. Users were able to log in, using both upper & lower case passwords. So all was good. However, since SQLNET.AL...
First, note that the [CODE] parameter has been deprecated, and that Oracle is planning to force case-sensitive passwords in coming releases. [CODE] determines which minimum hashing or encryption algorithms will be used for hash generation by the client or accepted by the server. Changing [CODE] only changes the algorit...
0
2
314
2021-08-11T17:07:11.237
database_errors
dba.stackexchange.com
470,955
yumdownloader downloads only i686 resolved rpms
Having CentOS 6.3 installed on x86_64. Below I'll demonstrate my problem using parted package. Running: [CODE] As a result downloaded the following rpms are: [CODE] If I examine dependency of x86_64 version of parted I see: [CODE] Therefore, I expect x86_64 version of [CODE] to be downloaded too. So, how both i686 and ...
The [CODE] command does not always download even the first layer of the required packages, let alone the recursive dependencies. The [CODE] command does a better job of determining the required packages even though it too has a recursion limit. To solve the problem where yumdownloader downloads only i686 resolved rpms,...
4
3
2,397
2013-01-21T07:04:58.660
infrastructure
serverfault.com
353,584
SQL Server 2005 SP3 Failover Cluster Node Replacement Service Pack
2-node SQL Server 2005 SP3 (9.0.4226) Failover Cluster running on Windows Server 2003 R2 x64 SP2. My passive node suffered a RAID failure on the OS partition. I evicted the failed node, rebuilt it, rejoined it to the cluster, and run SQL setup from the active node to to reinstall SQL Server onto the passive node. I am ...
According to Microsoft : Service Pack 4 (SP4) for Microsoft SQL Server 2005 is now available for download. SQL Server 2005 service packs are cumulative, and this service pack upgrades all service levels of SQL Server 2005 to SP4 .
0
0
334
2012-01-25T19:11:20.540
database_errors
serverfault.com
224,932
Sum values by time
[CODE] http://sqlfiddle.com/#!9/9d8554/3 My query [CODE] Hi db gurus, Although I am a frequent visitor of stactoverflow, this is my first question as a newbie. I've come to the realization that my query produces erroneus results because in reality the actual hour period starts at x:00:15 and ends at x+1:00:00. I have t...
I'd do this using a subquery to combine the date and time, then round down before aggregating the data. This way, it will include the '00:00' hour into the previous day which will prevent you from having to searching for two dates: [CODE] Here is an example of it in action: sqlfiddle .
2
1
144
2018-12-13T21:12:56.063
warehouse_errors
dba.stackexchange.com
324,703
Is Apache Cassandra Quickstart broken?
I'm following the steps in the current (2023-03-13) Cassandra quickstart : STEP 1: GET CASSANDRA USING DOCKER [CODE] STEP 2: START CASSANDRA [CODE] STEP 3: CREATE FILES Created the file [CODE] with the CQL script: [CODE] Step 4: [CODE] STEP 4: LOAD DATA WITH CQLSH is failing with error: [CODE] I'm on Windows 10, with D...
Yes, it does seem to be broken, because the world has moved on. If you simply run [CODE] you'll get Connection error: ('Unable to connect to any servers', {'172.18.0.2': ProtocolError("cql_version '3.3.1' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.6']",)}) Apparently, as of today the im...
2
1
242
2023-03-13T16:34:51.160
pipeline_ops
dba.stackexchange.com
34,457
What does it mean for a method to be invariant to diagonal rescaling of the gradients?
In the paper which describes Adam: a method for stochastic optimization, the author states: The method is straightforward to implement, is computationally efficient, has little memory requirements, is invariant to diagonal rescaling of the gradients, and is well suited for problems that are large in terms of data and/o...
(Copied from my answer on stats.SE . ( This meta.SE answer seems to approve of this copy-paste pattern.)) The original Adam paper briefly explains what it means by "invariant to diagonal rescaling of the gradients" at the end of section 2.1. I would try to explain it in some more detail. Like stochastic gradient descen...
2
1
864
2018-07-14T10:13:11.817
data_quality
datascience.stackexchange.com
800,650
Access apache2 virtualhost on oracle vm guest through nat?
my problem is the following: I have an Oracle VM with debian on it running apache2. This apache shall handle two webservers, therefore my conf looks like this: [CODE] where hostpc is the name of the hostpc and domain.com is the local domain. I forwarded Port 80 through NAT from the VM to the host pc (TCP, guest port 80...
You should forward port 80 from host machine to port 80 of virtual machine. Make sure your host entries are correct
0
0
87
2016-09-02T06:55:14.897
database_errors
serverfault.com
430,366
Connect to network share using local account - without a computer name
The short form of the question: I have a shared folder on a computer with a fixed static IP address, a known share name, and a local user account which has read access to the share. Normally, I would connect to the share using [CODE] and logon credentials of [CODE] . Is there anyway to access the share if I know the lo...
In my experience you can connect to network share of non-domain machine with [CODE] or [CODE] form. I have tried connecting to one of my win 2008 servers to c$ share with [CODE] and it worked. I Tried it to both a non-domain and domain win 2008 server it works for [CODE] in both cases Don't have a win xp machine to try...
3
6
37,027
2012-09-20T19:35:43.923
pipeline_ops
serverfault.com
25,563
How to run 2 separate sql server engines on the same server?
I have a Windows server, and on this server there are many websites running and most of them connect to the installed SQL Server, some of them connect to SQL Server Express and some to local. My issue is: there is one old website, has some programming errors which affect SQL Server performance and as a result affect al...
Multiple installations are possible According to the feature matrix , You can install up to 16 instances of SQL Server on one host. If you use Enterprise edition, you can install up to 50. The side-by-side documentation states that certain features will be shared among all instances. For example, if you install the dev...
-2
3
3,514
2012-10-07T09:26:39.207
database_errors
dba.stackexchange.com
439,140
Confused with creating an ODBC connection, apparently I have two separate odbcad32.exe files?
Alright, this is my first time working with this so forgive me if I'm a little confusing or vague. I have a server with Windows Server 2008 Standard without Hyper-v (6.0, Build 6002). I'm running a small website off this server and using a Microsoft Access database to store some information coming in through the websit...
The executable in system32 is the 64 bit version while the copy in syswow64 is the 64 bit version. Each one works with different sets of drivers based on the architecture of the executable you're running. The version you want to run depends on the architecture of the executables that need to load the drivers. Most ofte...
0
1
568
2012-10-16T22:52:08.490
infrastructure
serverfault.com
533,429
DRBD for HA Server in Small Office Questions
Backround: We are in need of a HA server in a small office environment and are looking at DRBD to provide it. We only have about 100GB that needs to be on the HA server and server load will be extremely low. The data will probably increase about 10%-25% per year if we archive older office data, and 50%-75% each year if...
First, you need to define what you really mean by "HA". What are you protecting against, what are the costs of an outage of type X and duration Y? How will it affect your organization? What is your role in this organization anyway and what is your time worth? How much time can you spend on this? After that, you have to...
7
7
410
2013-08-24T07:32:38.920
data_quality
serverfault.com
40,673
Getting sql statement to refer to more than 2 tables?
I have the following tables: StaffName [CODE] Country [CODE] IncomeGroup [CODE] EducationalLevel [CODE] My intention is to get all the values from other table to the main table and display it something like the following: Intended Result [CODE] I tried using the following sql: [CODE] But it return no results. There is ...
I appears that some of your syntax is not entirely correct in the question, however it may just be a typo. It appears also that you are attempting to use the old method of joining tables. I noted also that you are having to return records from [CODE] where there are no matches (nulls?) with the other tables. To still j...
3
5
301
2013-04-23T09:55:04.043
warehouse_errors
dba.stackexchange.com
995,197
Determine what settings are associated with a phantom/orphan GPO object
I am attempting to troubleshoot an issue that is suspected to be coming from a phantom GPO object. I found the Get-GPOMappings ( https://gallery.technet.microsoft.com/Get-GPOMappings-Generate-09fe167c ) script on technet and it identified a list of phantom GPOs. I am able to use GET-GPO and see DisplayName, owner, etc ...
The actual settings are a collection of admx scripts that get pushed to endpoints. MSFT hasn't provided a way to query the settings inside the scripts using pwsh. There also isn't a WMI or COM object you can instantiate and leverage to gain this data. As a result pwsh cmdlets can only provide metadata about the GPO's. ...
0
0
360
2019-12-11T14:44:06.747
infrastructure
serverfault.com
139,480
Oracle union default sort is weird
As you know [CODE] removes duplicated rows. I thought it removes from the latter ones, but it doesn't. I found out that if there's no [CODE] clause, Oracle sorts the merged dataset by the first column and removes the duplicates. [CODE] It results : [CODE] Whereas I expect : [CODE] I failed many times with this, and mak...
As has already been mentioned more than once, you cannot expect rows to be in a certain order without specifying that order explicitly using the ORDER BY clause. For the problem described in your question, you actually do not need a UNION at all. Use only the LIKE condition to cover both full and partial matches: [CODE...
0
5
6,167
2016-05-25T12:14:30.013
database_errors
dba.stackexchange.com
115,992
How do you keep track of your past projects?
After having hard time trying to remember details of my past projects several years ago I was wondering how programmers usually keep track of that? This kind of information comes handy with job interviews etc. Do you write down technologies used, challenges faced etc to some kind of "jumbo CV"? Or do you just trust you...
Here are some suggestions that have worked well for me: Keep CV/resume up-to-date--never know when you might need it, and recording each new skill or accomplishment as it is fresh in your memory will help. Record information about a project in a wiki, whether it be a team or company based wiki, or even your own persona...
9
7
689
2011-10-24T19:32:52.980
api_errors
softwareengineering.stackexchange.com
830,346
nginx chain reaction when using try_files when server returns status code 500 results in double submission
following config: [CODE] this will try several things when the server returns 500. It will walk down the chain and try the next thing. But: as it is a form that is failing, the form is resubmitted, and the things that happen until the faulty code, happen thus twice. Is there a way to only try one thing with [CODE] or a...
Your code is running twice because you explicitly asked for it to be run twice. First, [CODE] finds your URL, or more specifically it doesn't find your URL, and so it runs your PHP script because you ended it with [CODE] . This causes nginx to execute your script using the directives within [CODE] . When this returns a...
0
2
909
2017-02-03T06:45:31.610
api_errors
serverfault.com
24,436
Representation of circular references constraint
We have a database where we store commands and properties for devices that may be controlled via a network. For instance, "Concrete Device" is an instance of some [CODE] , which in turn contains [CODE] and [CODE] . We have the ability to get values of the properties of devices by analyzing responses on commands; theref...
All you need is to propagate TypeId down to the link table: [CODE]
2
2
335
2012-09-17T16:54:53.923
data_quality
dba.stackexchange.com
406,978
Is there a way to cleverly cache with Nginx?
We have an Apache behind Nginx. Nginx is used to load balance between webservers and to cache static content. The only problem is, every time the web application is updated we have to completely clear Nginx cache (static file cache is set to quite a high value, some static files change often others not). Is there a cle...
You'll have to write a script that periodically crawls your internal content that you want cached, and have the script crawl each URL that you update. In the script, set an HTTP header (the actual header doesn't matter) and then use proxy_cache_bypass to force nginx to retrieve it from upstream. Example: Your cache pri...
1
4
3,242
2012-07-12T02:21:23.740
infrastructure
serverfault.com
947,861
How to install a second Grafana instance to run alongside an existing Grafana instance?
I have a CentOS 7.6.1810 server running Grafana v4.3.2. My Grafana dashboards require templating with MySQL query variables, which are not supported until Grafana v4.5.0 (refer to https://github.com/grafana/grafana/issues/9137 , https://stackoverflow.com/questions/46042723/unable-to-setup-grafana-template-with-mysql , ...
I would try: Make a snapshot of Grafana v4.3.2 Run that snapshot Tried to upgrade Grafana in-place Check whether some dashboard is broken. Running more than one grafana with the same data source is feasible as long as the firewall of data source allows it.
1
1
1,118
2019-01-07T06:34:34.193
bi_errors
serverfault.com
15,987
Sprint planning: dots within the daily capacity of a developer are ignored
When I define the daily capacity of a developer during a sprint and this value contains a dot (e.g. 2.5 hours), after I save the changes the developer will have a daily capacity of 25 hours. Daily capacity of the developer before saving the changes: Daily capacity of the developer after saving the changes: When I use a...
An easy way to override the settings from Azure DevOps is to install the Chrome extension " Locale Switcher "
0
0
55
2022-05-17T11:14:53.603
pipeline_ops
devops.stackexchange.com
90,163
Rewriting code / better initial outline
Single-programmer project. I'm constantly having to rewrite my own code on an on-going project. It's not buggy, but every time I expand my program (which previously-planned features), I keep having to expand previous classes, which cause me to re-write code that worked fine before. I have unit-tests, so bugs aren't int...
Since you know what you want your project to do (for the most part), and there's no constant interaction with a "customer", using an iterative approach may introduce unnecessary overhead. I feel that iterative approaches are best suited to small teams that can communicate frequently with a customer that may change requ...
3
2
524
2011-07-06T18:12:53.307
api_errors
softwareengineering.stackexchange.com
799,178
Nginx/Php Fastcgi permission issue
Suddenly I started getting the following error when I try to restart nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: [emerg] mkdir() "/var/run/nginx-cache/site1" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed So I have to create nginx-cac...
You haven't told what is your distribution. However, on Debian at least, [CODE] is a symlink to [CODE] , where the filesystem type is tmpfs . tmpfs isn't a permanent filesystem, so it is destroyed on every reboot. Therefore you have to either make a script that creates those directories on boot, or use some other direc...
-1
0
964
2016-08-25T20:50:40.493
infrastructure
serverfault.com
892,148
How to divert connection or packet before routing decision entering the default chain using iptables
before the packets ports (443) entering the firewall i would like to divert incoming packet of server (443) to input chain goes to FORWARD chain so thats the incoming packets 100.43.xx.xx --sport 443 are send it to FORWARD instead of input chain and this is my nf_conntrack [CODE] how to configure this in OUTPUT,FORWARD...
[CODE]
0
0
350
2018-01-14T15:51:45.193
infrastructure
serverfault.com
60,250
How to write constructors which might fail to properly instantiate an object
Sometimes you need to write a constructor which can fail. For instance, say I want to instantiate an object with a file path, something like [CODE] As long as the path points to an appropriate file everything's fine. But if the string is not a valid path things should break. But how? You could: throw an exception retur...
It's never good to rely on a constructor to do the dirty work. Besides, it's also unclear to another programmer whether or not work is going to be done in the constructor unless there is explicit documentation stating so (and that the user's of the class have read it or been told so). For example (in C#): [CODE] What h...
16
9
28,687
2011-03-20T19:24:23.783
api_errors
softwareengineering.stackexchange.com
909,935
run long shell command on remote servers using ansible
I have a task in which I want to run below command on a shell on remote servers but whenever I run my playbook, it always gives me exception: [CODE] Below is the error: I can't figure out what wrong I am doing here? [CODE] I am able to run this command directly on shell on any remote servers but I am having issues whil...
Well I can't tell what your problem is exactly, but the error indicates that you have a syntax error in your command. Which is almost certainly related to something being escaped or not translated properly as it is executed. A couple things I have to suggest. First use the yaml syntax to include a block of text which i...
0
2
10,440
2018-04-30T03:04:17.057
pipeline_ops
serverfault.com
288,296
Status transitions with extra information in RESTful interfaces
How would you design a REST interface that triggers a status change of an object, but requires additional properties in that moment? For example, the deliverer of a package needs to change the status of the package from in transport to delivered , but also specify how it was delivered (letterbox or in person). I see tw...
Would it help you to have more resources? /packages/12345/status /packages/12345/status/latest /packages/12345/status/versions/7 /packages/12345/status?at=20150630T1138-0600 /packages/12345/history/delivery/status /packages/12345/history/latest/status /paclages/12345/history/20150630/updates/2 Ceci n'est-pas un package...
3
1
455
2015-06-30T11:38:44.413
data_quality
softwareengineering.stackexchange.com
115,627
what is the quickest way to delete duplicate rows?
I need to delete duplicate rows from a large table. what is the best way to achieve that? currently I use this algorithm: [CODE] when I run it on my system: [CODE] I found that <> 1 is better than > 1. I could create this index, currently not present: [CODE] Is there any other way to get this done? On this occasion thi...
If the table is small and the number of rows you are deleting is small, then use [CODE] Note: In above query you are using an arbitrary ordering in the window order clause [CODE] (learned it from Itzik Ben-Gan's T-SQL Querying book and @AaronBertrand cited that above as well) . If the table is large (e.g. 5M records) t...
3
5
5,023
2015-09-21T09:43:33.417
data_quality
dba.stackexchange.com
270,774
could not connect to server: can't connect postgres on the server to postico on my local
when I connect postgres on the server to postico on my local I get this error [CODE] I could not find anywhere postgresql.conf and pg_hba.conf files, so i created the files, as you see in the below image I found this explanation but still does not solve my issue [CODE] here how i configured postgresql.conf [CODE] here ...
fixed the issue in postgres 9.5 postgresql.conf and pg_hba.conf files are located in [CODE] not in [CODE] you have to login as server root user and run each one of the command and that will give where are the files [CODE] in my instance when i ran the command i got this [CODE]
0
0
812
2020-07-11T04:56:14.700
database_errors
dba.stackexchange.com
308,184
What is the performance overhead of IFNULL in the select statement of mysql 5.7+ query
I've recently made an upgrade to a mysql query performed by my web server when serving request. There are two main permutations of the query, one will typically be limited to returning 500 rows and another will be limited to a particular value of a column (and is properly indexed) resulting in 5-10k results. The origin...
Let's look at this list of overheads : Overhead for a statement Overhead for a row Overhead for a function Those are in order starting with the most overhead. That is, the function overhead is insignificant in the big picture; don't worry about it. See also [CODE] . Caching With Engine=InnoDB, the main cache is the "bu...
0
0
398
2022-03-02T17:04:16.400
database_errors
dba.stackexchange.com
87,211
Error Installing DNS Server Role on Windows 2008 Server. Error Code 0x80070643
I'm having a problem adding the DNS server role to my Windows 2008 Server domain controller. Normally, when I use dcpromo to create a new domain, the DNS service gets installed automatically without error. However, I'm getting this fatal 0x80070643 error. It has nothing to do with my network adapters not having an IP a...
Does this KB article apply? http://support.microsoft.com/kb/975654
-1
0
4,715
2009-11-23T01:38:09.347
infrastructure
serverfault.com
272,895
HP ProLiant firmware update policies/schedule/strategy
I'm looking for a few ideas on how to keep HP server firmware up-to-date. How do other administrators keep the firmware revisions in check? Do you upgrade on a regular basis? Do you only run updates when you run into problems? In my experience, HP tends to have pretty important ILO firmware updates, reasonably-importan...
If you're asking "how to do this", the best answer is with the HP free management software (forgotten the name) that will let you distribute PSP and BIOS updates. It runs along with HP SIM and the Hp Agent Homepage - you shouldn't have to touch the servers themselves, you can do it from the management software. Then, y...
3
2
686
2011-05-23T20:41:27.767
infrastructure
serverfault.com
808,693
Is it possible to set the expiration date of a certificate?
I am trying to test certificate validation logic in an installer. I have a test domain with Active Directory Certificate Services installed. Both the domain controller and CertServ are base installations with minimal configuration. Is there a way to control the expiration date of a certificate when requesting a certifi...
In ADCS You can change the validity period in the certificate templates. I suggest you duplicate a template and then go to the properties / general tab and you will see an option for validity period. This only affects certificates that are issued after the change. Validity periods of previously issued certs will not ch...
2
3
2,069
2016-10-12T19:12:33.947
data_quality
serverfault.com
198,386
This query is very slow , how can we make it fast
[CODE] Explain PLAN [CODE]
Replace queued_logins and stuck_logins by one query, since they are almost equal. Replace the count by two counts: [CODE] This should make your query at least twice as fast, if not much more. The result should be somewhat like [CODE]
0
4
96
2018-02-20T18:00:33.347
warehouse_errors
dba.stackexchange.com
293,932
Why do I get #2006 MySQL server has gone away and how can I fix this?
What I'm doing is I'm trying to restore MySQL tables from [CODE] and [CODE] files. Most of the tables have been restored successfully. I do it like this: [CODE] [CODE] [CODE] Then I copy the [CODE] file into the MySQL [CODE] folder and [CODE] When I go to [CODE] then and click on the imported table I get this error: #2...
Suggestions to consider for your instance my.ini [mysqld] section [CODE] other suggestions you will likely find reasonable for your 16G server [CODE] Many other tuning suggestions would improve performance when you have more significant number of concurrent connections.
0
1
1,130
2021-06-08T11:58:26.903
database_errors
dba.stackexchange.com
469,064
IBM Xseries 3400 only working while power button holding pressed
I have an IBM xSeries x3400 Intel Xeon server which only works while someone holds in the power button. My server stopped working and I sent it to IBM Service. After a few hours they told me I could backup my data. When I asked how they managed to turn it on, they said that it works while the power button is pressed. A...
[CODE] NO . Your system is broken. Get it serviced. [CODE] Possibly - It depends on whether the problem is the motherboard or the daughterboard the power button is on. I defer to the IBM Support Team's diagnosis on this matter. [CODE] Procedure is NOT recommended Why would you want to use a marginal piece of hardware? ...
2
6
6,596
2013-01-14T22:57:24.417
database_errors
serverfault.com
392,835
Why is touch failing?
I must be missing something obvious. This works: [CODE] Why doesn't this? [CODE]
There's a good chance that one of the directories in [CODE] is actually a symbolic link. The [CODE] command built into most modern shells does a little magic in this case, so that [CODE] takes you to the "logical" parent directory -- which takes into account how you got there. When you try to [CODE] , you don't get thi...
3
12
8,872
2012-05-26T01:23:17.993
infrastructure
serverfault.com
430,239
CentOS 6 gnome-terminal font is garbled until Arabic Support is installed
My default VM images for CentOS 6 are always installed with the most minimal set of packages. When I need a machine with a graphical install, I upgrade with [CODE] . I've noticed that this installation produces bad fonts in gnome-terminal, until I install the Arabic Language support, per the CentOS open bug : [CODE] .....
The package you need to install is [CODE] . This is the default monospace font used by GNOME and KDE. You may also wish to install the variable width DejaVu fonts as well. Those are in the [CODE] package.
0
2
4,254
2012-09-20T13:17:02.263
infrastructure
serverfault.com
1,074,741
Overwriting existing users in MS 365
I inherited the management of a MS365 (former Office 365) and local Active Directory system. The old server was toast and I created a whole new Active Directory domain on new hardware. On the new AD domain many users have the same email adresses as on the old domain and it seems that this causes problems. My goal Is to...
IDFix doesn't validate the users across directories. It only queries the local AD to find objects that may not sync due to errors, like invalid characters in the local or domain part of the name, etc. Here's what I'd suggest: Reconfigure Azure AD Connect to sync an empty OU. This will put all of your AD accounts out of...
0
0
803
2021-08-16T19:33:32.360
data_quality
serverfault.com
432,268
Server freeze - how to debug
I am running a Debian virtual server with Apache, PHP, MySQL. There is just 1 website with very low traffic running but the server very often (almost everyday) freezes and does not respond. When this happens the server is unreachable from web browser or by SSH and I have to go to administration of my provider and perfo...
Reconfigure your syslog to go to a different server -- this pushes events, any monitoring polls the server (probably miss the big segfault unless you poll at the exact instant it happens). Grabbing logs to the machine that's crashing is a bad idea -- you will always lose the most import (read last) lines of the logs. m...
5
4
9,052
2012-09-26T17:06:36.093
database_errors
serverfault.com
206,440
How should I tackle code testing on a solo project?
I am writing a piece of software and I would like to release it open source. Should I try just getting it stable on my computer (with normal use; no "things a monkey wouldn't even do") before releasing it, or should I take a different approach? What I am leaning towards doing right now is: Write it myself during the [C...
As I am somewhat in your situation (currently developing a PHP-based CMS) I hope that my experience can help you. Testing is key. Repeat that until you believe. It depends on the programming language though how easy it is. As I am developing in PHP I will give some examples on that. Developing The most important point ...
4
4
753
2013-07-29T20:39:42.667
api_errors
softwareengineering.stackexchange.com
329,019
Apache2 remove response headers
I have been going crazy trying to remove response headers from my Apache2 server. I have mod_headers enabled and I have 'Header unset BLAH_HEADER_NAME' in my apache2.conf file, but it doesn't appear to be working, though 'Header append' appears to work..go figure. I've read that mod_perl might work, but I don't have an...
I can't really imagine why you'd want to unset all of those, breaking your compliance with the HTTP/1.1 standard.. but, [CODE] cannot be unset (see here ), while the others ought to work; try: [CODE]
3
4
7,076
2011-11-08T19:31:50.000
infrastructure
serverfault.com
1,007,697
Too long TCP handshake while doing NAT
I've installed Mikrotik hEX at location 'A', Mikrotik hAP AC^2 at location 'B', and connected each with OVPN L2. Both two routers have their NAT features turned on, and have their private network. hEX has network 192.168.0.0/23, and hAP has network 192.168.3.0/24. These two local networks are are bound as one local net...
After reading over your post and looking at the network trace screen shot you provided, I'll focus on that detail and the ICMP redirects in particular. After doing some research on some of this, the "What does ICMP | Redirect | (redirect for host) mean?" post seems to have some potential solutions to help resolve this ...
2
0
559
2020-03-20T13:59:20.367
infrastructure
serverfault.com
240,762
How can I monitor network in CentOS .5.5 , my application refuse to read sockets
I have weird problem with one of my applications (servers ), its suddenly starts to read socket and before it written back, the connection is closed this is what I see in my logs. Is there any tool in Linux centos that let me see what is happening in this time frame some tools to debug the network ?
Use tcpdump or wireshark. tcpdump is a common packet analyzer that runs under the command line. Wirehark is GUI application. Also you can use strace to trace system call.
1
0
607
2011-02-27T06:26:24.217
infrastructure
serverfault.com
954,711
Template issues certificate with longer validity than CA Certiicate, what happens?
I am wonder what will happen as a certificate template with a 2 years validity period (for example) will issue a certificate when the CA certificate expires in 1 year. I can think of 2 things that could possible happen, but this is just guessing, thats why I would like to know. I think possibly the following will happe...
The issued certificate will get an expiration date of 1 year, not 2. this is correct answer. ADCS will sign the certificate, however issued certificate's validity will not exceed the CA certificate validity and limited only to 1 year. To avoid this, you should renew CA certificate in advance. At the best -- [CODE] year...
3
3
2,689
2019-02-19T15:24:21.417
infrastructure
serverfault.com
400,197
add_header directives in location overwriting add_header directives in server
Using nginx 1.2.1 I am able to use [CODE] under some circumstances. Here is a working example : [CODE] The result [CODE] Here is something that doesn't work : if I use the [CODE] directive inside [CODE] , the other [CODE] directives under [CODE] are ignored: [CODE] The result [CODE] The documentation says that both [CO...
This is expected behaviour. The [CODE] directives, much like all other array-type directives in nginx, are inherited from the previous level if and only if there are no [CODE] directives defined on the current level. If you want nginx to add all headers in the [CODE] , you have to list them all in [CODE] , i.e. [CODE] ...
25
28
20,762
2012-06-19T15:47:00.353
infrastructure
serverfault.com
677,345
inotifywait invalid option -d (daemon)
I'm trying to run inotifywait as daemon by this command: [CODE] But I'm getting this error: [CODE] What am I doing wrong?
There was a problem with [CODE] version. While v3.14 has [CODE] and [CODE] parameters, older version 3.13 hasn't . This can solve that: [CODE] And runs with [CODE] at the end of command.
0
1
521
2015-03-22T10:51:12.243
infrastructure
serverfault.com
106,703
Can a Transformers be used for a classification problem?
I want to perform binary classification on a sequential data. I want to leverage the PyTorch nn.TransformerEncoder module, is there a way I can do this? If not, are Transformers only used NLP? If yes, how can I format the inputs and what tutorial can help me do this as quick as possible
Transformers can be used for classification tasks. I found a good tutorial where they used a BERT Transformer for the encoding and a Convolutional Neural Network for a sentiment analysis . You can also fine-tune a whole Transformer for the classification but this is usually pretty intense when it comes to the training ...
1
2
4,472
2022-01-04T15:46:50.040
data_quality
datascience.stackexchange.com
237,802
pgAdmin4 v4: TypeError: string indices must be integers
When I open pgAdmin4 v4 on Windows 10, the dashboard displays [CODE] on all charts. The link (1) told me that the logs on windows are at [CODE] The logs contained numerous times the same error [CODE] I can also not open any databases(pressing the databases button doesn't unfold the list of databases) via pgAdmin4 v4. S...
I have the same problem in Ubuntu 18.04 with pgAdmin 4.11 and postgres 11. What works for me is to go to the process list and kill the pgadmin4 process and reload it. You may do it from Task Manager on windows. Good luck. BTW Datagrip always work fine for me too.
4
3
24,347
2019-05-10T08:24:15.920
data_quality
dba.stackexchange.com
12,662
User login error when trying to access secured SQL Server database
We have a username that was recently renamed from one username to another (think getting married). The Active Directory admin renamed the user because "it has always worked in the past". One vendor package we use uses the built-in MS SQL Server security. Each module has three groups: xxView = View Only xxUser = Add, Up...
Both options should work. The article you referrenced should deal with this exact scenario, but if the login is present for you to delete and re-add then go with that route. It is quicker and easier by far.
1
1
93
2012-02-10T21:55:35.873
database_errors
dba.stackexchange.com
277,011
how to avoid file become 744 when modify a file from windows 7 to a ubuntu shared folder?
I had share a folder from ubuntu 10.04 using "shared option" and samba server and access from windows 7. When i modify a file in that share folder from windows 7, the file's permission change from 644 to 744 by default, which is quite annoying since they are code to share to others, it better keep the original permissi...
It strange that it's changing the permission on files that already exist unless Windows is re-creating the files for some reason. You could try adding the following to your smb.conf under the relevant share to force the permissions on anything Windows creates - create mask = 0644 directory mask = 0755 According to the ...
2
1
965
2011-06-04T15:56:45.813
infrastructure
serverfault.com
877,949
kops kubernetes dashboard not working
Have created a kops kubernetes cluster Installed dashboard using: [CODE] Versions [CODE] gives: [CODE] Browsing to: https://api.k.mydomain.com/ui Gives: Error: 'malformed HTTP response "\x15\x03\x01\x00\x02\x02"' Trying to reach: ' http://100.x.x.x:8443/ ' How should I access dashboard?
New versions of dashboard don't work properly with short [CODE] path. You need to use ugly [CODE] instead. Check the official site for details. https://github.com/kubernetes/dashboard
1
1
812
2017-10-11T11:42:44.233
pipeline_ops
serverfault.com
425,337
Dependency Injection: Dealing with late property initialization
I am using some C# pseudo to illustrate here. Below, you will see a Service and a Client (in the context of using DI). The service has a required property that will need to be initialized by the Client. Typically, the client would instantiate an object, and pass any required data through the constructor. Using DI, howe...
Rather than registering [CODE] directly in your DI container, you can register a factory for the service: [CODE] Now just let your DI framework inject [CODE] into your [CODE] class and it can use the factory to obtain an appropriate instance of the service: [CODE] You do need to be careful about managing the different ...
2
8
2,204
2021-04-11T16:36:32.547
data_quality
softwareengineering.stackexchange.com
680,217
Need to improve apache and mysql configuration. Current config is crashing server due to RAM maxing out?
Ok, we run a growing auto parts shopping cart. Our server runs slow and is always crashing so we asked our web host to assist us. They sent us these report but I need some advice in how to process it. Our plan right now is to take the MySQL database and host it on AWS, but I need to know how to gauge what size instance...
If you're hosting MySQL and Apache on the same server, you should see a performance gain just by moving them to separate machines. MySQL likes to use RAM for caching data, but you won't see a ton of improvement if you're doing a ton of writes (which it doesn't look like you are). Something else you might consider is ge...
1
2
306
2015-04-03T02:57:48.840
database_errors
serverfault.com
588,151
How to execute a reverse "Powershell shell" using ncat or netcat?
I am using ncat to execute a reverse "cmd" shell from one machine to another and without any issues using the commands: [CODE] And all works flawlessly, however, I would very much prefer "powershell" to be executed instead of "cmd", for that I did this: [CODE] But now a strange thing happens, the powershell prompt is g...
The reason that the Powershell hangs on the reverse shell of your attacking machine might be due to it not being fully interactive. Try to use PowerShell-based shells like Nishang's Invoke-PowerShellTcp . Download the .ps1 script on your attacking machine, run a HTTP server for the remote host to download the script fr...
2
1
33,613
2014-04-10T16:59:07.347
infrastructure
serverfault.com
105,421
Indexes on Slave
I already have a my system with Master-Slave replication. I have started using Slave for data fetching. So, I need to create some extra indexes on Slave.[Not In master - however be informed that the Master already has indexes]. I already read some posts but couldn't clear my doubts. They say If you create primary key-f...
You can create secondary indexes on slave whenever required. There is no issue in creating secondary indexes [CODE] . If you create [CODE] and [CODE] on slave there will be chances that your replication will fail with [CODE] on slave. Take a example I have a table [CODE] on master without having any index on it and has...
6
9
3,852
2015-06-29T11:32:29.777
data_quality
dba.stackexchange.com
319,890
SQL Modulo Function gives the wrong value?
In Javascript, Excel, Python, and a scientific calculator, the modulo operation [CODE] gives a value of [CODE] . (Or something very close to that, depending on number of decimal places and rounding.) But in T-SQL, [CODE] returns a value of [CODE] . I've tried using [CODE] As I was thinking that maybe this was an exampl...
According to Wikipedia , the SQL standard implements the truncated version of the [CODE] operator which for a number a = nq + r where q is an integer, defines the remainder r as: r = a - n [ a / n ] where [] is the integral part function (integer part) 1 So plugging the example into the equation yields [CODE] So accord...
8
13
1,060
2022-11-18T15:04:26.420
database_errors
dba.stackexchange.com
631,216
Replace date in epoch (seconds) format to normal in a log file
I am on a ubuntu machine trying to read from log files and found the logs contain date and time in epoch format(seconds). How can I convert these dates in numbers into any readable format from command line? [CODE]
What about using [CODE] ? [CODE] Then you can play with the date options, so that you can get for example: [CODE] Test [CODE]
0
1
2,549
2014-09-25T12:50:29.780
infrastructure
serverfault.com
118,174
How to store a simple DB "in the cloud"?
Even though the name is similar my question is not a dupe of the very fine question here: Database in the cloud? I've got a webserver (Java/Tomcat) running a webapp (which I wrote) on a dedicated server (which I fully configured myself) and I'd like to have it now use a small persistent DB. I know how to install and co...
Read Write Web has a pretty recent summary of some good options for cloud based data providers. Exactly which one is really a tactical matter based on the nature of your data more than anything else. As you note, any choice you do make still requires a backup method for saftey's sake. Even Amazon and Google go down fro...
3
4
5,097
2011-11-06T15:56:23.640
database_errors
softwareengineering.stackexchange.com
426,989
Microservices: Is the Saga Pattern correctly applied here?
I'm trying to understand and learn how to build microservice messages the best and came up with this task for myself: Services given: Accounts Service Token Service Email Service When a user registers the account needs a token for the verification email. The token service will issue tokens with a life time that can exp...
There are a number of "shapes" to a process like this. You mention Sagas, others might say Process Manager. To some, a Saga is something that has compensating actions in case of failure (rolling back multiple transactions for instance). To others, a Process Manager is something that responds to different Domain Events,...
3
1
740
2021-06-03T11:58:22.033
api_errors
softwareengineering.stackexchange.com
179,444
Large transactional log won't shrink after transactional backup
I'll start by saying our databases use full recovery mode and we run SQL Server 2014. Over the last few days our backups appeared to spiral out of control to the point that our full/differential backups were failing and only extremely large transactional backups were getting created. This of course caused a disk space ...
What is the frequency of the log backups ? Use dbcc sqlperf(logspace) to check how much % is free space in the logs. There is something that is holding the logs up. Check the log_reuse_wait_desc for that database and take action accordingly. Follow the below article : https://www.brentozar.com/archive/2016/03/my-favori...
3
3
19,803
2017-07-10T09:48:24.367
database_errors
dba.stackexchange.com
429,399
Git semantic commit versioning for file deletions
What commit type should I use when I'm deleting files from a repo? I have seen several types over the internet, but none talk about file deletions. Possibly the closest options that come to mind are CHORE and REFACTOR . EDIT 1 : START Reasons why I'm confused is because none of the definitions for CHORE and REFACTOR ta...
This relates to https://www.conventionalcommits.org/en/v1.0.0/ ? The semantics are supposed to describe why rather than what . So it depends why you're deleting the files.
-2
1
1,422
2021-06-16T15:53:22.703
api_errors
softwareengineering.stackexchange.com
771,070
Autoscaling with Nodejs on Google Compute Engine
I am trying to get my backend stuff up and running and I am looking into the best way to save money, my app does api request usually between 8:30 am and 8:30 at night, with the morning, lunch and night having huge peaks. What I planned to do is set up autoscaling instance group on google compute engine, but I ran into ...
To add visibility posting an answer based on Faizan's Comments. As described in the first 2 minutes of this video , the backend service can be autoscaled in a similar way as the frontend. The requirement for this is that the backend must be ¨stateless¨ (The database cannot live in the instance managed group that confor...
1
1
235
2016-04-18T03:11:26.493
pipeline_ops
serverfault.com
518,371
ZFS ARC size vs target size
I am trying to understand the inner workings of the ZFS ARC. However, I am confused with several things: actual ( [CODE] ) vs target size ( [CODE] ). I understand that actual size is allocated and stores cached contents. But, what is the target size then? What is the difference between these two? mru_size ( [CODE] ) + ...
Well, I am some years late, but I hope that this can help others. [CODE] is the target ARC size. It is 50% of total RAM by default, but it can shrink on demand if the system is under memory pressure [CODE] is the current ARC size. Given enough time, it will tend to [CODE] [CODE] is the size of cached user data. It does...
6
1
3,016
2013-06-25T13:59:16.027
infrastructure
serverfault.com
775,008
can i use same server for Active Directory and Windows Deployment Service?
I've a problem, can i use same server machine for both Active Directory and Windows Deployment Service. I don't know the steps to do it both can someone please tell me how to do it.
Sure. It's not really reccomended to run anything else on the DC apart from the Domain Controller and DNS/DHCP Roles, but it's certainly doable. Install the AD Doman Controller role first, then Windows Deployment services. Note: As you've tagged this with both Server 2008 and 2012 it's worth mentioning that Windows Dep...
-1
3
1,319
2016-05-05T12:15:30.800
pipeline_ops
serverfault.com
234,792
High Email/Network Traffic on Server - SBS 2008
We have a Small Business Server 2008 box that is using up way too much internet traffic according to some very simple reports on our SonicWall TZ-210 router. The router shows that we have used 3 gigabytes of SMTP traffic in a 24 hour period but I believe this number far exceeds our actual usage. We are using Exchange S...
SMTP logs on Exchange are a good way to start. You can spend some quick time going through those looking to see if your outbound messages are legit, or if you have some zombies on the network blasting out. http://technet.microsoft.com/en-us/library/bb124531(EXCHG.80).aspx Also the message tracking tool in the Exchange ...
0
3
769
2011-02-12T17:49:54.117
infrastructure
serverfault.com
906,126
Strongswan can not connect "no shared key found for"
I try to establish VPN to a remote server. However I get strange error - " no shared key found for " and I can not find any usable information for it. strongswan configutation is as following: [CODE] ipsec.conf [CODE] ipsec.secrets [CODE] When I try to connect, I get: [CODE] I tried all kind of things in [CODE] , inclu...
in my case, the ipsec.secret was not formatted right, the operator ":" was without space was: [CODE] fix: [CODE]
6
8
19,519
2018-04-05T09:45:46.557
infrastructure
serverfault.com
58,396
Tunnel an ssh connection through an intermediate machine in a single command
Is there a way, in a single command, to establish a ssh connection from my computer A, through computer B, to computer C, such that I have access to the shell on computer C? A wrinkle (which seems to rule out simply forwarding the ssh connection using the -L option) is that I have the password to the account on compute...
I understood that you want just to log in to the computer C, not really tunnel anything from A to C. So, this should do the trick: [CODE] You might have to enter passwords twice, first for computer B and then for computer C, but this can be avoided by using ssh's key-pair authentication.
11
8
6,749
2009-08-25T13:13:45.410
infrastructure
serverfault.com
233,244
select all tables from dba_table except list
I'm missing something in my query. I want to select all tables from dba_tables except a list of tables. For example, show all except HR.DEPT, SCHEMA.TAB dba_tables: [CODE] Result after query: [CODE] Query I tried: [CODE]
[CODE]
0
4
321
2019-03-27T11:45:42.343
warehouse_errors
dba.stackexchange.com