• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Rev 5307 Failed to find snapin file

Scheduled Pinned Locked Moved Solved
Bug Reports
2
3
978
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Claude Girard
    last edited by Nov 12, 2015, 10:51 AM

    Rev 5307
    I wanted to test new client version (0.9.6), and snapins did’nt work.
    In log file I could see:
    Failed to find snapin file

    With a colleague help, we found the problem: snapin file was searched with path /opt/fog
    And snapins are in /opt/fog/snapins

    In Global configuration, I have /opt/fog/snapins/ for FOG_SNAPDIR (with the trailing slash)

    But in Storage configuration, for each node I have /opt/fog/snapins (without trailing slash)

    And in lib/client/SnapinClient.class.php line 36 you use dirname
    Dirname without trailing slash extract only the first part (/opt/fog/)

    And in commons/schema.php, line 1642, value is forced to /opt/fog/snapins (without trailing slash)
    In Storage configuration, if I add trailing slash, it dissapear after validation.

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Nov 12, 2015, 12:48 PM

      I’ve removed the dirname function from the stuff, if you can update and let me know if things are good?

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      C 1 Reply Last reply Nov 12, 2015, 4:03 PM Reply Quote 0
      • C
        Claude Girard @Tom Elliott
        last edited by Nov 12, 2015, 4:03 PM

        @Tom-Elliott said:

        I’ve removed the dirname function from the stuff, if you can update and let me know if things are good?

        Yes it’s ok now

        Thank you

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post

        189

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project