Home of the Squeezebox™ & Transporter® network music players.
Page 54 of 55 FirstFirst ... 44452535455 LastLast
Results 531 to 540 of 549
  1. #531
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,599

    'Official' docker container for LMS?

    > Ah, I see - so, no need for any `-e` option, but simply change the
    > internal setting, for example to 9091, and then `-p` option would be `-p
    > 9091:9091' for the CLI? And, a restart for the internal setting to take
    > effect externally?


    Don't even know... but it shouldn't hurt to restart it.

  2. #532
    Quote Originally Posted by mherger View Post
    Don't even know... but it shouldn't hurt to restart it.
    :-)
    Thanks

  3. #533
    Senior Member
    Join Date
    Mar 2010
    Posts
    213
    Quote Originally Posted by BruceFeuillette View Post
    Hi!
    No ideas for this one?
    The lack of network tools and system utilities (like ps) make the debugging a bit hard. So I can't modify the PM files "on the fly" and relaunch the server.
    The underlying Debian works fine but LMS don't want to make DNS request.
    I begin to think that it's a network container problem as my LMS isn't no more visible in Foobar2000 when it was the case before. I guess both things are linked.
    This might be related to https://www.pedrolamas.com/2020/11/0...-synology-nas/

  4. #534
    Quote Originally Posted by pputzer View Post
    I tried this without luck. :/

    EDIT : I've played a bit with it. The problem is from the AnyEvent:NS Perl module.
    It failed to resolve where a simple gethostbyname in Perl is working very well. I'm a bit rusty on this so I didn't managed to bypass it.
    I saw a AnyEvent:NS::EtcHosts module that can force the DNS module to use the /etc/hosts file before everything. I can't get how to install it to try.
    Last edited by BruceFeuillette; 2021-09-02 at 12:48.

  5. #535
    Umm, I wonder if 'Containers' should have its own forum...? They're not strictly Unix/ Linux any more as they can be run on 'doz and MacOS (although obviously they're Unix/ Lunix on the inside and well, MacOS is nix and there's so many other things to talk about...)

    And, the thread's getting quite long by now...

    Just wondering...

  6. #536
    Junior Member
    Join Date
    Aug 2021
    Posts
    4

    Running on docker - what is the recommended method to update LMS?

    New to LMS on Docker. Running 8.2.1 (1628483320 @ Mon Aug 9 06:40:35 CEST 2021), but now I'm receiving the LMS notification 'A new version of Logitech Media Server is available.'

    How should I update?

  7. #537
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,599

    'Official' docker container for LMS?

    > New to LMS on Docker. Running 8.2.1 (1628483320 @ Mon Aug 9 06:40:35
    > CEST 2021), but now I'm receiving the LMS notification 'A new version of
    > Logitech Media Server is available.'


    Update the Docker image you're using. How you do that? Depends on your
    Docker installation. You'll need to give some more information about
    your system.

  8. #538
    Junior Member
    Join Date
    Sep 2021
    Posts
    3

    Working Kubernetes setup?

    Does anyone has a working kubernetes setup where LMS actually runs?

    So - I have it running in docker (using docker-compose) using traefik.

    The problem with kubernetes, os that you cannot share an IP Address with the ingress-nginx. So the http-port will not run on the same IP, but a different one. And I think that from what I read, the http-server needs to have the same port inside and outside the docker container.

    Anyone an idea how to get it to work inside kubernetes?

    Thx.

  9. #539
    Quote Originally Posted by Haley View Post
    Does anyone has a working kubernetes setup where LMS actually runs?

    So - I have it running in docker (using docker-compose) using traefik.

    The problem with kubernetes, os that you cannot share an IP Address with the ingress-nginx. So the http-port will not run on the same IP, but a different one. And I think that from what I read, the http-server needs to have the same port inside and outside the docker container.

    Anyone an idea how to get it to work inside kubernetes?

    Thx.
    Been awhile since I ran it on kubernetes. Had to keep up with changes too much to my liking so switched back to simple docker stack. But this was the config I used which was working perfectly. I used traefik and metal as load balancer though. That might make a difference.
    Code:
    apiVersion: v1
    kind: PersistentVolume
    metadata:
      name: lms-config
    spec:
      capacity:
        storage: 1Gi
      accessModes:
        - ReadWriteOnce
      mountOptions:
        - nfsvers=3
        - nolock
      nfs:
        server: 192.168.172.8 
        path: "/volume1/apps/lms_config"
    ---
    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: lms-config
      namespace: music
    spec:
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: 1Gi
      storageClassName: ""            
    ---
    apiVersion: v1
    kind: Service
    metadata:
      name: lms-service
      namespace: music
      #externalTrafficPolicy: Local
      labels:
        app: lms
    spec:
      type: LoadBalancer
      selector:
        app: lms
      ports:
      - name: "web"
        protocol: TCP
        port: 9000
        targetPort: 9000
      - name: "admin"
        protocol: TCP
        port: 9090
      - name: "castbridge"
        protocol: TCP
        port: 49152
    #  configIP: None
      loadBalancerIP: 192.168.172.207   
    ---
    apiVersion: networking.k8s.io/v1
    kind: Ingress
    metadata:
      name: lms-ingress
      namespace: music
      labels:
        app: lms
      annotations:
        kubernetes.io/ingress.class: traefik
    spec:
      rules:
      - host: lms.local.k3s
        http:
          paths: 
          - pathType: Prefix 
            path: "/"  
            backend:
              service:
                name: lms-service
                port:
                  number: 9000
    ---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: lms
      namespace: music
      labels:
        app: lms
    #    version: arm64v8-8.0.0_31-03-2020
        version: latest
        type: third-party
        facing: external
    spec:
      progressDeadlineSeconds: 300
      replicas: 1
      strategy:
        type: RollingUpdate
        rollingUpdate:
          maxSurge: 1
          maxUnavailable: 0
      selector:
        matchLabels:
          app: lms
      template:
        metadata:
          labels:
            app: lms
        spec:         
          restartPolicy: Always
          #imagePullSecrets:
            #- name: "gitlab"
          affinity:
            nodeAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                nodeSelectorTerms:
                - matchExpressions:
                  - key: kubernetes.io/arch
                    operator: In
                    values:
                    - "arm64"   
                  - key: kubernetes.io/hostname
                    operator: NotIn
                    values:
                    - "omv"   
            podAntiAffinity:
              requiredDuringSchedulingIgnoredDuringExecution:
                - labelSelector:
                    matchExpressions:
                    - key: app
                      operator: In
                      values:
                      - "lms"
                  topologyKey: "kubernetes.io/hostname"
          hostNetwork: true
          containers:
          - name: lms
            image: lmscommunity/logitechmediaserver:latest
            imagePullPolicy: IfNotPresent
            env:
            - name: TZ
              value: "Europe/Amsterdam"
            ports:
            - name: "discover-tcp"
              containerPort: 3483
              protocol: TCP
            - name: "discover-udp"
              containerPort: 3483
              protocol: UDP
            - name: "web"
              containerPort: 9000
              protocol: TCP
            - name: "admin"
              containerPort: 9090
              protocol: TCP
            - name: "castbridge"
              containerPort: 49152
              protocol: TCP
            volumeMounts:
            - name: lms-config
              mountPath: "/config"
              subPath: "state"
            - name: lms-config
              mountPath: "/playlist"
              subPath: "playlists"
            - name: music
              mountPath: "/music"
              readOnly: true
            - name: downloads
              mountPath: "/downloads"
            - name: tz-config
              mountPath: /etc/localtime
              readOnly: true
            readinessProbe:
              httpGet:
                path: /
                port: 9000
              initialDelaySeconds: 60
              failureThreshold: 10
              timeoutSeconds: 60
            livenessProbe:
              httpGet:
                path: /
                port: 9000
              initialDelaySeconds: 60
              failureThreshold: 10
              timeoutSeconds: 60
            resources:
              requests:
                cpu: "1.0"
                memory: "1500Mi"
              limits:
                cpu: "3.0"
                memory: "2500Mi"
          volumes:
          - name: lms-config
            persistentVolumeClaim:
              claimName: lms-config
          - name: downloads
            nfs:
              server: 192.168.172.8
              path: /volume1/downloads/music
          - name: music
            nfs:
              server: 192.168.172.8
              path: /volume1/music
          - name: tz-config
            hostPath:
              path: /etc/localtime
    ---
    Last edited by Huey11; 2021-09-28 at 06:07.

  10. #540
    Quote Originally Posted by norkle View Post
    New to LMS on Docker. Running 8.2.1 (1628483320 @ Mon Aug 9 06:40:35 CEST 2021), but now I'm receiving the LMS notification 'A new version of Logitech Media Server is available.'

    How should I update?
    I suggest reading these pages:
    https://blog.while-true-do.io/podman...er-management/
    https://blog.while-true-do.io/podman-auto-updates/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •