Geekeries du front [fr]

[en] Spent a lot of time fixing various server and device annoyances. Thanks to everyone who helped me for one thing or another! Everything seems to be running fine now, except for MySQL on the web server which continues to choke pretty regularly. Lesson learned in all these adventures: sometimes a clean reinstall is a better strategy than lengthy troubleshooting.

Ouh là, il faut vraiment que j’écrive un article. Je crois qu’un article sur deux de mon blog commence comme ça, ces temps.

Le temps.

Arbre et mauvais temps

Je suis perdue dedans. Les journées filent les unes après les autres. Déjà mi-janvier. Déjà six semaines depuis mon retour d’Inde. L’absence de structure, ça ne me réussit pas. Alors je suis en train de restructurer, mais c’est long, c’est long.

Je n’ai pas chômé, pourtant. J’ai passé des heures et des heures devant des écrans de machines récalcitrantes: mon petit serveur lubuntu qui sert surtout à recevoir des sauvegardes Crashplan, le NAS, dont les volumes partagés doivent être visibles par au moins trois machines avec des OS différents (la machine lubuntu, mon MacBook Air, et l’Android TV), l’Android TV Box, justement, dont le Kodi refusait de jouer quoi que ce soit, et pour finir mon serveur web, qui plante toujours allègrement.

Qu’est-ce que j’ai appris?

La principale leçon, vraiment la plus importante, c’est que c’est souvent moins de travail de réinstaller ou faire une mise à jour que de troubleshooter.

Sur l’Android TV Box, supprimer puis réinstaller Kodi a réglé le problème. Oui, il a fallu reconfigurer et reinstaller les extensions, mais c’est mieux de passer du temps à faire quelque chose qu’on a déjà fait et qui est du “terrain connu” que de rajouter encore des changements non maîtrisés dans le système.

Pour lubuntu, un problème de déconnexion du réseau local a été résolu par une mise à jour foireuse, qui a introduit d’autres problèmes, mais qui, après quelques commandes de réparation, de mise à jour partielle, de redémarrages, et de re-mise à jour, semblent avoir disparu.

Côté présence web, je bosse en priorité à terminer la migration de mon site web professionnel. Pas terrible, quand on désire de nouveaux mandats et développer des nouvelles offres, d’avoir un site web professionnel pas à jour et qui redirige une fois sur deux sur ce blog, suivant comment on en tape l’adresse.

Là, je me heurte à la difficulté suivante: un vieux WordPress et un vieux WPML, qu’il faut transférer dans un WordPress multisite à jour. L’importation toute bête ne marche pas. Il faut d’abord mettre à jour l’installation sur le vieux serveur avant de faire le transfert. Un post sur le forum de WPML me donne l’ordre pour les updates à faire. Je passe une demi-journée à faire tout ça, backups y compris. La home page se charge bien, je vérifie à chaque pas. Mais à la fin, misère, je réalise que tous les contenus “traduits” on disparu.

Le site contient une trentaine de pages. Au lieu de replonger pour tenter de voir quelle mise à jour “casse” l’installation, je vais copier-coller à la main les contenus. Ça me prendre quelques heures mais au moins je sais que ce sera réglé à la fin.

Côté serveur web qui se casse la figure, malgré quelques réglages à la configuration Apache faits déjà il y a un moment, puis l’installation de WordFence pour mettre un stop à d’éventuelles requêtes malicieuses (il y en a, mais pas de quoi en faire tout un fromage), ça continue. La dernière expédition spéléo a permis de mettre à jour une base de données WordPress de 250Mb (même pour 15 ans de blog et 8 “site” ça fait beaucoup).

En y regardant de plus près, c’est la table commentmeta qui pèse le plus lourd: près de 100Mb, si ma mémoire est bonne. 150’000 lignes. Cure d’amaigrissement grâce à un peu de googlage, ici et , déjà. Je remarque aussi que Antispam Bee, un plugin anti-spam que j’avais essayé à un moment donné et que je croyais avoir supprimé, est encore actif et a aussi laissé tout un tas de chenit. Bref, après nettoyage, et vidage du spam, la table est vide.

Bon, c’est visiblement pas ce qui causait les problèmes avec le serveur, puisque c’est à nouveau arrivé depuis le nettoyage, mais ça fait plaisir d’avoir une base de données qui fait moins de 100Mb. Merci au passage à PhpMyAdmin, qui malgré toutes les critiques qu’on peut lui faire, est quand même un outil vachement pratique pour repérer et régler ce genre de chose. Les informations sur le status du serveur MySQL, ainsi que les stats, sont aussi présentées de façon accessibles et me donnent des idées pour la suite: peut-être une histoire de taille de cache pour les tables qui n’est pas optimale.

Etape suivante, donc, du coup, avant de faire l’apprenti-sorcière, c’est de voir ce que raconte l’utilitaire mysqltuner. Je vous ferai un rapport si je trouve ce que c’est!

Solved Another MacBook Fan Problem! [en]

[fr] En recherchant la cause d'une trop grande activité du processeur (et donc du ventilateur) de son MacBook, ne pas oublier d'afficher "tous les processus" dans Activity Monitor. Sinon, on risque de rater MozyBackup, par exemple, qui a piqué une crise et décidé d'utiliser 99.6% du processeur...

Remember how happy I was after solving my print-queue-related MacBook fan problem? Well, for the last few days, my fan has been noisy again. I had a vague suspicion the noise coincided with when I reactivated my Mozy account and endeavoured the get my computer backed up again remotely. However, the fan remained noisy even when Mozy wasn’t uploading or being active.

A friend of mine dropped by on IM to help me troubleshoot. I went through Activity Monitor, sorted the processes by CPU, and closed off those that were using the most ressources — to no avail. The highest process on the list was using 4.5% of CPU ressources, and iStat Nano (a dashboard widget I heartily recommend) was still telling me my fan was running at around 6200rpm and my CPU temperature was approaching 70°C. I could also see that the graph depicting CPU activity was showing it pretty active overall.

I bit at loss over what to do next. Clicking around in iStat Nano, I noticed that at the top of the process list there was MozyBackup, using up 99.6% of my CPU! The reason this process didn’t appear in Activity Monitor was that I was filtering “My Processes” instead of viewing all processes, and MozyBackup was running as root.

Activity Monitor

I killed (force quit) MozyBackup, and it popped up again. I killed it again. And again. By that time, my friend had unearthed this article about Mozy Backup going crazy, where I learned that MozyBackup coming back from the dead was normal (it’s a feature).

Thankfully, once I’d killed MozyBackup a few times, it started behaving normally again, and as you can see on the screenshop posted above, it’s now happily backing up my data without squeezing all the ressources out of my poor old MacBook, which is now quiet again.

Solved the Dreaded MacBook Fan Problem [en]

[fr] Résolu un problème qui commençait à me pourrir l'existence: le ventilateur de mon MacBook fonctionnait à fond tout le temps, même si je ne faisais rien avec mon ordinateur. Solution (voir l'article anglais pour les liens): vider les queues d'impression -- pour une raison qui me dépasse, avoir des fichiers en attente dans la queue d'impression surcharge le processeur. J'en avais qui étaient là depuis des mois!

For some time now, I’ve had a very noisy MacBook fan. As if it was on full speed all the time. I was starting to despair, and @swinhoe pointed me to the solution: delete any old print jobs which may be sitting in a printer queue.

I sent to my printer list in System Preferences. Out of the four printers installed on my machine (I never print, honest) two of them were “in use”. “In use”? I haven’t connected to a printer in months. I checked the queues, and lo and behold, there were files sitting there. I simply deleted them, and a few minutes later, my fan stopped being audible.

What a relief! This had been going on literally for months, if not longer.

So, if you find your fan is working overtime, your processor is getting hot, your battery life has melted… check your printer queues.

WordPress Sandbox Theme Problems [en]

[fr] Deux problèmes avec Sandbox: les menus déroulants qui se déroulent décalés sur la droite dans IE, et l'absence de feuille de style pour l'impression. Toute aide bienvenue.

As you might have seen, Sandbox is now my theme of choice for WordPress. Diurnal, here on CTTS, is built upon Sandbox, and I’m using it with a client to build a new design from scratch. It’s a nice base to work from, in a CSS Zen Garden way.

However, there are problems. Here are two I’m stuck with on my client site. I posted them to the Sandbox forums, but I thought I’d mention them here in case one of you smart readers had an answer.

  1. No print stylesheet?: does anybody have a print stylesheet handy for use with Sandbox? If I can avoid writing one from scratch…
  2. Broken drop-down menus in IE: I’m far from a drop-down menu specialist, so I’m not sure where to start to fix the IE wonkiness I’ve noticed. The menus in IE do not drop right below the parent menu as shown here, but overlap on the neighbouring menu item on the right.

Thanks for any help or pointers you can bring me.

Mystery WordPress/Markdown Problem: Troubleshooting [en]

[fr] Description d'un vilain problème WordPress avec PHP Markdown Extra. Certains billets refusaient de s'afficher et faisaient tout simplement planter la suite du chargement de la page (donc, pages archives incomplètes, billets disparus). J'ai résolu (plus ou moins) le problème en remplçant PHP Markdown Extra par Markdown tout court, mais je n'ai toujours pas compris le fond du problème. Ce billet donne quelques détails sur les symptômes et mes déductions.

If you’re a WordPress person and you feel like a bit of juicy troubleshooting, this one is for you. I’ve narrowed down part of the problem, but have failed to identify clearly the cause of the problem. I’ve found a workaround by replacing a plugin by another similar one, however. I’ve made screenshots so that even once this problem is fixed (hopefully very quickly) you can make sense of this post.

Symptoms:

Some posts on the VibrationsMusic website fail to display their content, or display incompletely. When this happens, the page stops loading altogether, resulting in a truncated page. (So we have vanishing posts and incomplete aborted archive pages where they should appear.) No error messages in source, HTML code just stops.

Narrowing it down:

Removing post content makes the post display OK, so I figured it had something to do with the content. Removing the PHP Markdown Extra plugin removed the problem, to. So it has something to do with a combination of certain things in the content and the PHP Markdown Extra plugin. (Removing other plugins didn’t change a thing, so I deduce from that it isn’t a plugin interaction issue.)

Using the “cut-half-out” technique I tried to narrow down the problem to a certain type of post content. At first, it seemed to be caused by either (a) HTML links in Markdown lists or (b) embedded YouTube players (<object>). However, some posts with either (a) or (b) were displaying correctly. In one faulty post, replacing the embedded YouTube video with another removed the problem.

However, it seems more subtle than that. In some cases, removing the other half of the post also removes the problem. => post length? Not really either. In a quite weird case, one post stops displaying right at the end of the content (Technorati tags and closing divs don’t appear) and if changes are made to the next post (like removing its content) then the first post displays correctly (and the second one too).

This seems (to me) to point to some problem in the query-array-manipulation area (but I don’t know how things work well enough in that department to make a more precise hypothesis).

Workaround:

I replaced the PHP Markdown Extra plugin with the “normal” Markdown plugin, and everything displays fine.

Annoying NeoOffice Error [en]

[fr] Un problème récurrent avec NeoOffice. Vous connaissez ce message d'erreur?

I’ve been getting this error ever since I moved from my iBook to my MacBook. I’ve erased NeoOffice from my Applications folder and reinstalled it. I know we had this error at school, too. It doesn’t seem to create any problems, but it’s just annoying that the first time in a session I save a file I need to click through this (and the next).

Screenshot of error message.

Welcome to Steph’s Troubleshooting Centre, and thanks for your help!

Slow SSH Login from MacBook [en]

[fr] La connection SSH vers mon serveur depuis mon MacBook est très lente (je dois attendre plusieurs minutes pour qu'il me demande mon mot de passe). Il me semble me souvenir que depuis ma machine Windows à la maison également, il n'y avait rien de cela. L'autre semaine, j'ai essayé de me connecter depuis un tout autre endroit et la réponse a été instantanée. Idées?

Well, it seems that writing about my technical problems here is more efficient than bugging people repeatedly on IRC about them, so let’s continue. Welcome to Bunny’s Troublshooting Centre.

I have trouble SSH’ing into my server from my MacBook. Trouble, here, means I have to wait a couple of minutes (no exaggeration) for the password prompt. If I’m quick enough and type my password in before it times out, I’m in.

I logged in from somewhere else the other week and it responded almost immediately. I don’t recall that logging in from home (same wifi/DSL connection) from my winbox was sluggish.

Any ideas? I’ve run SSH with the verbose option on, and it does throw up a few warnings an errors. I don’t really want to paste it all here, but if you tell me what bits are useful I can put them in a pastebin. Thanks for any ideas/help/assistance.

Java and FreeMind on my MacBook [en]

[fr] Maintenant que je suis sur mon MacBook, Freemind ne marche plus. Description du problème. Solutions et suggestions bienvenues.

Ah, well, the Lazyweb was retired, looks like I missed that. We can just go about tagging posts with lazyweb, though.

I used Freemind as a mind-mapping application on my iBook. Unfortunately, it won’t start on my MacBook. I’ve looked in system profiler and it tells me about plugins for two Java versions.

Screenshot of error message.
Screenshot of error message.

Suggestions or solutions very much welcome (or nice free OSX mind-mapping apps too).

Links in WordPress Comments not Linking [en]

[fr] Les URLs dans les commentaires de ce blog ne sont pas transformés en liens, alors qu'ils le devraient. Appel aux idées pour résoudre ce problème.

Lazyweb, hear my call!

When people type URLs in my comments, they aren’t converted into links. WordPress should do this, but it’s not doing it. I don’t know where to start troubleshooting.

Suggestions and solutions will be thankfully tried out 🙂