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

On chain program not verified / Unexpected error while getting Data from DB #119

Closed
nazreen opened this issue Dec 31, 2024 · 7 comments
Closed

Comments

@nazreen
Copy link

nazreen commented Dec 31, 2024

Steps

  • confirm hashes match through local build
  • upload program verification data successfully (note: not using program's authority - is this a problem?)
  • trigger remote job

Result:
verification status (https://verify.osec.io/status/BCE3naS4LHAfGeiN34dTTR42vBcKMC8tafF8SBDTAD5c) returns

{
  "is_verified": false,
  "message": "On chain program not verified",
  "on_chain_hash": "",
  "executable_hash": "",
  "repo_url": "",
  "commit": "",
  "last_verified_at": null
}

What does On chain program not verified mean? Since the build matches and the PDA was successfully created

job endpoint (https://verify.osec.io/status/BCE3naS4LHAfGeiN34dTTR42vBcKMC8tafF8SBDTAD5c) returns

{
  "status": "unknown",
  "message": "Unexpected error while getting Data from DB",
  "on_chain_hash": "",
  "executable_hash": "",
  "repo_url": ""
}
@nazreen nazreen changed the title "On chain program not verified" On chain program not verified / Unexpected error while getting Data from DB Dec 31, 2024
@ngundotra
Copy link
Collaborator

What endpoint are you using?

@ngundotra
Copy link
Collaborator

Can you check again? The endpoints look like they're returning data fine, and this program is correctly showing as Verified on the solana explorer.

https://explorer.solana.com/tx/4hdGdCZJbddBPNvCp2YPqrDNJeeybNA5qayCkehdttGZC7eGhPb4pXdicqBz4czXR7vKtfTmtKn938XQs2XNQ9zQ shows that the program authority the build params, which may be why https://verify.osec.io/status/BCE3naS4LHAfGeiN34dTTR42vBcKMC8tafF8SBDTAD5c is now normal.

Can you check again & let me know if this is resolved?

@nazreen
Copy link
Author

nazreen commented Dec 31, 2024

Oh, awesome! for context, I was assisting the program authority to figure this out. They seem to have run the steps themselves between me trying it out and just now.

So I guess the errors I mentioned were indeed due to how I was uploading program verification with an address that is not the program authority.

Maybe the API can be updated to make this more explicit?

"Uploader not the program authority" would be neat

@ngundotra
Copy link
Collaborator

Can you repro the error that you want us to update a message for?

@swaroop-osec
Copy link
Collaborator

@nazreen Is the issue fully resolved?

@nazreen
Copy link
Author

nazreen commented Jan 8, 2025

@nazreen Is the issue fully resolved?

Hey, sorry, haven't had time to reproduce this another time. Feel free to close if you worry about it getting stale.

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

3 participants