ERPNext Mobile App Fails with Status 0 (in DNS MultiTenancy)

Have been unable to use the ERPNext mobile app - last working several weeks ago (dont know exact time it stopped working). Mobile access via browser off course works fine. Failing with following message after password /login: Alert "https://erp.domain.com has failed with status 0"

Will appreciate any guidance on how to troubleshoot.

Hi,
I checked on my mobile, it’s working fine.

Share your screenshots

Hey @netmanthan. Thank you for taking interest. I am getting the error after I input the password in the mobile app. An incorrect password gives a different error. Please see below the entries of /var/log/nginx/access.log with ip address of mobile and the screenshot of mobile. Appreciate any guidance…

99.203.186.237 - - [29/Oct/2019:15:17:27 -0400] "POST /api/method/login HTTP/1.1" 200 73 "-" "Mozilla/5.0 (Linux; Android 9; moto g(6) Build/PPS29.118-15-11; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.62 Mobile Safari/537.36"
99.203.186.237 - - [29/Oct/2019:15:17:30 -0400] "GET /api/method/frappe.www.desk.get_desk_assets?build_version=000 HTTP/1.1" 200 294258 "-" "Mozilla/5.0 (Linux; Android 9; moto g(6) Build/PPS29.118-15-11; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.62 Mobile Safari/537.36"

1 Like

Hi,
I think it’s firewall issue.

Allow all Incoming connection in the Firewall Advance settings for the Domain profiles.
or
Create Inbound Firewall rule to allow port’s.

T&R
Jawahar R Mallah

Hi. ufw is already setup to allow on port 80 and port 443. Are there other ports that need to be opened?

The initial login from the mobile app is successful - and is registered in the nginx log. It is the GET /api/method/frappe.www.desk.get_desk_assets … that seems to be failing. Does it need a special port?

1 Like

Congratulations

Now check permission, I think now it is related to user permission

I am able to login from the chrome browser on mobile. what user permission should I check?

Log in as administrator

And try

same error for administrator or other user. also same error for other website (dns multitenant). When I login from the chrome browser on mobile the GET call for desk is slightly different in the nginx access.log. It has a domain associated in the call after the “GET…” part.

99.203.187.217 - - [29/Oct/2019:18:05:25 -0400] "GET /desk HTTP/1.1" 200 31170 "https://erp.domain.com/login" "Mozilla/5.0 (Linux; Android 9; moto g(6)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.62 Mobile Safari/537.36"

restart server
And do bench updated