mudkipme / MoeMemosAndroid

An app to help you capture thoughts and ideas
http://memos.moe
GNU General Public License v3.0
545 stars 62 forks source link

INVALID SERVER: Fails to sign in #181

Closed mizzunet closed 2 months ago

mizzunet commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago
{
  "code": 14,
  "message": "name resolver error: produced zero addresses",
  "details": []
}
Issues-translate-bot commented 2 months ago

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


{
"code": 14,
"message": "name resolver error: produced zero addresses",
"details": []
}
mudkipme commented 2 months ago
{
  "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 commented 2 months ago

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 commented 2 months ago

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 commented 2 months ago

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