Backend is unreachable / Unlock your data

I am unable to login to forestadmin. I recive a message: “Backend unraachable” and “Unlock your data”. Please help.

Expected behavior

Actual behavior

Failure Logs

Navigated to https://app.forestadmin.com/rental-admin/Production/Operations/dashboard/xxxx
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o460888.ingest.sentry.io/api/5461860/envelope/?sentry_key=xxxx&sentry_version=7. (Reason: CORS request did not succeed).
Forest Admin 🌲 Start third-party services tracking. chunk.7.4103759264c1de7273b2.js:236:60
Disable custom header forest-environment-id, forest-project-id as it is not allowed by the client chunk.7.4103759264c1de7273b2.js:236:60
GEThttps://www.gravatar.com/avatar/17d7b75b39686368174d1109ddae47ba?s=40&d=404
[HTTP/2 404 Not Found 18ms]
 
GEThttps://www.gravatar.com/avatar/17d7b75b39686368174d1109ddae47ba?s=40&d=404
[HTTP/2 404 Not Found 14ms]
 
XHRPOSThttps://xxxxxx.com/forest/sessions
[HTTP/1.1 502 Bad Gateway 901ms]
 
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://yyyyyy.com/forest/sessions. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
TypeError: NetworkError when attempting to fetch resource. chunk.7.4103759264c1de7273b2.js:236:60
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource. vendor-cd62d5e7b3b72d6d5df7f94c11ad88b0.js:5356:168
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o460888.ingest.sentry.io/api/5461860/envelope/?sentry_key=xxxxx&sentry_version=7. (Reason: CORS request did not succeed).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://o460888.ingest.sentry.io/api/5461860/store/?sentry_key=xxxxx&sentry_version=7. (Reason: CORS request did not succeed).

Context

Please provide any relevant information about your setup.

  • Package Version: “0.0.1”
  • Express Version: 4.13.4"
  • Sequelize Version: “4.8.0”
  • Database Dialect:PgSQL
  • Project Name:wildtangent

Hey @user1, and welcome to our community :wave:

Could you please fill the Context section of the template?
It will be useful in order to help.

Thanks in advance

Hey @jeffladiray, data updated, information about the database I will sent in a moment.

@user1,

Do you have any error logs on your agent?
CORS issue can be a pretty big topic to investigate, so any error logs on the agent may help :pray:

Could you tell me where can i find these logs? I have access to the server but unfortunately I cannot login to frontend.

I can’t really tell you where these logs are since I can’t know how and where you deployed your agent :confused:

You should be able to see them on your host provider, where the agent is running.

I don’t know if it can be helpful but after execution this command on our server we get response like below:

[root@rentaladmin nginx]# curl https://api.forestadmin.com

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /</pre>
</body>
</html>


Below logs from node:

Oct 28 10:10:30 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.633 ms - 13
Oct 28 10:52:54 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.851 ms - 13
Oct 28 10:52:54 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.392 ms - 13
Oct 28 11:56:01 rentaladmin.wildtangentex.com node[9040]: GET /owa/auth/x.js 404 0.772 ms - 26
Oct 28 11:57:37 rentaladmin.wildtangentex.com node[9040]: GET /owa/auth/logon.aspx 404 0.614 ms - 32
Oct 28 11:59:25 rentaladmin.wildtangentex.com node[9040]: GET /ecp/Current/exporttool/microsoft.exchange.ediscovery.exporttool.appli…s - 88
Oct 28 12:00:57 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.565 ms - 13
Oct 28 13:20:22 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.567 ms - 13
Oct 28 13:38:24 rentaladmin.wildtangentex.com node[9040]: GET / 404 0.617 ms - 13

Hi @user1,
I see that you are using a very old version of Forest, to allow us to help you could you please upgrade to the last version, you need to follow these instructions.

@Nicolas_Sailly @jeffladiray hello, we’ve updated forest to the latest version. What should we do now?

Are you still experiencing the issue mentioned above after the update ?
Do you have any furthers logs on your admin backend ?

Hey, yes, after update we still have same problem and logs looks like before:

Nov 09 18:49:15 rentaladmin.wildtangentex.com node[9047]: GET /.env 404 70.242 ms - 17
Nov 09 19:03:17 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.615 ms - 13
Nov 09 19:14:17 rentaladmin.wildtangentex.com node[9047]: GET / 404 164.934 ms - 13
Nov 09 20:22:36 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.645 ms - 13
Nov 09 21:46:48 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.705 ms - 13
Nov 09 22:00:23 rentaladmin.wildtangentex.com node[9047]: HEAD /core/misc/drupal.js 404 38.128 ms - 33
Nov 09 22:00:23 rentaladmin.wildtangentex.com node[9047]: HEAD /misc/drupal.js 404 0.925 ms - 28
Nov 09 22:01:19 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.609 ms - 13
Nov 09 23:07:02 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.646 ms - 13
Nov 10 00:13:36 rentaladmin.wildtangentex.com node[9047]: GET / 404 0.561 ms - 13

All the logs shared here does not seems linked to forestadmin.

Also, on my end, I don’t see your project as running with the latest version.

Could you share here the exact name displayed in your project list, and the current version of forest-express-sequelize/forest-express-mongoose ?

we dont have access to frontend because of this error. Can you tell me where I can find project list and how to check forest-express-sequelize?

how to check forest-express-sequelize?

It should be located in your project folder, in the package.json file.

we dont have access to frontend because of this error

If you are able to access forestadmin with the issue “Backend is unreachable / Unlock your data”, you should be able to see error in your browser developer console.
Could you make a video of the issue, with the Developer console open on the “Console” tabs & showing the “Network” tabs as well?

our package.json file:

“name”: “rental-admin”,
“version”: “0.0.1”,
“private”: true,
“scripts”: {
“start”: “node ./bin/www”
},
“dependencies”: {
“express”: “~4.13.4”,
“express-jwt”: “~5.1.0”,
“express-cors”: “git://github.com/ForestAdmin/express-cors”,
“body-parser”: “~1.15.1”,
“cookie-parser”: “~1.4.3”,
“debug”: “~2.2.0”,
“morgan”: “~1.7.0”,
“serve-favicon”: “~2.3.0”,
“dotenv”: “~2.0.0”,
“chalk”: “~1.1.3”,
“sequelize”: “4.8.0”,
“forest-express-sequelize”: “latest”,
“pg”: “~6.1.0”
}
}

Did you run yarn? Again, I can only see your project as running an old version of Forest admin.

Did you had a chance to do a small video clip of the issue with the developer console open?

Hi,

I used npm. I sent you clip in private message.

It appear that you have a CORS error on the authentication (forest/session).
This is most likely the source of your issue, however, I can’t see the “network” tabs in the developer console in the video.

Your original logs in the thread seems to show a 502 (Bad Gateway) of the same route.

It can be related to either the let’s encrypt certificate issue that happen recently (Depending on your node version, (node --version)). Could you share to us that information?

Could you also share the /forest/session request and response (Via the Network tabs of the Chrome developer console)?

Thanks in advance

@jeffladiray Thanks for response. I sent you new clip in private message.

Node version: 10.24.1

Request URL: https://rentaladmin.wildtangent.com/forest/sessions
Request Method: OPTIONS
Status Code: 502 Bad Gateway
Remote Address: 209.67.99.193:443
Referrer Policy: no-referrer-when-downgrade

Connection: keep-alive
Content-Length: 559
Content-Type: text/html
Date: Thu, 18 Nov 2021 22:25:06 GMT
Server: nginx/1.16.1

Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,pl;q=0.8
Access-Control-Request-Headers: content-type
Access-Control-Request-Method: POST
Connection: keep-alive
Host: rentaladmin.wildtangent.com
Origin: https://app.forestadmin.com
Referer: https://app.forestadmin.com/rental-admin/Production/Operations/dashboard/25490
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36