-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Column 'avatarUrl' cannot be null #4066
Comments
Hi, I found the problem, it seems that accounts without an avatar set in Gitlab, cannot use Gitpod. This error is in the server log: Adding an avatar to the user his account fixes the problem. I'm not sure what I should do to allow users without an avatar image to access Gitpod. |
Here the whole error:
|
Hi @ranzbak! Thanks for reporting! |
Thanks, let me know when the fix has been merged, so I can roll out the fix. |
@AlexTugarev are you still on this or should we take over? |
@JanKoehnlein 🙏🏻 please go ahead and thanks 💯 |
Unfortunately, I'm not able to reproduce this. Our self-hosted GitLab instance seems to set an avatar for each new user. However, I think this change (7be8e08) would make sense in general and would also help to solve this particular problem: diff --git a/components/gitpod-db/src/typeorm/transformer.ts b/components/gitpod-db/src/typeorm/transformer.ts
index 68a74d3c..7aa22ae9 100644
--- a/components/gitpod-db/src/typeorm/transformer.ts
+++ b/components/gitpod-db/src/typeorm/transformer.ts
@@ -11,7 +11,7 @@ import { EncryptionService } from "@gitpod/gitpod-protocol/lib/encryption/encryp
export namespace Transformer {
export const MAP_EMPTY_STR_TO_UNDEFINED: ValueTransformer = {
to(value: any): any {
- if (value === undefined) {
+ if (value === undefined || value === null) {
return '';
}
return value; Alternatively, we could check here for
@AlexTugarev What do you think? |
Looks like the patch that should solve this :-) |
@corneliusludmann, any idea why avatar_url is not present? I have not found a way to disable that. It's too bad, that the typings are not in sync with the API service. |
No, was not able to reproduce. Tried gitlab.com and our self-hosted GitLab. |
@ranzbak The issue is solved in the |
Bug description
When some users connect, they need to accept the terms of service, and after that the interface stalls.
After +- 30 seconds the error "Sorry, something went wrong 😓 Error 504" appears.
For other users the tos accept works fine.
I'm runnig a self-hosted installation:
gitpod-values.zip
Steps to reproduce
I log in to Gitlab as admin, impersonate on of the users that has the problem, and try to open a Gitpod session.
Expected behavior
When accepting the terms of service, Gitpod continues to the workspace.
Example repository
Sorry, something went wrong 😓
Error 504
Please file an issue if you think this is a bug.
Anything else?
I have searched through the logs of Gitpod, but I can't find a reason why it should not work for some persons.
All users that authenticate on Gitlab, do so via Active directory credentials.
The text was updated successfully, but these errors were encountered: