GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Deploy Cloud Instance Google Cloud SQL - · Issue #8668 · pgadmin-org/pgadmin4

Deploy Cloud Instance Google Cloud SQL - #8668

New issue
Copy link
New issue
Copy link
Closed
Closed
Deploy Cloud Instance Google Cloud SQL -#8668
Copy link
Assignees
khushboovashi
Labels
Bug
Milestone
9.4

Description

@tobese
tobese
opened on Apr 16, 2025
Issue body actions

Go to:

  1. Go to 'Deploy Clod Instance'
  2. Click on 'Google Cloud SQL'
  3. Authenticate
  4. Watch Project Dropdown loading...

It turns out that there is a problem with the account setup that is silently swallowed. Fortunately it is saved in the log.

Desktop (please complete the following information):

  • OS: macOS Sequia 16.3.2
  • Version: 9.1
  • Mode: Desktop
  • Package type: Python

Additional context

What I think it's relevant log info:
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/authenticate/mfa/utils.py", line 171, in mfa_enabled
return execute_if_disabled()
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/authenticate/mfa/utils.py", line 297, in execute_func
return wrapped(*args, **kwargs)
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/user_login_check.py", line 22, in wrapper
return func(*args, **kwargs)
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/misc/cloud/google/init.py", line 162, in get_projects
projects_list = google_obj.get_projects()
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/misc/cloud/google/init.py", line 439, in get_projects
res = req.execute()
File "/Applications/pgAdmin 4.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/Applications/pgAdmin 4.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/googleapiclient/http.py", line 938, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://cloudresourcemanager.googleapis.com/v1/projects?alt=json returned "Cloud Resource Manager API has not been used in project 706577269333 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=706577269333 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.". Details: "[{'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'SERVICE_DISABLED', 'domain': 'googleapis.com', 'metadata': {'activationUrl': 'https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=706577269333', 'serviceTitle': 'Cloud Resource Manager API', 'containerInfo': '706577269333', 'service': 'cloudresourcemanager.googleapis.com', 'consumer': 'projects/706577269333'}}, {'@type': 'type.googleapis.com/google.rpc.LocalizedMessage', 'locale': 'en-US', 'message': 'Cloud Resource Manager API has not been used in project 706577269333 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=706577269333 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.'}, {'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Google developers console API activation', 'url': 'https://console.developers.google.com/apis/api/cloudresourcemanager.googleapis.com/overview?project=706577269333'}]}]">
2025-04-15 12:39:20,046: ERROR pgadmin: 'secondary_availability_zone'
Traceback (most recent call last):
File "/Applications/pgAdmin 4.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/Applications/pgAdmin 4.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/Applications/pgAdmin 4.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Applications/pgAdmin 4.app/Contents/Resources/web/pgadmin/authenticate/mfa/utils.py", line 304, in inner
return mfa_enabled(
if_else_func(
...<12 lines>...
execute_func
)

Activity

Next
  1. tobese
    added
    Bug
    on Apr 16, 2025
  2. khushboovashi
    added this to Current Sprint (213)on Apr 16, 2025
  3. khushboovashi
    moved this to 🆕 New in Current Sprint (213)on Apr 16, 2025
  4. akshay-joshi
    added
    EDB Sprint 191
    on Apr 16, 2025
  5. yogeshmahajan-1903
    self-assigned this
    on Apr 22, 2025
  6. yogeshmahajan-1903
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on Apr 22, 2025
  7. tobese commented on Apr 22, 2025

    @tobese
    tobese
    on Apr 22, 2025
    Author
    More actions

    pgadmin4 copy.log
    Hi, tried to use AWS and the affect was the same so I attach the log-file. The first line reveals a interesting message, partly in German :)
    "2025-04-22 11:49:35,085: WARNING werkzeug: Werkzeug appears to be used in a production deployment. Consider switching to a production web server instead."
    Hopefully this fix will lead to that an error message is shown also for AWS, otherwise I'll file another issue.

  8. yogeshmahajan-1903 commented on Apr 22, 2025

    @yogeshmahajan-1903
    yogeshmahajan-1903
    on Apr 22, 2025
    Contributor
    More actions

    @tobese
    Both the errors are due to insufficient permissions to respective cloud services/api.
    For google cloud deployment you need to enable below APIs from google cloud console -
    1.Cloud Resource Manager API
    2.Cloud SQL Admin API
    3.Compute Engine API

    For AWS -
    You need the user who access to the -

    1. describe_db_engine_versions
    2. describe_orderable_db_instance_options
    3. describe_db_instances

    pgadmin will fix this issue so that these errors on shown on UI and user can take appropriate action.

  9. yogeshmahajan-1903
    assigned
    tobese
    and unassigned
    yogeshmahajan-1903
    on Apr 22, 2025
  10. tobese commented on Apr 23, 2025

    @tobese
    tobese
    on Apr 23, 2025
    Author
    More actions

    Great, thx!

  11. akshay-joshi
    added
    EDB Sprint 192
    and removed
    EDB Sprint 191
    on Apr 23, 2025
  12. akshay-joshi
    assigned
    yogeshmahajan-1903
    and unassigned
    tobese
    on Apr 23, 2025
  13. 5 remaining items

  14. adityatoshniwal
    added a commit that references this issue on May 6, 2025

    Implement API fetch error display for select dropdown. #8668

    3bdeb9a
  15. akshay-joshi
    moved this from In Review to ✅ Done in Current Sprint (213)on May 6, 2025
  16. akshay-joshi
    moved this from ✅ Done to In Review in Current Sprint (213)on May 6, 2025
  17. akshay-joshi
    moved this from In Review to In Testing in Current Sprint (213)on May 6, 2025
  18. akshay-joshi
    added this to the 9.4 milestone on May 6, 2025
  19. akshay-joshi
    unassigned
    yogeshmahajan-1903
    on May 6, 2025
  20. akshay-joshi
    added
    EDB Sprint 193
    and removed
    EDB Sprint 192
    on May 7, 2025
  21. akshay-joshi
    assigned
    khushboovashi
    on May 14, 2025
  22. akshay-joshi
    added
    EDB Sprint 194
    and removed
    EDB Sprint 193
    on May 21, 2025
  23. khushboovashi commented on May 28, 2025

    @khushboovashi
    khushboovashi
    on May 28, 2025
    Contributor
    More actions

    Fixed in pgAdmin 4 v9.4. Verified with the candidate build on macOS.

    Image
  24. khushboovashi
    moved this from In Testing to ✅ Done in Current Sprint (213)on May 28, 2025
  25. akshay-joshi
    closed this as completedon May 28, 2025
  26. akshay-joshi
    removed this from Current Sprint (213)on Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @khushboovashi
    khushboovashi

Labels

Bug

Type

No type

Projects

No projects

    Milestone

    • 9.4

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.