hifiberry-os icon indicating copy to clipboard operation
hifiberry-os copied to clipboard

Docker image/container no longer present after HBOS software update

Open mbolo01 opened this issue 1 year ago • 7 comments

DO NOT remove the blocks below, but fill these with the requested data. Incomplete bug reports will be ignored! You should remove this comment before posting the bug report.

Describe the bug Docker images and containers are removed post software updates

HiFiBerryOS version You find this on the "About" screen. It looks like Software 20YYMMDD 20240124 (64 bits) HiFiBerry sound card Post the exact type, e.g. DAC+ Pro instead of "DAC+". DAC+DSP To Reproduce Steps to reproduce the behavior: Update HBOS Check if previously installed docker image is still here Attempt to start previously running docker image

Expected behavior Based on your previous recommendations, I thought the way to preserve any particular setup between software updates was to use docker which is not really the case.

Screenshots If applicable, add screenshots to help explain your problem.

Browser (if applicable)

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

mbolo01 avatar Jan 25 '24 11:01 mbolo01

How exactly did you create the container?

hifiberry avatar Jan 25 '24 12:01 hifiberry

based on a docker-compose.yaml file located in a subfolder of /data/docker

mbolo01 avatar Jan 25 '24 12:01 mbolo01

Ok, I need to check. Can you post the file?

hifiberry avatar Jan 25 '24 12:01 hifiberry

cat docker-compose.yaml

version: '3' services: plexamp: container_name: plexamp privileged: true network_mode: "host" image: ghcr.io/pmdroid/plexamp-headless-docker:arm64-483 volumes: - /data/docker/plexamp/:/home/plexamp:rw - /run:/run:rw environment: - RELEASE_CHANNEL=version-beta restart: unless-stopped

mbolo01 avatar Jan 25 '24 12:01 mbolo01

Ok, you're trying to get Plexamp running? Try the new extension system for this. There is already an extension, but AFAIK it's not yet fully working. But it'll give you a better start:

/opt/hifiberry/bin/extensions install plexamp /opt/hifiberry/bin/extensions start plexamp (this will take some time as this creates the container)

Looks like it also doesn't start after an upgrade, but you can re-create it the container:

/opt/hifiberry/bin/extensions start plexamp

Note that an upgrade will always re-create the container. That means any changes that you did in a running container will not survive an undate as long as these are not stored somewhere in /data

The extension is based on code from a HiFiBerryOS user. It's not tested yet. Feel free to add documentation and/or bugfixes here: https://github.com/hifiberry/extension_plexamp

hifiberry avatar Jan 25 '24 12:01 hifiberry

"Out of the box", the plexamp extension does not work. What is the original GitHub code you relied on ? During the very first Plexamp installation there is a step that requires to input a token pulled from the Plex.tv web site. Some developers have tried to automate it, some didn't. Also, how the installation identifies that I'm running HBOS 64 ARM to pull the right code ?

mbolo01 avatar Jan 26 '24 08:01 mbolo01

Update: I managed to make it work as an extension, I will update https://github.com/hifiberry/extension_plexamp with my findings

mbolo01 avatar Jan 27 '24 13:01 mbolo01