Back

[SOLVED] Somehow i can't login anymore - Appwrite Log shows "Attribute "time" has invalid type".

  • 0
  • Databases
  • Self Hosted
JayDee (@digital-fpv.de)
3 May, 2023, 18:23

I somehow can't login anymore after update to 1.3.3 from 1.3.1. If i try to log in, the appwrite website just shows "Server Error" whilest JavaScript Console shows Error 500.

I used terminal to open the logs (by typing docker logs appwrite) and retrieved the following output: (screenshot)

Anybody any idea what causes the error - or better yet: What to do to fix this?

TL;DR
User is having trouble logging in after updating Appwrite from version 1.3.1 to 1.3.3. The Appwrite log is showing an error message "Attribute 'time' has invalid type". One suggestion is to try downgrading and then upgrading step by step again. Another suggestion is to backup and run the command "docker compose exec appwrite migrate version=1.0.3" which has solved similar issues in the past.
Drake
3 May, 2023, 19:42

it seems like you had an older version of appwrite running. What's in your appwrite folder now?

JayDee (@digital-fpv.de)
3 May, 2023, 20:03

1.3.3

Drake
3 May, 2023, 20:36

No, on your filesystem. What's in your appwrite folder?

JayDee (@digital-fpv.de)
4 May, 2023, 03:28

ah, ok - sorry

JayDee (@digital-fpv.de)
4 May, 2023, 03:28
Drake
4 May, 2023, 03:37

What's docker ps show?

JayDee (@digital-fpv.de)
4 May, 2023, 03:55
Drake
4 May, 2023, 03:57

That's weird...time shouldn't be an integer

Drake
4 May, 2023, 03:58

Did you ever create a session before upgrading from 1.3.1?

JayDee (@digital-fpv.de)
4 May, 2023, 03:59

yes. And what is weird is, with my secondary browser i still have an open session.

JayDee (@digital-fpv.de)
4 May, 2023, 04:00

but if i try to log in or push the "lost password" button or try to add a member - i always get the "Server-Error"

Drake
4 May, 2023, 04:08

So i remember seeing this error back in 1.0.x because people didn't run the migrate command when upgrading to 1.0.x. I'm not sure why you're getting this now...

JayDee (@digital-fpv.de)
4 May, 2023, 04:11

Hm. Shall I try downgrading and step by step upgrading again?

Drake
4 May, 2023, 04:13

You can try to backup and run

TypeScript
docker compose exec appwrite migrate version=1.0.3
JayDee (@digital-fpv.de)
4 May, 2023, 04:24

You're a genius ! Seems like that did the trick!

JayDee (@digital-fpv.de)
4 May, 2023, 04:25

[SOLVED] Somehow i can't login anymore - Appwrite Log shows "Attribute "time" has invalid type".

JayDee (@digital-fpv.de)
4 May, 2023, 04:26

@Steven Thank you very very much !

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more