Skip to content
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

INVALID SERVER: Fails to sign in #181

Closed
mizzunet opened this issue Jun 4, 2024 · 9 comments
Closed

INVALID SERVER: Fails to sign in #181

mizzunet opened this issue Jun 4, 2024 · 9 comments

Comments

@mizzunet
Copy link

mizzunet commented Jun 4, 2024

Screenshot_20240604-215432_MoeMemos

Log in console

2024/06/04 16:24:29 ERROR: Failed to extract ServerMetadata from context

MoeMemos: 0.8.0
memos: 0.22.1

@mudkipme
Copy link
Owner

mudkipme commented Jun 9, 2024

Please reply with the response of http://127.0.0.1:8081/api/v1/workspace/profile.

As you are using 127.0.0.1 as the host, did you run Memos on the local Android device (such as via Termux)? If not, you need to use the actual server address.

@mizzunet
Copy link
Author

Please reply with the response of http://127.0.0.1:8081/api/v1/workspace/profile.

Still INVALID_SERVER. No log in the console though

As you are using 127.0.0.1 as the host, did you run Memos on the local Android device (such as via Termux)?

Yes, I forgot to mention that. Running on Termux with root

@mudkipme
Copy link
Owner

Can you visit http://127.0.0.1:8081/api/v1/workspace/profile with your browser on the Android device and reply with the content?

@mizzunet
Copy link
Author

{
  "code": 14,
  "message": "name resolver error: produced zero addresses",
  "details": []
}

@Issues-translate-bot
Copy link

Issue is not in English. It has been translated automatically.


{
  "code": 14,
  "message": "name resolver error: produced zero addresses",
  "details": []
}

@mudkipme
Copy link
Owner

{
  "code": 14,
  "message": "name resolver error: produced zero addresses",
  "details": []
}

This error is happened in https://github.com/grpc/grpc-go/blob/v1.64.0/pickfirst.go#L92. It seems the grpc gateway in Memos can't connect to the internal grpc server.

Do you have any specific command or environment variables to run Memos? I followed the guide on https://github.com/memospot/memos-builds?tab=readme-ov-file#running-on-android and didn't find any issues.

@mizzunet
Copy link
Author

Do you have any specific command or environment variables to run Memos?

Right. I've root and I'm running as root. Could that be why it fails?

@n00b12345
Copy link

n00b12345 commented Jun 26, 2024

I'm facing the same issue even on a remote server. It used to work fine, till I had to restore my memos server from a backup.


Update - My issue is resolved. I had to restore the memos server again from a backup and was able to login through the apps normally.

@mizzunet
Copy link
Author

I suppose it's because I'm running with root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants