Home of the Squeezebox™ & Transporter® network music players.
Page 38 of 52 FirstFirst ... 28363738394048 ... LastLast
Results 371 to 380 of 520
  1. #371
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    304
    Docker works on my Synology DS415+ ... but my first attempt failed. Is there a step-by-step (how-to) instruction anywhere?
    /Claus

  2. #372
    Junior Member
    Join Date
    Mar 2019
    Posts
    5
    Quote Originally Posted by NikolajC View Post
    I haven't been able to. Seem to have the same issue on the apnar image as well.
    I also had this problem. The synology gui makes it look like docker volumes work through shared folders, but that's actually not true. When you map the music folder to /music in the container, under the covers you get a bind mount of /volume1/music to a place in the container, and the level of access you get is determined by file system permissions. When I looked at /volume1/music on my system (using ssh) the mode was d---------+, meaning no access. I chmod'ed it to dwrxw-xw-x and everything started working.

    I have no idea why it (and some other shared directories) were like that. I pulled my previous synology out of storage and checked, and all of the shared directories on that had sensible modes.

  3. #373
    Junior Member
    Join Date
    Mar 2019
    Posts
    5
    Quote Originally Posted by edw5 View Post
    I also had this problem. The synology gui makes it look like docker volumes work through shared folders, but that's actually not true. When you map the music folder to /music in the container, under the covers you get a bind mount of /volume1/music to a place in the container, and the level of access you get is determined by file system permissions. When I looked at /volume1/music on my system (using ssh) the mode was d---------+, meaning no access. I chmod'ed it to dwrxw-xw-x and everything started working.

    I have no idea why it (and some other shared directories) were like that. I pulled my previous synology out of storage and checked, and all of the shared directories on that had sensible modes.
    Correction, I chmod'ed to drwxr-xr-x (755).
    Last edited by edw5; 2021-02-27 at 22:28. Reason: Typos

  4. #374
    Senior Member
    Join Date
    Nov 2012
    Location
    UK, Nottinghamshire
    Posts
    380
    Quote Originally Posted by cfuttrup View Post
    Docker works on my Synology DS415+ ... but my first attempt failed. Is there a step-by-step (how-to) instruction anywhere?
    /Claus
    Here is link to the link with some updated info and notes about permissions.. Tested it from scratch using gui and it works fine.. Good luck

    https://forums.slimdevices.com/showthread.php?p=1010146
    3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander, Logitech Media Server Version: 8.2.0 with Material Skin (Docker in DS218+)

  5. #375
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    304
    Hi Jaca

    Thank you for the link. It is helpful because it describes how to change the permissions to the lms folder, but it still isn't working for me.


    Here is what I did:

    1) Install Docker. It's simple, you just get it from Package Center. I don't remember doing anything special.

    2) Open Docker. Go to 'Registry' and search for 'lmscommunity' - click the found image file. You get to
    choose a tag. I chose 'stable' ... then push DOWNLOAD.

    3) In the docker directory on the Synology Diskstation, I have made a subdirectory named 'lms' and inside that
    directory I've made a subsubdirectory named 'config' ...

    4) Once the docker container is downloaded, in the Docker app, I went to 'Image' and found the downloaded
    image of LMS. Double-click the image and a dialog box shows up, where you configure the LMS docker container.

    5) First config page is the 'General settings' and here I enabled 'Enable resource limitation' and set CPU
    priority to LOW + memory limit to 1 GB (the machine has 2 GB). Normally LMS should require much less than this.

    6) In the General settings config page I then click the button 'Advanced settings' and this opens up a dialog box
    with 6 tabs:

    - Advanced settings
    - Volume
    - Network
    - Port Settings
    - Links
    - Environment

    In the first tab I 'Enable auto-restart'
    In the second tab I push 'Add Folder' button and I add docker/lms/config and I specify the mount path: /config
    In the same way I add /music as /music
    I also add /music/Playlists as /playlists
    Then I push the Apply button

    I did not change anything about Port Settings, which BTW means TCP/UPD = 3483 and 3483, and also a couple of TCP
    ports are listed, these are 9000 and 9090.

    I did not add any Links (the list is empty).

    In the Environment tab, I changed PUID to 1026. I saw someone in the forum mention this worked for him/her. Indeed
    my admin account is disabled (as recommended by the Security Advisor) and my admin has a different name, etc. I
    SSH'ed into my machine and found that the $UID = 1026 for this admin account.

    I did not change anything else in the Environment tab, and I see that HTTP_PORT = 9000.

    When I execute in a browser the command http://myip:9000/ ... then LMS doesn't show up and the browser gives the
    classical error "This site can't be reached" ...

    Just in case this was interfering with the 'other' LMS server (the original Synology package from pinkdot), I stopped
    this service. This doesn't change anything.

    Is anyone able to spot what I am missing? Above is exactly what I have done, no more and no less.

    I did not specify /music and /playlists folders as read-only. Is this important?

    claus@DS415P:/volume1/docker$ ls -la
    total 24
    drwxrwxrwx+ 5 root root 4096 Feb 19 18:48 .
    drwxr-xr-x 25 root root 4096 Jan 31 12:26 ..
    drwxrwxrwx+ 3 root root 4096 Jan 31 12:26 @eaDir
    drwxrwxrwx+ 3 claus users 4096 Feb 19 18:48 lms


    Best regards,
    Claus

  6. #376
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    304
    I've tried to change the port setting for 9000 to 9002 instead and then I also changed HTTP_PORT = 9002. I still cannot load LMS into my browser.

    The lms container runs in 'bridge' mode. It's the default.

    /Claus

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

    LmsUpdate and LmsRepack - Synology 8.0.*packages

    > I did not change anything about Port Settings, which BTW means TCP/UPD =
    > 3483 and 3483, and also a couple of TCP
    > ports are listed, these are 9000 and 9090.


    You'll have to tell DSM to use the exact same ports. Otherwise it would
    assign a random port to them by default.

  8. #378
    Senior Member
    Join Date
    Nov 2012
    Location
    UK, Nottinghamshire
    Posts
    380
    Hmmm maybe try in host mode instead..
    I had to use host mode as with bridge mode and pinkdot's package (even when stopped) I wasn't able to add any players to this lms instance. Eventually after while I uninstalled package and got it working in bridge mode.

    I might me wrong but from my experience if your docker container crashed after few seconds then you most likely have permission issue with /config.

    If your container works but it does not behave as expected then probably its ports issue/conflict


    PS wasn't playlists folder supposed to be /playlist not
    /playlists? That should not make gui inaccessible though.
    3x Squeezebox Touch, 4x Squeezebox Radio, Squeezelite (RPi 3B with HiFiBerry DAC+Pro on OSMC), Material Skin Apk, Squeeze Commander, Logitech Media Server Version: 8.2.0 with Material Skin (Docker in DS218+)

  9. #379
    Senior Member
    Join Date
    Sep 2009
    Location
    Norway
    Posts
    304
    Quote Originally Posted by mherger View Post
    > I did not change anything about Port Settings, which BTW means TCP/UPD =
    > 3483 and 3483, and also a couple of TCP
    > ports are listed, these are 9000 and 9090.


    You'll have to tell DSM to use the exact same ports. Otherwise it would
    assign a random port to them by default.
    How do I do that?

    My DSM uses port 5000 and 5001.

    Best regards,
    Claus

  10. #380
    Senior Member
    Join Date
    Mar 2011
    Posts
    164
    you can use the following snippet

    save it as lms.json and import it into your synology docker via the import menu
    of course you have to adapt the folder paths. Also the PUID, PGID, and your TZ variable.
    Good liuck!

    {
    "cap_add": [
    "AUDIT_WRITE",
    "CHOWN",
    "DAC_OVERRIDE",
    "FOWNER",
    "FSETID",
    "KILL",
    "MKNOD",
    "NET_BIND_SERVICE",
    "NET_RAW",
    "SETFCAP",
    "SETGID",
    "SETPCAP",
    "SETUID",
    "SYS_CHROOT"
    ],
    "cap_drop": [
    "AUDIT_CONTROL",
    "BLOCK_SUSPEND",
    "DAC_READ_SEARCH",
    "IPC_LOCK",
    "IPC_OWNER",
    "LEASE",
    "LINUX_IMMUTABLE",
    "MAC_ADMIN",
    "MAC_OVERRIDE",
    "NET_ADMIN",
    "NET_BROADCAST",
    "SYSLOG",
    "SYS_ADMIN",
    "SYS_BOOT",
    "SYS_MODULE",
    "SYS_NICE",
    "SYS_PACCT",
    "SYS_PTRACE",
    "SYS_RAWIO",
    "SYS_RESOURCE",
    "SYS_TIME",
    "SYS_TTY_CONFIG",
    "WAKE_ALARM"
    ],
    "cmd": "",
    "cpu_priority": 50,
    "devices": [],
    "enable_publish_all_ports": false,
    "enable_restart_policy": false,
    "enabled": true,
    "env_variables": [
    {
    "key": "TZ",
    "value": "Europe/Amsterdam"
    },
    {
    "key": "PATH",
    "value": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    },
    {
    "key": "DEBIAN_FRONTEND",
    "value": "noninteractive"
    },
    {
    "key": "LC_ALL",
    "value": "C.UTF-8"
    },
    {
    "key": "LANG",
    "value": "en_US.UTF-8"
    },
    {
    "key": "LANGUAGE",
    "value": "en_US.UTF-8"
    },
    {
    "key": "PUID",
    "value": "1024"
    },
    {
    "key": "PGID",
    "value": "100"
    },
    {
    "key": "HTTP_PORT",
    "value": "9000"
    }
    ],
    "exporting": false,
    "id": "0015372e7fa9059369981915b494d5818560b489d5458bbcc 5bd2d52cf2eb2c1",
    "image": "lmscommunity/logitechmediaserver:8.2.0",
    "is_ddsm": false,
    "is_package": false,
    "links": [],
    "memory_limit": 0,
    "name": "logitechmediaserver",
    "network": [
    {
    "driver": "host",
    "name": "host"
    }
    ],
    "network_mode": "host",
    "port_bindings": [],
    "privileged": false,
    "shortcut": {
    "enable_shortcut": false
    },
    "use_host_network": true,
    "volume_bindings": [
    {
    "host_volume_file": "/Music",
    "mount_point": "/mnt/music",
    "type": "ro"
    },
    {
    "host_volume_file": "/docker/squeezebox/config",
    "mount_point": "/config",
    "type": "rw"
    },
    {
    "host_volume_file": "/docker/localtime",
    "mount_point": "/etc/localtime",
    "type": "ro"
    },
    {
    "host_volume_file": "/docker/TZ",
    "mount_point": "/etc/timezone",
    "type": "ro"
    },
    {
    "host_volume_file": "/Audiobooks",
    "mount_point": "/mnt/audiobooks",
    "type": "ro"
    }
    ]
    }

Posting Permissions

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