What to do when Automation Studio Code fails to connect

Hello everyone,

I wanted to try Automation Studio Code for the first time today, but unfortunately I’m already encountering a problem. When I try to compile with Automation Studio Code, I always get the error: ‘Could not establish connection to server’.

What can I do here?

Best regards,
Philipp

That means that your AS Code cannot connect to the AS.BuildServer.

When you press compile, does this service start?

image

Service should be installed here:
C:\Program Files\BRAutomation\Automation Studio Code\resources\plugins\automation-studio-extension\as-build-server

In the telemetry data you should find these entries:
(Can be found in C:/Users//.br-automation/ascode/telemetry/

Another thing to check would be if AS Code installation is correctly linked to AS6. For that check the preferences like this:

There could be some ports blocking each other, the port of the build server is 28000 on your localhost.

1 Like

Hello,

Thank you for your feedback.

No, the service does not start.

On C:\Program Files\BRAutomation\Automation Studio Code\resources\plugins\automation-studio-extension\as-build-server I can find the buildServer exe.

The telemetry data says: connect job failed

I have already checked the installation path in the settings.

Nothing is running on port 28000 for me. Should the build server be running constantly here? Or only when building is in progress?

It should only start once you press build, not run constantly.
Then it should turn itself off again, after the build is finished.

I’d have to investigate this directly to find the issue. Maybe something hasn’t registered itself correctly on install or there are some user permission issues.
I’ll try asking around :thinking:

Hello Philipp Oberhuber

We’re aware of the issue and are already looking into it. We’ll share an update once we know more

1 Like