4,429 reputation
1723
bio website BlackMesh.com
location
age
visits member for 4 years, 4 months
seen 15 hours ago

Director of Emerging Technology at BlackMesh Managed Hosting, longtime Linux aficionado, sometime Drupal developer (and d.o sysadmin), and occasional filesystem tinkerer.


May
7
comment apc “open() /www/cache/xxx failed. no such file or directory” error
I hate to say it, but at this point, you're probably looking at greping across the PHP files, and dump of any relevant database(s), looking for e4ce8db565491cdcf27ab61a441xxxx, or failing that, for "cache". This will be ugly, but if you can't reliably reproduce the issue, you have little other choice. Are you sure there's nothing in common amongst the clients hitting this issue (e.g. same User-Agent)?
May
3
comment apc “open() /www/cache/xxx failed. no such file or directory” error
Sergey is absolutely correct. Try going to the referer page with a browser that supports request tracing (e.g. using a "developer console", Firebug, etc.). With that, look for a request to this "cache" directory. It's coming from somewhere. Failing that, it might be someone trying to hack the site and simply spoofing the Referer header in the course of looking for a specially-named file. You didn't mention if this message appears often and from diverse clients; if not, that might lead you to such a conclusion.
May
3
comment Nginx reverse proxying Drupal content served with Apache
What's in your Apache's error log for the 500? You call the 500 "standard", but is that an nginx 500 or an Apache 500?
Apr
23
comment The Apache mod rewrite module doesn't work when using the IP
@KristvanBesien: A <VirtualHost> need not contain a ServerName directive. In the absence of one, it will use the top-level ServerName (typically dynamically determined). Additionally, any configured and applicable (based on its IP/port tuple(s)) VHost will always "win" versus the main context.
Mar
18
comment How to monitor glusterfs volumes
@ArieSkliarouk: Updated to cover both cases, but be forewarned that the relevant message was removed in November 2011; see git.gluster.org/… . Thus, this is likely not going to work on newer Glusters. If you find the shorter code harder to understand, that's fine, but it is significantly more robust than using a temporary file, so consider refactoring it for readability instead of dismissing it for perceived lack of that attribute.
Feb
16
comment CentOS lost Root Access
Speaking as someone who works for a hosting company: if you ask Support to give you a hand with this, I 100% guarantee they have a process in place for adding these sorts of parameters to the boot process. And if you ask very nicely and describe what you did very well, they'll likely be able to very quickly solve your limit issue. There's even a small chance they can do it without rebooting the machine.
Feb
14
comment Varnish not showing custom headers
@Kenny: Great! Please update your question and close it.
Feb
12
comment Varnish not showing custom headers
Also, while we're on documentation: please include a complete request/response pair (not just the response as you have above), and the output of "varnishlog" (you can sanitize IP addresses if you'd like, but leave the rest alone, please) during that test.
Feb
12
comment Varnish not showing custom headers
@Kenny so I take it that your X-Wut header isn't showing up? It might be worthwhile to simply dump your entire VCL in here. In this case, we're looking for mistakes, and requiring you to know where those mistakes are only works if you already know what mistakes you made. For example, you're modifying the req in your vcl_fetch, which isn't going to accomplish very much in almost all cases. This tells me that you probably are building a VCL largely from snippets, which means we need to see the whole kit 'n' caboodle in order to diagnose the cause of the symptoms you're seeing.
Feb
4
comment Mysql very slow, out-of-the-box configuration
@Netismine: You want to attach it to the "mysqld" process. Can you post your my.cnf in the question section as an edit, so it's easier to read?
Jan
3
comment Running drupal as root in order for it to run bash scripts
If running on RHEL (or similar), you'll also need to add: Defaults:www-data !requiretty
Aug
14
comment One ip on port 80 with mutiable vhost different names and ports
Why are the VHosts on port 8080 and 8081, respectively? What is port 80 doing, then? Is there a proxy in here somewhere, or is Apache acting as one?
Jul
31
comment large number of InnoDB tables plus SHOW TABLE STATUS
You didn't mention whether you were using 5.5, 5.1 with InnoDB plugin, or something older/nastier. If using something older, you may need to adjust the innodb_additional_mem_pool_size. Related question: Do you see anything in the mysql error log during SHOW TABLE STATUS runs?
Jul
31
comment large number of InnoDB tables plus SHOW TABLE STATUS
Your table_open_cache appears to be too small, but otherwise your settings seem reasonable, if a bit arbitrary (5400 MB buffer pool, rather than 5 GB even?). Try bumping table_open_cache to 1536 and see what happens.
Jul
25
comment large number of InnoDB tables plus SHOW TABLE STATUS
Are these databases actually in their own .ibds? What's the size of your innodb_buffer_pool? How are table_open_cache, open_files_limit, and the sysctl fs.file-max set? How much memory do you have under Cached in free -m? What's your vm.vfs_cache_pressure set to? Is your disk subsystem performant? I'm beating so hard on this because generating table statistics should be very, very fast in the vast majority of cases; if it's not, that's at best a misconfiguration, because otherwise it's a bug.
Jul
25
comment large number of InnoDB tables plus SHOW TABLE STATUS
By any chance, do you have innodb_file_per_table enabled? If not, try enabling it (and dumping, dropping, and re-importing the tables). I suspect that would allow the disk reads to be much more intelligent than they are when ibdata1 is getting hit for everything.
Jul
13
comment How would you simplify this command?
This script straces into the telnet, not into the Apache process that's serving it.
Jun
15
comment CentOS - PHP - Yum Install with Custom ./configure params
--target is typically not necessary unless you're cross-compiling, but check your spec file for other requirements. For example, for building a CentOS 6 kernel, you'll typically want --with-firmware and -D 'dist el6' -D 'rhel 6'.
May
16
comment Redirect to SSL only if browser supports SNI
This will throw a name/cert mismatch error; they will only be downgraded back to HTTP (assuming you've set up an appropriate redirect) after accepting the mismatched cert. Further, you can't auto-upgrade them to HTTPS without some sort of state maintenance, or they'll jump right back into the SSL VHost again.
May
7
comment Why is this tee losing stdout?
Since the evolution of my answer can be confusing to read: I've updated my answer with the final analysis of why this failed in the first place.