Announcement

Collapse
No announcement yet.

When developing a plugin, where should I put it in the Docker container?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Ok, just set up a VM, installed LMS from a .deb, unpacked the ZIP of my plugin to /var/lib/squeezeboxserver/Plugins and it's working fine.

    I've realised I wasn't clicking the checkbox on the logging settings to save the log entries. I've now done this, and think I'm making some progress.

    On the VM, I see the 'init' log entry for my plugin in both the server.log and scanner.log

    On Docker, I only see the 'init' log entry for my plugin in the server.log.

    I've attached all the log files so you can see what's going on.

    To be clear, the plugin code files in both cases are the same, and are for the released version of my Plugin (SimpleLibraryViews).

    Hope this can help get some movement on this! Is there any chance the scanner is being started with a different set of 'include' directories or something?

    Thanks

    Andy
    Attached Files

    Comment


      #32
      When developing a plugin,where should I put it in the Docker container?

      > Is there any chance the
      > scanner is being started with a different set of 'include' directories
      > or something?


      Wow! You hit the nail on the head! I couldn't imagine until I tried
      myself. It would indeed use an internal, global variable "cachedir" -
      which is undefined in the scanner. I'll fix this. But you'll have to use
      a nightly build instead of 8.2.0, eg. "stable". It should be ready in a
      few minutes. Please give it a try and report back. Thanks a lot for your
      persistence!
      Michael

      "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
      (LMS: Settings/Information)

      Comment


        #33
        Originally posted by mherger View Post
        Wow! You hit the nail on the head! I couldn't imagine until I tried
        myself. It would indeed use an internal, global variable "cachedir" -
        which is undefined in the scanner. I'll fix this. But you'll have to use
        a nightly build instead of 8.2.0, eg. "stable". It should be ready in a
        few minutes. Please give it a try and report back. Thanks a lot for your
        persistence!
        I assume if I use the 'dev' tag for the docker image that'll pick this up?

        Glad we got there in the end, I was seriously questioning my sanity for a while there!

        Andy

        Comment


          #34
          When developing a plugin,where should I put it in the Docker container?

          > I assume if I use the 'dev' tag for the docker image that'll pick this
          > up?


          dev is 8.3 while stable is 8.2.1
          Michael

          "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
          (LMS: Settings/Information)

          Comment


            #35
            Ok, just built my container from 'dev', and the scan completes as expected (the Info dialog shows it doing a 'Create Library Views' step which it wasn't previously).

            Thanks a lot for your help!

            Andy

            Comment


              #36
              Originally posted by mherger View Post

              dev is 8.3 while stable is 8.2.1
              In my 'real' server, I have a script that checks for new Debian packages. It queries the following URL:



              Currently this is returning: https://downloads.slimdevices.com/Lo....2.0_amd64.deb

              Shouldn't this be something based on 8.2.1?

              If I query specifically for 'version=8.2.1' it does get the correct one. What URL should I be using to find the latest 'stable' .deb?

              Andy

              Comment


                #37
                Originally posted by mherger View Post
                No, your query would return the latest release version. Which is 8.2.0.
                8.2.1 is a nightly build. Stable but can change at any time. You'd get
                the latest 8.2.1 if you replaced 8.0.0 in your query with 8.2.1
                (whenever a new build was available).
                Ah ok, got it. I'll stick with what I'm using then, as it's my 'working' server, generally like to keep it as stable as possible.

                Hopefully final question, what version naming scheme can I use to indicate beta releases? It seems to get confused if I include anything other than numbers in there.

                I might go down the route the linux kernel used to do, with odd numbers being 'beta' and even numbers 'official' releases? So the betas for the work I'm doing will be 1.1.x, and then when I'm happy it'll go to 1.2.x.

                Andy

                Comment


                  #38
                  See my earlier reply ...
                  LMS version checking routines treat the letter at the end to indicate a beta of the upcoming release

                  I use
                  0.0.1, 0.0.2a, 0.0.2b, 0.0.2c, 0.0.2, 0.0.3a, 0.0.3b, 0.0.3c, 0.0.3
                  Paul Webster
                  Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                  and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                  Comment

                  Working...
                  X