1. 24 Jun, 2021 2 commits
  2. 21 Jun, 2021 3 commits
  3. 16 Jun, 2021 1 commit
    • Jérome Perrin's avatar
      software/grafana: fix smtp_verify_ssl option handling · 877ea405
      Jérome Perrin authored
      This software uses xml for parameters serialisation, so we can not use
      boolean type. As a result, smtp_verify_ssl was always "true" and disabling ssl
      verification was not working.
      
      When accessing the smtp server from localhost, grafana attempt STARTLS and
      verifies certificate, so scenarios of using localhost:25 as smtp server usually
      needed smtp_verify_ssl="false".
      877ea405
  4. 15 Jun, 2021 10 commits
  5. 14 Jun, 2021 2 commits
    • Xavier Thompson's avatar
      stack/slapos.cfg: wheel = 0.35.1:whl · 9a5b1341
      Xavier Thompson authored
      This is a workaround to avoid the UnicodeDecodeError that occurs
      when installing wheel, in particular during compilation of ERP5.
      9a5b1341
    • Julien Muchembled's avatar
      ERP5: fix mariadb initialization when datadir is not a simple directory · 1bb0aa8f
      Julien Muchembled authored
      The previous way to initialize ~/srv/mariadb relied on /bin/mv, so that
      it's atomic, making [template-mysqld-wrapper] idempotent (think of a
      crash in the middle mysql_install_db). However, mv only works if
      ~/srv/mariadb is a simple directory: it fails if it's a symlink,
      a mount point, or a subvolume (btrfs).
      
      When using extra storage devices for some data, one may prefer to only
      put the data (e.g. ~/srv/mariadb) and not the whole slapos partition.
      Then if we want a resilient ERP5 with catalog's datadir on a separate
      storage device, the importer script must be able to reinitialize
      ~/srv/mariadb whatever its type.
      1bb0aa8f
  6. 11 Jun, 2021 2 commits
  7. 10 Jun, 2021 4 commits
  8. 09 Jun, 2021 1 commit
  9. 04 Jun, 2021 12 commits
  10. 03 Jun, 2021 2 commits
    • Thomas Gambier's avatar
      582b0b03
    • Jérome Perrin's avatar
      component/ghostscript: Workaround for slaprunner paths with double slashs · 1b291415
      Jérome Perrin authored
      This tessdata path will be included in cpp code by pre-processor macros
      https://github.com/ArtifexSoftware/ghostpdl/blob/gs9.54.0/base/tessocr.cpp#L188-L193
      Since // is the marker for a comment in cpp and as documented in
      https://gcc.gnu.org/onlinedocs/cpp/Stringizing.html "Comments are replaced by
      whitespace long before stringizing happens, so they never appear in stringized
      text", the STRINGIFY/STRINGIFY2 approach of including a path does not work
      when the path contain // , because anything after // is considered a comment
      and is not included, causing errors like this when using ghostscript with OCR
      in webrunner:
      
          $ strace -e open -o open.strace /srv/slapgrid/slappart42/srv/runner/shared/ghostscript/4387fe7a8d2034ac5691d43b58134248/bin/gs -sDEVICE=ocr
          GPL Ghostscript 9.54.0 (2021-03-30)
          Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
          This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
          see the file COPYING for details.
          Error opening data file ./eng.traineddata
          Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory.
          Failed loading language 'eng'
          Tesseract couldn't load any languages!
          **** Unable to open the initial device, quitting.
          $ grep eng open.strace
          open("./eng.traineddata", O_RDONLY)     = -1 ENOENT (No such file or directory)
          open("/srv/slapgrid/slappart42/srv/eng.traineddata", O_RDONLY) = -1 ENOENT (No such file or directory)
          open("eng.traineddata", O_RDONLY)       = -1 ENOENT (No such file or directory)
      
      eng.traineddata is looked up in /srv/slapgrid/slappart42/srv/ because
      ghostscript was configured with:
      
         --with-tessdata=/srv/slapgrid/slappart42/srv//runner//shared/ghostscript/4387fe7a8d2034ac5691d43b58134248/share/tessdata/
      
      and everything after // was stripped.
      
      This was reported upstream as https://bugs.ghostscript.com/show_bug.cgi?id=703905
      
      More about the case of // in slaprunner paths was on commit eb544196
      (slparunner: document the reasons why we keep srv//slaprunner, 2019-10-10)
      1b291415
  11. 02 Jun, 2021 1 commit
    • Xavier Thompson's avatar
      software/theia: Fix null parameters templating · c60456d3
      Xavier Thompson authored
      Before this commit, instance parameters that have a default null value
      in JSON format were rendered as 'None' string in instance-theia.cfg.
      
      In particular, Theia frontends were always requested with unsolvable
      SLA parameters that prevented a frontend from ever being allocated:
      ```
      sla-instance_guid = None
      ```
      c60456d3