Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Image crashes on startup #313

Closed
tobeehh opened this issue Aug 11, 2022 · 15 comments · Fixed by #316
Closed

Docker Image crashes on startup #313

tobeehh opened this issue Aug 11, 2022 · 15 comments · Fixed by #316

Comments

@tobeehh
Copy link

tobeehh commented Aug 11, 2022

After installing the Docker image on Synology DSM 7, the Docker image crashes on startuo without giving any hint why it does.

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

Can you include some logs? or a screenshot?

Also, which docker image specifically? freyrcli/freyrjs or one of the development images freyrcli/freyrjs-git?

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

This one: freyrcli/freyrjs. I will prrovide log but i guess it wont be able to jelp much.

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

freyr - (c) Miraculous Owonubi <omiraculous@gmail.com>
------------------------------------------------------
Usage: freyr [options] [command]

A versatile, service-agnostic music downloader and manager

Options:
  --no-logo                      hide startup logo
  --no-header                    hide startup header
  -v, --version                  output the version number
  -h, --help                     show this help information

Commands:
  get [options] [query...]       Download music tracks from queries
  filter [options] [pattern...]  Process filter patterns to preview JSON
                                 representation
  urify [options] [urls...]      Convert service URLs to uniform freyr
                                 compatible URIs
  help [command]                 show this help information or for any
                                 subcommand

Info:
  The `get` subcommand is implicit and default
   $ freyr spotify:artist:6M2wZ9GZgrQXHCFfjv46we
     # is equivalent to
   $ freyr get spotify:artist:6M2wZ9GZgrQXHCFfjv46we

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

You're not telling freyr to do anything yet. So freyr is showing you how to use it.

Your command needs to look like the following:

docker run -it --rm freyrcli/freyrjs https://open.spotify.com/track/5UyE68WJRtNobAhUHDOesw

That tells freyr to download the track in the URL.

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

oh ok so you have to start it each time with the command? My assumption was yoo could do this once it is running.

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

Oh, yeah. freyr isn't interactive at runtime. You have to specify what you want to run before you run it.

If you run into any other hitches, feel free to file another issue.

@miraclx miraclx closed this as completed Aug 11, 2022
@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

Is there any chance to change that behaviour? this would be helpful for usage on nas systems.

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

Do you not have access to the CLI? How did you run docker?

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

you can either start docker images via terminal or via the synology gui. However, you can set flags only at the time of installation. It would be very handy if you could start it with the -v and path flag and then just use the inbuilt terminal to throw a download at it at some time.

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

Yeah, it's unclear what the context is here. If you have terminal access to the system, you can use freyr.

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

or did you mean the inbuilt terminal is what freyr should provide?

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

Correct. That would be really cool for nas systems as you wouldnt have to connect with ssh prior but could use the inbuilt terminal of docker in the web gui of the synology system

@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

Yeah, I understand you. Then again, this seems like an inadequacy on Docker Desktop's part. Sounds like they should allow you to specify args to call docker images with. Or at least treat the terminal in the app as an actual terminal with a shell and not just a logger.

@miraclx miraclx reopened this Aug 11, 2022
@miraclx
Copy link
Owner

miraclx commented Aug 11, 2022

@tobeehh, took a stab at implementing something to aid with this. Checkout #316.

You can use the development docker image to test this freyrcli/freyrjs-git:pr-316.

@tobeehh
Copy link
Author

tobeehh commented Aug 11, 2022

Absolute legend... This adds so much convenience for NAS Users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants