Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start Pgsql tools service on MacOS #108

Closed
maverick915 opened this issue Mar 25, 2019 · 11 comments
Closed

Failed to start Pgsql tools service on MacOS #108

maverick915 opened this issue Mar 25, 2019 · 11 comments

Comments

@maverick915
Copy link

  • Azure Data Studio Version: 1.4.5 (MacOS 10.13.6)

Steps to Reproduce:

  1. Install PostgreSQL extension (v0.1.0) through the Extension Manager (following instructions from https://docs.microsoft.com/en-us/sql/azure-data-studio/postgres-extension?view=sql-server-2017)
  2. Restart Azure Data Studio
  3. Popup displays in bottom right corner with the message "Failed to start Pgsql tools service". Expanding the dialog (arrow icon) gives "Source: PostgreSQL (Extension)".

azure data studio 2019-03-25_12-15-04

There is no additional information in the Output or Problems windows.

After enabling debug logging, I see the following message in the main.log:

[2019-03-25 12:31:01.329] [main] [error] UpdateService error: Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. See Squirrel/Squirrel.Mac#182 for more information.

@alanrenmsft alanrenmsft transferred this issue from microsoft/azuredatastudio Mar 25, 2019
@DigitalDuquette
Copy link

DigitalDuquette commented Jun 7, 2019

Screen Shot 2019-06-07 at 9 46 47 AM

This issue has started for me as well on the latest release of macOS (10.14.5). The message doesn't error out it hangs at 'Starting pgsql service' ![Screen Shot 2019-06-07 at 8 29 27 AM](https://user-images.githubusercontent.com/47231954/59104017-62abae80-88fe-11e9-9dfa-7ef4736032cd.png)

I've tried uninstalling and reinstalling the extension.

ERR The "path" argument must be of type string. Received type object: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object at assertPath (path.js:39:11) at Object.join (path.js:1157:7) at toAbsolutePath (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:207868:52) at resolveIconPath (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:207894:13) at ExtensionPoint.extensionsRegistry_1.ExtensionsRegistry.registerExtensionPoint.setHandler.extensions [as _handler] (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:207846:13) at ExtensionPoint._handle (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:207237:22) at ExtensionPoint.acceptUsers (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:207230:18) at Function._handleExtensionPoint (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:257961:28) at ExtensionService._rehandleExtensionPoints (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:257432:38) at ExtensionService.<anonymous> (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:257405:22) at Generator.next (<anonymous>) at fulfilled (file:///Applications/Azure Data Studio.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:5933:58) at ZoneDelegate.invoke (/Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:388:26) at Zone.run (/Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:138:43) at /Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:872:34 at ZoneDelegate.invokeTask (/Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:421:31) at Zone.runTask (/Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:188:47) at drainMicroTaskQueue (/Applications/Azure Data Studio.app/Contents/Resources/app/node_modules/zone.js/dist/zone-node.js:595:35)

@marko-p
Copy link

marko-p commented Aug 20, 2019

I'm getting the same error on Windows 10. I do get a PostgreSQL option in the connection sidebar, but I am not able to connect to my PG DB (no error, just endless connection loading).

EDIT: I reinstalled the extension by downloading the latest vsix release and now I can connect to PG! At least for now. I guess our corporate firewall is to blame ...

@swjain23 swjain23 added the GA GA item label Feb 7, 2020
@swjain23 swjain23 added this to the GA milestone Feb 7, 2020
@swjain23 swjain23 added Med and removed GA GA item labels Feb 7, 2020
@swjain23 swjain23 removed the Med label Mar 3, 2020
@swjain23 swjain23 removed this from the GA milestone Jul 14, 2020
@swjain23
Copy link
Contributor

@maverick915 - Hi, are you still hitting this issue? Can you try the latest version of extension with latest ADS release?

@gvdncgcg
Copy link

gvdncgcg commented Jul 27, 2020

@maverick915 - Hi, are you still hitting this issue? Can you try the latest version of extension with latest ADS release?

Hi I am still getting "Failed to start Pgsql tools service" when using the Postgresql Extension (0.2.6) with ADS (1.20.1) on a MacOS Catalina 10.15.2. I've tried disabling/restarting/uninstalling/re-installing/etc. Nothing seems to have worked

I am able to connect to postgres dbs otherwise with either PGAdmin or DataGrip (IntelliJ), but for some reason just can't get this to work

I also tried downloading the VSIX file directly from the releases site here based on the instructions here. It looks like the install worked, however on reload gave me an error in console.

@swjain23 I'm not sure if this is the same issue as OP, so am happy to open a new issue if you want to close this one?

[Error - 11:00:30 AM] Starting client failed
Launching server using command /Users/***/.azuredatastudio/extensions/microsoft.azuredatastudio-postgresql-0.2.6/out/pgsqltoolsservice/OSX/v1.4.0/pgsqltoolsservice/pgtoolsservice_main failed.

@maverick915
Copy link
Author

@maverick915 - Hi, are you still hitting this issue? Can you try the latest version of extension with latest ADS release?

Working now. Thanks for tagging me on the fix.

@MaxKoval1ov
Copy link

Still not fixed?
image

@cvannoy
Copy link

cvannoy commented Mar 1, 2023

@MaxKoval1ov Try installing the mac universal installer. Then right click on the app in finder and select Get Info. Then put a check mark in 'Open Using Rosetta'. I have an Apple M1 Pro chip running Ventura and I've been fighting this all day. This combo worked for me. Link to Universal Installer: https://go.microsoft.com/fwlink/?linkid=2222873

@MaxKoval1ov
Copy link

MaxKoval1ov commented Mar 1, 2023

Cool, work for me, but it is a little bit confusing that Silicon version doesn't support psql extension. Moreover rosetta slows down applications cause of emulation(

@MaxKoval1ov
Copy link

@MaxKoval1ov Try installing the mac universal installer. Then right click on the app in finder and select Get Info. Then put a check mark in 'Open Using Rosetta'. I have an Apple M1 Pro chip running Ventura and I've been fighting this all day. This combo worked for me. Link to Universal Installer: https://go.microsoft.com/fwlink/?linkid=2222873

Maybe you also have solution for the following error:
image

@cvannoy
Copy link

cvannoy commented Mar 2, 2023

@MaxKoval1ov I dont. sorry. good luck.

@denxwan
Copy link

denxwan commented Apr 17, 2023

@cvannoy Thanks man this worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants