-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] DB::MappingException
with updated
property of Invidious::User
#5067
Comments
By location you mean the AE, AR, AT, AU, AZ, BA, BD, BE, BG, BH, BO, BR, BY, CA, CH, CL, CO, CR,
CY, CZ, DE, DK, DO, DZ, EC, EE, EG, ES, FI, FR, GB, GE, GH, GR, GT, HK,
HN, HR, HU, ID, IE, IL, IN, IQ, IS, IT, JM, JO, JP, KE, KR, KW, KZ, LB,
LI, LK, LT, LU, LV, LY, MA, ME, MK, MT, MX, MY, NG, NI, NL, NO, NP, NZ,
OM, PA, PE, PG, PH, PK, PL, PR, PT, PY, QA, RO, RS, RU, SA, SE, SG, SI,
SK, SN, SV, TH, TN, TR, TW, TZ, UA, UG, US, UY, VE, VN, YE, ZA, ZW |
I'm not meaning anything, I'm telling what the homepage and the logs of Docker are showing. I didn't try to put Europe/Paris anywhere, I only changed the image tag and restarted, the error shows up. I know my setting in the config is indeed |
Reverting image to
|
Okay that's strange. I'm assuming the culprit is likely #5034
Thanks for the report! Apologies about my haste in closing the issue |
DB::MappingException
with updated
property of Invidious::User
Can confirm, i have a similar issue:
|
i can confirm: reverting #5034 fixes this issue. |
Version v0.27.0 of the And for some reason Crystal isn't able to parse the timezone provided |
Please let me know if this patch fixes the problem! diff --git a/docker/Dockerfile b/docker/Dockerfile
index 3d9323fd..ac0eaa79 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,6 +1,6 @@
FROM crystallang/crystal:1.12.1-alpine AS builder
-RUN apk add --no-cache sqlite-static yaml-static
+RUN apk add --no-cache sqlite-static yaml-static tzdata
ARG release
diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64
index f054b326..ef47948a 100644
--- a/docker/Dockerfile.arm64
+++ b/docker/Dockerfile.arm64
@@ -1,5 +1,5 @@
FROM alpine:3.19 AS builder
-RUN apk add --no-cache 'crystal=1.10.1-r0' shards sqlite-static yaml-static yaml-dev libxml2-static zlib-static openssl-libs-static openssl-dev musl-dev xz-static
+RUN apk add --no-cache 'crystal=1.10.1-r0' shards sqlite-static yaml-static yaml-dev libxml2-static zlib-static openssl-libs-static openssl-dev musl-dev xz-static tzdata
ARG release |
(cross)compiling right now, will report in a few minutes |
This comment was marked as off-topic.
This comment was marked as off-topic.
The error from crystal seems fixed since version 1.12.0. So I built the image with this diff patch and can confirm the error is gone. diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64
index f054b326..3e3bc11e 100644
--- a/docker/Dockerfile.arm64
+++ b/docker/Dockerfile.arm64
@@ -1,5 +1,5 @@
-FROM alpine:3.19 AS builder
-RUN apk add --no-cache 'crystal=1.10.1-r0' shards sqlite-static yaml-static yaml-dev libxml2-static zlib-static openssl-libs-static openssl-dev musl-dev xz-static
+FROM alpine:3.20 AS builder
+RUN apk add --no-cache 'crystal=1.12.2-r0' shards sqlite-static yaml-static yaml-dev libxml2-static zlib-static openssl-libs-static openssl-dev musl-dev xz-static
ARG release
@@ -32,7 +32,7 @@ RUN if [[ "${release}" == 1 ]] ; then \
--link-flags "-lxml2 -llzma"; \
fi
-FROM alpine:3.18
+FROM alpine:3.20
RUN apk add --no-cache rsvg-convert ttf-opensans tini
WORKDIR /invidious
RUN addgroup -g 1000 -S invidious && \ (maybe tzdata is not needed)
EDIT2 : For someone having "Please sign in" error when trying to watch videos, |
From what I understand the tzdata package should allow Crystal to understand etc/utc regardless of the Crystal version. |
I understand that Edit: We might have a culprit:
Edit2: Actually, more likely these two, given OP's error message: invidious/src/invidious/database/users.cr Lines 19 to 23 in b173d4a
invidious/src/invidious/database/users.cr Lines 143 to 151 in b173d4a
|
Describe the bug
I updated my instance after reading this PR #5059 because I had the error with YouTube as well. I used the latest built image on quay
quay.io/invidious/invidious:2024.11.08-b173d4a
The instance started but the homepage (subscriptions) shows an error, I can't go to any other page.
Steps to Reproduce
Update image in place on
docker-composer.yml
from2024.09.16-de918b9
toquay.io/invidious/invidious:2024.11.08-b173d4a
with an instance setting location set toEurope/Paris
.Logs
Screenshots
N/D
Additional context
Using
docker compose
to deploy the instance, with external PostgreSQL database.inv-sig-helper
also shows an error:and some warnings:
The text was updated successfully, but these errors were encountered: