Problem with installation - not allowed to connect to this MySQL server

Hey @MarinaLevy,

You shared a screen from the Console Tab. As you’re not familiar with IT expert tools I share you this video explaining the network tab. In order to understand what’s going on on your side with need to have a capture of the following calls:

  • /forest/authentication
  • forest/authentication/callback?

Thank you in advance :slight_smile:

Thank you for tutorial, it was really helpful

I find the “/forest/authentication”, but did’t find “forest/authentication/callback?”

Forest Admin 🌲 Start third-party services tracking.
vendor-870b591254c57b2e9f8eef53319b516c.js:19450 Disable custom header forest-environment-id, forest-project-id as it is not allowed by the client
vendor-870b591254c57b2e9f8eef53319b516c.js:19450 Drift has already been initialized.
vendor-870b591254c57b2e9f8eef53319b516c.js:19450 Forest Admin 🌲 Start Drift tracking.
vendor-870b591254c57b2e9f8eef53319b516c.js:19469 POST http://localhost:3310/forest/authentication net::ERR_CONNECTION_REFUSED
Show 40 more frames
vendor-870b591254c57b2e9f8eef53319b516c.js:19365 WebSocket connection to 'wss://' failed: WebSocket is closed before the connection is established.

Hey @MarinaLevy,

Happy that helps you. It’s normal that you couldn’t find forest/authentication/callback call since forest/authentication/ failed in the first place. I still miss some bit off informations to help you.

As you can see you have 2 red lines: One is the forest/authentication/ POST call the other is the forest/authentication/ OPTIONS call.

Can you click on those failling forest/authentication/ calls and share the HEADER configurations ?

Also, have you any logs on your agent (backend) ?


Is that what you need?

Also, the logs on the backend are probably exists, but can you help me to find them?
Its on Ubuntu 18.04

If you click on the line you will have a more detailed view. :slight_smile:

Screenshot 2021-05-26 at 10.27.13

Maybe your backend is not running at all. You should have a terminal with your backend running.

Did it!

Great. :muscle:
It seems your backend is not running at all. Can you share me your terminal with your project running ?

To run your backend just go to your project folder and run npm start

How can I share it with you?

root@tufinit_1:~/ProcessControl # npm start

processcontrol@0.0.1 start /root/ProcessControl
node ./server.js

/root/ProcessControl /node_modules/jose/lib/help/rsa_primes.js:6
const ZERO = BigInt(0)

ReferenceError: BigInt is not defined
at Object. (/root/ProcessControl /node_modules/jose/lib/help/rsprimes.js:6:14)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/root/ProcessControl /node_modules/jose/lib/help/keutils.js:9:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)

npm ERR! Linux 4.15.0-45-generic
npm ERR! argv “/usr/bin/node” “/usr/bin/npm” “start”
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! processcontrol@0.0.1 start: node ./server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the processcontrol@0.0.1 start script ‘node ./server.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the processcontrol packe,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./server.js
npm ERR! You can get information on how to open an issue for this project with
npm ERR! npm bugs processcontrol
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls processcontrol
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /root/ProcessControl /npm-debug.log

You’re using docker… I just rewrote the thread. Very sorry.

Is your docker running ? You can use the following docker ps -a to see running containers.

root@tufinit_1:~/ProcessControl # docker ps -a
edef58ac9e33 processcontrol_app “docker-entrypoint.s…” 6 days ago Exited (0) 3 days ago process_control

Exited (0) 3 days ago 

Your docker is not running so neither your backend…

If you are not familiar with docker I think you should install Node.js on your machine. Then try to create a new project with the normal onboarding for MySQL (node.js running on your machine).

Best regards,

I did it and back to stage 1: Now it stack for long time in the backend stage again

I think your MySQL server is already running.

You have two options here run your backend in a container (using docker) or in your local machine using Node.js.

From your project folder you can run docker-compose up to (re)run the docker.

You need to follow the onboarding indications.

I did it and it is the same…

I see you’re on Windows, you use putty to connect to a Ubuntu server and you try to use forest from the the Windows session ?

Where is hosted the Ubuntu server ? On a VM ? On a distant machine ?

Your development environment is only available in localhost (in your Ubuntu in this case) so you need to be on this session in your Ubuntu to be able to test the application (maybe you don’t have any access to it :astonished:).

The ubuntu server is a virtual server.
How can I open a session on ubuntu to test an application?

Hello @MarinaLevy

So if I understand it well, you’ve just setup a new project and try to connect to it, the fact is that our app is trying to reach your localhost on port 3310 but the fact is that you launched your server on a virtual server so it’s not accessing it directly.

Could you please try to launch it from your Powershell, it should responds as expected :slight_smile:

I would love to launch it from my Powershell, but how do I do it?
And what are the meanings of using Powershell? I’ve choose the Forest Admin because it is an internet platform, so I can use it like from my phone, not only from PC.