N
Neon2y ago
vicious-gold

Neon Console Restore Issue: Inaccessible Storage Despite Branch Deletion

Hi, I was trying to restore some data using the Restore option in the Neon console. The issue I ran into is when I tried to delete the old branch first, it gave me a bunch of errors about it being the root branch (it was not). Then, when I created a new branch and deleted the old one, the storage still seems to be there in the dashboard usage tab, but there is no way to access it. I get 'Request failed: no read-write endpoint for branch,' 'The selected branch does not have a compute endpoint.' If anyone has encountered a similar issue or has insights on how to resolve this, your help would be greatly appreciated!
7 Replies
other-emerald
other-emerald2y ago
The "root" branch in Neon is the very first branch that existed when you created your project. It would have been called main. Root and primary are different things. You can change your primary branch but not your root branch, and you can never remove your root branch. What it sounds like is that you've removed the compute from your root branch, but there must be an associated compute to access a branch. Go to your Branches page in the Neon Console. Look for a branch without a RW compute. You'll see a dash ( -) instead of a compute size (like 0.25 CU) Click the branch row. Under the Computes heading, you should see an Add new compute endpoint button. After you add a compute endpoint, you will be able to connect to it again and manage the data on the branch.
No description
other-emerald
other-emerald2y ago
The image shows what a branch without a compute looks like on the Branches page.
other-emerald
other-emerald2y ago
When you click the branch row, this is what you should see:
No description
vicious-gold
vicious-goldOP2y ago
It says I have to upgrade in order to create the endpoint. It seems like in the free tier, the endpoint is locked to the original branch, and now that it's not there, there is no way to create a new endpoint. It seems like there is a bug with the free tier's one endpoint per database.
other-emerald
other-emerald2y ago
ok. I'll have to see if I can recrerate that. In the meantime, you might be able to add an endpoint with this API: curl --request POST \ --url https://console.neon.tech/api/v2/projects/your_project_id/endpoints \ --header 'accept: application/json' \ --header 'authorization: Bearer $NEON_API_KEY' \ --header 'content-type: application/json' \ --data ' { "endpoint": { "type": "read_write", "branch_id": "your_branch_id" } } ' replace the your_project_id, your_branch_id, and $NEON_API_KEY with your values. You can find those values in the console, including your API key, which you'll find here:
other-emerald
other-emerald2y ago
No description
vicious-gold
vicious-goldOP2y ago
This worked. Thank you so much.

Did you find this page helpful?