question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alpine Binary Issues

See original GitHub issue

Thanks for publishing this tool! I have tried it out on Ubuntu and it seems to work well.

However, I would like to run this in a container with an alpine linux base image. The binary does not work currently. I have tested it with the following Dockerfile

FROM alpine:3.11

WORKDIR /usr/local/bin

RUN wget https://github.com/lightpohl/podcast-dl/releases/download/v1.3.1/podcast-dl-linux-x64 \
  && chmod +x podcast-dl-linux-x64 \
  && mv podcast-dl-linux-x64 podcast-dl \
  && mkdir /downloads

WORKDIR /downloads

CMD ["ldd", "/usr/local/bin/podcast-dl"]
#CMD ["podcast-dl", "--help"]
#CMD ["tail","-f","/dev/null"]

which can be built with docker build --tag podcast-dl:1.3.1 . and run with docker run --name podcast-dl -it podcast-dl:1.3.1

ldd displays the issues with the binary and I do not know where to go from here.

EDIT: a snippet of the ldd output

Error relocating /usr/local/bin/podcast-dl: _ZNSsC1ERKSsmm: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZnamRKSt9nothrow_t: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNKSs7compareEPKc: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSt11logic_errorD1Ev: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZdlPvRKSt9nothrow_t: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSs15_M_replace_safeEmmPKcm: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSsD1Ev: symbol not found
Error relocating /usr/local/bin/podcast-dl: backtrace: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSsC1EPKcRKSaIcE: symbol not found
Error relocating /usr/local/bin/podcast-dl: getcontext: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSt15basic_streambufIcSt11char_traitsIcEE6setbufEPcl: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSo9_M_insertIxEERSoT_: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZNSs7reserveEm: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZTISt9exception: symbol not found
Error relocating /usr/local/bin/podcast-dl: _ZTVSt12domain_error: symbol not found

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
garrettdowdcommented, May 13, 2020

I believe there is a Node image for Alpine, maybe that will be easier than trying to run the binary. My only experience with Node is running Node RED, but I will try giving it a shot. It looks like if I install npx with npm then I can just run npx podcast-dl?

Yes this was much easier. I just installed with npm and it works perfectly. I will push it to Docker Hub and maybe (in the near future) build a little web gui like youtube-dl-server to make it quicker to use. I will update this post with a link when it’s up.

EDIT: Here it is. A very rudimentary setup with WEB interface that works. https://hub.docker.com/repository/docker/garrettdowd/podcast-dl-server

0reactions
lightpohlcommented, May 13, 2020

Closing for now until pkg resolve the issue on their end, and then I’ll start adding the Alpine binaries back to the releases. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker Alpine executable binary not found even if in PATH
On Alpine Linux, the not found error is a typical symptom of dynamic link failure. It is indeed a rather confusing error by...
Read more >
Problem with the linux binaries on Alpine · Issue #1818 - GitHub
Hi there. I wasn't able to download and install the linux binaries properly on Alpine linux. I've created a Dockerfile to recreate the...
Read more >
Support running Kotlin/Native-produced binaries on Alpine ...
I've recently come across this issue. I see that alpine support has been removed from the roadmap. Would it be possible to get...
Read more >
Alpine Linux - Wikipedia
For security, Alpine compiles all user-space binaries as position-independent executables with stack-smashing protection. Because of its small size and rapid ...
Read more >
About - Alpine Linux
Alpine Linux was designed with security in mind. All userland binaries are compiled as Position Independent Executables (PIE) with stack smashing protection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found