FOG Project

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

    Solved Snapin Update in Snapin Management Edit changes snapin File Name to "1"

    Bug Reports
    3
    7
    146
    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.
    • P
      Petěrko last edited by

      Hi guys,
      when I try to update a snapin in Snapin Management Edit and upload new file (ps1 or zip or whatever) the file got renamed to “1” and stored in /opt/fog/snapins. If I edit two snapins, they share file “1”.

      The only workaround now is to delete end recreate snapin to get proper filename.

      I would love to debug but I need to know where to look 😉
      I am on updated Debian 11.4, FOG 1.5.9.154

      Thanks for help
      Peter Michalčík

      JJ Fullmer 1 Reply Last reply Reply Quote 1
      • P
        Petěrko last edited by

        Thanks a lot,
        @Sebastian-Roth !

        Can confirm. In 1.5.9.159 Snapin update is working as expected.

        Peter

        1 Reply Last reply Reply Quote 1
        • S
          Sebastian Roth Moderator last edited by

          @Petěrko @JJ-Fullmer This should be fixed in the very latest dev-branch (1.5.9.159 and later).

          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

          1 Reply Last reply Reply Quote 1
          • P
            Petěrko last edited by

            Thanks for looking into it @Sebastian-Roth and @JJ-Fullmer:
            Updated to 1.5.9.156 and this issue still exists:

            1. Go to existing Snapin
            2. Browse and upload new file
            3. Snapin gets updated
            4. Open Snapin again and it says (unfortunately) the attached file name is 1.
            5. In /opt/fog/snapins: original file stays (with original name), new file is named 1.
            6. After update I see one difference, in a group:
              v154: fogproject:www-data
              v156: fogproject:fogproject
            7. If you update more Snapins, the file named 1 get rewritten again and again as all updated Snapins refer to this file.
            1 Reply Last reply Reply Quote 0
            • JJ Fullmer
              JJ Fullmer Testers @Sebastian Roth last edited by

              @sebastian-roth

              • Go to a snapin in the GUI
              • upload a new file for the snapin, or a new version of the same file
              • look at /opt/fog/snapins and see a file named 1 instead of your updated file.

              Have you tried the FogApi powershell module? It's pretty cool IMHO
              https://github.com/darksidemilk/FogApi
              https://fogapi.readthedocs.io/en/latest/
              https://www.powershellgallery.com/packages/FogApi
              https://forums.fogproject.org/topic/12026/powershell-api-module

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator last edited by

                @JJ-Fullmer @Petěrko Can one of you please provide more details on the exact steps to reproduce the issue mentioned?

                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

                JJ Fullmer 1 Reply Last reply Reply Quote 0
                • JJ Fullmer
                  JJ Fullmer Testers @Petěrko last edited by

                  @petěrko I actually noticed this same problem. Hadn’t gotten around to reporting it yet. I just used an FTP client to upload to /opt/fog/snapins as a workaround. I share a script for many snapins so deleting and recreating wasn’t really an option.
                  Maybe @Sebastian-Roth can help us out.

                  Have you tried the FogApi powershell module? It's pretty cool IMHO
                  https://github.com/darksidemilk/FogApi
                  https://fogapi.readthedocs.io/en/latest/
                  https://www.powershellgallery.com/packages/FogApi
                  https://forums.fogproject.org/topic/12026/powershell-api-module

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

                  186
                  Online

                  10.2k
                  Users

                  16.3k
                  Topics

                  149.9k
                  Posts

                  Copyright © 2012-2020 FOG Project