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
873,582
How to append PBS job output to log files instead of overwriting it?
I'm using Torque and I want my PBS log+error output to be appended to previous log/error file instead of overwriting it.
You need to do this as a separate step in the job script. [CODE]
0
0
1,112
2017-09-14T08:22:46.490
infrastructure
serverfault.com
432,672
Shell script to notify when CPU usage goes to 100%
sar -u 1 | awk '{print $9}' so this will give me "CPU Idle" value every second. I'd like to get email in this case the value goes to "0" 10 times in a row? What would be the appropriate way to do it? I found a preliminary solution [CODE] but in last line where I print "sending email" I can't put call to mutt, like this...
okay correct command is this [CODE]
4
1
21,410
2012-09-27T18:41:44.407
infrastructure
serverfault.com
68,565
getting error while scrapping Amazon using Selenium and bs4
I'm working on a class project using BeautifulSoup and webdriver to scrap Disposable Diapers on amazon for the name of the item, price, reviews, rating. My goal is to have something like this where I will split this info in different column: [CODE] Unfortunately, I get this message after the 50 data appears: message: [...
Most likely the element you are trying to find (I suppose it is a link or a button with class [CODE] ) is not on the page. When the error appears, you should look at your chrome window and see what it is showing you. Check if the element is on the page. It could be that amazon.com just showed a captcha and therefore al...
2
2
201
2020-02-23T17:45:17.617
data_quality
datascience.stackexchange.com
350,781
Setting Local Policy not working?
What could I be doing wrong here? Added Everyone to local security settings (testing purposes only) Forced the policy to update with [CODE] ran [CODE] The permission I added is not showing under [CODE] ? Why? In case it is relevant I'm following the instructions from here (and yes I restarted sql server)
The "State" column of the whoami.exe utility has two values - either Enabled or Disabled. However, this does not mean that the user does or does not have access to this privilege. If the privilege is listed at all, then that user has it. What enabled and disabled mean in this context is something along the lines of "is...
2
3
1,136
2012-01-17T20:14:24.350
database_errors
serverfault.com
246,935
Size of record pointer in InnoDB?
I am trying to put on a scale redundant attributes and performance gain. Although storing redundant information causes many anomalies, I am solely focusing on the size of a redundant attribute vs. storing a pointer (or reference) to another tuple in different table. So what is the size of pointer to a tuple in InnoDB M...
MyISAM defaults to 6 bytes for a data pointer in an index. And defaults to 5 bytes for index pointers. The "6" you are referring to is a byte offset from the .MYI file into the .MYD file. That is not necessarily relevant to the rest of your question. InnoDB is much more complex. It does not use pointers, only columns. ...
0
1
327
2019-09-04T09:15:42.477
database_errors
dba.stackexchange.com
110,223
How a .NET dev team should be designing and delivering greenfield projects?
Some of the hottest topics in the software world atm are: Domain-Driven Design SOLID principles Agile methodologies ORM Now assuming that you are not currently using all of these in your team, if you were to go and ask your team (individually, not as a group) what they knew about the topics they were not applying - how...
You want to know if there's a cookie-cutter template for technologies and processes to use for a new software project? Well, there's not. Determining the appropriate process depends on the organization, team, scheduling, budgeting, familiarity with the domain, and so forth. The techniques and tools to support the proce...
3
6
577
2011-09-23T11:39:41.730
api_errors
softwareengineering.stackexchange.com
228,272
Increase memory to memcached
I need to increase the memory size for memcached. I have done this before, but I cannot remember all the steps that I took. If I remember correctly, I downloaded /etc/sysconfig/memcached and changed [CODE] to [CODE] . However I am not sure if that is how it is supposed to be done. Anyone that could guide me into how I ...
With the memcached rpms, yes, editing the CACHESIZE in /etc/sysconfig/memcached is the correct way to do it. You'll need to restart memcached if it's already running. To check that it's changed, do a "ps aux | grep memcached" and look at the memcached arguments for the -m flag. If it matches what you put in the /etc/sy...
3
3
2,249
2011-01-28T19:15:55.737
infrastructure
serverfault.com
75,295
Is data warehouse monitoring same as database monitoring?
I have a requirement, where data warehouse population is to be monitored. I am in confusion, and needed a clear picture. Is data warehouse different than database? eg. For monitoring database we would monitor its availability, tablespace, cache, connections and other advanced metrics. On what parameters can we monitor ...
"On what parameters can we monitor data warehouse?". Exactly the same ones that you use for monitoring an OLTP database. You might want to pay more attention to things like slow query log (MySQL) for a DW, but that should be on the radar for an OLTP system also. The common "gotchas" may change, but databases all sit on...
2
1
322
2014-08-29T08:40:09.023
pipeline_ops
dba.stackexchange.com
198,358
Client side authentication through signatures instead of passwords
I want to save some user-generated data with some signature of the user that generated it (let's say that the user has to fill some forms with some data and I want him to sign the written data). The server side is some random server language (that has big enough libraries to cover everything I'll need to do), the clien...
The DB backend is "insecure". It is possible to tamper the data (many persons have access to the machine, perhaps it's "in the cloud") [...] What I want to be able to do is make very difficult for third parties that have read/write access to the DB machine [...] Your goal shouldn't be to make it very difficult for thir...
6
4
1,726
2013-05-16T10:40:02.743
api_errors
softwareengineering.stackexchange.com
822,453
Proxy server accepting TLS 1.0 and calling TLS 1.2 downstream
A client software version uses TLS 1.0 protocol to connect to a web service (the current version can't be configured to use a more recent protocol version just yet), and the server policy was recently upgraded to allow only TLS 1.2. Is it possible to create a proxy server, which would accept TLS 1.0 connections, and wo...
Yes this can be done. If the protocol is HTTPS you could use a variety of software like Fiddler, mitmproxy or even squid which have this feature for TLS interception and analysis. Also various firewalls have such feature for this purpose. You could also use socat to work as TLS server on one side and TLS client. But in...
3
1
15,753
2016-12-23T13:08:57.240
infrastructure
serverfault.com
13,366
How do I add a time dimension to this forecasting database without having to duplicate every data point @ each reforecast?
I have a database designed to facilitate revenue forecasting. Revenue forecasting consists of tracking Orders which are recognized into Revenue at multiple points in time (each, a revenueDate). There are two tables (keys in italic): Order: id , orderDate Revenue: ForeignKey(Order.id) , revenueDate , amount At any point...
Snapshotting vs. Running Sums Any approach to point-in-time reporting is effectively equivalent to snapshotting or calculating a running sum. Your options are variations on: Calculate a running sum from the beginning of time, or some periodicaly checkpointed position. This requires you to record changes rather than tot...
5
2
481
2012-02-17T22:07:30.150
data_quality
dba.stackexchange.com
189,431
How Can I Configure nginx to Use Pretty URLs for Static Sites?
I've got several static sites (mostly generated by Sphinx), that I'm trying to host on my VPS. I've installed and configured nginx according to the guides, and I can successfully display my sites, but the issue is the URLs are absolute, and it looks ugly. For instance, a typical site folder may look like: /public_html/...
You should use try_files for this. The idea is that you will create your URLs without .html and Nginx will silently add it. Example config below. [CODE]
8
8
6,626
2010-10-10T03:38:19.333
infrastructure
serverfault.com
301,368
CREATE DATABASE permission denied in database 'master'. Cannot attach
In a T-SQL script, using a connection string like this: [CODE] ... I ... create a SQL Server LocalDB database create a login and add a user to the database I created I don't add any database roles to the user. I create a table and grant SELECT, INSERT, UPDATE, DELETE, REFERENCE rights to the user The script looks simil...
If I read your question correctly, when you are doing this in SSMS you are creating the database in the context of your account (using integrated security), then after creating the database you are connecting with the limited credentials to query the database. This works fine because your account has permission to crea...
1
3
739
2021-10-19T23:25:49.173
database_errors
dba.stackexchange.com
1,043,448
Understanding attempts to access my postgress db
I have a site that runs as a group of docker containers and one of them is a postgres database, and I have to admit I don't have much experience with these things. When I look at the logs I see what looks like multiple attempts at guessing my password: [CODE] And more lines like that. I am trying to understand what is ...
The problem was that docker was creating iptables rules that were bypassing the firewall's (ufw) rules. I fixed it by following this guide: https://devopsheaven.com/postgresql/docker/databases/security/ufw/iptables/2018/05/03/secure-postgres-docker-access.html More related information here: https://github.com/moby/moby...
0
0
3,705
2020-11-21T20:48:01.493
pipeline_ops
serverfault.com
62,897
How to let users update their Wordpress installs, when you use cpanel to create accounts for users, and apache runs as 'nobody'
I'm using cpanel, that runs on red hat linux, which by default runs Apache as a user called [CODE] . Ubuntu does something similar, but call the user [CODE] . By default, when you create a new account for the user, all the files belong to the new user, so the owner might be [CODE] . The thing is, all the php is execute...
Wordpress is designed for this. When a user goes to the update screen it asks for ftp login credentials so it can just ftp in as joeblogs and manage the files that way.
-2
1
296
2009-09-06T22:36:13.290
infrastructure
serverfault.com
86,975
mongoexport not exporting all possible data
I have a collection with documents similar to the following: [CODE] id field can contain either positive or negative integers. This collection contains close to 100 million documents and I have a python script which I use in order to process the data from the collection. I'm trying to export all the data, but into 8 di...
I can only speculate without having access to the data, but I suspect that you have non-numeric data in the [CODE] field. Try using the [CODE] operator to verify that some of the fields have not been passed in as strings or similar and that all the fields are homogeneous in terms of type.
5
1
2,449
2014-12-24T20:29:13.757
database_errors
dba.stackexchange.com
998,562
When does "zpool scrub" delete files automatically?
Background is a general discussion about ZFS and the claim that in case of permanent errors to files, it automatically deletes files unless a correct copy is available. That sounded pretty wrong to me and has since been reduced to that this happens only when [CODE] is executed. I've never read about that and the only c...
Scrub never deletes anything. If it finds errors that are repairable, it repairs then. If they are not repairable, it reports them. It never, ever deletes anything under any circumstances.
4
5
635
2020-01-11T14:24:34.760
data_quality
serverfault.com
562,521
Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?
I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/ Here is my virtual hosts file: [CODE] As I understand it, the [CODE] file should only be executed o...
It would be loaded once per process. You likely are using a multiprocess configuration and subsequent requests are being handled by different process and/or processes are being recycled. Print out the process ID in the debug. Also go read: http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading http://blog.dscpl.co...
3
5
1,510
2013-12-19T16:00:36.717
pipeline_ops
serverfault.com
520,120
How to configure apache to behave as a remote browser?
For my IT security class summer project, we have to work on different ways to circumvent security measures setup on a school/company network and to explain how these hacks can be detected and avoided. One of the topics is (please excuse my poor translation): Albert is connected with his laptop to the school network. He...
It's called a reverse proxy, and requires [CODE] loaded. The config directives are: [CODE] So for your example (plus a little extra): [CODE] Opening [CODE] will show the content from [CODE] and [CODE] will open [CODE] . Serve something completely innocuous (and believable) on [CODE] . If someone tries to "check the val...
2
1
869
2013-07-02T07:58:53.120
pipeline_ops
serverfault.com
1,024,484
Blocking new devices on a network
My university has implemented a strict new network policy, which we are generally told is "restricted unless permitted" whereas previously it was "permitted unless restricted". For example, when we plug a new laptop into an ethernet port, it gets an IP address but can not ping out (either to named domains like www.goog...
The ACL will most likely be held in a RADIUS server (most likely backed by a LDAP instance). The actual control will probably be done at the Ethernet Switch. The Ethernet Switch will change the vlan that the port is mapped to which will then only allow access to the captive portal which will direct you to IT support to...
2
0
55
2020-07-08T10:23:15.323
infrastructure
serverfault.com
189,415
How to verify (CHECKSUM or MD5) dataset you received over a network?
I will remotely query mysql database and I want to check that the received dataset matches the table in the host computer. How do you do that? I am fairly new to sql database. I know of Checksum and md5, but how do you use them to verify the received dataset is not corrupted on the local machine.
Why? If there is a hardware error in the machine, all sorts of things will be dying, not just your one query. If you are concerned about the network, see all the checksums, etc, involved in TCP/IP and Ethernet. You don't need a layer of checks on top of that. If you are asking about consistency between Master and Slave...
2
2
521
2017-10-26T15:53:34.833
database_errors
dba.stackexchange.com
199,577
Activating Sharepoint Server Publishing Infrastructure returns "Column Limit Exceeded"
I am getting the following error when attempting to activate the Sharepoint Server Publishing Infrastructure. There are only about 140 columns defined in the entire site collection. I had previously activated and subsequently deactivated this feature. I don't know whether this might be causing the problem. But I really...
Haydar, There are limits on the number of columns by data type, which is apparently what you're running up against. I found a table listing the per data type limitations on SharePoint lists as well as the size of each column type here (scroll down to the Column Limits section). Aside from the individual data type limit...
0
1
1,633
2010-11-08T20:54:33.287
infrastructure
serverfault.com
555,972
Cannot create Oracle ODBC source on 64bit Windows 7
I have installed the 64-bit version of the Oracle ODBC driver (instantclient-odbc-windows.x64-12.1.0.1.0 from http://www.oracle.com/technetwork/topics/winx64soft-089540.html ) on my 64 bit Windows 7 system. The driver shows up in the ODBC administration dialog. However, when I try to define an ODBC source I obtain the ...
Download and install the Microsoft Visual C++ 2010 Redistributable Package: http://www.microsoft.com/en-us/download/confirmation.aspx?id=14632 The problem is not with the SQLORA dlls, but the modules that those ddls refer to (missing from a default Windows installation).
3
4
33,334
2013-11-19T11:51:13.587
database_errors
serverfault.com
991,329
Centos 6.10 - Mount Backup Disk with Single partition
My disk failed and required replacement. I backed up my data on anther disk and the hosting company removed it prior to replacing corrupted disk. Now I have a fresh install (Centos 6.10) and would like to mount the backup disk "sdb". I'm not able to do so as the disk is entirely a single partition. The command doesnt w...
The message from dmsg is most helpful. I found several posts about this error, the most promising being on unix.se . Quotes from there: The error "EXT4-fs : couldn't mount RDWR because of unsupported optional features (400)" is due to different versions between the partition formatter (mkfs.ext4) and the mounter. You h...
2
3
1,540
2019-11-11T08:44:10.697
data_quality
serverfault.com
50,576
How do you stay productive when dealing with extremely badly written code?
I don't have much experience in working in software industry, being self-taught and having participated in open source before deciding to take a job. Now that I work for money, I also have to deal with some unpleasant stuff, which is normal of course. Recently I was assigned to add logging to a large SharePoint project...
I'm sorry to tell you, but not all jobs are full of sunshine and glamor. The majority of development tasks involve drudge work like this. Sad, but true. You are tasked with an important job, even if it's boring to the point of watching paint dry. It's important for two reasons: 1. It add much needed logging to a large ...
63
32
4,324
2011-02-22T16:54:06.523
api_errors
softwareengineering.stackexchange.com
1,102,057
Redis on AWS task
I have an API that have some heavy processing endpoints. To avoid problems, I created a queue system using redis. Now I put this API into a docker, and I'm using ECS to deploy service that creates a task that loads the docker with the API. However, when introducing the docker I read I have to create a new docker with R...
Instance with API connects to Redis instance through celery, which is the service that has workers to do background operations. Redis is just a DB and does not execute anything. Everything is done in the instance where celery was. However, Redis save everythng in RAM, so every call, and every result, must be cleared af...
0
0
363
2022-05-30T11:15:46.323
pipeline_ops
serverfault.com
806,587
Creating VTI tunnel interfaces on Ubuntu 14.04 LTS kernel 3.13.0-24-generic throws an error "Keys are not allowed with ipip and sit tunnels"
While creating a vti tunnel/interface on a ubuntu-14.04 LTS system with following config, I am seeing the error [CODE] . I have done a [CODE] and updated..but [CODE] What am I missing? What should I need to do further?
ikey and okey are options referring to specific GRE (Generic Routing Encapsulation) tunnel feature that marks traffic flows between two endpoints. This is not an encryption, just a label that travels along the tunnel within GRE encapsulated packet. VTI, in contrary, is not an encapsulation, it is a local feature on a s...
0
1
2,993
2016-10-02T07:38:44.593
infrastructure
serverfault.com
284,141
CentOS should I use 32bit or 64bit?
Sorry if this is a noob question. I have just come to the choice of picking 64 or 32 bit CentOs. My processor is 64bit and I have heard 64bit can be faster and has more expansion capaability. The only issue I am worried about is software capability. I need to have FFMPEG, clam av, and x264 libraries installed. Would a ...
Unless you have a very small amount of memory or intend to run your memory at >95% all the time then you'll be fine with 64-bit and it'll scale better too :)
3
7
276
2011-06-25T17:57:10.400
infrastructure
serverfault.com
776,411
Katello subscription-manager: wrong Yum repo URL?
I'm using RH Satellite 6, and have built a katello capsule. I've synced a very specific environment/content view over to the capsule. I'm trying to build a node from the capsule to test things out, and it seems to have pulled down something wrong at the start and is refusing to fix itself! Useful output: [CODE] The one...
The problem seemed to be under Content Hosts - in Satellite, under Hosts -> Content Hosts, the node in question had an environment that did not match that assigned to it from the "Edit Host" window (where one can assign puppet classes and the like). I think what happened is that there was an error during host creation ...
1
1
1,484
2016-05-12T15:34:48.180
infrastructure
serverfault.com
186,156
Custom unaccent rules in heroku
We have an application running in heroku and we want to add a search feature on a field that contains greek characters and we want to make it accent agnostic. So the idea is to use postgresql's unaccent functionality. The problem is that by default greek rules are not included at heroku and we somehow need to add them ...
I contacted Heroku after trying to find a solution for the exact same issue. Here is the response: Unfortunately, there is no way to upload that unaccent.rules file to the Postgres server that hosts your database. You can enable the unaccent extension, but not supply a custom rules files. If this is a requirement for y...
2
3
561
2017-09-17T13:42:09.983
database_errors
dba.stackexchange.com
902,180
AWS Directory Service and msExchRequireAuthToSendTo ldap attribute
We are using AWS directory service in our company to manage user identities (we want to have all our core infra in the cloud with site to site VPNs between offices and AWS). We are also using office 365 with their hosted Exchange as a part of our o365 plan. Users, groups etc are being synchronized from our Amazon AD in...
You're best option would be to use an LDIF file as required by Amazon. You may not be able to find the specific LDIF anywhere, but the details of the attribute (including the attributeID - not the OID) can be found here . But instead of using that information to create your own, I would recommend using Microsoft's own ...
0
0
280
2018-03-17T13:29:29.633
infrastructure
serverfault.com
182,295
Request for the permission of type System.Web.AspNetHostingPermission failed
Full Error Message: System.Security.SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. OS: Windows Server 2008 R2. Web Server: IIS 7 with IIS 6 compatibility & metabase installed. .NET: One websit...
Solved my issue. In the application pool for ASP.NET 1.1, I changed LoadUserProfile from FALSE to TRUE. Somehow that worked, not sure why.
0
1
1,944
2010-09-17T16:47:59.603
api_errors
serverfault.com
897,526
Mobaxterm - Permission Denied (Publickey)
Am having some issues connecting to a linux instance in AWS via mobaxterm. I get the following error when trying to SSH on to the server; [CODE] Any ideas? I've tried playing around with file permissions (I know from my mac the keys have to be well locked down), but any changes dont seem to impact the error I am gettin...
It looks like your problem is in file permissions, could you check via mobaxterm that the key located in the folder that your are trying to run ssh command? Run a [CODE] from Mobaxterm console and check file [CODE] exists with owner and group of the user that is running mobaxterm, besides with permissions 600 (-rw-----...
0
0
25,890
2018-02-16T10:42:09.727
infrastructure
serverfault.com
167,701
install SQL Server 2008 R2 on Chinese Vista fails: Checks if existing performance counter registry hive is consistent
PerfMonCounterNotCorruptedCheck Checks if existing performance counter registry hive is consistent. Failed The performance counter registry hive is corrupted. To continue, you must repair the performance counter registry hive. For more information, see http://support.microsoft.com/kb/300956 . The link totally doesn't h...
try setup.exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorruptedCheck to bypass that check
1
1
1,522
2010-08-06T07:42:06.317
database_errors
serverfault.com
607,137
Restrict direct IP access to website
I want to restrict direct IP access to my website. I found several solutions involving .htaccess but none work. I've also found one solution via apache virtual hosts config which was working fine up until I installed a SSL certificate through CPanel. I have absolutely no idea what was altered in the httpd.conf file but...
And voila, the fix: [CODE] The solution was to simply replace the IP with the domain name for all virtualhost settings, except for the one which needs to redirect/restrict direct IP access.
19
15
90,405
2014-06-22T18:35:48.107
api_errors
serverfault.com
582,354
Bandwidth Throttling using tc qdiscs
I am trying to limit the bandwidth between a simple iperf server and client, using a third, passive machine acting as a bridge. With no interference, iperf returns a bandwidth of ~90 Mbits/sec. My goal is to create a root qdisc that sends all unclassified traffic (everything) to a child HTB class, where my bandwidth is...
HTB bandwidth control in tc only shapes outgoing traffic, so in order to limit the bandwidth between a server and client TCP connect, shaping must be applied to both bridge interfaces. (Thanks to 0x534B41)
5
2
1,116
2014-03-15T20:54:19.900
infrastructure
serverfault.com
65,667
Recommended solutions for integrating iOS with .NET, at the service tier
I'm developing an application, in iOS, that is required to connect to my Windows Server to poll for new data, update, etc. As a seasoned C# developer, my first instinct is to start a new project in Visual Studio and select Web Service , letting my bias (and comfort level) dictate the service layer of my application. Ho...
iOS applications run on constrained devices, which is the first and foremost thing to keep in mind. Those constrained devices are actually pretty capable, but do consider the following: XML is non-trivial to parse. If the requests are small and the data payload is not structured, there is no inherent benefit to using S...
4
3
6,617
2011-04-06T16:40:13.577
api_errors
softwareengineering.stackexchange.com
705,792
Azure Linux VM Backup Failing
I am trying to setup backups for my linux VMs in Azure. I am doing it through the Recovery Services facility. All my Linux VMs are discovered and successfully registered. But when the backup jobs run they fail for all my VMs with the following error: Backup failed with an internal error. Please retry the operation in a...
I had to update the Azure Linux Agent as described here: https://acom-swtest-2.azurewebsites.net/en-us/documentation/articles/virtual-machines-linux-update-agent/?rnd=1 For Ubuntu: [CODE] Check the new version with [CODE] Also I had to rediscover and reregister the VMs before it started working.
-1
0
2,155
2015-07-15T01:36:40.737
database_errors
serverfault.com
191,650
Confusing error message from Service Broker / Activation procedure
I am facing a really confusing problem with our SQL Server, and I hope somebody can give me hint how to debug this issue. Grab a cup of coffee or something, this is going to get slightly convoluted. And you may think along the way, "Well, you have been asking for this! You've got no one to blame but yourself!". And you...
Just in case anyone ever runs into this kind of problem, I think I have figured out the problem and found a solution. The root cause apparently was an embarrassing misunderstanding of T-SQL's type system on my part. While not the most elegant approach to problem solving, using grep to search for instances of the string...
0
1
882
2017-11-24T10:38:23.127
database_errors
dba.stackexchange.com
336,976
Downloading large files fails, Squid + c-icap + SquidClamAV
I am building a new proxy server with Squid & SquidClamAV. I am facing problems with downloading large files. I have set a maxsize of 52428800 bytes in squidclamav.conf - which should prevent the scanning of files bigger than 50MB. Downloading anything up to 2GB through the proxy works fine, but files bigger than that ...
The proxy server was rebuilt with 64bit Centos 6. The same configuration was used, but the problem has gone away.
0
0
5,760
2011-12-02T10:30:29.710
infrastructure
serverfault.com
578,140
SPF/DKIM Configuration for usage with critsend
I am currently facing the following issue: I have configured a domain of mine to be used with the Critsend mailing service. Their recommended configuration for both SPF and DKIM was implemented on our system and still when we send an email with their system it still shows that it was sent by critsend.com rather than [M...
The problem was indeed with the SPF/DKIM key configuration of for the domains. As @mxx said just precisely follow their documentation found online and you will be fine. PS Having a SPF-SPF and a TXT-SPF is no problem at all.
1
0
585
2014-02-25T12:20:02.627
infrastructure
serverfault.com
360,042
Abstract Factory configuration differences
is a simple abstract factory. I know abstract factory is for selecting a product family. But my question is, can we still use this pattern if [CODE] needs to [CODE] but [CODE] don't? And if we can't use, how do we solve this problem?
can we still use this pattern if ConcreteFactory1 needs to createProductC() but ConcreteFactory2 don't? Yes. Yes you can. It's a lot simpler to understand this pattern when you're looking at some client code. [CODE] Which might let you print ProductA1 ProductB1 ProductC1 Or it might let you print ProductA2 ProductB2 Ho...
2
2
472
2017-10-31T22:14:02.027
api_errors
softwareengineering.stackexchange.com
29,890
Estimating test AUC using k-fold CV for imbalanced classification problem
I have an imbalanced classification problem. I first partitioned my data into a training set (Dataset A) and a test set (Dataset B). I then used the R package [CODE] to simultaneously undersample the majority class in Dataset A and oversample the minority class. This produced a balanced set (Dataset C) which has as man...
The test AUC is the AUC you find after predicting the held out test set (dataset B). You have split your dataet into A = training set and B = test set. You then used downsampling (which is questionable, but I won't get into this) on dataset A to get what you refer to as dataset C. You should then train your classifier ...
1
2
206
2018-04-04T08:45:24.617
data_quality
datascience.stackexchange.com
443,217
NAT, iptables and problematic ports
I am building a small office network with virtual machines. My schema is this: Computer A : gateway, ip 1.1.1.1 , iptables used for NAT [eth0=public internet dhcp, dhcp; eth1=gateway] Computer B : client, ip 1.1.1.2 , using gateway from Computer A. NAT is working, and Computer B can access the internet using the A's ga...
First line should be with sport (source port is 80). And also be careful about using -A. This append the rule to the chain (add the rule at the end). Rules in chains are evaluated from first to last, if one rule matches then the rest are not evaluated any more. So if you want to be sure use -I (insert at the beginning ...
2
1
500
2012-10-29T00:01:06.320
infrastructure
serverfault.com
316,306
Allow access to particular folder inside HOME directory to other users
I have a "downloads" folder inside "tempuser" home folder ("/home/tempuser/downloads") which I want to allow "rwx" permission for a different user say "testuser". The testuser should not have any permission to anyother files or folders inside /home/tempuser other than the "downloads" folder. How can I do it ?
to traverse a folder, one needs the execute permission. Execute will give access to "execute" (ie. traverse) the folder without having any access to read the files in it. So, imagine you have the following tree of directories in your home folder: [CODE] You can give anybody access to the "asm" folder without giving the...
5
4
18,396
2011-09-28T09:34:03.413
infrastructure
serverfault.com
196,863
Intarray is available but can't seem to be able to use the icount function
My question is below. Following the suggestion from one of the comments, I started to search for search_path and extensions. I came on to this post: https://stackoverflow.com/questions/12986368/installing-postgresql-extension-to-all-schemas . The answer by a_horse_with_no_name worked brilliantly! Thank you!! (And, than...
I found that [CODE] stuff doesn't work if you don't have schema [CODE] in your [CODE] . Vis: [CODE] This is even true of operators: [CODE]
3
1
471
2018-02-02T01:40:59.477
database_errors
dba.stackexchange.com
1,020,732
Docker settings in Ubuntu 20.04
Current setup I've installed the Docker (19.03.11) on Ubuntu (20.04) based on this article: https://docs.docker.com/engine/install/ubuntu/ What would be the goal I would like to change the data-root and tls options so I search for the config possibilities. What options I used - /lib/systemd/system/docker.service - /etc...
From what I understand, you can only get the changes you want when you edit the file [CODE] ? Is that correct? But it gets overwritten afterwards? You need to create a systemd drop-in file. Instructions can be found at: https://unix.stackexchange.com/a/468067/105418 . [CODE] That will create a custom file in [CODE] tha...
2
3
4,945
2020-06-09T18:31:19.143
pipeline_ops
serverfault.com
777,936
Control Windows permissions on Samba share from linux
I have a Debian 8 with Samba 4 as a AD domain member. The DC is Windows Server 2008. The shares are able to handle Windows permissions - I use IDMAP backend = rid, since I cannot add uidNumber and gidNumber to AD account record. I can display and set ACL permissions with [CODE] and [CODE] , but the R-W-X settings canno...
Eventually found out myself. The Windows permissions are stored in "Extended attributes". The raw data of these attributes can be displayed by [CODE] from Debian package [CODE] : [CODE] To display and manipulate these permissions, you can use [CODE] from Debian package [CODE] : [CODE] In the output of the command above...
2
1
2,316
2016-05-20T06:21:44.810
infrastructure
serverfault.com
515,748
RAID5 Bad Superblock, not booting to OS
I've been running Ubuntu 12.04 LTS for about 6 months on a computer that has 3 180gb SSDs in EXT4 RAID5 configured through the motherboard's BIOS. The OS froze and computer had to be forced down. On boot after the BIOS it just hangs at a blank screen. I booted off a live CD and was unable to mount /dev/dm-0, the RAID, ...
You should clone your disks with [CODE] and then try to recover data from the clones. Never ever try to fix original disks.
0
2
180
2013-06-14T07:31:29.863
database_errors
serverfault.com
811,818
How to mount devtmpfs with mode=777?
I'm trying to use gentoo based thin client to access fusion access huawei cloud, with the following issues: CloudClient when redirecting devices to VDI virtual PC, trying to write directly into devices placed inside /dev.(unsuccesful) How do I mount /dev with mode = 777? OS 4.4.26-gentoo with dracut initramfs. I tried ...
[CODE] cannot and must not be mounted with [CODE] permissions. If one was able to do that, then all system users are effectively root users, and there is no security in the system. You need to figure out how to fix the CloudClient software.
-1
0
932
2016-10-28T08:11:44.980
infrastructure
serverfault.com
331,829
Apache redirecting when it shouldnt
I have inherited a LAMP server with a lot of customization. I want to enable mod_status in apache to get some monitoring of apache started. Problem is, with mod_status enabled in the httpd.conf, I am not allowed to travel to the http://"serverIP"/server-status URL because apache is redirecting me to a 'landing page'. I...
Did you set up a [CODE] inside your [CODE] with the [CODE] directive set?
1
1
285
2011-11-17T04:17:08.567
pipeline_ops
serverfault.com
803,104
Identify who took new free space each day
I have a Windows Server 2012 R2. I am hosting my development database server there. Last week I truncated many tables and did a shrink database to free up some space. And I had obtained around 60GB free space. Now free space is getting decreased around 5GB every day (15GB in 3 days). I would like to know who is taking ...
You can try a tool such as http://diskreport.net to get a periodic report of your disk space usage, and then find where space has grown between two reports.
0
1
35
2016-09-14T20:04:08.170
infrastructure
serverfault.com
608,874
What is the Ideal value for Worker Processes in Nginx Config?
I have 31GB RAM 8 Core Web Server with current load of 3k per min. Currently worker_processes parameter in nginx config is 4 which as per my understanding means only 4 cores would be used. But when I see CPU performance I see that all 8 cores have equal load. Why? Moreover, making this value 8 would help in my case?
Some other programs uses cpu, like php maybe? Paste all your top output, not only your cpu, but programs too. Turn on visibility of threads too... (H key, if I remember correctly.)
2
2
4,164
2014-06-30T06:28:06.937
infrastructure
serverfault.com
217,368
Which join to use ? and how to add rank column on the result
I have two tables Table4 - Columns (ID, NAME, Money) Table5 - COlumns(ID, PLACE) Note: Table 4 has more IDs than table5 I am trying to use a join such that I get the following table Table6 - Columns(Rank,ID,Place,Name,Money) Also I want it to be such that when I get this result the ID values that are contained in Table...
With out some sample code to go on I created my own set I had to join on both ID and Name for the rank in order to prevent cross joins [CODE] Results will look something like this Rn ID Place Names Moneys 1 1 House waffles 1000.00 1 2 Kitchen Pancakes 2000.00 1 3 NULL Toast 5000.00 2 3 NULL Eggs 4000.00 3 3 NULL Bluebe...
0
1
2,091
2018-09-12T10:42:42.197
warehouse_errors
dba.stackexchange.com
37,280
Does MySQL Replication hamper the performance of my DB?
I am not exactly a 'Qualified' DBA, but yes i am in charge of my own DB which we use in our social app. I have recently implemented Master/Slave Replication on my Database for obvious reasons. What I wish to know is whether MySQL Replication kills the performance of my DB since for every user writing on my Master DB cr...
There are two major things a Master has to handle because of a Replication Setup DISK I/O The Master has to write every completed SQL transaction to the binary logs NETWORK I/O When a Slave is connected, the Master must play traffic cop. Master writes SQL statement to the most recent Binary Log Master polls for DB Conn...
8
8
12,261
2013-03-21T15:31:19.633
database_errors
dba.stackexchange.com
1,116,028
nginx forwading request to different url with load balancing
I am new to nginx, I am using it for request forwarding purpose, each incoming request is getting forwarded to another server/url below is my configuration : [CODE] Every request on https://xyz.exmaple.com:8008/app/ is getting forwarded to https://proxy1.example.com:8888/abc/efg Now I have two urls : [CODE] I want roun...
Use [CODE] to solve this issue. Example: [CODE]
0
1
95
2022-11-18T09:10:06.840
infrastructure
serverfault.com
29,410
How to set parameters to search in scikit-learn GridSearchCV
I want to use scikit-learn's GridSearchCV to optimise a BaggingClassifier that uses a support vector classifier (SVC). I want the grid search to search over parameters for both the BaggingClassifier and the SVC. I have tried this setup: [CODE] but I get this error: [CODE] Can someone show me what I have done wrong?
There is a typo in [CODE] , [CODE] should be [CODE] . To address your problem, if you run the following piece of code: [CODE] This will show you how the parameters are passed to different parts of the pipeline, the parameters of interest are: [CODE] [CODE] So you were almost there, you were just missing [CODE] in the [...
2
2
17,014
2018-03-22T10:08:10.827
data_quality
datascience.stackexchange.com
1,016,632
How to permit the chown use to a regular user, but only on its home directory?
I'm trying to allow regular user A to execute chown command to a list of user B,C,D having as object any files located into its home directory. In other words, I would try to limit the chown "root power" for some users, in term of users to change the file ownership and in term of the location of the files to be changed...
ZFS has the [CODE] property : Table 5-1 ZFS Native Property Descriptions [CODE] If the user's home directory is a dedicated ZFS filesystem, the [CODE] setting will be limited to files on that filesystem.
2
0
455
2020-05-11T13:57:51.493
infrastructure
serverfault.com
175,770
Ubuntu 10.04 and 10.04.1 differences?
Initially I installed Ubuntu 10.04 on a given machine (original 64b official release). Install from scratch. I then applied the various updates. Then, a friend with the exact same hardware, memory etc... as mine, decided she wants Ubuntu on it. So I made a CD from the official release a week ago, and noticed the versio...
The changelog for Ubuntu 10.04.01 is here: https://wiki.ubuntu.com/LucidLynx/ReleaseNotes/ChangeSummary/10.04.1 There were a variety of theme changes. There were also hardware updates, so Compiz, for example, may have been enabled in one install and not the other. Check out the changelog for specifics on what changed, ...
0
4
787
2010-08-29T02:42:19.133
infrastructure
serverfault.com
69,807
best practice? Consumer data in MySQL on Amazon EBS (Elastic block store)
This is a consumer app, so I will care about storage costs - I don't want to have 5x copies of data lying about. The app shards very well, so I can use MySQL and not have scaling issues. Amazon EBS has a nice baseline+snapshot backup capability that uses S3. This should have a light footprint (in terms of storage cost)...
There is no substitute for a cold offsite backup. Any backup that's always online and talking to live servers, especially one in the same data center, runs the risk of either being compromised by intruders or failure due to some cause that kills the original (fire, flood, etc). For these two reasons, you probably want ...
3
2
927
2009-09-30T02:25:48.930
data_quality
serverfault.com
829,776
AWS ELB - All application versions have not reached a "Processed" state. Unable to continue with deployment
I'm unable to deploy code on Elastic Beanstalk CLI for some odd reason. I'm using CodeCommit, and after a long while, it errors out and gives me the following: [CODE] Then it just ends. I'm unable to use the commands [CODE] nor [CODE] . I'm not sure what the error means by not reaching a "Processed" state... At the tim...
After some digging around, I finally figured out what went wrong. I used this post as a hint: What does ElasticBeanstalk error "Application version is unusable and cannot be used with an environment" mean? And ran the command [CODE] which told me that one of my Application Versions had a [CODE] status. I deleted all th...
0
1
1,396
2017-02-01T00:00:37.613
pipeline_ops
serverfault.com
335,057
Why is my IMAP port not showing as open ( yet it works? )
Ive recently setup Postfix and Dovecot IMAP on a Debian Lenny box. Sending to this domain works fine and reading the email via IMAP works fine too. I'm curious though as to why when running nmap, port 10143 is not shown as open. [CODE] Am I missing something with NMAP? Thanks Leo
run the following [CODE] Maybe imap isn't set to be bound to 127.0.0.1?
0
1
422
2011-11-26T21:35:26.763
infrastructure
serverfault.com
427,642
SQUID Proxy on Linux VPS - No Logs
I know how to setup SQUID proxy on a Linux VPS. My question is, is there a way to edit it so it absolutely doesn't keep any connection logs at all? I have set proxies up and am decent in Linux. I had a friend ask me if I could set this up for him, but I really am not sure how to make it so it doesn't keep any logs at a...
Set this in the squid.conf file: [CODE]
0
1
503
2012-08-12T04:16:57.113
infrastructure
serverfault.com
377,198
Trying to install driftnet
I'm trying to install driftnet. I think I've installed all the dependencies per the website but when I run make I get the error below. [CODE] What have I done wrong? Is there something similar but more current?
Why not just install the driftnet RPM? You don't say what OS you are running so this assumes RHEL5 or equivalent. Install Howto Download the latest rpmforge-release rpm from http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/ Install rpmforge-release rpm: [CODE] Install driftnet rpm package: [CODE]
2
3
1,731
2012-04-05T22:40:26.080
infrastructure
serverfault.com
540,579
Apache Alias subdomain/folder to folder above subdomain
What I want to do is to create an alias at [CODE] that points to [CODE] so that anytime someone is redirected to [CODE] where they will end up is at [CODE] . [CODE] is at the same directory level as the folder for [CODE] (.i.e not in the same folder). Another point that I think might matter, is that the folder directly...
step one: get a real web host (without the listed limitations, one that you control. You came seeking help from server admins.. we will tell you to admin your own server). Failing that... you have [CODE] which we have to assume (deductive-ish reasoning) is the DocumentRoot or what is served when users go to your site. ...
1
1
1,313
2013-09-20T19:11:18.870
infrastructure
serverfault.com
227,726
LEFT JOIN based on content of a field in matched rows
Generically, I'm attempting to take a table and join it with another table but only on rows that have a specific value in one of the fields. Specifically, I have a users table and a contact table. The contact table ties a user to a piece of contact information (such as phone, email, or a myriad others). But I only want...
By moving [CODE] from [CODE] to [CODE] , the [CODE] properties that if it doesn't match a criteria a NULL row appears behaviour occurs: [CODE]
1
0
47
2019-01-22T02:34:21.743
database_errors
dba.stackexchange.com
268,862
Overlapping an IP outside of the router?
Let's say a colo assigns me an IP range 111.222.1.0/26. 111.222.1.1 is the gateway for my usable IP range 111.222.1.2 - 111.222.1.62. I'm using pfSense firewall and have configured its external interface as 111.222.1.2/26. I would like to have couple of IPs usable outside of the router/firewall in order to connect a re...
As long as the pfSense machine isn't answering for those IPs you're find to use them on other devices on its external side. You've got the right subnet mask specified on its external interface such that it will ARP for any IP not assigned to it in that subnet if it needs to communicate with them. When you say "collisio...
1
2
828
2011-05-12T04:32:00.443
infrastructure
serverfault.com
606,249
Chromium wants to download a html page
An issue that happens much too often, but this time I can't find the way out: I have a Wordpress site using the following special permalink configuration: [CODE] . Everything seems to work but I have just one issue with Chromium: Assume the following URL: http://example.com/123/the-title-of-the-post/ When I open it in ...
Too bad. It was just a caching issue and I had to write this question to find it out. Purging the cache in Chromium helped.
0
0
63
2014-06-18T20:54:22.377
infrastructure
serverfault.com
174,627
Include NULL row on join
How can I select all rows from table_A and then join on results from other tables, but include a NULL row to show aggregate values for those other tables that don't have a table_A_id? [CODE] The recursive WITH tables are all scoped records from a large table. Each of the LEFT JOINs that i'm doing using this table just ...
Use [CODE] instead of [CODE] right after your comment in the code: Limit table_A to only records with data from transactions_with_children, but I also need to include a null row for all transactions_with_children that don't have a table_A_id [CODE] keeps all rows from tables to the right of the join and adds NULL value...
5
9
23,327
2017-05-26T02:24:39.170
data_quality
dba.stackexchange.com
172,671
Batch syntax issue. Not quoting or escaping correctly?
There's some syntax that I'm missing here. Running this batch file: [CODE] And I get this output: [CODE]
yeah you got it, official reference: microsoft FOR command Use %variable to carry out for from the command prompt. Use %%variable to carry out the for command within a batch file.
0
1
193
2010-08-20T09:25:54.200
infrastructure
serverfault.com
218,678
When duplicate date values exist in a column, change the value of the oldest
I have a query that returns records with duplicate Month and Year in a date field. I need to identify the records with duplicate Month and Year, then identify the oldest based upon the full date and change the value of a column that displays the month based upon the date column to that month - 1. Background: The query ...
I think this solves your problem. [CODE] [CODE]
0
1
1,726
2018-09-26T23:44:35.680
data_quality
dba.stackexchange.com
358,129
Machine always responds to 192.168.1.2 IP address, which is not set on the machine
UPDATE BELOW: UPDATE 2 BELOW: FINAL Solution I have a brand new HP EliteBook notebook 8560p running Windows 7 64bit. I plug it into a small Dlink di-604 router, it is currently configured with DHCP and gets ip address 192.168.1.100, ip address of the router is 192.168.1.6. I plug a second notebook in and it gets ip add...
From the comments Problem was caused by Intel AMT or vPro. You can disable this in the BIOS however it isn't straight forward. In the BIOS go to system configuration->AMT options. Once there turn on Verbosity Options, then you can turn on "Enable AMT unconfigure on next boot" Once you do that it clears all the AMT sett...
12
3
3,591
2012-02-08T19:02:29.863
infrastructure
serverfault.com
507,721
NFS mount has stopped working on ESXi
We have had around 20 hosts connected to an NFS share running from an Ubuntu server. The other day they all lost connection. We have rebooted the NFS server to rule out any services going funny. When trying to connect to the mount, this is the log from the Ubuntu side syslog, which looks fine: [CODE] And this is the lo...
Whenever I run into NFS issues with ESXi I work my way through this KB article: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003967 [CODE] is pretty great since you can isolate which [CODE] you want to use. Also, if you're running ESXi 4.x or later [CODE] (aka. netcat) ...
2
1
3,140
2013-05-14T15:49:39.620
infrastructure
serverfault.com
112,713
In-process SOA?
Can DI/IoC be used for a simplified, local SOA? I have been reading up on SOA (examples: here , here and here ) and it seems that at first a lot of the attention was at interoperability and enabeling distribution of tasks by using standard message-formats and transfer-protocols (web- services ). Later the crux has been...
SOA (particularly the view championed by Udi Dahan) certainly shares its purpose with DI: decoupling systems. However, although the purpose is the same, and some of the mechanics superficially resemble each other (e.g. programming against contracts), the level of granularity is different. The most important point in bo...
3
2
853
2011-10-06T09:54:57.070
api_errors
softwareengineering.stackexchange.com
379,891
MySQL is VERY slow on my ext4 file system
I have a normal hardware, I just installed Ubuntu 11.04 anew. But something's completely wrong. PHPunit tests are REALLY slow. I have no idea what's wrong. With ext3 all was normal. Thanks.
It looks like setting barrier=0 as a mount option will help with performance. See MySQL bug #46959 . Test in a Staging environment first! Hope this helps.
4
8
7,566
2012-04-16T14:56:13.423
database_errors
serverfault.com
228,150
Aggregated JSONB result in update query
Introduction I created a toy example to extract the problem into a smaller part. Here is the schema definition with two tables users and events, users can have multiple events: [CODE] With the actual data, the users table would be lower volume table less than ~1M records and events table quite high ~25M records. Proble...
I'm not sure if this is the solution you're looking for, but IMHO you should get the aggregated values and then build the array. WITH t AS ( SELECT user_id, jsonb_build_object('start', MIN(timestamp), 'end', MAX(timestamp), 'external_id', external_id, 'is_fetched', true) ev FROM events GROUP BY user_id, external_id ), ...
0
1
72
2019-01-26T13:42:07.487
warehouse_errors
dba.stackexchange.com
8,966
How do I unit test multi-threaded code?
Are there ways to unit test your multi-threaded code for race conditions and deadlocks? To see if they are performing the way they should be...
CHESS , a project of Microsoft Research. Quoting their site: CHESS is a tool for finding and reproducing Heisenbugs in concurrent programs. CHESS repeatedly runs a concurrent test ensuring that every run takes a different interleaving. If an interleaving results in an error, CHESS can reproduce the interleaving for imp...
34
19
21,484
2010-10-02T11:37:54.053
database_errors
softwareengineering.stackexchange.com
736,141
Svn Commit failed. HTTP status 413 'Request Entity Too Large
When I try to commit files up to 100 kb (approximately) SVN server returns me the following error: svn: Unexpected HTTP status 413 'Request Entity Too Large' on '/svn/!svn/txr/17-v/SecurePack/src/main/webapp/WEB-INF/pages/css/bootstrap.css' I'm using Apache2 server on Ubuntu 15. To avoid problems related to svn update ...
You should use [CODE] instead of [CODE] .
0
1
8,171
2015-11-13T13:35:07.553
infrastructure
serverfault.com
298,834
SQL Server always on servers reboot
I have the below set up for availability group : Always on configured in SQL Server 2017: Primary is read write and secondary is read only. Both primary and secondary are configured with asynchronous commit and manual failover The set up is only for DR purpose and for reporting. It's not configured using a cluster. We ...
There is no possible way to avoid the primary going down when you apply patches or updates to the primary. Since you have manual failover setup, when the primary goes down the database is offline and inaccessible until you either failover manually or bring the primary back online. I would suggest having two servers in ...
0
2
2,479
2021-08-31T18:19:08.963
database_errors
dba.stackexchange.com
1,125,363
Avoid duplicate nginx server definition
Is there a way to join two almost identical server definitions into one but still have different [CODE] value which depends on server name? [CODE] and [CODE] are the only differences between those two. Tried with [CODE] but no success. [CODE]
Put shared conf in one file in your nginx directory and include it: shared: [CODE] servers.conf: [CODE]
2
2
113
2023-03-05T15:49:30.433
data_quality
serverfault.com
34,201
element dragged but not dropped in selenium
I am working with selenium drag and drop function. It drags the element but can not drop the element. Both the source and destination element are in the same frame and there doesn't seem to be any issues at all. Below are the code clocks I have used. [CODE] ****** There is no error shown during the execution. Source el...
With the use of "Action" class, we can perform "drag and drop" function in selenium. First, locate the draggable element then use the following code for "drag and drop". [CODE] The above code will drag the located element and drop at the position 100,100. So you can specify the position where you want to drop.
1
2
2,509
2018-06-12T11:49:04.827
data_quality
sqa.stackexchange.com
285,766
phpmyadmin login redirect fails with custom ssl port
The server is running Ubuntu 10.10, Apache 2.2.16, PHP 5.3.3-1ubuntu9.3, phpMyAdmin 3.3.7deb5build0.10.10.1. Since this same server is also running Zimbra on port 443, I've configured apache to serve SSL on port 81. So far, I have one CMS script running on this virtual host successfully. However, when I access /phpmyad...
An old version of phpmyadmin that I have lying around has this in /phpmyadmin/config.inc.php [CODE] You could try changing the [CODE] to [CODE] (and other values appropriately) and see if that makes a difference.
2
4
4,738
2011-06-30T13:13:14.950
api_errors
serverfault.com
175,519
How to capture error message from one step in another step of an Agent job?
Is it possible to capture error message from one step in another step of a SQL Server Agent job? I have below scenario: [CODE] What I need is, if [CODE] fails, I need to capture error message from [CODE] in [CODE] and send the same in an email notification. I tried to use below token in Job step, but no success. [CODE]
I think your best bet is going to be querying the [CODE] table in the job step to get the information you're looking for. Here's an example query that will get you all runs for a given job (mashed together from these two MSSQLTips articles [ ref1 ], [ ref2 ]). Obviously, you'll want to adjust this to fit your means, bu...
3
1
4,500
2017-06-06T05:43:53.723
database_errors
dba.stackexchange.com
349,885
Move-ADObject Error Parent Object Uninstantiated
I am getting the following error when trying to move a user from one domain to another in active directory "Move-ADObject : The operation could not be performed because the object's parent is either unistantiated or deleted" The topology is like this: Domain 1, DC1 - (GC) - Move-ADObject is trigerred for testuser under...
Did you use the -targetserver parameter? [CODE]
0
2
7,040
2012-01-14T09:08:02.467
infrastructure
serverfault.com
723,593
Split large Logfile with Suffix like from logrotate
after I've seen that I forgot to add a logrotate-conf for php5-fpm.log on one Server, and now seeing that it has grown REALLY big, I'm asking myself how to split this Logfile into separate ones, with a Suffix like logrotate would produce. You know...like this mistake never happened :-P But the closest that I came up wi...
To cut the suffix length (eliminate zeroes), you can do the following: [CODE] Unfortunately there is no param you could pass to split, which would invert the suffixes, but you could use tac instead of cat, and invert the file and pass it to split command, something like: [CODE] Now all you need to do is invert split fi...
2
2
864
2015-09-20T14:50:24.097
infrastructure
serverfault.com
258,378
SQL Server Logon Auditing and Reporting the data from a DB Table
Is it possible to configure a SQL Server database to write audit information for logons (success and failure) to a database table that can be queried? The requirement is to be able to generate a monthly report that captures: Date / Time Login Name User Name Source Hostname (i.e. the device where the connection is comin...
Auditing of logons is set with options available through the SSMS studio or via T-SQL. You can log success or failure or both. The recommended destination is the Windows event log which can be queried with PowerShell or exported. This fills up your event log fast as many service accounts are connecting many times a min...
1
0
1,874
2020-01-28T19:05:47.680
database_errors
dba.stackexchange.com
236,898
Only SQL Server Enterprise Edition supports compression - how to work around that?
I have a script that needs to create a temp table and in that temp table I create an index. I noticed in some of my servers, the script would go on forever, and when checking from a different session what is currently running there was no clear message available. after cancelling the query I get this message: [CODE] th...
After checking this link about sql server version check and this one below as well: How do you find SQL Server version/edition without SSMS installed? I have just got this script to check what he have in the current server: [CODE] and used it in my create index script down below, after the create table: [CODE] and it i...
2
1
937
2019-04-28T21:22:03.700
database_errors
dba.stackexchange.com
291,727
GoDaddy + WP, can't upload anything
I'm on dedicated hosting with GoDaddy. WP installed, but can't upload anything. Getting the following error: [CODE] The upload folder is already 777. I'm guessing it is an ownership issue. What is Apache's owner/group name?
Apache's owner/group name can be a variety of things, depending on the distribution. [CODE] , [CODE] , [CODE] , even [CODE] gets a run sometimes. And get rid of the 777 on that directory -- it's a menace.
0
0
107
2011-07-19T07:40:53.740
infrastructure
serverfault.com
156,099
Perfmon Resource Utilisation for PROD SQL Server
I want to create a new Data collector set to find out my Memory utilization in my PROD SQL Server for at least 2-3 weeks. Can anyone let me know if this takes too much resource utilization which in turn reduces Performance. Below are the performance counters I am planning to create as adviced : Memory – Available M Byt...
Perfmon is pretty light weight when it comes to data collection. Collect the data in [CODE] files and set a sensible collection frequency. Jonathan has written about Essential PerfMon counters for DBA that will give you a good start. For automation part you can use [CODE] and load data into sql server or as shown here ...
0
2
42
2016-11-23T02:46:30.527
database_errors
dba.stackexchange.com
228,081
Interaction .asp with .swf flash - good on IIS6, bad on IIS7
I can't make my app work after migration from IIS6 to IIS7. Problem is described below. My app : in my app I use 'flash.swf'. This .swf appeals to .asp, which contains only: [CODE] .swf must get it and show "test_is_ok". And it is really ok on IIS6 2003, but on IIS7 2008R2 .swf shows me "undefined". Situation : Separat...
Four days to solve this problem is too much. I decided not to go up the hill, but around it. Quickly turned to remake part of a project that responsible for connection with flash on ASP.NET, at the same time I reduced the code. By the way, I could not run this simple application on IIS7, but on IIS6 - with no problems....
1
0
657
2011-01-28T12:25:22.150
infrastructure
serverfault.com
399,947
How to move linux executables to a ramdisk?
i've made a ramdisk this way: [CODE] The reason for this is because i run a lot of node.js scripts and their execution time is very small, but i suspect that the time overhead is because it reloads the node.js executable from disk and destroys it on each subsecuent run. So i think this might be the solution to gain a b...
If the scripts are being read frequently, they will reside in the kernel's read cache, and thus are already being read from memory.
1
5
829
2012-06-18T22:09:35.503
infrastructure
serverfault.com
357,687
KVM VMs and virtual network, how to assign external IP addresses?
So, my question is: there is a remote server on Red-Hat with an external IP-address, eth0: inet addr: 87.112.140.53 Bcast: 87.112.140.255 Mask: 255.255.252.0, and is a virtual interface, which raises the kvm - virbr0: inet addr: 192.168.122.1 Bcast: 192.168.122.255 And I made two virtual machines that with that virbr0 ...
192.168.122.x are the default NAT networks set up by libvirt. If you want the VMs to be in the same network as the host, you need to set up a bridged network instead. take a look here: http://www.linux-kvm.com/content/using-bridged-networking-virt-manager
1
3
2,939
2012-02-07T16:34:05.653
infrastructure
serverfault.com
44,987
SQL Import/Export defaults to byte stream on export
So, I've done some research and I can't seem to figure this out. I'm not sure if it's some setting that I'm missing or what. For the basic info, running SQL2012, 64 bit, all that good stuff. I noticed that, for some reason, when I export from a table into a flat file using a query, the data type is defaulting to bytest...
When you retrieve or load data, SSIS tries to automatically convert it to the correct types. If SSIS can’t implicitly convert the data—and transforming the data within the package doesn't work—you might need to modify the XML mapping files (C:\Program Files\Microsoft SQL Server\110\DTS\MappingFiles -- folder), stage th...
1
2
1,296
2013-06-20T18:21:25.617
warehouse_errors
dba.stackexchange.com
36,857
Generating SSHFP record from OpenSSH known_hosts file entry
I have an entry from an OpenSSH [CODE] file; I'd like to generate an SSHFP resource record for this. I can use [CODE] to generate the fingerprint with no difficulty: [CODE] But it doesn't seem to like it for a DNS fingerprint record: [CODE] So how do I do this? Note: If you came here via asking a search engine how to g...
[CODE] doesn't behave the same way as [CODE] . You'll note from the man page that the syntax is: [CODE] So the file should be an [CODE] rather than a [CODE] . If you don't specify then it will default to the server's local keys of [CODE] and [CODE] . You can either generate the record from each server that you wish to ...
1
2
2,361
2009-07-07T08:17:56.750
infrastructure
serverfault.com
982,111
Cannot pppoe if not connected to the bridge of provider's mikrotik
my italian provider open fiber just installed in my rack a new optical fiber GPON connectivity. They passed into my office's walls an optical cable that ends into a zte zxhn f601 converter sc to rj45. Then they connected the zte to the wan interface of a basic mikrotik router board hEx lite. From this point they gived ...
The device which you want to remove pppoe setup is on same device. ISP might be using pppoe along with Mac address of pppoe machine to connect. Please ask your ISP to release Mac after removing the device
0
1
444
2019-09-05T20:41:32.953
api_errors
serverfault.com
920,235
Graphite does not show all the data points
My program is sending data item every second but when I refresh my graphite graph, I only see few of them. What am I missing here?
Start with checking /opt/graphite/conf/storage-schemas.conf to see what is default data precision. From there you can either modify default or add your own regex to match your meta data to store at higher precision More information: http://graphite.readthedocs.io/en/latest/config-carbon.html#storage-schemas-conf
-1
0
963
2018-07-10T07:32:28.220
infrastructure
serverfault.com
234,467
.htaccess https redirect problem
I've got a directive set up in my htaccess to send all non-https traffic to https [CODE] I now need to add two exceptions to stop them being redirected to https - one for mydomain.com/register/ and one for mydomain.com/services/test/ Could anyone help me out? Thanks.
Ok, someone helped me to get it working using: [CODE] The Zend Framework rewrite rule was causing a problem, but it's working ok now.
1
1
2,240
2011-02-11T16:08:50.977
infrastructure
serverfault.com
148,639
Monitoring SQL Server, What key KPIs?
I actually built some "Custom" Monitoring tool to track information from the DMV Tables and store them in some kind of DataWarehouse I'm taking snapshots each 5minutes. the data I'm retrieving is: Database: File Latency (ldf and mdf) File Sizes and use Transactions Log Growths and Flushes Database CPU used Database Buf...
If you don't know then you're not ready to write a tool of this nature. To echo the comments of others this is why people buy a tool to do it better than we can, and the prices are super reasonable for very small shops of a few servers. The only people writing decent tools for themselves are highly skilled professional...
2
3
1,322
2016-09-02T08:53:49.770
pipeline_ops
dba.stackexchange.com
1,059,438
Remote desktop only working when console is attached in vmware
New install of windows10 on vmware esxi (6.5). Remote desktop enabled and working. When idle for some hours remote-desktop can't connect to the windows machine. However, when opening a console to the windows machine inside the web-ui for vmware, remote-desktop starts working again. It seems like a windows/remote-deskto...
did you check windows 10 power plan ? It's sound like window goes hibernate.
0
2
550
2021-04-05T19:55:18.510
infrastructure
serverfault.com
74,707
how to sync local mysql database and live server database?
My plan is to store data in my local MySQL database and after a time interval it will update my live MySQL database remotely. Is it possible? I'm planing a inventory management script in PHP MySQL. The real problem is in our country net connection drops suddenly. So I want to first write to the local MySQL database and...
Hello you can sync your local database data with your live mysql server. I had done it making a local sync file that will present all the tables of the local database that I wanted to update to live database and then calling a call back function in footer file that function calls the function to sync local data to live...
2
2
41,163
2014-08-22T20:30:36.523
database_errors
dba.stackexchange.com