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
173,613
Creating a Application in Winrt that requires Internet
I am making a paid App for Windows 8, c#. I am wondering which is better? If my application doesn't need internet connection normally but does requires internet connection for the first time to download content data. --Makes my life easier Load the default data when installing. Then ask the user if he wants to update i...
I think you can be safe in 2012 saying that "broadband internet is required to fully use this product" --- many other things people love and use require it. I would probably undergo creating the default data for demo / testing / refence purposes. The fact that it shows well when a user first opens the app is nice. As @...
0
2
492
2012-11-05T02:08:34.733
api_errors
softwareengineering.stackexchange.com
159,943
Testing my VB.NET code?
I'm having trouble developing unit testing approaches to testing both if the "code does what I want it to do", and testing "does my code work". For example, I'm writing code to validate input that will be inserted into a database table, so I need to test if my code does what I want it to do - Good input is accepted, ba...
Unit tests should be built based on requirements and constraints that you know about. They will only ever be as complete as your thought processes. The wonderful thing, however, is that when you encounter a bug that you had not foreseen or tested, you can create a new unit test that covers that case even before you imp...
3
5
2,456
2012-08-07T21:56:44.317
api_errors
softwareengineering.stackexchange.com
256,388
Fixed: Apache - PHP permissions to create / edit files and directories?
I have a server on rackspace clouds... Fedora 13, and I installed apache, mysql. Now, I have a piece of code (PHP) that my web app uses a lot. It works on my local machine running XAMPP, but when I upload this code on my rackspace server, it doesn't work: [CODE] Really simple PHP code that should just work. However, it...
Giving the apache user write access to your entire DocRoot is not ideal. I usually configure things a bit differently. First I identify a place where the files will be written - this can be in the DocRoot, or it can be in a separate location that's brought in with an Alias configuration in apache. I create a group (usu...
1
1
6,185
2011-04-06T14:22:54.177
database_errors
serverfault.com
51,979
Small projects using the cathedral model: does open-source lower security?
We know of Linus' law: With enough eyeballs all bugs are shallow In general, people seem to say that open-source software is more secure because of that very thing, but ... There are many small OSS projects with just 1 or 2 developers (the cathedral model, as described by ESR). For these projects, does releasing the so...
I think it probably does lower security a bit, for an open source project that's so small or obscure that nobody but its authors are really looking at it. In that case, you aren't getting any help with security from a community, but if someone did for some reason target your small obscure project, they'd have an easier...
5
1
467
2011-02-25T16:24:32.367
api_errors
softwareengineering.stackexchange.com
174,566
wsus updated report
I have approve one update and it gave an error "faild", so after troubleshooting and get the update installed on that client. its still appear from wsus console that computer have error. will it be updated, or it will keep appearing as failed ?
Its seem that its only need time to be updated.
0
0
83
2010-08-25T22:54:52.840
infrastructure
serverfault.com
335,034
PostgreSQL stored C function is 60 times slower than standalone C code
I am trying to build stored function in C, which will take one array of bigint as argument, and return another array which is copy of parameter array but with all elements incremented by 1. My problem is that when I run this code as standalone program, it runs very fast: 0.1s for 10M elements, but it takes 6s when run ...
This is mostly about storage. If you just throw away the output ( [CODE] ) rather than creating a table with it, it is much faster. And in your dummy code, all the values are zero, which makes the output string highly compressible and compressing it faster than storing it. (30MB with real code vs 960kB with dummy code)...
0
2
64
2024-01-20T05:15:25.977
database_errors
dba.stackexchange.com
266,239
Cannot lower/figure out per connection mariadb memory usage
I'm running a small mariadb DB to serve some websites and monitoring tools (nexctloud, wordpress and icinga2). The machine that works as a DB server also run an elasticsearch + graylog instance so I wanted to lower the maximu memory footprint mariadb could reach. Running mysqltuner gives me the following memory results...
Suggestions to consider for your my.cnf [mysqld] section [CODE] You will find your RAM footprint is smaller in 'top' report with no performance penalty. View my profile, Network profile for contact info and free downloadable Utility Scripts to assist with performance tuning. Consider adding 8GB RAM when usage increases...
0
0
1,065
2020-05-01T00:36:29.557
pipeline_ops
dba.stackexchange.com
160,103
PHP PSR-0 + several namespaces in one file and autoload
I've been thinking for a while about defining several namespaces in one php file and so, having several classes inside this file. Suppose, I want to implement something like [CODE] : [CODE] It would be nice if I had all of this in one file - [CODE] : [CODE] What I'm thinking of is directories naming convention and, unl...
Keep using a single file per class. You use APC, right? If you don't, start doing it right now. APC will cache the opcode, thus there will be no performance hit on the file checking. It's not worth losing so much readability.
2
5
2,532
2012-08-09T02:23:26.783
api_errors
softwareengineering.stackexchange.com
177,916
issue when promoting a second server as domain on r2 2008
I'm in an odd situatuion here, I've upgraded my network to a 2008 domain from a 2003 with out any issue, this works fine and all the FSMO are in one DC, I was about to install a second domain on a 2008R2 and this error is coming up again and again. I The problem is I keep getting an area telling me that I need to run a...
Are you running adprep from the R2 DVD on the older 2008 system? R2 has its own active directory modifications. If your older DC is a 32 bit system you will need to run the 32 bit adprep rather than the 64 bit one. Ian
-1
0
56
2010-09-03T11:44:11.360
infrastructure
serverfault.com
39,736
Error PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records
i've problem here. i wanna create a Stored procedure like below, but i encountered error PLS-00436: implementation restriction: cannot reference fields of BULK In-BIND table of records. [CODE] please help me to solve my problem, thanks
[CODE]
0
0
1,333
2013-04-11T09:27:59.747
database_errors
dba.stackexchange.com
487,927
Nginx: unknown directive "ngx.flush(true)"
I'm having some trouble by using the nginx devel (ndk) and lua-module. I compiled nginx-rpm using the following configuration: [CODE] Calling [CODE] after the installation also shows that ngx and lua seems to be installed/activated. But... when I do the following: [CODE] I always get the following error: [CODE] What's ...
[CODE] is one of NginxLuaModule's Lua functions, not an nginx configuration directive. To achieve the behaviour you seem to be desiring (just flush the content), do this: [CODE] You have to wrap Lua code into one of the [CODE] directives, or load the code from a file using one of the [CODE] directives in your nginx con...
0
1
1,987
2013-03-14T19:52:17.873
infrastructure
serverfault.com
384,360
How to route/redirect my Internet traffic through another router/node on the net?
I am trying to access some content on the Internet which has some stupid geographic restrictions (access limited from a specific country. Most likely the restriction is IP based. I happen to have access to a local internet connection in the country that can access the content. I would like to know how to tunnel my conn...
I don't think this is possible. Your router's interface that is connected to the service provider's network can very likely only talk to the service provider's router. From there, you have no control over how they route your traffic.
1
2
10,550
2012-04-30T00:04:40.467
infrastructure
serverfault.com
254,383
How to know whether to create a general system or to hack a solution
I'm new to coding , learning it since last year actually. One of my worst habits is the following: Often I'm trying to create a solution that is too big , too complex and doesn't achieve what needs to be achieved, when a hacky kludge can make the fit. One last example was the following (see paste bin link below) http:/...
A good guideline that helps knowing when to create a "large", general and abstract solution, and when to just solve the specific problem, is The Rule Of Three. The Rule Of Three is often applied to duplication: i.e. "if code is duplicated more then twice, move it to a function". However it also applies to the abstracti...
1
10
236
2014-08-25T14:18:52.180
api_errors
softwareengineering.stackexchange.com
82,650
MongoDB Replica Set Can't be connected To
I just set up a replica set for a standalone Mongo instance using the following changes to my config and rs.initiate(). [CODE] When I check the status of the replica set from within Mongo it seems to be setup properly: [CODE] However when I try to run a test I get the following error: [CODE] The connection code is a si...
It turns out that the host wasn't properly added to /etc/hosts. Adding it seemed to solve the problem.
0
1
3,888
2014-11-14T08:45:49.903
database_errors
dba.stackexchange.com
700,801
EAP-TLS for Wireless with Active Directory
My question is more from a conceptual point of view, rather than implementation (even though I'm asking about proprietary protocols and products). Assuming I have users and credentials set up in my Active Directory. Users can log in to their desktops using those credentials. As far as I understand it, I can use Microso...
NPS as Radius server uses the Active Directory to perform authentication. When using PEAP (MSCHAPv2), the client sends the radius server a hash of its password. This hash is eventually compared to the contents of the directory (no decryption here). You could consider NPS as some sort of passthrough here. I can't see wh...
2
3
1,881
2015-06-22T21:12:38.827
infrastructure
serverfault.com
186,594
How Google apps domain is being set up for naked domain redirection?
I've purchased a domain as part of google apps "standard" edition signup. This is how the zone record was configured on godaddy: [CODE] Now, I know that google app engine does not support "naked domains" and indeed a forwarding is configured from vekslers.org to www.vekslers.org. What I don't understand is how this is ...
Looks like it: [CODE] 216.239.32.21 is owned by google, so it looks like they are emitting the redirect to www.vekslers.org. When they say they do not handle "naked" domains I think they mean you cannot serve your site from a naked domain. Instead you have to let them redirect the naked address to the non-naked one as ...
1
1
2,497
2010-10-01T13:17:42.490
infrastructure
serverfault.com
121,704
Apache2 benchmarks - very poor performance
I have two servers on which I test the configuration of apache2. The first server: [CODE] Second server: [CODE] The following test results, which are very strange! New server (dynamic content - php via fcgid+suexec): [CODE] Old server (dynamic content - mod_php): [CODE] Old server: Static content (jpg file) [CODE] New ...
The thing that jumps out at me is worker vs prefork. To isolate, you should try running prefork on the "new" / "second" server. I'm also skeptical of the "old" benchmark: [CODE] that is equal to 1.03 GB/s, or 8.2 Gbps. Obviously, that is faster than a 1 Gbps port. Are you running the same test here, or benchmarking the...
1
1
1,101
2010-03-11T22:22:25.340
infrastructure
serverfault.com
120,005
Are there any tests I can run on a network to simulate 100 heavy network users?
I will be hosting a Ruby on Rails workshop at a small hotel in the near future, and while they have 'Wifi' everywhere on the property, and the property normally hosts 150 - 300 people, I am not 100% confident that they have hosted 150 tech people that tend to have heavy web surfing habits/needs. Their tech department i...
Simulating users is very hard. There are various sorts of load generators, but in the end you have to make assumptions about how your users use the network, and what service level you want to give them. Without this you are pretty lost. There is a huge difference between 150 users checking mail, and 150 users on netfli...
6
2
1,942
2010-03-07T08:39:14.907
infrastructure
serverfault.com
877,112
am I tracking Debian Stable or Testing?
When I installed Debian, I clearly wanted to track Testing. a bit after that though, I installed Firefox from the unstable repo, not thinking too much :) I wonder if I am tracking unstable or testing now (I started having a few problems with my install, this is why I am asking). The following is the current content of ...
You have testing for Debian, stable for Opera, but confusingly, although you've labeled it 'Opera repo', you're also using the Debian unstable repo. I believe you're likely to end up with dependency issues when you mix repos like this. If you want to use software not available in your default repo, perhaps you should t...
0
1
193
2017-10-05T18:28:58.203
infrastructure
serverfault.com
382,826
What is the best alternative to BFD? Somethings to block DDoS and Brute Force Attacks?
I have an Ubuntu server which is running Nginx and have a Wordpress site. I need good protection for it. Recently I found that BFD is causing some problems so I had to disable it. Does any one know of a better solution?
you can try fail2ban and write custom rules. regardless of the log-parser - make sure your logs are small - eg rotated daily.
0
1
648
2012-04-25T03:24:13.610
infrastructure
serverfault.com
142,127
Exchange 2010 Where did import go
I see a ton on articles on importing PST files in Exchange 2010, but I do not have the option. I need to import PST files, can anyone shed some light. I added the administrator to the “Mailbox Import Export” role using the following at the exchange management shell. [CODE] I installed Outlook as recommended here , but ...
It turns out I needed to have both Outlook 64bit, 32bit will not work. I also needed to assign a role to my user: [CODE] I found the solution here .
1
2
280
2010-05-15T08:49:27.077
infrastructure
serverfault.com
360,696
pattern to unlock thread and get variable in fast unlock
I have a thread that goes in a loop doing something like this [CODE] where exit will be updated in a different thread to true if needed. My problem is that this works fine when do_something takes some time, but if it doesn't the other thread never gets the mutex back. Or it takes too long to do so. What is the correct ...
The basic problem here seems to be that this thread keeps the mutex locked by default, and only unlocks it for a limited period of time when it's sure it doesn't need to the mutex. Normally, you want to do roughly the opposite: the mutex is unlocked by default, and only gets locked for a short period of time when absol...
0
4
587
2017-11-13T08:35:41.183
api_errors
softwareengineering.stackexchange.com
890,994
Problems migrating GoDaddy record sets to AWS Route 53
I've migrated a domain name from GoDaddy to AWS's Route 53. The problem I'm having is that emails are not being delivered to the email exchange. Everything else seems to be working just fine. I've contacted GoDaddy about this, and they said I need to copy over the record sets from my domain on GoDaddy to Route 53. Belo...
First, redirect emails to my GoDaddy email client does not make any sense in terms of DNS. The DNS service should have a record which points at the server which is designated to process all incoming mail for your domain. Second, to configure which server should process incoming email for the domain, the domain zone (wi...
0
0
997
2018-01-06T11:45:08.487
infrastructure
serverfault.com
693,034
SSL broken encryption in Firefox
I have an SSL wildcard certificate installed on a number of servers, in Firefox the padlock is broken citing a issue with encryption. [CODE] All other browsers have no issue with the certificate. This is my Apache config: [CODE] I can't use TLS 1.1 as centos doesn't support it. The cert is actually 256bits, so I think ...
You shouldn't use RC4 in any cipher suite, as this cryptographic protocol is considered broken and has been prohibited by the IETF . Thus the warning from firefox on the use of a RC4-based cipher suite. You should update your SSLCipherSuite to something such as [CODE] Even better would be to take one of the SSLCipherSu...
2
5
1,829
2015-05-19T14:29:17.790
infrastructure
serverfault.com
14,301
How is my branch is one commit behind master
I have a branch and I merged it into the master branch (via Pull Request).Then I un-ticked the box to not delete the branch. Now when I look at the branches this particular branch shows as 1 commit behind the master branch. I don't understand this, how can it be a commit behind when the commit was what was merged from ...
From what you've described, it seems the "one commit" is a merge commit. This is due to how git works: depending on the steps you performed to get your code merged, it will or will not create a merge commit in the target branch. Check your git history to confirm it. If that is the case, you can safely ignore it. In a t...
3
2
11,251
2021-07-09T12:04:14.427
pipeline_ops
devops.stackexchange.com
116,395
IIS Manager - Connect to Another Server (Win7 to Win2008 server)
I am running Windows 7 Ultimate. If I open up IIS Manager, I see a list of "connections" on the left hand side. In previous versions, I would be able to select an option to "connect to another server" or "connect to another machine", but there is no such option visible anywhere here. The only thing in the list is my lo...
Turns out I needed to install "IIS Manager for Remote Administration", which is discussed (and available for download) at http://www.iis.net/expand/IISManager . Why this is not part of the Windows 7 "Remote Administration Tools" I'm not sure. But after installing this I get the additional "connect" options.
43
47
26,617
2010-02-24T20:07:02.037
infrastructure
serverfault.com
33,966
Make sure MySQL is not accepting remote connections
I am currently doing development for a LAMP-based website. I do not know what configuration changes have been made to MySQL since it was installed on our server. The way that we use MySQL, there is no reason for our database to accept any remote connections; it only needs to be accessed locally either via PHP or throug...
Do: [CODE] If something similar to the following line is returned: [CODE] .. it means that it's listening on all interfaces. If something similar to the following line is returned, and no other lines: [CODE] .. it's already configured to only listen on [CODE] . If there are lines with other IP addresses before the [COD...
4
9
2,688
2013-02-01T14:06:47.703
database_errors
dba.stackexchange.com
263,042
Tracking internal builds versus public builds
At our office, we use JIRA to track issues reported by our QA teams. We also have Bamboo which builds each time we commit to our Git (Stash) repository. QA picks a build from Bamboo and they work with that build for about a week. Once all of the issues they filed on that build are resolved, they pick another build and ...
Presumably, build 1.0.50 happened on a certain date, and any Jira tickets resolved before that date represent fixes or features contained in that build (if not, the "resolved" status is probably being misused). So it should be possible to accomplish this by making custom filters that list all tickets resolved between c...
4
1
1,001
2014-11-17T16:03:31.347
api_errors
softwareengineering.stackexchange.com
447,211
Windows 7 : access denied to ONE server from ONE computer
We have a domain served by some Windows 2003 servers. We have several Windows 7 Pro clients. ONE client computer can't acces ONE member Windows 2003 server. The other computers can acces every servers. And the same computer can access other servers. With explorer, the message says the account is no activated . With the...
I just had a similar problem. It was related to an entry into Credential Manager into the Control Panel. The Credential Manager allow to define which user access to which server. So it may help you.
5
4
4,542
2012-11-09T18:53:19.077
infrastructure
serverfault.com
1,156,130
Smooth mouse scrolling and mouse cursor severly lag or are delayed when cpu usage is 100% on all cpu threads
Laptop: Asus Zenbook UX305UA OS: Windows 10 Problem: when cpu usage of the laptop is at 100% (especially when more threads are running/scheduled than there are cpu cores/threads -- this is often the case when multiple multi-threaded apps run at the same time), the mouse smooth scrolling and "handling" is severely delay...
See if the Asus Smart Gesture app/process runs at an appropriate cpu priority. In my case, the process is consistently auto-ran on system startup at the "below normal" priority. Open the Task Manager (Ctrl + Shift + Esc). In the Processes tab, sort by name, and locate the "Asus Smart Gesture Center". Right click on it ...
-2
0
28
2024-03-12T13:02:54.073
database_errors
serverfault.com
151,220
HAproxy roundrobin balancing does not appear to be distributing evenly
I know that with loaded servers, roundrobin in HAproxy (1.4.4) does not evenly distribute, but my servers are currently getting NO traffic (test setup), and roundrobin balancing does www1,www1,www1,www1,www1,...www2,www2,www2,...,www1... I'm verifying this by having the script being run on each server cat /etc/HOSTNAME...
You should definitely observe the load you're expecting. I suspect that some of your servers are regularly failing to respond to health checks and that they're regularly pulled out of the farm then reinserted once their load drops and they can respond again. Also, how do you observe the unbalance ? The logs only log wa...
6
2
7,468
2010-06-14T21:33:46.610
infrastructure
serverfault.com
337,827
How to change insert values from 0 to NULL for a specific field in order to avoid foreign key violation?
I have a foreign key linking [CODE] to [CODE] . Unfortunately the program where users enter information is attempting to insert into INSTRUMENT with a value of [CODE] for vendor. I need to intercept the insert and change the value to NULL if it is 0. The only way I know how to do this is to create an [CODE] trigger on ...
The most concordant solution would be to change the front-end application so that, in the first place, it inserts Null instead of 0. If this isn't possible, it might be relevant to explain why as part of the question, to understand exactly what the profile of limitations are on a solution. As @SergeyA notes in the comm...
0
2
49
2024-03-18T20:45:31.467
warehouse_errors
dba.stackexchange.com
408,127
CentOS 6.3 X86_64 RAM detection
I have a machine with 8GB ram (BIOS sees it, so my motherboard and CPU supports it), and I installed CentOS 6.3 on it. When it starts up, it only see 3.1GB. [CODE] [CODE] dmesg | grep -i memory says: [CODE] Update: Memtest see all the 8GB, and [CODE] too. But [CODE] still see only 3.1 GB. Question: How can I repair/mod...
It looks like you are running a 64 bit kernel. You should not need to install a PAE kernel. I originally had an answer here explaining how to install the PAE kernel because at first I somehow missed the fact that you have a 64 bit kernel. My (very limited) interpretation of your BIOS-provided physical RAM map is that y...
2
3
8,871
2012-07-16T12:56:34.770
infrastructure
serverfault.com
723,084
Nginx Passenger MySQL connects only locally
Fresh server, installed using the digital ocean guide here . Ubuntu 14.04 Passenger 5.0.18 Nginx 1.8.0 I can deploy my app to the server via capistrano no problem. I can also load the rails console using [CODE] and query [CODE] with proper returns. Nginx doesn't seem to want to connect to the proper database. [CODE] It...
My problem was in the environmental variables were not being loaded into Nginx properly. [CODE] is where the variables were stored and the call to load them needed to be placed higher up in the .bashrc
0
0
93
2015-09-17T16:59:54.167
database_errors
serverfault.com
334,492
How to delete massive files via ftp or ssh?
On my servers, one of the scripts that I have been using keeps creating the blank files at root and I haven't been noticed for more than over 6 months and now total files are created more than 500,000 files. I cannot access that directory through control panel because there were too many files and I can only access wit...
As sam pointed out I'd put a PHP or Perl file on your webspace which deletes the files from the directory. Be sure the script cannot be found easily by anyone else but you and ensure the values in it cannot be overwritten via POST or GET.
0
2
8,657
2011-11-24T14:10:18.753
api_errors
serverfault.com
305,695
Sharepoint forms-based to integrated authentication
We have an existing Office SharePoint 2007 server farm doing out of the box NTLM integrated authentication. Our web developer would like a landing page for external users using forms based authentication. If we add FBA with the active directory provider then it appears we have to create duplicate user records inside of...
What we did was create a second URL for the FBA users, so users with NTLM-based credentials go to the original site and external users needing FBA go to this new URL. They both get served the same content, just with a different URL. I don't remember all the details off the top of my head, but I remember the biggie was ...
3
0
151
2011-08-28T02:35:25.363
api_errors
serverfault.com
519,808
Dynamic multiple domains in one project
I searched stackoverflow and google before posting this question. I am developing a [CODE] based dynamic conference website. Where users can register and create their own events for conference. Currently I have unique URL for each event and used [CODE] for that. For example: http://www.mydomain.com/event_name_1 http://...
You're not trying to do anything too special, and it's definitely possible. The way in which this is generally achieved is as follows: You configure a subdomain which is designed for receiving visitors redirected from an external domain. For example, [CODE] . The page on the end of this will look at the headers and que...
1
1
286
2013-07-01T05:43:17.710
infrastructure
serverfault.com
814,135
how do i turn off postfix bounce notice
In main.cf currently I have [CODE] Followed another thread, and it recommends setting bounce to "discard", of which I have done. [CODE] I am still getting a notice email to postmaster for each bounced spam. What else do I have to set?
In main.cf set [CODE] and [CODE] (which should be the default. And then postmaster gets the copies of every bounce message. You MUST NOT disable bounces. They are needed to notify the sender! And as there has to be a sender for a mail, this particular sender will be informed.
2
0
2,569
2016-11-10T06:19:44.600
infrastructure
serverfault.com
606,228
URL-Rewrite to One site But not the Other
We have our own domain and have several subdomains. One of the sites needs to be accessed only via SSL, but people are allowed to type http and still arrive there. The URL-Rewrite forces the http into https. So my two subdomains are: [CODE] and [CODE] . Thus, if I type [CODE] it is rewritten to [CODE] -which is correct...
In the web.config for the particular site that I want to be accessed via [CODE] , and to have [CODE] rewritten to [CODE] , I set this: [CODE]
0
0
843
2014-06-18T19:15:22.537
infrastructure
serverfault.com
808,680
url being appended to redirect link htaccess
In my .htaccess file whenever I create 301 redirects, the url to be redirected from is appended to the url to be redirected to. For example: [CODE] Will redirect me to: [CODE] The existing .htaccess file: [CODE] I feel like I have resolved this issue in the past, but I can not remember what it was that I did. Does anyo...
This is the result of a conflict with your mod_rewrite directives, which are executing before the mod_alias [CODE] directive, despite the apparent order in your config file. Different modules execute at different times during the request. For this reason, it is not recommended to mix redirects from both modules. Specif...
1
1
777
2016-10-12T18:10:14.080
infrastructure
serverfault.com
36,966
md5sum repeatedly gives different checksum for same file on same machine
I have a very small and quite old hard drive disk, about 32G. On to this disk I have copied a largish tar file, about 5G. When I run md5sum to generate a checksum on this file I repeatedly get different results (on the same machine and the same file). This obviously should not happen. If I repeat the experiment with a ...
It may be worth running [CODE] (or the equivalent for whatever filesystem you're using) to fix disk errors. But, it could be the last thing this drive does if it's on its last leg.
7
8
13,538
2009-07-07T12:22:01.480
infrastructure
serverfault.com
220,772
where is this SPF problem occuring
Inbound mail to a specific user is been forwarded to his external mailbox at another domain. Add mails are routed correctly with the exception of one domain. When mail are sent to users of my domain, including that user, the mails are delivered to everyone except him...as the mail admin I am getting the message The fol...
You are trying to forward emails from a domain that has SPF records, but that domain does not list your server as a valid source of email for that domain. Your choices are: Contact somedomain.co.uk and tell them you're forwarding their mail and want to be added to their SPF record. Contact the "external mailbox at anot...
2
3
1,371
2011-01-10T18:39:20.387
infrastructure
serverfault.com
334,312
How specific do unit tests need to be?
I'm not really sure what/if there is a gold-standard on how much a unit test should be broken down. Another thing is sometimes I question whether I am wasting my time on a specific test. I am new to unit testing/TDD. So for example, say I have some simple code like this: [CODE] My first two unit tests look like this: [...
Don't try to get from unit testing more than you can. In order to make sure a function is correct, you should test it with all possible inputs (most often, that's really expensive, if not impossible). Thus, when writing tests, keep in mind that a function that does pass the tests is not correct, but rather it has a low...
0
2
613
2016-10-21T23:06:15.270
api_errors
softwareengineering.stackexchange.com
701,226
iptables blocking some of the traffic on ports 80 and 443 when it shouldn't?
A web server I'm administering shows weird iptables denials from IPv4 addresses on destination port 443, despite HTTPS traffic being explicitly allowed. Port 80 is also allowed in the same rule, but the site is HTTPS-only and 80 is immediately redirected to 443 by nginx. Thing is: browsing the site works . You can load...
RST and ACK,FIN packets are part of the very tail end of a TCP connection. My understanding is that [CODE] 's connection tracking engine takes a pretty robust approach to deleting state table entries, for security reasons: as soon as it sees one end of a connection trying to close it down, then (knowing that such a req...
3
3
2,219
2015-06-24T09:08:39.883
infrastructure
serverfault.com
40,559
I got an issue with database as Cannot create JDBC driver of class 'com.mysql.jdbc.Driver
Here is the screenshot for it [ ] I added everything but am getting error can anyone pls rectify where i did mistake ....!
You have a typo in your JDBC Connection URL you need to replace [CODE] with [CODE] and your configuration should start working as expected. Also don't forget to restart JMeter after any .jar file added to JMeter Classpath , the class loading is not dynamic unless you add the .jar on Test Plan level You might also be in...
-2
1
3,267
2019-08-27T04:26:56.380
database_errors
sqa.stackexchange.com
14,690
Is it possible to loop through EC2 resources created with a count variable, while in the same module?
I have an EC2 module, which determines the number of instances via a count variable, like so [CODE] I would like to subsequently create EBS volumes in the same module, and attach them to each of the instances created. The problem I encountered with this though, is that I need a way to pass the id of each volume to all ...
What would the value of [CODE] be? Wouldn't this work? [CODE]
2
0
395
2021-09-16T20:59:02.087
pipeline_ops
devops.stackexchange.com
306,095
MySQL not getting installed on ubuntu 8.10
I am facing this issue. Please help me. [CODE]
There's been 5 new Ubuntu releases after 8.10, and I doubt it's still supported at all. My guess would be the repositories hosting Ubuntu 8.10 have disappeared and thus your system can't load the packages necessary for the installation. I would start by upgrading the Ubuntu to 11.04, or at least to the latest LTS-suppo...
0
3
147
2011-08-29T13:56:40.770
database_errors
serverfault.com
447,860
Why is it necessary to mark classes as not inherited from? Can't an optimizer automatically detect that virtual calls are unnecessary?
In C# and C++, an apparent trend is in place to reduce / avoid inheritance: C#: "Sealing types can improve performance." https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1852 C++ "Prefer concrete types..." https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#SS-concrete I can ...
Don't we need to take a step back here? Under the hood, it generally all boils down to simply functions being called the with the [CODE] pointer as first arg. It's good to question things from first principles! In this case though, this is a bit of an over-simplification. Yes, methods are just functions that take a rec...
14
36
5,740
2023-09-30T20:59:17.107
api_errors
softwareengineering.stackexchange.com
705,149
Can't Start/Restart MySQL. Even After Reboot
Can anybody please help me? I'm afraid of losing my data. MySQL just stop and when I try to restart or start it, I can't. When I look at the log file, I see the following info: [CODE] I've search the internet for possible solution but I'm afraid that I will be reading the wrong article. Could anyone please suggest what...
First and best: This error can also be caused by malfunctioning hardware. Spin up a new system somewhere and try to bring your database online using it. You can copy the entire contents of your mysql directory tree over the top the new one. If that fails too. InnoDB: Failing assertion: addr.page == FIL_NULL || addr.bof...
1
1
4,663
2015-07-12T11:09:00.893
database_errors
serverfault.com
515,764
How to determine if you need to upgrade memory?
My CentOS server's munin graph shows high swap, but the amount of apps memory seems low. Does this still mean I need to upgrade my memory? What is causing all that swap? Is it because of the committed memory? What does it mean when swap_cache is high? What is the best determining factor when I need to upgrade the memor...
You need to upgrade memory if you are suffering from low performance and can determine that the cause is the system's working set exceeding the amount of physical RAM the system has. None of the parameters you are measuring are particularly useful for that purpose. What you want to look at is paging I/O, load average, ...
0
5
380
2013-06-14T08:26:34.347
infrastructure
serverfault.com
893,746
sendmail stripping From: address for apache www-data@localhost sent PHP mail()
I am setting up a Science Fair in a Box server that uses apache2, PHP5, and sendmail (although we've uninstalled sendmail and installed postfix with no change in problem ) to send participants their login / registration number. When the PHP mail() is called it has the properly formatted FROM: address but because sendma...
Have a look at third example of https://secure.php.net/manual/en/function.mail.php : [CODE] The [CODE] option is what you need to set the From value. A "@" alone is not good, maybe your settings in [CODE] are not correct? But also note that sendmail may decide to discard this value and put something else there, dependi...
0
1
1,798
2018-01-23T18:43:23.903
infrastructure
serverfault.com
402,597
cannot sending email to several mail address
i have domain jatek.com i have two connection to different ISP and have public IP in each ISP router failover fature is off. jatek.com. is pointed to ip 1.1.1.1 so is www.jatek.com (ISP A) mx is pointed to 2.2.2.2 (ISP B) everything works fine, until when i send an email to @cigna.com, the mail is bouncing with error m...
If I understand correctly cigna.com is not under your control. So this means the smtp server of cigna.com is malconfigured or not reachable. There is nothing you can do, as it is out of your reach.
-2
2
47
2012-06-27T06:09:48.030
database_errors
serverfault.com
47,381
Software to Monitor the Stability of Internet Connection
Thanks to the excellent internet connection service offered by one of the best ISP in the world , the internet connection in my area is very, very unstable. I can connect some of the time, but MOST of the time the connection will just drop off ( with the error message [CODE] ) and after a few minutes, it will resume ba...
For quick, short term monitoring, a tool like Ping Plotter can give you a graph of connectivity that includes not only a graph of ping times, but also red bars that show when there was no connectivity. For more permanent, long term monitoring, a dedicated tool like Cacti or Smoke Ping is the way to go.
8
6
43,676
2009-07-29T02:51:32.077
infrastructure
serverfault.com
899,658
Change name of running container with host Ubuntu 16.04.4 LTS
My host: [CODE] My docker: [CODE] What I tried: 1) Setting the hostname in the container: fails becauset the container lacks the right capabilities [CODE] 2) Manually editing [CODE] in the container: has no effect after container restart, and has no purpose without restarting. 3) Manually editing the container configur...
Wrong answer to your problem, but the answer you are asking for: You can set the hostname when creating the container with an option, e.g.: [CODE] Why is this the wrong answer? Because you should be treating the container as cattle, not a named pet. Adjust gitlab and the runner to use the service name if you are runnin...
1
0
1,529
2018-03-02T11:36:57.277
pipeline_ops
serverfault.com
288,676
Polyglot Node.js with Typesafe Akka for Actor Model
I have a case that needs to manipulate a large stream of JSON and inject it into Apache HBase. Our system works on Node.js with Mongo then, since we need to enhance performance, so HBase is choosen to handle the big data things. To enhance my system scalability, I prefer using the Actor Model by Akka for messaging inst...
I don't buy the argument that the JVM is not as good to manipulate JSON than Node. The JVM is filled with a lot of really fast JSON parsers, Jackson being one of them. As a bonus it handles streaming json as well. Look at the project before making an opinion. Your problem is fairly common, you want to connect to a fire...
1
1
1,324
2015-07-03T23:41:08.210
hadoop_errors
softwareengineering.stackexchange.com
674,511
Dedicated server stalls at 80 req/s - is MaxRequestWorkers the cause?
I have a physical Ubuntu server ( see some of the specs here ), with Apache 2.4.7, PHP 5.5.9, mysql 14.14, mysqlite and Yii framework 1.16 installed. The server performs amazingly at first, but suddenly, given enough stress it starts to time out (80+ request/sec). At no time is any of the system resources anywhere near...
Unless you can improove the perforamnced (and your code may jsut be inefficient) you will have to throw hardware at it. At no time is any of the system resources anywhere near being capped. CPU is only up to 25%. Normally with a database that is transactional, the CPU is the smallest problem. Check your IO load - it ma...
2
0
342
2015-03-11T07:59:08.670
database_errors
serverfault.com
129,207
Integer ID vs varchar ID with JOIN
I have a table of users but I don't know what is the best practice between using a unique MEDIUMINT identifier or a unique pseudonyme identifier using VARCHAR. With MEDIUMINT identifiers, like the users table is linked to a lot of others tables (news, comments, contributions, etc.), you are forced to make a JOIN to thi...
So, what is supposed to be the best practice if both are not valid because criteria are balanced? The criteria aren't likely balanced. They're almost never going to be balanced. The cost of the extra join to look up the surrogate key (that's the [CODE] ; a surrogate key is an opaque value, typically implemented as an a...
2
3
1,677
2016-02-13T23:13:31.783
database_errors
dba.stackexchange.com
1,020,531
Reason for EXT4 file system corruption of Hyper-V guest
We had our second corruption of an ext4 partition in a relatively short time and ext4 is supposedly very reliable. As this is a virtual machine and the host providing the resources saw no disk errors or power-loss or such, I want to rule out hardware errors for now. So I am wondering if we have such an unusual setup (a...
What data orphaned inodes contains is a tricky enough problem. Why the storage system did such a thing is considerably more difficult. First, do incident response. Check if any of these workloads is having unplanned downtime. Evaluate your recovery options: any DR environment on separate storage, backups, other copies ...
3
1
2,914
2020-06-08T14:23:34.863
pipeline_ops
serverfault.com
893,965
Exim Configuration on Ubuntu 16.04, queue_per_connection
Trying to set up Exim on Ubuntu 16.04, and I'm getting it to send mail decently, however there are times I push batches of e-mails to the mail server (50+ at a time). The default configuration seems to be that it won't take more than 10 per connection. I have chosen the "monolithic configuration file", however I cannot...
You should be able to regenerate and reload the configuration by running the command [CODE] . The running configuration is the file [CODE] . I believe the property you want is [CODE] . However, this defaults to 1000. I believe this should be set in [CODE] , see the man page [CODE] for details. Try sending the batches o...
3
3
1,468
2018-01-24T21:24:09.323
infrastructure
serverfault.com
27,555
Does employment of engineered immediate rewards in RL introduce a non-linear problem to an agent?
Suppose we operate with state-action pairs called 'S', and a reward function R() as follows: [CODE] In that case a RL agent faces a task of accumulating as many as possible 1s in order to maximize [CODE] Now consider immediate rewards introduced by one to make the agent better behaved: [CODE] Is it the case that in ord...
Yes - Incentives matter. Extreme rewards (positive or negative) will have extreme effects on a reinforcement learning (RL) agent. Most contemporary RL system use deep learning which has the capacity to learn non-linear relationships.
1
1
49
2018-02-07T10:51:54.103
data_quality
datascience.stackexchange.com
306,001
Exact definition of Sec-Websocket-Key in Websocket Protocol
I'm wondering what the exact definition of the header-field [CODE] is. The field is used for Websocket connections. The client asks the server to upgrade from HTML to Websocket. The request can look like this: [CODE] The Sec-WebSocket-Key field is defined as follows [RFC6455] : The |Sec-WebSocket-Key| header field is u...
The Sec-WebSocket-Key is a completely random string with a length of 16 bytes, and has an allowable range of ASCII value 32 to 127. You start with an empty string. Then as long as you generate a character that is within the ASCII range 32 to 127, you add to this string. Once you reached 16 ASCII characters, stop, and b...
2
0
6,162
2015-12-28T14:15:31.993
api_errors
softwareengineering.stackexchange.com
398,022
IT staffing level estimates
Possible Duplicate: What is your IT-department to staff ratio? I think Gartner publishes something but it costs around $1k. I'm aware this is a subjective question, but I don't know where else on StackExchange to post it. If a moderator can tell me I'll be happy to move it or delete/recreate it. I'm looking for estimat...
For maintenance and troubleshooting-related tasks ONLY: 1 help desk flunky for every 100 users 1 server admin for every 50-100 servers 1 network admin for every 50-100 networking devices At least 1 spare admin for each of the above categories Telecom can be contracted unless you have a lot of work for it Adjust the num...
-2
1
352
2012-06-12T18:01:58.427
data_quality
serverfault.com
82,327
Servers - Buying New vs Buying Second-hand
We're currently in the process of adding additional servers to our website. We have a pretty simple topology planned: A Firewall/Router Server infront of a Web Application Server and Database Server. Here's a simple (and technically incorrect) diagram that I used in a previous question to illustrate what I mean: We're ...
First off, a 2.6GHz processor is not a 2.6GHz processor if they're from different generations. You're correct in thinking twice about that. This has been true for a long time now (at least since the 486 / Pentium days), and so it's important to point out to your engineer just how wrong the Megahertz Myth is. Especially...
3
11
2,701
2009-11-06T19:43:39.683
infrastructure
serverfault.com
260,502
Managed Switch console cable?
As per a few other SF questions; I have recently purchased a D-link managed switch. It's a DES-3550. It has a serial port on the front for console access and according to the manual this uses a female DB-9 cable. That's the first thing that confused me. The port on the switch is female so surely it needs a male connect...
Page 31 of the 3500-series manual as downloaded from D-Link's web site explains what sort of cable you'll need, software and terminal settings.
0
1
660
2011-04-16T21:29:17.320
infrastructure
serverfault.com
615,920
How to identify which specific php file/function is causing the 508 Error (resources exhausted)
My client getting this error out of the blue this weekend. I do maintenance on this wordpress website and it has been online for about 10 years Resource Limit Is Reached The website is temporarily unable to service your request as it exceeded resource limit. Please try again later. Apache/2.2.27 (Unix) mod_ssl/2.2.27 O...
take a look at the log files ( [CODE] by default, location may be overwrite by the ErrorLog directive)
0
1
921
2014-07-28T07:48:38.683
pipeline_ops
serverfault.com
1,148,514
Can't connect cifs share : 128 key has been revoked
Since 1 month, i can't connect to my DFS share from any Linux server. [CODE] What should i do? Thanks.
Found. running command dmesg : [CODE] Account was disabled... reactivated and it is working.
0
1
745
2023-11-24T14:01:01.570
infrastructure
serverfault.com
355,701
passwd for ldap users
I'm trying to enable linux hosts to authenticate against an active directory server using port 389 and tls. I seem to have that much working, but the users cannot change their passwords via passwd. I was on the assumption that during a passwd change it'd bind with the username and old password rather than the binddn/bi...
Are you using Kerberos or Samba winbind at all? Or are you just trying straight LDAP? If the latter, your /etc/ldap.conf file should have a series of 'pam_*' parameters that seem to be missing. In particular ' pam_password ad ' is necessary to specify ADSI as the password change protocol. You may also need 'pam_login_a...
1
1
1,791
2012-02-01T08:17:37.023
api_errors
serverfault.com
54,948
iSQLPlus not starting on Port 80
I am trying to change the port for iSQLPlus on my Oracle DB server, by making changes in the file [CODE] . When I change the port to 80, in this file, the iSqlPlus doesn't start. I can nether connect over a browser or telnet to it, even from the host machine itself. On the command line, however, it does not give any er...
Try [CODE] That should tell you whether there is already a process running on that port. If not, then you don't have permission to access this port. Ports
0
1
512
2009-08-17T11:35:11.473
database_errors
serverfault.com
664,917
mail command : does content-filter in postfix works?
I use Postfix in my machine (linux). When i send a mail to a local user with telnet localhost 25 in command line, my mail is parsed by a content-filter (for example: spamassassin) => no problem. But when i send a mail to the same local user with mail command (or sendmail command or mail php), my mail is sent but not pa...
For content filter after queue, postfix has two implementation methods, the simple and advanced content filter. You can read the explanation of both methods in its official documentation . From your question, we can learn that you use simple content filter method. The sign is output of [CODE] (or the content of [CODE] ...
2
2
2,127
2015-02-04T12:42:39.097
infrastructure
serverfault.com
82,138
Creating CLR Assembly in SQLServer 2005
I am getting the following error message when I try install my .NET assembly int SqlServer 2005. My .NET assembly references 'ChilkatDotNet2.dll' assembly. [CODE] Any ideas how to resolve, workaround?
Chances are the ChilkatDotNet2.dll assembly is using an unsupported assembly (for example, you can't reference any of the SMO libraries in the SQLCLR) or some other restriction violation. Check your ChilkatDotNet2.dll against the restriction list [here][1] and the link to supported assemblies embedded within that link ...
0
1
784
2009-11-06T11:25:22.560
infrastructure
serverfault.com
268,061
Setting up Version Control on my Development Server
I'm looking into the possibilities of integrating Version Control so that me and my team can work on code at the same time without having to worry about overwriting each others work. Previously this was easy to maintain as there were only three of us. However as our team has now grown it's become a key consideration mo...
I'm wondering if this is possible Yes. Apache+SVN is a question of hours with SVN Book, svnserve'd server (but I'll recommend Apache-way) - minutes and if so is it easy enough to achieve? Yes
1
1
163
2015-01-05T10:12:31.633
api_errors
softwareengineering.stackexchange.com
235,154
Permission denied while reading upstream
We have deployed our rails application on on Nginx and passenger. Intermittently, pages of application get loaded partially. There is no error in application log, but the Nginx error log shows the following: [CODE]
I had the same problem on an NGINX/PHP-FPM setup (php-fpm=improved fcgi for php). You can find out which user the nginx processes are running as [CODE] And then check out if the permissions in your proxy files are correct [CODE] In my case, nginx was running as [CODE] and two of the directories in my proxy directory be...
48
50
87,649
2011-02-14T05:58:32.163
infrastructure
serverfault.com
266,002
SQL Server Deadlock OPENXML insert
I am running into a deadlock issue when I call a stored procedure in Sql Server 2014 Enterprise Edition. An XML string is passed into the stored procedure and can be called many times in quick succession, from different connections. The problem I am running into is that if the procedure is called from 2 different conne...
I would start by trying to move the slow and heavy selects to before the transaction block storing the intermediate results in temp tables (or table variables) and just do the inserts within the transaction block. You may also have to change the Transaction Isolation Level to something more restrictive (Serializable ?)...
0
1
170
2020-04-28T14:11:27.693
data_quality
dba.stackexchange.com
458,152
Using NginX and Apache alongside for both static and dynamic files
Background: I've searched a lot and found these useful threads about using of Apache or NginX for static or dynamic files. But they are old (mostly about 1 or 2 years ago) and I think both webservers, specifically Nginx has had important changes in performance and usage. So I think take another look on these issue cann...
To answer your questions, you need to provide more information. You have to figure out where your bottleneck is, and why! Is it servers resources, like CPU or Memory or disk I/O. Where do you think things will break if the visitor count keeps increasing? When you answer the where, you need to figure out the why. Is you...
0
4
1,434
2012-12-14T17:42:22.297
infrastructure
serverfault.com
64,706
Training model on a Balanced vs Imbalanced dataset?
Let's say that I have a 2-class classification problem where classes [CODE] have [CODE] and [CODE] observations respectively. I am pretty sure that the answer to my question depends on the specific classification problem and on the features of my dataset etc.. Still there are general analysis that can be done on my que...
It's an interesting problem, but I think the answer might be disappointing: Usually problems about maximizing recall are considered in the context of a trade-off with precision, i.e. the goal is to sacrifice some precision by predicting more positives, whether true (TP) or false (FP). Usually in a binary problem this i...
1
1
259
2019-12-12T14:30:36.487
data_quality
datascience.stackexchange.com
270,698
How to restore MySQL database files without having a MySQL instance?
After a crash of my PC I'm left with several databases (27Gb in total) that are left on my data drive, while my OS drive (Windows 7) is gone. I've reinstalled the machine by now (Windows 10) and set up a new MySQL server (via installation of XAMPP). I would like to recover the old databases and add them to the new MySQ...
Danblack already mentioned being restricted to one major difference, but after trying to copy data files back and forth I was not able to get my database up and running. In the end I set up a Virtual Machine with Windows 7 and started installing MySQL versions starting from version 5 until I got to a working database. ...
0
0
155
2020-07-09T21:38:06.917
database_errors
dba.stackexchange.com
880,336
How to add command retry to sensu checks?
I have the following sensu check defined in puppet [CODE] I want to add command retry to this check. This check should start alerting to its contacts only after N consecutive command executions return error. In this example, say N is 2. Say a failure happens right after check_X. Then 60 seconds later check_X+1 will ret...
Occurences is what you need to use. [CODE]
2
0
305
2017-10-25T23:13:46.713
pipeline_ops
serverfault.com
436,214
Microservice decomposition into reusable microservice from a set of monolithic applications
So for my Masterthesis i have to decompose a set of monolithic industrial applications into microservices. The aim is to decompose the monoliths in to services that are as much reusable as possible. I have not found any research that tackles this Problem. Can someone guide me in the right direction on how to solve this...
Microservices is one particular form of splitting a larger application into smaller modules. It is not the only way to modularize an application, but it has fairly strict rules about limiting inter-dependencies between modules. Since inter dependencies quickly becomes cumbersome to manage, developers are encouraged to ...
-1
0
142
2022-01-24T09:00:06.517
data_quality
softwareengineering.stackexchange.com
196,820
Modelling a Database for Recording Taxes
I need to cater to a complicated system of taxes. Following are the possible scenarios: Simple flat tax rate on net amount e.g. 5%, 12%, 18%, etc. A compound tax (e.g. 5%) which may be composed as below: State Tax on net amount - 2.5% Central Tax on net amount - 2.5% There might also be a case of a compound tax, where ...
You've specified four types of taxes, but one of them is [CODE] unfortunately that probably work. You'll have to define the types of taxes users can apply . How will they design the logic for a tax? Unless your providing a logic system, it seems unlikely. a compound tax is really just two simple taxes paid to different...
2
1
395
2018-02-01T14:01:14.703
warehouse_errors
dba.stackexchange.com
349,108
postfix: force server to send mail outside of localhost
I have a php file that sends mail using the mail() function. The problem is one of the forms sends to a domain that is registerred on my server while having the mail handled on a different server. Postfix looks locally only. When it doesn't find the email address is rejects the message. How can I configure postfix to s...
I solved the simillar problem. As you write in your update you have to switch off mail service for domain by [CODE] command - it should work in most cases. Anyway I made another mistake and switching mail service off was not enough solution form me. At first I should check my DNS settings. I have DNS hosted outside of ...
9
4
11,249
2012-01-12T01:47:21.360
infrastructure
serverfault.com
105,827
Do I need to understand pointers to use C++?
Well, I love C++, I have been using it for a while: I like all the libraries (Allegro, SDL, QT, Ogre, etc.), but I have a problem: I don't understand pointers. Do I really need them ? I just program for fun: but I want to study it some day. Thanks.
Yes, definitely. They are a fundamental concept of programming, no matter if you program in a language that supports direct pointer management or not, but even more so if you do.
7
40
4,661
2011-09-04T18:42:38.860
api_errors
softwareengineering.stackexchange.com
94,178
Exchange server (apparently) changing MAC address
Occasionally, I stop being able to access our Exchange server from my PC. Just my PC - everyone else carries on without incident, but I can't ping the Exchange box, log in with Outlook or get to the OWA page (also hosted on the same server). This behaviour would persist for a few minutes, or until I rebooted. Based on ...
It sounds like a problem with proxy ARP at the firewall (even though it shouldn't). I'm assuming the Pix is doing proxy ARP for the Exchange server for inbound traffic from the internet. For some reason it sounds like the firewall is doing proxy ARP for internal traffic as well. When the problem occurs, try running a t...
2
3
555
2009-12-14T16:01:38.400
infrastructure
serverfault.com
293,330
Relay Access Denied with virtual_alias_maps in postfix
My postfix server is encountering a problem with a couple domains bouncing email. The error message is: [CODE] the following is the result of postconf -n: [CODE] I've checked to make sure the IP is listed in mynetworks and virtual_alias_maps has the address but the mail is still being rejected.
But does [CODE] have the domain ? You can have all the addresses you want in there, but you haven't gotten as far as attempting delivery yet; Postfix is still trying to work out if the domain is one it's willing to accept.
0
0
1,069
2011-07-23T12:50:23.537
infrastructure
serverfault.com
145,345
Trying to setup a PHP daemon using System_Daemon and I'm having issues getting it to run
I get the following error when trying to start a daemon using Ubuntu 10.04 and the PHP5: [CODE] Does System_Daemon try to call pcntl? If so, why is it looking for the file where it does not exist?
System_Daemon uses the pcntl functions, but System_Daemon isn't loading the extension. The extension is defined in your php.ini and is loaded by PHP. Make sure you have compiled PHP with pcntl support (--enable-pcntl), if you are using the Ubuntu packages you might take a look at http://ubuntuforums.org/showthread.php?...
1
1
737
2010-05-26T04:19:25.613
infrastructure
serverfault.com
455,614
Postfix sendmail -bs shows no output - permissions?
When I run the [CODE] command as root, I get the expected output: [CODE] But when I run the same command without sudo, I get no output at all and sendmail doesn't respond to any commands: [CODE] How can I configure Postfix so that sendmail works for every user (or at least for some specific users)? I need this because ...
As documented , [CODE] is implemented by running the [CODE] daemon. Since this binds to port 25, it requires root privileges. Consider using SwiftMailer instead with one of the other sending options, such as batched mode or SMTP mode. As also documented, [CODE] will not act like a "real" postfix SMTP server unless you ...
1
2
840
2012-12-06T09:51:27.197
infrastructure
serverfault.com
13,238
Converting RDD to spark data frames in python and then accessing a particular values of columns
I want to access values of a particular column from a data sets that I've read from a csv file. The datasets are stored in pyspark RDD which I want to be converted into the DataFrame. I am using the below code : [CODE] but it is showing error: [CODE] First 2 rows of df are : [CODE] I think the first row is creating thi...
To read a csv file to spark dataframe you should use spark-csv. https://github.com/databricks/spark-csv [CODE] How to use spark csv If you are using pyspark directly from the terminal. Instead of calling [CODE] You have to use [CODE] and then use the code above. If you are using ipython + findspark, you'll have to modi...
2
1
10,925
2016-08-05T13:03:48.977
spark_errors
datascience.stackexchange.com
770,082
Nginx upstream returns «site unavailable», while they work
I use [CODE] and [CODE] for load balancing. [CODE] When I open 192.168.1.135 in browser, it tells me, that «Site is temporarily unavailable». All pings from 192.168.1.135 are working: [CODE] When I point my browser to http://192.168.1.237:8080 or http://192.168.1.240:8080 — they succesfully open. nginx error.log [CODE]...
Working config part: [CODE] If problems with SELinux won't dissapear you need to turn [CODE] directive on: [CODE]
0
0
192
2016-04-13T15:55:15.103
infrastructure
serverfault.com
247,731
Setting separate permissions for alias using <Directory> directive
I am trying to set up an alias with permissions different than the root, like www.restricted.com - one user www.restricted.com/alias - another user Is this possible? I've set up the alias in httpd.conf at a separate directory (not subdirectory) with its own [CODE] entry and separate auth setup. However, I get two passw...
Using [CODE] directives applies the permissions on the physical directory structure; this is intended to prevent unintentional privilege grants. The way to get this to work the way you want it to is to use the [CODE] directive instead; this will apply the permissions settings only on the http virtual path that you spec...
1
2
6,093
2011-03-15T17:28:54.407
infrastructure
serverfault.com
1,023,408
On and off requests take very long on my system
EDITED: I have and issue in my AWS system. Every few requests takes almost exactly 130 seconds to answer. When I say a few I mean 5 to 25 or so. Normally if you cancel the slow request and send again it just answers fast. I also noticed this happens with ANY request, not only specific ones. The servers and back-end do ...
You have placed your load balancer on one public subnet and one private subnet, which is an invalid configuration and will result in behavior similar to what you observe, because a balancer is assigned at least one public IP for each subnet to which it is attached... but by definition, public IP addresses don't work un...
2
3
570
2020-06-30T00:38:00.883
pipeline_ops
serverfault.com
232,537
Is Spring Source Tool suite required for J2EE application development?
I am following a tutorial. The guy keeps on adding different plug-ins such as subclipse, maven, spring source tool suite, etc after setting up jdk, eclipse, tomcat. While installing spring, he was saying that spring makes it difficult to debug the programme. That didn't make me happy. He also added, it's up to you if y...
Is Spring Source Tool suite required for J2EE application development? No. Not even if you are using Spring in your application. And there is no requirement to use Spring either ... though it does make a lot of things simpler. Is there really any use of having all those plug-ins? Obviously there is some use, otherwise ...
0
3
223
2014-03-16T05:18:28.047
api_errors
softwareengineering.stackexchange.com
971,815
SMTP Error, message appears in Sent folder, no bounce back
My mail client is reporting an SMTP error for a message it tried to send using a GSuite mail account. I know the connection generally works because it sends 100s of emails a day. Today I got this error message for a handful of send attempts: [CODE] I'm trying to determine if this message was actually sent, but I am con...
Based on the type of the response the message has been sent but it stays in queue. The server would try deliver it later. In case there is error prevent it from delivery you are announced about that. This may happen in several cases: real technical issue on receiving side the server will try to deliver it until it will...
1
1
1,065
2019-06-18T00:32:50.470
infrastructure
serverfault.com
462,585
How to configure postfix and dovecot so that thunderbird can automatically find settings
Our mailserver is a Ubuntu Server box with a Postfix/Dovecot combination. We enabled starttls with a correct certificate and everything is working ok. A lot of our users are using Thunderbird for retrieving mail with IMAP. Thunderbird tries to guess the configuration of our server (or autodetect it), but that always fa...
Thunderbird autoconfig is described here You may want to use a tool like automx though which supports auto-configs for other mail clients as well.
6
4
11,248
2013-01-03T13:18:59.290
infrastructure
serverfault.com
197,121
Compress PostgreSQL Database
I have a large PostgreSQL database over 500GB in size which is too large. Is there anyway to compress the database down to a more manageable size? I have attempted to do this with SquashFS and the database compressed down to 177GB however PostgreSQL requires that the database have write access and Squashed systems are ...
File system A very popular method of doing this is with the file system. BTRFS and ZFS works under the database at the file system level. Both can be used in a loopback device so you can provide a compressed tablespace without having another partition. There are caveats with this, if the tablespace fails it may take yo...
16
12
14,852
2018-02-05T20:40:19.310
database_errors
dba.stackexchange.com
274,270
Shutting down ESXi on Battery Backup
Possible Duplicate: PowerChute for VMware ESX4 I came into an issue where I have an APC that doesn't have a network shutdown card in it. I figured I can map the USB connection over to one of my hosts, install the software, and if there is a power outage, use the run script feature to shutdown any servers I need with th...
You can use the perl or powershell API to send a shutdown command to an ESXi box (via a vCenter server) from just about any host. http://www.vmware.com/support/developer/PowerCLI/index.html http://www.vmware.com/support/developer/viperltoolkit/
0
1
590
2011-05-26T22:53:03.353
data_quality
serverfault.com
155,447
Check for duplicate data from called functions
I'm new to SQL and am not sure how to go about getting the result set I am after. Below is the closest I have gotten to my desired result set although I am seeing duplicate data. I have a stored procedure [CODE] is calling the below table-valued functions for each owner, owner alternate, process and process alternate: ...
Right now your code is doing a cartesian join between derived tables o and p. If derived table o contains M rows and derived table p contains N rows then your result set will M x N rows with none of the column values being NULL unless your TVFs return NULL rows. You need to add a join clause between o and p to get the ...
0
1
59
2016-11-16T11:43:32.363
database_errors
dba.stackexchange.com
1,010,015
Error populating transaction after 10 anaconda retries: failure: <RPM> from anaconda: [Errno 256] No more mirrors to try
I'm running into the following package error on CentOS 7 installation while customizing an ISO for automated installs. [CODE] I've verified the above package is in the Packages/ directory. Verified that the package appears in the comps.xml and .xml files within the repodata/ folder .gz files. Createrepo command is: [CO...
When you generate your repo, prior to generating the ISO, make sure you are in your working root and do NOT specify ./Packages as an argument to [CODE] : [CODE] and NOT [CODE] Source: https://microdevsys.com/wp/errno-256-no-more-mirrors-to-try/
1
2
3,014
2020-03-30T06:19:10.573
infrastructure
serverfault.com
56,415
Perl script works with Apache piped logs but not Python script
I need to port my Perl log handling script to Python. Here is a simple example of a Perl script I can use: [CODE] As you can probably see, I am telling the system to beep whenever a request is made to test the script. Everything works fine on this one, but when I try a Python script such as this: [CODE] everything runs...
Where are you getting beep from? Have you tried putting in the full path to this beep command? Edited to add code sample. Last time I hacked something in python to read stdin as a pipe my code looked like this. [CODE]
1
1
1,285
2009-08-20T01:05:05.603
infrastructure
serverfault.com
639,138
MySQL on LAN not working when IPTables enabled
I have two Centos VM. The IP Addresses are as follows : VM_1 => 10.99.0.10 VM_2 => 10.99.0.12 Apache and PHP are in VM_1 and MySQL is in VM_2. Both are having iptables rules. VM_2 is working fine with rules. Now I am Testing from VM_1. First I disabled VM_1 iptables and connect to VM_2 MySQL (connected successfully). [...
The issue is you don't allow new connections to be established to MySQL and you inverted sport and dport : [CODE] The right [CODE] output should instead be : [CODE]
1
1
194
2014-10-23T14:58:12.780
database_errors
serverfault.com
524,794
High CPU usage when sending email, site freezes
I just moved to a new dedicated server and I'm running into the following issue. I need to email 8000 of my users using the basic PHP mail function - nothing fancy, it's HTML-formatted but it's just text, no images or other content. On the previous server, which was a VPS with 1/4 of this server's RAM, I could send the...
Is there something in the distribution chain of your mail server ? Is there an new anti-spam, anti-virus ? It can slow down the delivery if there is a lot of mail to be passed. Check in the logs (Postfix ?) to see what demands all this time. Is there a rate limiter too ?
0
0
566
2013-07-19T16:37:57.560
infrastructure
serverfault.com
557,164
Apache 100% CPU for simple PHP API
I have a new server install of CentOS 6.4 64bit on a VM with 2 cpu and 8gb of ram. The server has nothing installed other than apache and php. The server is hosting a simple web API that writes data to a RabbitMQ queue on another server. I'm running 10 instances of a simple script that does a curl call to this web serv...
You've got 10 threads making a million requests as quickly as they can from the local system (no network latency slowing down how quickly they can hit the server). I'm not sure how this would constitute the workload of only a few users? Maybe a few users right next to the server who have something heavy on their F5 . Y...
-1
1
774
2013-11-25T03:59:49.277
api_errors
serverfault.com