sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.62k stars 115 forks source link

General support #538

Open sentriz opened 2 months ago

sentriz commented 2 months ago

Use this issue for general support, leaving other issues just for feature requests / bugs. Thanks

TheOnAndOnlyZenomat commented 2 months ago

Hey, I am using the docker installation. I am trying to get proper podcast episode names going, but they are just a random ID. What I gathered from the issues, they should have proper names? I couldn't find the config parameter, if there is one. Am I missing something?

Otherwise, thanks for this piece of software, other than my (minor) problems, it works flawlessly :D

sentriz commented 2 months ago

Hey, I am using the docker installation. I am trying to get proper podcast episode names going, but they are just a random ID. What I gathered from the issues, they should have proper names? I couldn't find the config parameter, if there is one. Am I missing something?

Otherwise, thanks for this piece of software, other than my (minor) problems, it works flawlessly :D

hey, could you provide a link to the RSS feed

TheOnAndOnlyZenomat commented 2 months ago

That would be this one: http://rocketbeans.tv/podcasts/pen_and_paper.xml

sentriz commented 2 months ago

ah I can see that the filenames are random strings and numbers . but when browsing with a subsonic client it looks good. is the issue only on the filesystem? or in a client there are no names either?

TheOnAndOnlyZenomat commented 1 month ago

Oh yeah, sorry. I mean on the filesystem. I eventually want to use the directory structure for other things as well, where it would be very beneficial, if the files have readable names

sentriz commented 1 month ago

@lxea an example file is https://audio.podigee-cdn.net/444699-m-0b034923be702b5da143da2620eebb82.mp3 producing the file 444699-m-0b034923be702b5da143da2620eebb82.mp3 is it because the response is missing Content-Disposition? maybe should we fall back to the podcast title?

or do I recall we had this issue before and decided not to use the title

UberPinguin commented 1 month ago

Using gonic-16.0.4 with go-1.22.5, if I pass -proxy-prefix=/gonic, gonic goes into an infinite redirect to /gonic/admin/home. This happens regardless of whether I'm accessing it directly or through a reverse proxy.

Is there another setting I'm missing?

sentriz commented 1 month ago

@UberPinguin what does your reverse proxy setup look like?

UberPinguin commented 1 month ago

@sentriz

         location /gonic {
                        proxy_set_header X-Forwarded-Proto https;
                        proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
                        proxy_set_header  Host $host;
                        proxy_set_header  X-Url-Scheme $scheme;
                        proxy_redirect    off;
                        proxy_max_temp_file_size 0;
                        proxy_pass http://192.168.2.6:4747/gonic;
# have also tried
#                       proxy_pass http://192.168.2.6:4747/gonic/;
                        access_log      /var/log/nginx/gonic_access.log;
                        error_log       /var/log/nginx/gonic_error.log;
                }
sentriz commented 1 month ago

can you try proxy_pass http://192.168.2.6:4747/; as per https://github.com/sentriz/gonic/wiki/reverse-proxy

UberPinguin commented 1 month ago

Ah! I hadn't found the wiki, thank you. Using just the bare stanza from that entry, it started working normally. I iterated through each of the other settings I had in my previous config, and found that the one causing issues was indeed the proxy_pass directive as well as missing the proxy_cookie_path directive.

New, working config:

                location /gonic/ {
                        proxy_set_header         X-Forwarded-For $proxy_add_x_forwarded_for;
                        proxy_set_header         X-Forwarded-Host $host;
                        proxy_set_header         X-Forwarded-Proto https;
                        proxy_set_header         Host $host;
                        proxy_set_header         X-Url-Scheme $scheme;
                        proxy_buffering          off;
                        proxy_max_temp_file_size 0;
                        proxy_request_buffering  off;
                        proxy_pass               http://192.168.2.6:4747/;
                        proxy_redirect           default;
                        proxy_cookie_path        / "/; Secure";
                        access_log               /var/log/nginx/gonic_access.log;
                        error_log                /var/log/nginx/gonic_error.log;

                }

Thank you very much!

NadCat1 commented 2 weeks ago

During intial installation (docker) the process always gets stuck at "starting job "podcast download"". No matter what I try (deleting everything, different images, docker setup vs docker compose, not setting a podcast folder...) it always stays stuck. The longest I've waited was 45 minutes. I'm trying to install it on a Synology NAS with DSM 7.2.2

sentriz commented 2 weeks ago

@NadCat1 can you try do a coredump so I can see where it's hanging? For docker it would be docker stop <container> -s SIGQUIT

NadCat1 commented 2 weeks ago

@NadCat1 can you try do a coredump so I can see where it's hanging? For docker it would be docker stop <container> -s SIGQUIT

That command doesn't work: https://i.imgur.com/lNIN5az.png

sentriz commented 2 weeks ago

Maybe try --signal, or but the container name at the end of the command https://docs.docker.com/reference/cli/docker/container/stop/#options

NadCat1 commented 2 weeks ago

According to --help I can only use -t or --time, signal is not a valid option https://i.imgur.com/Xz8fu7p.png

NadCat1 commented 5 days ago

dump.zip dump2.zip

I created this using gdb. Not sure if it contains what you need to analyze the problem

Abhimanyu310 commented 4 days ago

My app says that subsonic server not found. I used the same credentials on another app called "substreamer" on iOS. I have my music hosted on navidrome, any idea why it cannot find and connect?

sentriz commented 4 days ago

@Abhimanyu310 navidrome is not gonic. if you are using navidrome then you should ask them

khers commented 2 days ago

How do getSimilarSongs and getSimilarSongs2 decide on what is similar? I ask because some artists/albums/songs in my collection will return with results and others won't and it isn't clear to me why.

For instance if I ask getSimilarSongs to return something similar to 'Houses of the Holy' by Led Zepplin, no problem, I get a list of other bands that I would consider similar.

But if I ask for getSimilarSongs to 'that was my brain on elves' by mclusky I get nothing, even though I have several future of the left albums (similar musical style and lots of personnel overlap).

sentriz commented 2 days ago

hi @khers, it uses a lastfm api of the same name https://github.com/sentriz/gonic/blob/master/server/ctrlsubsonic/handlers_by_tags.go#L641-L664