Line 1: |
Line 1: |
| | | |
| + | [[Category:ProductOpener]] |
| + | == Issues on Mac == |
| + | Invalid version format (version required) at /Library/Perl/5.18/Module/Runtime.pm line 386. |
| + | See: |
| + | http://blogs.perl.org/users/ovid/2014/02/moose-dying-with-invalid-version-format-version-required.html |
| + | |
| + | == Issues on Debian jessie == |
| + | == Issues (old) on Debian wheezy == |
| === Dotted fields in MongoDB === | | === Dotted fields in MongoDB === |
| | | |
Line 12: |
Line 20: |
| Those fields can be safely removed. (done in update_all_products_from_dir_in_mongodb.pl) | | Those fields can be safely removed. (done in update_all_products_from_dir_in_mongodb.pl) |
| | | |
− | === List of tag values (e.g. list of categories) | + | === List of tag values (e.g. list of categories) === |
| | | |
| Problem: | | Problem: |
Line 115: |
Line 123: |
| }, | | }, |
| .. | | .. |
| + | </pre> |
| + | |
| + | |
| + | Cause : old version of MongoDB Perl Module |
| + | |
| + | Debian 7.6 has a very old version of the module: |
| + | |
| + | <pre> |
| + | root@ns431999:/home/off/logs# cat /etc/debian_version |
| + | 7.6 |
| + | root@ns431999:/home/off/logs# apt-get install libmongodb-perl |
| + | Lecture des listes de paquets... Fait |
| + | Construction de l'arbre des dépendances |
| + | Lecture des informations d'état... Fait |
| + | libmongodb-perl est déjà la plus récente version disponible. |
| + | 0 mis à jour, 0 nouvellement installés, 0 à enlever et 75 non mis à jour. |
| + | root@ns431999:/home/off/logs# perl -MMongoDB -e 'print $MongoDB::VERSION . "\n"' |
| + | 0.45 |
| + | </pre> |
| + | |
| + | Solution: use CPAN |
| + | |
| + | <pre> |
| + | cpan install MongoDB |
| + | |
| + | root@ns431999:/home/off/logs# perl -MMongoDB -e 'print $MongoDB::VERSION . "\n"' |
| + | v0.707.2.0 |
| + | </pre> |
| + | |
| + | |
| + | === Tesseract OCR / segmentation fault === |
| + | |
| + | <pre> |
| + | sh : ligne 1 : 18042 Erreur de segmentation /usr/bin/tesseract /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif -l fra 2> /dev/null |
| + | </pre> |
| + | |
| + | Running manually: |
| + | |
| + | <pre> |
| + | tesseract --version |
| + | tesseract 3.02 |
| + | |
| + | off@ns431999:~/cgi$ /usr/bin/tesseract /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif /home/off/html/images/products/324/541/299/9925/ingredients.8.full.jpg.tmp.14217494077210.tif -l fra |
| + | Error opening data file /usr/share/tesseract-ocr/tessdata/fra.traineddata |
| + | Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory. |
| + | Failed loading language 'fra' |
| + | Tesseract couldn't load any languages! |
| + | Tesseract Open Source OCR Engine v3.02 with Leptonica |
| + | Page 0 |
| + | Erreur de segmentation |
| + | </pre> |
| + | |
| + | As of January 2015, OFF is running an older version of tesseract: |
| + | |
| + | <pre> |
| + | apt-cache show tesseract-ocr | grep -i version |
| + | Version: 2.04-2+squeeze1 |
| + | </pre> |
| + | |
| + | Solution: |
| + | |
| + | In fact tesseract was just missing dictionaries for French "fra". |
| + | |
| + | <pre> |
| + | apt-get install tesseract-ocr-fra |
| + | </pre> |
| + | |
| + | |
| + | === Apache 2.4 reverse proxy configure error "Bundled APR requested but not found" === |
| + | |
| + | <pre> |
| + | configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/. |
| + | </pre> |
| + | |
| + | Solution: install APR |
| + | |
| + | <pre> |
| </pre> | | </pre> |