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
996,536
Remote network monitoring when all comms fail
We had a circuit trip last night (Sunday evening 22:00) which killed all external COMMs ... so the alerting on our servers, inside the building, could not communicate out. Is there a solution to this? perhaps a SAAS which monitors/PINGs our servers and then alerts if there is a COMMs failure (in addition to alerting fo...
Your challenge here is that your monitoring solution (ServersAlive) is dependent upon the infrastructure that it's monitoring. You can approach this a number of ways, one of which you've already suggested. Set up a ServersAlive check at each site to check a component at each of the other sites (website, ping, etc). The...
0
1
50
2019-12-23T13:28:21.070
pipeline_ops
serverfault.com
765,352
Phone rings, but no call, and no log entries in Asterisk
We have one phone (123) that rings from time to time, displaying what seems like an internal number (6001), but it's not, because we don't use that number and nothing in that range. When you pick up the phone, you hear a dial tone. The server runs Asterisk 1.4. Nothing is logged in the Master.log. Record call data for ...
1. Well.. if there are failed auth attempts from that number, but you're getting calls from it "from time to time", there's a chance that sometimes, the auth attempt is successful. Try catching the ip address that registers with it by periodically checking [CODE] for that number. EDIT (probably a better idea): When the...
5
3
1,829
2016-03-22T15:46:24.933
infrastructure
serverfault.com
15,705
Comparing Non-deterministic Binary Classifiers
I have two classifiers which I am implementing, and they are both non-deterministic in the sense that they can each give different results (FPR and TPR) when you run them multiple times. I would like to compare these two algorithms to evaluate their performance. How do I go about this? Usually what people do most times...
A good strategy is to do n times k-fold cross validation , which should give a pretty good estimation of the average performance of both algorithms. What this means is you perform your k -fold cross validation n times, with different random folds each time, and average the results. People commonly use k = n = 10, but t...
2
0
339
2016-12-12T18:44:09.567
data_quality
datascience.stackexchange.com
1,147,813
My Cloudfront distribution is showing access denied despite enabling all public access to the bucket objects
I am using the following CF policy in my S3 bucket: [CODE] Using Origin access control. Error: [CODE]
Easy stuff first. Make sure the object actually exists where you are requesting it from. This seems obvious, but if you define a "Path pattern" on the CF Behavior, make sure the object is in that same [case sensitive] path. Double check that the distribution ARN in the policy matches the distribution you are trying to ...
0
0
420
2023-11-14T06:44:15.863
infrastructure
serverfault.com
195,261
Which practice is the best for database connection? (PHP, etc)
Leave a open database connection throughout the execution of the aplication, or for each time a operation will be executed a new connection will be created? Open throughout the execution: Open aplication -> Open connection; Operations -> use the opened connection -> commit; Close aplication -> close connection; For eac...
The best practice for database connections is the same regardless of the language used. You have a pool of open connections at the start of your application. You take a connection from the pool as late as possible. Return it to the pool as soon as possible. Never hold a connection out of the pool unless it is being use...
1
7
3,085
2013-04-17T14:45:09.567
api_errors
softwareengineering.stackexchange.com
50,087
How does one query a SQL Server Linked Server when SQL Server Authentication is specified?
I have established a linked server and am attempting to query a database to which I have a SQL Server username and password, however I can't find the syntax for specifying the userid/pw in the query and get the following error: Msg 18452, Level 14, State 1, Line 1 Login failed. The login is from an untrusted domain and...
Open the properties of your linked server. Select Security, and click the "be made using this security context" radio button. Put your SQL Server login in this section. Clear out any logins listed in the box above "Local server login to remote server login mappings", and try again.
4
4
3,906
2013-09-17T20:45:26.497
api_errors
dba.stackexchange.com
11,235
An inconsistency was detected
Am running asp.net application.Am searching records.if i click the view button i got this error, an inconsistency was detected during an internal operation in database(database name) on page(some page).please contact technical support.reference number 6. I Googled and i got the result as to run DBCC CHECKDB. I run the ...
This inconsistency error can be resolved by running the following command: [CODE]
3
3
4,918
2011-03-16T04:48:24.323
database_errors
dba.stackexchange.com
778,809
User logon PowerShell script not running under Windows 7 or 10
I'm testing out upgrading to Windows 10 on our domain, which is currently based on a Windows Server 2012 DC and all Windows 7 workstations. I was never able to make it work on Windows 7 so I gave up since I didn't really need it, but with Windows 10, I do need it. I've spent hours and days trying to figure it out, but ...
Are the user accounts in the Windows 10 OU? If not, then that's the problem. The user accounts are outside of the Scope of Management (SOM) of the GPO if they're not in the Windows 10 OU.
1
2
2,622
2016-05-24T21:07:27.023
infrastructure
serverfault.com
1,110,079
Ansible security best practices for monitoring
I have several servers at home. I would like to have one computer that will monitor activity on those and notice me if something is wrong. For that reason I install ansible there. In order to have maximum possible security, the user that ansible will use, will have permissions only for things that it should do and no m...
A configuration management suite like Ansible is a good match for updating and maintaining the configuration on a server, but it's not a good match for monitoring a server. Configuration management does periodically check the config of the server and invoke commands to change the config , but that's only when the "desi...
0
1
113
2022-09-06T11:53:11.850
pipeline_ops
serverfault.com
280,711
What are ANY-user and information_schema on MySQL Server?
I have a few servers that still seem to have the default ANY-user and information_schema. I would delete it, but they are production servers. It seems very worrisome to me What is this Any user that accepts connections from any host? What is information_schema? I know MySQL is a database server that should be configure...
The "Any" user is used by mysql during installation to check that the database was installed properly. You can safely remove it after the installation.
1
1
1,753
2011-06-15T15:20:39.207
database_errors
serverfault.com
158,507
How to make an ISO?
I made an ISO out of a directory using the command [CODE] . When I mount the ISO though, I see the file names are pruned. Actually the file names will be something like [CODE] , but in the ISO it will shorten to some fixed characters. How do I check what standard is my source ISO (I have an ISO at a remote location) an...
Use the joliet extension and you should get the real filenames. [CODE] From wikipedia: Joliet is the name of an extension to the ISO 9660 file system. It has been specified and endorsed by Microsoft and has been supported by all versions of its Windows OS since Windows 95 and Windows NT[citation needed]. Its primary fo...
2
5
642
2010-07-08T11:34:56.167
infrastructure
serverfault.com
928,924
How do I enable IPv6 on Fedora 28 on Amazon EC2
I can't seem to get IPv6 working in Fedora 28 in Amazon EC2 (so using cloud-init and DHCPv6). It works in RHEL 7 with the configuration described here . Applying the same configuration to Fedora 28 doesn't seem to do anything. In particular, [CODE] does NOT get rewritten to contain [CODE] , nor does [CODE] contain any ...
This happens because the current cloud-init version (I tested with 17.1) does not regenerate network settings on every boot. Network settings are only generated on the first instance boot. You can observe this by logging at cloud-init's log files: [CODE] As you can see, network configuration was only applied on the fir...
5
6
1,127
2018-08-31T21:53:53.427
infrastructure
serverfault.com
589,463
Gluster fallback mount
I have a server which content is on a gluster mount. The underlying brick is on the same machine. I was wondering if there is a possibility to set up some kind of fallback in case gluster crashes/disconnects/goes on vacations. What I have in mind is something like mounting the brick as a bind mount first, then gluster ...
This is not recommended as accessing the underlying filesystem without using gluster would corrupt the volume. You are using gluster to make a service HA via another server so I would shut down all services on this node and let the other one take over in case the gluster volume is not mounted.
0
0
480
2014-04-16T14:25:07.663
infrastructure
serverfault.com
918,641
Restart MariaDB cluster with Ansible
I would like to restart my MariaDB cluster with Ansible. I applied serial option to run script on servers one by one, but at the end of the script (= after build cluster), I would like to run command on each of these server to carefully restart cluster, which means restart MariaDB server on node one, wait till all are ...
You should take a look at the wait_for module https://docs.ansible.com/ansible/2.5/modules/wait_for_module.html
1
0
605
2018-06-28T11:04:10.070
pipeline_ops
serverfault.com
988,279
OpenVPN tap interface not connecting to server public IP through tunnel
I have a server with 1 interface bridged to [CODE] . Also a client with 2 interfaces that have public Internet connection ( [CODE] and [CODE] ) and a tunnel for interface 2, so I can send traffic through [CODE] and will actually send data through [CODE] . if I do [CODE] I get the public IP of [CODE] . If I do [CODE] I ...
Got it! I think that is more a workaround than other thing, but it worked as expected. Just had to create an [CODE] rule that will modify the destination of the packets if the source and destination corresponds to the public server IP and the tunnel IP: [CODE] And done! Works like a charm with MP-TCP.
1
0
639
2019-10-16T16:20:32.630
infrastructure
serverfault.com
401,085
I try to access a NFS mount via FTP. It works but the FTP Dir listing is very slow
I mount an NFS using this command: [CODE] However the mount appears on the client as expected a command like [CODE] work pretty fast on the [CODE] mount. But when I try to list the mounted directory via FTP it gets very very slow ( 1.250 bytes in 160,39s (0,01KB/s) ). But surprisingly downloading files via FTP from [CO...
Problem solved: I used glftpd as FTP Server and switched to vsftpd. Now everything works as expected.
-1
1
3,167
2012-06-21T20:36:24.240
infrastructure
serverfault.com
30,210
How should applications be developed for easy deployment?
I work for a company that deliver distributed control systems for various industries. We find that IT Admin skills vary to a great degree both in terms of skills and interest. We have everything from a team of professional IT Admins on a Oil Production Plant to a part-time effort from the ships' cook. The common Operat...
My number one would be "Integration and testing with industry standard tools", the fewer bespoke update/deployment/monitoring/maintance interfaces I need to use on a daily basis the better. Deployment - use Microsoft technologies such as Windows Installer Install Databases (MSI Files) to install, Windows Installer Patc...
6
7
229
2009-06-23T10:19:39.457
pipeline_ops
serverfault.com
45,001
Twitter client?
I have a voice server which currently sends an email to notify when someone called. But actually, since messages are very short ("[object] Name - number"), the server could just as well send a message with Twitter instead of forcing users to connect to their Gmail account (we don't use BlackBerry's, just smartphones wi...
Have a look at JibJib it's a J2ME/JavaME Twitter client for cellphones.
0
0
247
2009-07-24T07:49:48.177
infrastructure
serverfault.com
281,267
one server missing a SYSVOL policy object
one of my DCs is missing a single GPO object - all others are there and appear to be the correct version. there are no errors related to DFS or FRS in event viewer that i can find. the server in question is 2008, although there are both 2003 and 2008 DCs in this domain. repadmin shows no errors that i can find. update:...
Check [CODE] on each of the domain controllers and see if you get any errors to look into with that command
0
0
4,457
2011-06-16T20:57:46.203
infrastructure
serverfault.com
838,312
A way to manually upload new extensions into TFS 2017 U1?
I cannot find a way to upload the extension .zip archive to the TFS 2017 server "Manage Extensions" page, rather than installing via .vsix. Our "legacy controls" only build the zip format "installer", and no "Upload new extension" button appears on the Extensions Management Page to allow them to be installed as-is, lik...
I found the solution, posting for any others looking for it. To upload a Legacy control or extension in TFS 2017, from the Project Dashboard page, click the Settings button --> Server Settings. Then, from the "Administer your server" page, click Legacy Extensions tab, and then the Install button. When the 'Install new ...
0
1
822
2017-03-15T00:04:39.927
hadoop_errors
serverfault.com
529,361
Network boot from HP DL380 G7 using PCI quad port Intel NIC
I have a HP DL380 G7 server with a quad intel expansion card in slot 3. I can't seem to find anywhere in the iLO/BIOS to tell it to boot from one of these expansion interfaces - is this even possible? We can turn on the on-board NIC's but our base OS has problems with broadcom.
Yes, it's possible. Try F11 for boot options during the POST process. You may also be able to control this from the Intel BIOS.
0
2
1,030
2013-08-07T15:59:45.587
infrastructure
serverfault.com
136,438
Is it enough to have only full backup and transaction log backup only for a good backup plan?
If Full backup is scheduled for every Sunday at 12 pm and differential back up is scheduled for for every 6 hours and transaction log backup is scheduled for every 15 minutes. My problem is what is the use of differential backup every 6 hours if we are taking a transaction log backup every 15 minutes? Is it enough to h...
My problem is what is the use of differential backup every 6 hours if we are taking a transaction log backup every 15 minutes? Differential backup is used to decrease the Recovery time object(RTO), it gives you facility of restoring backups quickly. Differential backup includes all the changes made since last full back...
4
4
1,257
2016-04-25T10:14:35.670
database_errors
dba.stackexchange.com
1,031,157
lighttp seems to be caching license file but don't know why
I'm using certbot to generate SSL certs for my website. I had an issue (because of cron script error and out of date python2, now resolved) where auto-update didn't work. I now have up to date license files on my server. The license files are in an archive under letsencrypt, the number seems to increment each update (f...
OK, problem solved. For lighty an additional step is required after updating certs. Basically a new file has to be manually created by concatenating two files in the cert directory. see link below: https://www.bytebang.at/Blog/Free+SSL+certificate+for+lighttpd+with+letsencrypt if this is not done, lighty's error log wi...
0
0
57
2020-08-23T13:12:15.393
hadoop_errors
serverfault.com
367,666
Cannot connect to mySQL because of invalid settings
I'm new to xampp, and have it installed on a Windows 7 machine. Earlier, I was able to at least get the login page for phpMyAdmin, but it was not taking username of "root" and no password, so I changed the username and password in the config.inc.php file, but now I don't even get the login page. This is the message I g...
You need not change bind-address, since all this lives on the same box. What you DO need, however, is mysqld listening on port 3306 on localhost, and a user that phpmyadmin can use to log on. The first can be checked with [CODE] , look for port 3306. The second is a bit more involved and requires you to log on to mysql...
0
1
3,230
2012-03-08T15:11:44.530
database_errors
serverfault.com
350,374
Transaction support within the specified resource manager is not started or was shut down due to an error
Got the following error while trying to add, edit or delete a windows schedule task: [CODE] Tried to reset transaction manager through fsutil (as suggested by a few people on answers.microsoft.com) [CODE] but it didn't work. Also noticed that windows update was failing with an unknown error as well.
Manually clearing all the files from the following directory fixed the problem [CODE] I also reset the resource manager through fsutil before restart (not sure it was required or not) [CODE] These links were also helpful: http://support.microsoft.com/kb/2484025 (The link is about fixing windows search service but that ...
4
7
24,891
2012-01-16T18:27:52.347
infrastructure
serverfault.com
878,862
ssh permission denied please try again later - centos
I have three servers, let's name them A, F and E. When I'm trying to ssh connect from server F to server E as root, the connection is established as expected and the other way around. Also when I'm connecting from F to A, it works the same way. But when I'm trying to connect from A to E, then I get the message ssh perm...
Check the logs on the [CODE] system, They will almost certainly reside in [CODE] and will equally likely contain information that is relevant to solving your problem. Once you have found log entries that are relevant if they are not immediately clear, you should just copy+paste them into your favourite search engine.
1
2
4,568
2017-10-17T10:59:43.867
infrastructure
serverfault.com
1,073,873
Configuring DKIM using DNS and hosting on VPS
I'm using Mail Enable on my VPS and have copied the generated DKIM (see screenshot 1) to my DNS. (yes, I've restarted the VPS already): Now my DNS settings are configured at hosting company A, and point to the VPS I host at company B: The strange thing now is that when I try and check the DKIM validity, dmarcanalyzer.c...
Your DKIM selector is.. odd. d=example.com; s=default.domainkey; While this is perfectly valid .. Periods are allowed in selectors and are component separators. [..] In a DNS implementation, this can be used to allow delegation of a portion of the selector namespace. .. because DKIM keys are stored in a subdomain named...
2
5
579
2021-08-08T09:41:44.753
infrastructure
serverfault.com
1,112,000
systemd-timedated.service: Failed to determine whether NTP is enabled: Link has been severed
Encountering this issue with RHEL 7.9 (Maipo). One server in particular is having issues with [CODE] , [CODE] , and [CODE] . If we run [CODE] [CODE] Further, if we attempt to start [CODE] [CODE] Would anyone happen to know the root cause of this [CODE] error message and a possible solution? [CODE]
It took a ticket with corporate IT, who forwarded the issue to Red Hat, to find out that there was an erroneous file on the system. [CODE] resolved the problem.
0
0
648
2022-09-30T18:50:06.593
infrastructure
serverfault.com
383,663
Windows Storage Server 2008 Single Instance Storage
Should I be enabling this feature on a file server? What type of performance hit is involved with this? I ask as its not something I can easily turn off once on.
SIS in Storage Server 2008 is only file based , not byte or block based. It's a rather emaciated SIS feature that only gives you gains if you have an enormous amount of files, and even then only if there isn't disciplined file storing and sharing habits. For example, if people scatter the same file over and over all ov...
1
4
354
2012-04-27T05:08:15.413
infrastructure
serverfault.com
495,737
watch file to see whos accessing/writing it and log it
I am facing some malware problems on my webserver. I updated third party software such as Wordpress to the latest version, disabled root logins and my users password complex enough but still someone or something is changing my [CODE] files, adding some code that causes malware alerts on many visitor's browsers. Now as ...
I have had a pretty good experience with the package [CODE] (found in apt). It is a comprehensive audit logging daemon. The only possible problem here is you definitely need root access to install it. Some basic instructions can be found at http://www.cyberciti.biz/tips/linux-audit-files-to-see-who-made-changes-to-a-fi...
0
2
88
2013-04-03T12:44:44.283
infrastructure
serverfault.com
121,019
How to get an exclusive connection in AutoRestore job ( sp_RestoreGene)?
I am using Paul Brewer's script for [CODE] on SQL Server 2008R2 box. I created the stored procedure [CODE] on the Server 1 where the backup file is located. I called the store procedure: [CODE] It generated the following Restore script. I created a job which runs the script below in scheduled time on Server 2 [CODE] I ...
To get exclusive database access (provided it is not used in replicaiton or logshipping or any other HA/DR), OFFLINE it. [CODE] Make this as a first step and then run the restore script that you generated. BTW, its Paul Brewer's restore gene script that you are using.
0
2
156
2015-11-13T16:06:49.567
database_errors
dba.stackexchange.com
887,535
new email send to Outlook.com never deliver but reply on Outlook.com email does
I dont know where i could start. There is the probleme. If someone send me an email from Outlook.com, i received the email. If i reply, he will received my email. If i write a new email and send it to the same addresse, the email will never arrived. I check my server reputation, and everything is fine .. My spf is good...
Since replaying to received email and sending a new one are the same things in tech terms (only difference are some SMTP headers in sent email) there is only one option left, as far as I see it: low reputation at Microsoft email infrastructure. Microsoft is probably not trusting your emails and makes difference between...
-1
1
95
2017-12-11T14:37:21.750
infrastructure
serverfault.com
256,969
my battle against web-server monitoring - slow server
Munin print-screen for reference : http://img29.imageshack.us/i/munin.gif/ I monitor a web-server which basically runs apache+php+mysql. No emails, no FTP, pure web-server. The server is serving pages slow... I think the bottleneck is MySQL configuration. Quick Facts: most of queries are SELECTs, very few INSERTs and r...
Number of processes has jumped, as has number of "Established" TCP connections (nearly 2x) -- I would track down the cause of those and see if it's related to the performance nosedive.
0
0
136
2011-04-07T17:34:42.340
pipeline_ops
serverfault.com
469,345
Install & configure mod_ssl on Amazon EC2 instance
I am trying to support HTTPS traffic with the mod_ssl module on my website. I am running an Amazon EC2 instance for my server. I have installed and configured the basic LAMP packages. However, when I go to put in SSL-specific commands in my apache config files (ie. [CODE] , [CODE] , etc) it spits out an error and says ...
Try to run [CODE] instead, which I think you've already done. Any packages that have additional versions usually require the version to be specified for any dependencies. So everything for [CODE] would be prefixed with [CODE] . If you're ever unsure, you can always do a [CODE] with some keywords. For example: [CODE] li...
15
34
25,684
2013-01-15T17:16:03.400
infrastructure
serverfault.com
157,407
Best practice on if/return
I want to know what is considered better way of returning when I have [CODE] statement. Example 1: [CODE] Example 2: [CODE] As you can see in both examples function will return [CODE] but is it a good idea to put [CODE] statement like in first example or it is better to not put it?
Example 2 is known as guard block. It is better suited to return/throw exception early if something went wrong (wrong parameter or invalid state). In normal logic flow it is better to use Example 1
68
87
66,865
2012-07-19T13:05:20.863
api_errors
softwareengineering.stackexchange.com
271,900
ubuntu - cronjob failing with exit code 2
I have setup the following crontab - [CODE] This should run sqlbackup.sh at 21.01 every night but it never runs. here is the error log [CODE] I have set the permission to 777 and the owner is root. I can run the file by entering the above file path.
Your script seems to be exiting with status 2, which cron interprets as an error. Does it exit with status 0 if run by hand? [CODE] Check you're not assuming things about the environment that aren't true when run by cron. In particular use absolute paths when invoking other scripts or binaries. Try replacing the cron j...
3
3
7,742
2011-05-20T12:06:13.580
database_errors
serverfault.com
434,131
Are bare steel floor tiles suitable for a server room?
We're moving in to a new building, soon. Most of the building has a raised access floor consisting of 600x600mm square tiles; galvanised steel-coated MDF. (The closest equivalent I can find is Tate Woodcore .) These tiles are pre-drilled and screwed at the corners to supporting stacks on the concrete floor. The void is...
No problem, as far as I know. I have been involved in 2 server-room builds with similar floors a couple of years ago. Never had any issues besides that metal may be a slip-hazard. It it is too slippery you can always apply some anti-slip coating over the tiles. I do have a few recommendations though: It can't hurt to h...
16
19
1,744
2012-10-02T17:21:33.863
infrastructure
serverfault.com
267,766
"Crashed" for init script
After moving to new baselayout2 in gentoo I always have [CODE] even though it runs in screen with no issues. Here are the conf.d: [CODE] and init.d accordingly: [CODE] Tried to compare with any valid init.d script but haven't found any significant differences. Any ideas why that [CODE] label appears?
The normal way to detect that a daemon has crashed is presence of a PID file, but absence of a daemon process with that PID. The daemon removes the PID file during normal shutdown, but leaves it after a crash. If you believe that the detection is faulty then you should shut down the daemon, erase the PID file, then res...
2
2
819
2011-05-09T14:33:57.593
infrastructure
serverfault.com
11,343
Dropped table not showing up in recycle bin
I tried dropping a table and then when i viewed the recycle bin nothing was there in it . Earlier too i dropped tables many a times but I was surprised to find no objects whatsover in it . What's the deal ? [update] : i had tried [CODE] Its VALUE column shows it as ON . So fine here ! Then i droppped an existing table ...
It's likely that recyclebin isn't turned on. Check in your init.ora file to ensure it is. You can check your parameter: [CODE] And turn it on at session level... [CODE] ...and then try a drop. Also, check both [CODE] and [CODE] for entries. EDIT: I see you've updated to say you are logged in as the [CODE] user. For som...
3
4
8,107
2012-01-20T05:23:06.900
warehouse_errors
dba.stackexchange.com
144,175
ADSIEdit Cleanup After Exchange 2003 Crash During Transition To Exchange 2010
I would value some input from a few Exchange 2010 experts. I have almost completed the transition from Exchange 2003 Standard to Exchange 2010 Standard. Everything went smoothly until I tried to uninstall Exchange 2003. At that point the server bit the dust and died completely. I now have NO access to the old Exchange ...
I'd spin up an instance of an older version of Windows, install the Exchange 2003 management tools, and continue with the decommissioning procedure just to be safe. I'm assuming this is a production environment, and I don't think I'd toy around with deleting records via ADSIEdit.
1
4
7,360
2010-05-21T16:49:48.940
api_errors
serverfault.com
189,695
Windows 7 Machine and Exchange 2007 Connection
I am using a Windows 7 machine which has Outlook 2007 client installed and connected to an Exchange Server 2007. When I lock the screen for a few minutes then lock back in when I get to my desk I get the "Connect to exchange" dialog box prompting me to enter my password again? Is there any reason for this, and how can ...
You most likely have a power savings settins setup on the NIC Card when you lock the computer for few minutes. change the power savings on the computer and see it that will work. I assume this is the issue since you said that you are walking away for few minutes.
0
1
90
2010-10-11T12:05:31.170
infrastructure
serverfault.com
15,016
Clearing data loaded by a DLL
I am performing Black-box testing on a DLL. First API I have is [CODE] . [CODE] accepts certain parameters, performs certain operations (Which include COM port and/or LAN access) and if it is first call then launches an application. I have to call [CODE] after every test to clear up what [CODE] has done to have a clean...
The way I'd structure this is as follows: First, I'd test the connect method. Disconnect would then be a part of my post-test cleanup. Second, I'd test the disconnect method. Connect would be part of my pre-test setup. After this, I'd test other methods in the API, with connect in the pre-test setup and disconnect in t...
1
1
63
2015-10-05T11:16:44.733
data_quality
sqa.stackexchange.com
319,167
ANALYZE or EXPLAIN for previous query
[CODE] shows the EXPLAIN for a query (without actually running it). [CODE] shows the EXPLAIN for a query that is currently running. Is it possible to get the EXPLAIN for the last query that ran on a connection? For example, if my application detected that a specific query took over 2 seconds to run for a user, I'd like...
"potentially use another query plan" -- I have always believed that, but I have not found proof of such, even after thousands of Explains. I have seen as many as 6 different [CODE] for a given 'digest' -- The variation came from different constants in the queries. I used to capture the slowlogs from a hundred servers a...
0
0
270
2022-11-03T23:50:34.073
database_errors
dba.stackexchange.com
245,022
SAS vs SSD Performance
Hi does anyone have any input on how a SAS 15k RPM drive would perform compared to a sata based SSD drive, assuming its using the latest verison of sata. These drives would be in a 4 drive raid 10 configurtion and the sizes are around 70GB per drive.
Given equivalent sizes, the SSD's will give you vastly more I/O operation performance than the SATAs will. Both are fast enough to saturate the SATA connection given the right I/O access patterns, though the SSD's will deliver it more often. As with most performance comparisons, it depends on what you're doing with the...
1
5
3,132
2011-03-09T03:41:45.940
infrastructure
serverfault.com
646,832
AWS: authorizeSecurityGroupIngress within a VPC
I'm using the NodeJS SDK to add an inbound rule to a db security group from a db-access security group. Both of these security groups exist within a VPC, however when I add the ingress rule using [CODE] I get the following error: [CODE] The payload I'm sending has valid security groups, and when I look at the EC2 docum...
Looking at the documentation at: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/EC2.html#authorizeSecurityGroupIngress-property it appears that you are using the function correctly. However, based on the name of the parameter [CODE] , I suspect that this may be the owner account ID of the security group you wan...
0
2
906
2014-11-25T03:54:39.870
infrastructure
serverfault.com
59,287
Full Text Index and database structure
First forgive me, I am not a DBA and our company really doesnt have one. I am a developer and Googling for answers is just not helping any more. Thanks in advance. My question is on optimal structure for our database. We have a website that allows users to search and find PDFs easily. Mostly its just meta data searchin...
Did you try to replace the insert..union statements with separate insert statements? For example: [CODE] It could be as simple as the increased processing cost of union plus the increased memory usage from having 5 processes open at the same time to use them on that insert, slowing down your UDF. (Also, since you're qu...
5
0
556
2014-02-20T14:39:20.900
database_errors
dba.stackexchange.com
605,266
Freeswitch : Audio handshake failure 1 error while making call using Sipml5
I just installed FreeSwitch and successfully connected to server with user 1001. Details -> OS - Ubuntu 12.04 LTS 64 bits FS - 1.5.13b+git~20140614T114905Z~fc7a74905b~64bit OpenSSL - 1.0.1 chrome - 31, 35 webrtc is enabled. websocket - ws://192.168.32.181:9066 Outbound Proxy - udp://192.168.32.181:5060 Case 1 - Call fr...
If you're getting a segfault you should fill a JIRA at http://jira.freeswitch.org , With logs and all data needed to resolve the issue related to your crash. Start here: https://confluence.freeswitch.org/display/FREESWITCH/Reporting+Bugs
1
1
2,882
2014-06-15T13:14:49.880
api_errors
serverfault.com
997,728
Kubernetes MySQL cluster in a private cloud
I'm interested in MySQL cluster formed from 1 primary and 2 secondaries. Usually in a public cloud we use external storage use services such as RDS so replication and failover handled behind this service you can recreate failed pod on a different node, because storage and DB are not running on any of your k8s nodes Sol...
The solution I ended up is Percona XtraDB Cluster on Kubernetes. It has a Kubernetes operator to automatically manage failover scenarios. Your app shouldn't know anything about clustering, because it's sorted out transparently under [CODE] . So app calls this address and behind it there are 3x SQLProxy/HAProxy containe...
1
0
960
2020-01-06T00:02:17.387
pipeline_ops
serverfault.com
444,263
What make a microservice a microservice?
I am new to microservice. While learning about them, I was wondering what is the basic rules (the minimum) that make a microservice a microservice. I have found some rules/characteristics along the way: Required: Loose-coupling, independent and scalable web services. Doesn't have to be the same technologies, but must a...
I do not think you will get a definite list of rules that everyone will agree on. The main reason is that there will always be someone who calls their solution for "microservices", or whatever other pattern is fashionable, while violating most of the ideas behind the pattern. Wikipedia seem to agree with me: There is n...
3
5
262
2023-03-02T08:32:03.610
pipeline_ops
softwareengineering.stackexchange.com
208,792
How to find the nearest lat and lang in postgresql
I am trying find the nearest lang and lat from the specified lat and lang i tried the below mentioned query, in my query i have mentioned the place muscat's lat and lang ,so i want to display the nearest cities of muscat with limit 3 along with muscat [CODE] here is my table (Assumed data not exact lat and lang)data [C...
yes i got the output with this query, and thank you to all who tried to help me:) [CODE]
1
0
2,135
2018-06-05T12:08:27.427
database_errors
dba.stackexchange.com
103,236
MySQL replicate-rewrite-db ALTER TABLE not rewritten
I have a production database called "master" that I want to replicate on another server under another name (call it "slave"). All worked fine until an ALTER TABLE statement was performed on the master server. Since then, the replication hung up and I get this error in the slave log: [CODE] Well of course it does not ex...
It turns out I was using MySQL Workbench and it does not output a "USE" statement in its DDL update scripts, also rewriting does not occur if you do not provide a use statement. So adding [CODE] at the beginning of the script fixed it. Thanks!
1
1
1,131
2015-06-04T10:44:21.447
database_errors
dba.stackexchange.com
568,971
Initiator disconnected from target during login equallogic san
I have a Dell Equallogic San and it is being accessed by many VMWare hosts (Esxi v5.1). Today morning I could find an error like iSCSI login to target " " failed for the following reason: Initiator disconnected from target during login But Just after 10 seconds this error disappeared and now login works fine. I have ch...
If this is something that seems to be recurring, you should ensure that your VMware hosts are configured according to Dell's best practices recommendations. The most likely cause would be the iSCSI login timeout value (defaults to 5 seconds, recommended 60 seconds). See kb.vmware.com/kb/2007829 for more info
0
1
3,971
2014-01-22T05:02:56.660
infrastructure
serverfault.com
159,853
Finding missing gaps of data in a table with ~2.5 Million rows
I work for an economics consulting company and all of our data is housed in SQL Server 11 (2012). Our data essentially consists of a date column, a raw data column, several calculations columns and a column that has a shortcode to distinguish each set of data from the next. We have thousands of these sets that are all ...
There is no need to generate dates. The following query will give you a list of SHORTCODES with no rows at all: [CODE] The following query will give you the continuous ranges of MonthYear per SHORTCODE. [CODE] If you wish you can use the following version which has an additional layer of information: missing_from_Month...
6
2
7,258
2017-01-03T18:02:42.700
database_errors
dba.stackexchange.com
54,200
MySQL crashes randomly with "Database was not shut down normally" message in log
I am having an issue where, for no apparent reason, my MySQL server crashes and has to restart. Essentially, the error log has entries like this: [CODE] Reading about on this issue on the internet, I saw that this could happen because data in one of the server's database is corrupted. So I did this: added [CODE] to [CO...
In the end, it was only after changing my hosting plan (and moving away from cPanel, which seemed to obscure some of the logging) that I was able to see the issue. Turns out that from time to time, memory usage would spike (I'm guessing that this was because of a dramatic spike in apache child processes) and this would...
5
5
31,328
2013-11-30T20:13:31.170
database_errors
dba.stackexchange.com
65,477
(Why) is it important that a unit test not test dependencies?
I understand the value of automated testing and use it wherever the problem is well-specified enough that I can come up with good test cases. I've noticed, though, that some people here and on StackOverflow emphasize testing only a unit, not its dependencies. Here I fail to see the benefit. Mocking/stubbing to avoid te...
It's a matter of definition. A test with dependencies is an integration test, not a unit test. You should also have an integration test suite. The difference is that the integration test suite may be run in a different testing framework and probably not as part of the build because they take longer. For our product: Ou...
133
147
43,363
2011-04-06T01:05:35.300
api_errors
softwareengineering.stackexchange.com
543,686
What kind of "volume/storage management" has the largest support/feature set these days?
(DISCLAIMER: This is "time bound" as probably every other question, I just point it out now instead of implicating it) part of reviewing a few basic decisions for our infrastructure is once again the topic of volume/storage management . I'm mainly talking about about local storage here (or block devices that cannot be ...
I'm primarily using ZFS on Linux for my production storage needs, in several forms. I use RHEL/CentOS-like systems for the most part, and spent a decade equipping servers with XFS as the main filesytem. In November 2012, there was a change to the XFS shipped in the Red Hat kernel that made new XFS installations unsuita...
2
3
388
2013-10-03T22:24:32.960
data_quality
serverfault.com
935,566
Group policy batch script not running on startup
As a company, we have purchased new anti-virus software and want to install it to all our computers through group policy. The installer is an .exe and we have been provided with a .bat file to use on startup, however I've noticed that the script does not run (most of the time). I tried troubleshooting the problem and I...
By default, workstations do not wait for the network at startup, so the phase where scripts execute is usually past by the time the network initializes. Group Policy Management Console: Computer > Administrative Templates > System > Logon Always wait for the network at computer startup and logon: Enabled Also, you shou...
0
2
9,867
2018-10-15T10:28:40.220
infrastructure
serverfault.com
1,083,007
GCP: no redirect of domain to ip
I'm using google cloud platform, have a vm instance with external ip 34.141.104.0 and a domain charec.net, which should be redirecting to that ip. I have created a cloud DNS Zone (public, DNSSEC off) and have four records in it: [CODE] But nonetheless, [CODE] has no answer section, it just returns: [CODE] What do I do ...
I have solved my issue after contacting gcp support - GCP has two options for redirecting Domain to an ip. You can create an DNS Zone, or you can just put an A Record in google domains in the DNS Settings - but only the Domain DNS Setting OR the DNS Zone applies. In GCP Domain -> Network services -> cloud domains click...
1
1
651
2021-11-09T09:26:05.913
infrastructure
serverfault.com
111,873
Error while installing safesquid
When i try to install safesquid i get error message "libldap_r.so.2 => not found", How can i solve it ? I am using RHEL 5 I installed squid 2.6 stable
Does this post help you? - http://www.safesquid.com/html/viewtopic.php?p=12604#12604
0
1
399
2010-02-11T12:05:42.323
infrastructure
serverfault.com
401,433
Postfix configuration w.r.t. port 25
After a considerable amount of research, I have configured my postfix server to use dovecot to accept SMTPS connections over port 465 and everything works swimmingly. Unfortunately, I forgot that, unless I listen to port 25, I'm not going to receive any e-mail from the net. I'm hoping somebody knows off the top of thei...
ADD (and do not replace) the following line to master.conf to enable 25 again [CODE] Relay-control is done in main.cf, so you may want to use something like that: [CODE] The last line is for amavis. Anyway, smtpd_client_restrictions is what you search, and here you have more precise url: http://www.postfix.org/BASIC_CO...
2
3
275
2012-06-22T19:21:47.963
api_errors
serverfault.com
989,338
Ubuntu server cannot be accessed from eth0 address on same machine
I have a Ubuntu 16.04 VM and when I run [CODE] (the eth0 IP address) it quickly replies with connection refused. However, the server is definitely listening on [CODE] and can be accessed by other computers on the network using that same address in the browser. [CODE] returns the html of my router admin page. Of course ...
I found this line in [CODE] . [CODE] Problem found! This answer says why the rule did not show up in [CODE] : https://serverfault.com/a/685948/32875 . There are 5 tables (filter,nat,mangle,raw,security). You call [CODE] for each.
0
0
1,315
2019-10-24T22:18:16.573
api_errors
serverfault.com
326,559
PostgreSQL json(b)_to_record with dynamically named keys?
I have a table with, among other fields, a jsonb field "translations" containing translations and some other properties, there can be any number of properties on it. It's shaped like this: [CODE] I'd like to select this data so that I have this output: [CODE] I was struggeling with jsonb_to_record, but failed, as it se...
Use [CODE] , it returns a recordset, which is something you can then SELECT from or JOIN with, like so: [CODE]
1
1
743
2023-04-28T15:43:05.307
data_quality
dba.stackexchange.com
207,349
Slow queries on indexed columns (large datasets)
I've got some large MySQL (5.5.60) tables where queries take 60 seconds+ to complete. product_base (1.5GB, 26 million rows) CREATE TABLE `product_base` ( `EAN13` varchar(13) NOT NULL DEFAULT '', `company_tk` int(11) DEFAULT NULL, `category` int(11) DEFAULT NULL, `modified` varchar(30) DEFAULT NULL, KEY `EAN13` (`EAN13`...
I'm answering my own question here. The other answers have some great optimisation tips, but the key to getting my queries down from 60s to 100ms was to treat the EAN13 field as a string in the where statement. As an example: [CODE] became [CODE]
1
1
2,647
2018-05-21T01:48:02.080
database_errors
dba.stackexchange.com
73,254
MySQL select with left join query
I have following code. [CODE] I got following error. [CODE] When I interchanged class and teachers the error was: [CODE] Do you guys have an idea whats the problem? edit [CODE] [CODE] is an intermediary table. This database should make possible that a class should have multiple teachers. For example PE class can have s...
I updated [CODE] table to [CODE] to include section. The idea is a class can include different sections with different teachers. For example a grade 1 PE class can include all sections; the teacher for boys will be different from that for girls. [CODE]
1
1
357
2014-08-06T01:12:15.223
database_errors
dba.stackexchange.com
499,493
Make a new cacti graph by summing the values ​​of another graph
I just start using cacti and I would like to know if it is possible to create a new graph from the sum of values in an other graph (not in the same one) . For instance, I have a graph with: Memory Free: 0,28G Memory Buffers: 0,73G Cache Memory: 1,17G I'd like to get a new graph called "Available Memory Usage" and to gr...
For multiple data sources (e.g. every interface on a switch) from 0.8.7g onwards you can use the Aggregate Plugin . Otherwise you can use a CDEF with RPN notation, e.g. "a,b,c,+,+".
0
0
5,186
2013-04-15T14:02:53.697
infrastructure
serverfault.com
1,129,866
NGINX: configure multiple locations to different directories
I want to define a separate directory for each part of my website on my NGINX server. [CODE] The different configurations I've tried don't work, I get 404 errors. [CODE] or [CODE] or [CODE] or [CODE] or [CODE] or [CODE]
This configuration solved my problem [CODE]
0
0
249
2023-04-27T22:11:58.217
infrastructure
serverfault.com
280,362
Kloxo - Apache problems
I have recently installed kloxo and it has apache, however I have getting default page problems. I have pointed my sub domain using "A-record" to the Apache server however I am either getting default page or "Internal Server Error 500". It's fresh installed I have not messed with the configurations. I have commented ou...
At "Command Center" or in the shell (as root) run one at a time: [CODE] Remember Kloxo latest version is 6.1.6. Check the version with /script/version or by clicking "Update Home" button in the web panel.
0
0
3,277
2011-06-14T16:35:05.793
api_errors
serverfault.com
504,633
node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%
As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain the architecture: The front-end server is an 8 core machine with 8 gigs RAM running Ubuntu 12.04. The application is writt...
After few days of intense trial and errors, I'm glad to be able to say that I've understood where the bottleneck was, and I'll post it here so that other people can benefit from my findings. The problem lies in the pub/sub connections that I was using with socket.io, and in particular in the RedisStore used by socket.i...
12
11
8,132
2013-05-02T22:31:09.917
database_errors
serverfault.com
2,287
Is using 2 solid state drives in RAID 0 going to be reliable?
I am thinking of upgrading from a Western Digital 10k RPM hard drive to using two Intel-X25 solid state drives in RAID 0 configuration. I will be using this for hosting the operating system and installing applications. But all data is currently and will remain stored on a separate Seagate Barracuda 7.5k RPM hard drive....
All drives fail. Either through wear, or though manufacturing fault. By placing those drives in a RAID0 configuration you have doubled the chances of a drive fault destroying your data.
13
13
7,547
2009-05-01T09:57:05.467
infrastructure
serverfault.com
209,139
SBS 2008: Connected via VPN but can't access anything
I have an SBS 2008 installation with VPN enabled. Port 1723 on the router is forwarding to SBS. In Windows XP I have setup a VPN connection and connected using my domain credentials. However neither end can ping each other. I tried disabling the SBS firewall but to no avail. Does anyone know what could be causing this?
Check routing table on your XP client
0
1
2,690
2010-12-04T17:14:44.460
infrastructure
serverfault.com
251,281
Indexing Strategy for the query performance
I have a question on indexing strategy as i am trying to do indexing for a database. I understand the basic indexing strategy which are: Clustered index on PrimaryKey Add Non Clustered index for other columns as per requirement. Should have indexes for WHERE/JOIN/GROUP BY/ORDER BY columns Covering indexes for columns t...
For a general-purpose or OLTP design, the initial index design should be more conservative: Clustered index on Primary Key. Unique non-clustered index any other unique keys. Index supporting each Foreign Key (where not already covered above). Then, for very large tables, consider changing to a Nonclustered Primary Key ...
1
2
152
2019-10-16T18:54:33.490
database_errors
dba.stackexchange.com
851,613
How to tell Kubernetes which nodes to put kube-system pods?
When I create a node-pool for a specific purpose, is there a way to tell Kubernetes not to put kube-system pods such as kube-proxy on those nodes (which consumes memory)? When this happens, the actual pod that is supposed to request all the memory on these nodes becomes Pending forever. [CODE]
You can use taints for this. It's a beta feature where you mark nodes with a taint and pods with a matching tolerance. Pods without a tolerance won't be scheduled onto the tainted nodes.
0
0
937
2017-05-22T18:13:23.967
pipeline_ops
serverfault.com
580,183
Postfix not trying secondary servers when primary times out
This feels like it should have been asked before, maybe I'm using the wrong language, but after 2 hours of searching I can't figure out how to fix this. I have a message in my outbound postfix email queue where the primary email server is down ("Connection timed out" in the logs), and postfix is never trying the second...
That got me looking in the right direction, the solution in this instance was to set [CODE] in [CODE] . To clarify, the domain config was: 2 MX Records (cost 10 and 20). The first MX record has 5 A records. The second MX record has 2 A records. The default [CODE] value is 5, which you will note matches the number of A ...
3
2
1,145
2014-03-06T05:55:06.607
infrastructure
serverfault.com
187,819
Error while using scp
I use "scp" command in my shell script. How do I get the error log , if that command is not working. This is how I am using it [CODE]
If you encounter an error while running [CODE] , try doing [CODE] first to the server, [CODE] doesn't have a graceful handling of new keys and [CODE] is more verbose with error reporting by default. To get a more detailed log of what is happening, try running it with [CODE] : scp -v file username@servername:/specificdi...
2
3
1,970
2010-10-05T17:19:21.460
infrastructure
serverfault.com
1,070,424
coredns deployment fails looking for nodes even after fargate profile patch
Problem with installing fargate profiles and coreddns addon; I'm using terraform for some parts and [CODE] for others, the fargate profiles are created via terraform: [CODE] I then install coredns addon again using terraform [CODE] I patched the coredns deployment for fargate [CODE] and then restarted [CODE] however, t...
In my case the problem was that after enabling Cluster Public Access Endpoint I had limited to public CIDRs (of our VPN), which meant I had to either add pods CIDRS or enable private access endpoint as mentioned in this article https://docs.aws.amazon.com/eks/latest/userguide/cluster-endpoint.html It works now, and the...
1
0
2,372
2021-07-23T10:26:38.727
pipeline_ops
serverfault.com
866,563
vmtoolsd returns 'no value' when trying to read OVF env parms
From within a linux VM, I'm trying to read the OVF environment parameters using this command: [CODE] I did check that vmtoolsd service is running. If I go to 'edit settings' for the VM, I can clearly see there does exist OVM env settings. So I would expect this command to work. Anyone know why its not working? Or how t...
I found that power-off and power-on off the Guest VM fixes the issue. I now get the OVF env parms in the output of the command: [CODE] NOTE: "Restart Guest OS" did NOT help, only power off/on. Possibly someone else can help explain why the command didn't work in the first place, and/or a better recovery from within the...
0
0
4,551
2017-08-02T21:33:11.697
infrastructure
serverfault.com
1,016,858
Can't access tomcat externally in Centos 7
I just installed tomcat 8 on a Centos 7 server and I know it's working because I could get tomcat's index.html with wget http://localhost:8080 . (I couldn't think of another way of testing in a remote server). Now I want to access it externally but whenever I try [CODE] from the computer I use to ssh to the server I ge...
The issue ended up being the network management before the server. The company policy wasn't allowing any inbound traffic via those ports to that server. Once the exception was added I could connect to tomcat from any network and I didn't have to change anything else on the server's firewall. As @sc0der said, the ports...
0
0
1,141
2020-05-12T20:11:13.223
infrastructure
serverfault.com
282,756
Memcache - Issues in a distributed environment with many nodes
I've had a quick look through the other similarly titled questions and none are particularly similar to the issues I'm currently having. Basically, we've had a multi node memcached ring running for over two years, and for the most part its been problem free. The memcache installation was moved recently onto dedicated s...
If your keys have unequal access patterns you will see unequal traffic to each memcached node. e.g. If you have 2 keys, one of which [CODE] is get/set 500 times per second and one [CODE] which is get/set 250 times per second then the node which contains [CODE] will have twice as much traffic as the node which contains ...
2
0
1,255
2011-06-21T19:54:13.097
api_errors
serverfault.com
270,453
Git workflow for Microsoft SQL Stack
My team of developers are currently working at a client who has required us to move away from SVN and begin using their native workflow program. (Source tree by Atlassian). We are data warehouse developers and utilise primarily the Microsoft SQL stack for development. The stack is commonly: SQL Server Analysis Services...
Summary : Vanilla Git Flow is pretty sane. For code that exist next to each other, use directories rather than branches. Feature branches should be short-lived, and don't introduce additional [CODE] branches for each program and subject. For projects of a certain size – and your project is well past that point –, the “...
3
2
2,826
2015-01-18T10:32:40.050
database_errors
softwareengineering.stackexchange.com
269,561
Ubuntu natty 64 client using smb (cifs?) to connect to Windows 2008 64 r2 domain controller shares gives intermittent permission errors
I have a windows 200864r2 domain controller with shares that work great from win7 clients. I have a new ubuntu natty 64 install with an entry like this in /etc/fstab: [CODE] in that .smbcredentials file I have: [CODE] that file has these permissions: [CODE] **my mnt dir is: [CODE] so something is off kilter there, but ...
I have found a solution on Windows 2008 Server. I deactivated SMB Signatures by setting the [CODE] registry key to [CODE] . I rebooted and my problem was solved.
1
1
310
2011-05-13T20:16:52.487
infrastructure
serverfault.com
180,980
Having error codes option in C++ library for performance
I have written an open source and cross-platform C++ File Library which have exception and error codes. Exceptions can be disabled when the program is running. In that case, the user have to check the error codes. Of course, when exception throwing is enabled, error code won't be returned because exception is thrown be...
The cost of throwing an exception is negligible compared to writing to a disk. In addition, return codes are more expensive, not less. Finally, nobody is going to care how fast your library is when they can't make their program have the correct semantics because their teammate who just joined the company forgot to chec...
4
8
1,906
2012-12-30T01:33:26.040
api_errors
softwareengineering.stackexchange.com
208,716
Which Column is better to be used here VARCHAR or DATETIME?
I have a Script that uses Date to pick the day name and number of it, Something like the following [CODE] So What I do is creating a Column in the table using [CODE] datatype, Then I set the values like this [CODE] Is that a proper way to do this, Or is it better if I use [CODE] datatype and write it directly like this...
As stated by manual [CODE] type internally represented by 3 bytes that is smallest possible for the required type of data. [CODE] is represented internally as [CODE] seconds since epoch (4 bytes) but [CODE] is always forced to be converted to/from the UTC if server's TZ is not UTC. That can cause significant overhead. ...
2
4
3,485
2018-06-04T15:42:47.753
warehouse_errors
dba.stackexchange.com
479,865
(How) do you run "functional" tests on your services automatically?
Consider a simple FreeBSD machine running an SMTP server - how can I automatically verify that it's doing the right thing (e.g. accept incoming SMTP connections for certain recipients, and drop the mail in some Maildir)? We already use server monitoring software (in this cas, Nagios) and of course we do manual tests, b...
You could use expect to interact with the service e.g. [CODE] call the above like so [CODE] You can then go on to see if the message was delivered correctly into the mailspool or Maildir or whatever. You can change localhost for the remote host of your choice althought hat then complicates the delivery checking but you...
7
3
664
2013-02-18T08:48:10.890
pipeline_ops
serverfault.com
744,575
SELinux allow access for perl script via log rotate
I have a perl script that I want to run as a perorate script for log rotate. When I force log rotate to run from the command line as [CODE] , it works. However, when run through cron, SELinux prevents operation. I don't remember what the first error was, but I fixed that using [CODE] . The next day, I got a SELinux is ...
It's much easier if you put SELinux into permissive mode. [CODE] In this mode SELinux will log the errors but take no action. This way you can collect all the relevant messages in one go and take appropriate action. You should take the necessary steps to ensure that you exercise all of the relevant actions your script ...
3
4
473
2015-12-21T19:20:35.707
infrastructure
serverfault.com
294,025
Updating SQL column value with previous row data that said to UPDATE a column to SET previous row value to NULL cells in SQL Server
I have the table as [CODE] For the missing rows, and I want to assign the value of previous row like listed below [CODE] How do I write an update statement in SQL Server. Please help.
You can use a self joined table [CODE] [CODE] 5 rows affected [CODE] id | value :- | :---- 1 | music 2 | music 3 | movie 4 | movie 5 | movie 6 | book 7 | book 8 | book db<>fiddle here You can something like this [CODE] 3 rows affected [CODE] id | value :- | :---- 1 | music 2 | music 3 | movie 4 | movie 5 | movie 6 | bo...
0
0
5,751
2021-06-09T17:57:36.173
database_errors
dba.stackexchange.com
266,891
Unit testing and reality
I m actually studying Unit testing, reading some articles on the internet and trying to understand how it works exactly, but it's not very clear for me actually. What should I test ? I have seen that it's a good thing to create interfaces and make our testable classes implement this interface (permitting to implement i...
I've had contractors who have left after creating a database layer with a set of unit tests which passed, but didn't actually save anything to the database so everything was lost if you restarted the system. So test the parts of your system you want to work by writing tests which compare the expected behaviour with the...
2
10
579
2014-12-19T09:48:33.970
database_errors
softwareengineering.stackexchange.com
103,345
LEFT OUTER JOIN-ing the same table, grouping, summing and finding 0 or NULL
I have a table where I record searches performed on my site, [CODE] . An id is automatically assigned to entries. If the searched phrase is more than one word, my system splits the words and performs another search on each of them, setting a column - called [CODE] - to the original search id. For instance: A user searc...
I think you may want something like the following. Note that there was an error in the SQL Fiddle, so the first query corrects the data so that the desired results are returned! [CODE]
2
1
7,627
2015-06-05T15:37:35.690
warehouse_errors
dba.stackexchange.com
1,094,473
Powershell ssh connection from linux to Domain Controller is extremely slow
I have PHP application to create user accounts in our Windows Active Directory. This application is running on Apache and Debian 11. I have LDAP only (because of some apps which are not supporting LDAPS), so I'm unable to set password directly from PHP. I'm trying to achieve this using powershell via ssh. I have instal...
I already solved it. There was no problem at all, at least for the task I want to achieve. I used putty to connect to Linux VM and then from there I tried to run these Powershell remote commands to connect to DC and it was extremely slow, as I described, but when I connected to Windows server with ssh command (outside ...
0
0
684
2022-02-22T18:00:12.580
infrastructure
serverfault.com
234,731
how do you uninstall an xampp installation that refuses to uninstall?
I downloaded xampp 1.7.3 (32) on windows 7 (64) in the programs(86) folder. both MySql and Apache refuse to run, they start and then instantly turn of. All ports are free. So I decide to uninstall however, when i run the uninstaller I receive the following error [CODE] Why is there spaces in the above line and does thi...
Delete the file and pretend the installation never happened. Or system restore :-(
0
1
2,561
2011-02-12T13:58:36.473
database_errors
serverfault.com
177,895
How to compile PHP Version 5.2.13 with zip support on CentOS?
Hi i am having a big problem, i have a vps with centos installed on it. But i have a script which needs php zip library i checked on php.net it says "In order to use these functions you must compile PHP with zip support by using the --enable-zip configure option." i have PHP Version 5.2, Please Guide me how am i going ...
At command line: [CODE] In convenient batch form that you should be able to copy and paste: [CODE] If the configure fails.... The configure may fail - if it does you most like need the devel library of what is missing (look at the output.) If it is bzip for example you would use the command [CODE] In your case it might...
3
4
8,910
2010-09-03T19:59:40.690
infrastructure
serverfault.com
140,679
Why is there no facility to overload static properties in PHP?
Intro PHP allows you to overload method calls and property accesses by declaring magic methods in classes. This enables code such as: [CODE] Apart from overloading instance properties and methods, since PHP 5.3.0 we can also overload [CODE] methods calls by overriding the magic method [CODE] . Something missing What is...
Quoting http://marc.info/?l=php-internals&m=121578194822276&w=2 Was static member overloading added in PHP 5.3? I noticed that static method overloading was (__callStatic). The two would complement each other and it just seems natural to add these as well. I did notice that they are apart of the "static-class" RFC and ...
13
11
3,287
2012-03-20T10:33:45.663
api_errors
softwareengineering.stackexchange.com
367,317
MediaWiki Internal Error
I have been running a mediawiki server for many years now at my company. Recently to combat a problem I was having with PDF uploading when they contained metadata, I have moved to the latest revision of all the software on my Gentoo box (Mediawiki 1.18.1, PHP 5.4.0, PostgreSQL 9.1.3) Now certain pages (two category pag...
OK, so I have solved the problem. It turns out that the problem is PHP 5.4.0. I downgraded to PHP 5.3.10 and the whole thing works perfectly again. For some reason version 5.4 causes there to be some sort of issues when interfacing with PostgreSQL. If anyone knows the reason for this, I'm sure I'm not the only person w...
1
0
620
2012-03-07T17:38:00.097
hadoop_errors
serverfault.com
86,748
use an Index correctly to optimize queries
I have an SQL database with millions of records and when I'm querying the data like [CODE] The tables has 1,323,718 rows and it gives me like 50,000+ rows which is surprisingly taking more than 3 minutes. So I am now thinking of how I could improve this performance. I find one way is to create an index on the column "S...
Your query is no faster with the index because SQL Server has determined that it would be more efficient to do a Clustered Index Scan, than use the [CODE] that you have defined and perform a Key Lookup to retrieve the extra data needed. As you've only defined the index on [CODE] , with no [CODE] columns, each extra col...
3
8
2,104
2014-12-22T08:20:11.777
database_errors
dba.stackexchange.com
235,091
how to use substring with a delimiter
Employee_M [CODE] I'm trying to extract all digits after the third / with substring [CODE] sometimes we can have between 4 to 10 charterers after the third / so I chose 10 for the length. any idea how to fix that.
You can use the [CODE] function to get the position of the last [CODE] [CODE] means you are looking from the end of the string. Then you add 1, so your start position will be the first character after [CODE] . You do not need the third parameter in [CODE] if you need the substring until the end of the string. [CODE]
0
1
1,853
2019-04-17T20:02:16.090
warehouse_errors
dba.stackexchange.com
620,640
Upload files from vsftpd ftp client in /tmp and once they are uploaded, move them to original folder
I'm having issues with my application. The scenario is that, there is a php cron which is running every 1 minute and it processes the uploads folder, wherein, files are uploaded via ftp server(vsftpd). If the server is uploading a file which is 1GB, the php cron will process the files, even if it is not uploaded comple...
No, it does not have this function built in. There are solutions to this though. The probably best is, to tell the uploading program to upload it with a different name, e.g. [CODE] and once the upload is completed rename it it the normal name. The advantage is: The rename is fast (since the file is on the same filesyst...
1
1
2,255
2014-08-15T09:14:58.840
infrastructure
serverfault.com
180,894
Simplest way to do failover routing with Dell PowerConnect core switch
I have a number of remote sites connecting back to head office via Cisco ASA 5505s and Cisco PIX 506es. At head office we have an old Cisco 3000 VPN Concentrator, and a new Cisco ASA 5510. The remote sites use Easy VPN to connect (so they show up as Remote Access sessions, not Lan2Lan). I am in the process of migrating...
If possible, go to dynamic routing. Given the right physical setup, using static routes with different metrics will give you decent fail-over behaviour. A router normally doesn't track reachability for next hops, it tracks "interface up" or "interface down" and if at least one interface that is a suitable egress for a ...
1
1
3,471
2010-09-14T09:40:29.867
database_errors
serverfault.com
431,239
Long Gigabit Ethernet Run
I am trying to get an Gig-E network between two buildings that are approximately 260 ft. away. While some TRENDnet switches failed to be able to connect to each other over Cat 6 at that distance, two Netgear 5-port Gig-E switches do so just fine. However, it still fails after I put in place APC PNET1GB ethernet surge p...
While Ethernet runs should extend up to 330 feet, as you've found many pieces of cheap equipment don't meet that specification. The most reliable solution you'll find here is to run fiber from one building to the next. It provides inherent galvanic isolation, so there's no need for surge suppressors (which probable don...
11
18
2,227
2012-09-24T02:23:41.350
infrastructure
serverfault.com
769,917
why it seems ajax request tax server more than standard http post?
I have a web application with much user accessed in the same time. that make our servers going so slow and heavy, because every user will upload pdf file or text from 10mb to 100mb per submit. submitting with ajax request(file converted to dataurl) will make server more busy than i just upload use standard http post. o...
System idle time is the time processor spends doing nothing, and that is not a problem. As for the file upload, the problem could be the actual encoding of the file. You mention that the file is converted to dataurl in the Ajax request, which means the file is encoded to data URL format on upload, and decoded by the se...
0
0
110
2016-04-13T00:06:22.197
infrastructure
serverfault.com
308,669
allow anonymous access to the job's config.xml in Jenkins
I want to switch our Jenkins to server to a better machine. The new Jenkins is installed and configured, but without the jobs. I planned to use Jenkins job import plugin in order to import all the jobs, but I have a small problem. My old jenkins installation requires login in order to see the config.xml, even though th...
You might be better just copying over all the job configs. These will be in $JENKINS_HOME/jobs - copy that whole directory to your new instance or, if you don't want the build history, just copy the job subdirectories and their config.XML files. Then restart Jenkins and you should be OK.
1
1
3,877
2011-09-06T19:16:18.553
pipeline_ops
serverfault.com
234,331
CentOS php fopen permission denied error
I am not very familiar with CentOS and its specific permissions issues with httpd+php environment so that I got stuck with "failed to open stream: Permission denied" after installing website on production server. I have directory layout like that /usr/local/project ... /usr/local/project/../../public /var/www/html -> /...
Check if you have SELinux enabled? If yes then disable it http://www.electrictoolbox.com/switch-off-selinux-centos-5/
1
4
8,362
2011-02-11T11:44:24.087
infrastructure
serverfault.com