redlib icon indicating copy to clipboard operation
redlib copied to clipboard

🐛 Bug Report: Redlib version stuck at 30.2 for a while on render.com and now it gives error.

Open Taratect opened this issue 1 year ago • 1 comments

Describe the bug

Bascially my personal instance that's hosted on render.com was stuck at 30.2. In this version redlib had a bug where it couldn't load reddit posts and would show error if I had subscribed to 2 or more feeds. I didn't bother reporting it since I only used redlib for random posts and didn't use it with subscribed feeds.

However now it always gives me an error every time I click the custom url (redlib homepage/redlib popular page) given to me by render. Idk if the 2nd half of the bug is related to the latest issue #345 . If the problem is similar you can close the issue and mention it there. Plus would be helpful if anyone can provide a solution on how to fix the 1st half problem of being stuck at 30.2.

Steps to reproduce the bug

Just go to the custom url provided and you get error. No posts from reddit appears

Also I get some error while trying to deploy from render.com. it seems render cannot download the latest version of redlib for some reason

What's the expected behavior?

Redlib should work without ussues

Additional context / screenshot

This is the error I get when trying to redeploy redlib on render.com

https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gzhttps://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gzerror: failed to solve: process "/bin/sh -c curl -L \"https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gz\" | tar xz -C /usr/local/bin/" did not complete successfully: exit code: 1 error: exit status 1

Lastly what appears when I click on my personal instance of edlib homepage:

Failed to parse page JSON data: expected value at line 1 column 1 Reddit Status

Head back home? `

  • [x] I checked that the instance that this was reported on is running the latest git commit, or I can reproduce it locally on the latest git commit

Taratect avatar Dec 28 '24 14:12 Taratect

Okay did some research and found that the url https://github.com/redlib-org/redlib/releases/latest/download/redlib-${TARGET}.tar.gz in the dockerfile does not contain any file. So I tried to download the url for redlib tar.gz releases which is https://codeload.github.com/redlib-org/redlib/zip/refs/tags/v0.35.1 and replaced it with the former.

Okay now that error went away and render.com successfully downloaded it and was in middle of deploying but I got another error: Exited with status 128

I tried researching the error code. Apparently it means the code within the container triggered an exit code but did not provide a valid exit code or the deploy crashed because for using the wrong run command. What's the run command for redlib?

Any ideas how to fix this? I have no idea with my limited basic knowledge of java

Taratect avatar Dec 28 '24 15:12 Taratect