akhilrex / podgrab

A self-hosted podcast manager/downloader/archiver tool to download podcast episodes as soon as they become live with an integrated player.
GNU General Public License v3.0
1.61k stars 88 forks source link

various questions #299

Open dewmguy opened 4 months ago

dewmguy commented 4 months ago

1

why don't you include linux/ubuntu instructions to install with snap?

sudo snap install go

done.


2

installing with the instructions gives this error:

user@server:~/downloads/podgrab$ go build -o ./dist/podgrab ./main.go
../../go/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_tcgets.go:6:8: missing go.sum entry for module providing package golang.org/x/sys/unix (imported by github.com/mattn/go-isatty); to add:
        go get github.com/mattn/go-isatty@v0.0.12

running go get github.com/mattn/go-isatty@v0.0.12 resolves the issue


3

there is no example on how to modify the .env file, what changes are recommended or required or not needed, what the variables are for exactly.


4

running podgrab with default config gives this output

[error] failed to initialize database, got error unable to open database file: no such file or directory
db err:  unable to open database file: no such file or directory
statuse:  unable to open database file: no such file or directory
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /webassets/*filepath      --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] HEAD   /webassets/*filepath      --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] GET    /assets/*filepath         --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] HEAD   /assets/*filepath         --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] GET    /backups/*filepath        --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] HEAD   /backups/*filepath        --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (6 handlers)
[GIN-debug] POST   /podcasts                 --> github.com/akhilrex/podgrab/controllers.AddPodcast (6 handlers)
[GIN-debug] GET    /podcasts                 --> github.com/akhilrex/podgrab/controllers.GetAllPodcasts (6 handlers)
[GIN-debug] GET    /podcasts/:id             --> github.com/akhilrex/podgrab/controllers.GetPodcastById (6 handlers)
[GIN-debug] GET    /podcasts/:id/image       --> github.com/akhilrex/podgrab/controllers.GetPodcastImageById (6 handlers)
[GIN-debug] DELETE /podcasts/:id             --> github.com/akhilrex/podgrab/controllers.DeletePodcastById (6 handlers)
[GIN-debug] GET    /podcasts/:id/items       --> github.com/akhilrex/podgrab/controllers.GetPodcastItemsByPodcastId (6 handlers)
[GIN-debug] GET    /podcasts/:id/download    --> github.com/akhilrex/podgrab/controllers.DownloadAllEpisodesByPodcastId (6 handlers)
[GIN-debug] DELETE /podcasts/:id/items       --> github.com/akhilrex/podgrab/controllers.DeletePodcastEpisodesById (6 handlers)
[GIN-debug] DELETE /podcasts/:id/podcast     --> github.com/akhilrex/podgrab/controllers.DeleteOnlyPodcastById (6 handlers)
[GIN-debug] GET    /podcasts/:id/pause       --> github.com/akhilrex/podgrab/controllers.PausePodcastById (6 handlers)
[GIN-debug] GET    /podcasts/:id/unpause     --> github.com/akhilrex/podgrab/controllers.UnpausePodcastById (6 handlers)
[GIN-debug] GET    /podcasts/:id/rss         --> github.com/akhilrex/podgrab/controllers.GetRssForPodcastById (6 handlers)
[GIN-debug] GET    /podcastitems             --> github.com/akhilrex/podgrab/controllers.GetAllPodcastItems (6 handlers)
[GIN-debug] GET    /podcastitems/:id         --> github.com/akhilrex/podgrab/controllers.GetPodcastItemById (6 handlers)
[GIN-debug] GET    /podcastitems/:id/image   --> github.com/akhilrex/podgrab/controllers.GetPodcastItemImageById (6 handlers)
[GIN-debug] GET    /podcastitems/:id/file    --> github.com/akhilrex/podgrab/controllers.GetPodcastItemFileById (6 handlers)
[GIN-debug] GET    /podcastitems/:id/markUnplayed --> github.com/akhilrex/podgrab/controllers.MarkPodcastItemAsUnplayed (6 handlers)
[GIN-debug] GET    /podcastitems/:id/markPlayed --> github.com/akhilrex/podgrab/controllers.MarkPodcastItemAsPlayed (6 handlers)
[GIN-debug] GET    /podcastitems/:id/bookmark --> github.com/akhilrex/podgrab/controllers.BookmarkPodcastItem (6 handlers)
[GIN-debug] GET    /podcastitems/:id/unbookmark --> github.com/akhilrex/podgrab/controllers.UnbookmarkPodcastItem (6 handlers)
[GIN-debug] PATCH  /podcastitems/:id         --> github.com/akhilrex/podgrab/controllers.PatchPodcastItemById (6 handlers)
[GIN-debug] GET    /podcastitems/:id/download --> github.com/akhilrex/podgrab/controllers.DownloadPodcastItem (6 handlers)
[GIN-debug] GET    /podcastitems/:id/delete  --> github.com/akhilrex/podgrab/controllers.DeletePodcastItem (6 handlers)
[GIN-debug] GET    /tags                     --> github.com/akhilrex/podgrab/controllers.GetAllTags (6 handlers)
[GIN-debug] GET    /tags/:id                 --> github.com/akhilrex/podgrab/controllers.GetTagById (6 handlers)
[GIN-debug] GET    /tags/:id/rss             --> github.com/akhilrex/podgrab/controllers.GetRssForTagById (6 handlers)
[GIN-debug] DELETE /tags/:id                 --> github.com/akhilrex/podgrab/controllers.DeleteTagById (6 handlers)
[GIN-debug] POST   /tags                     --> github.com/akhilrex/podgrab/controllers.AddTag (6 handlers)
[GIN-debug] POST   /podcasts/:id/tags/:tagId --> github.com/akhilrex/podgrab/controllers.AddTagToPodcast (6 handlers)
[GIN-debug] DELETE /podcasts/:id/tags/:tagId --> github.com/akhilrex/podgrab/controllers.RemoveTagFromPodcast (6 handlers)
[GIN-debug] GET    /add                      --> github.com/akhilrex/podgrab/controllers.AddPage (6 handlers)
[GIN-debug] GET    /search                   --> github.com/akhilrex/podgrab/controllers.Search (6 handlers)
[GIN-debug] GET    /                         --> github.com/akhilrex/podgrab/controllers.HomePage (6 handlers)
[GIN-debug] GET    /podcasts/:id/view        --> github.com/akhilrex/podgrab/controllers.PodcastPage (6 handlers)
[GIN-debug] GET    /episodes                 --> github.com/akhilrex/podgrab/controllers.AllEpisodesPage (6 handlers)
[GIN-debug] GET    /allTags                  --> github.com/akhilrex/podgrab/controllers.AllTagsPage (6 handlers)
[GIN-debug] GET    /settings                 --> github.com/akhilrex/podgrab/controllers.SettingsPage (6 handlers)
[GIN-debug] POST   /settings                 --> github.com/akhilrex/podgrab/controllers.UpdateSetting (6 handlers)
[GIN-debug] GET    /backups                  --> github.com/akhilrex/podgrab/controllers.BackupsPage (6 handlers)
[GIN-debug] POST   /opml                     --> github.com/akhilrex/podgrab/controllers.UploadOpml (6 handlers)
[GIN-debug] GET    /opml                     --> github.com/akhilrex/podgrab/controllers.GetOmpl (6 handlers)
[GIN-debug] GET    /player                   --> github.com/akhilrex/podgrab/controllers.PlayerPage (6 handlers)
[GIN-debug] GET    /rss                      --> github.com/akhilrex/podgrab/controllers.GetRss (6 handlers)
[GIN-debug] GET    /ws                       --> main.main.func11 (6 handlers)
[GIN-debug] Environment variable PORT is undefined. Using port :8080 by default
[GIN-debug] Listening and serving HTTP on :8080
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x7c8af2]

goroutine 38 [running]:
gorm.io/gorm.(*DB).getInstance(0xc000057008?)
        /home/user/go/pkg/mod/gorm.io/gorm@v1.20.2/gorm.go:278 +0x12
gorm.io/gorm.(*DB).Find(0x0?, {0xae71e0, 0xc000012198}, {0x0, 0x0, 0x0})
        /home/user/go/pkg/mod/gorm.io/gorm@v1.20.2/finisher_api.go:108 +0x36
github.com/akhilrex/podgrab/db.UnlockMissedJobs()
        /home/user/downloads/podgrab/db/dbfunctions.go:367 +0x58
github.com/akhilrex/podgrab/service.UnlockMissedJobs(...)
        /home/user/downloads/podgrab/service/podcastService.go:787
main.intiCron()
        /home/user/downloads/podgrab/main.go:226 +0xb5
created by main.main in goroutine 1
        /home/user/downloads/podgrab/main.go:204 +0x1585