hitrov/oci-arm-host-capacity

NotAuthorizedOrNotFound

s12321 opened this issue · 11 comments

I following the instruction on a new setup, but end up to this error, does anyone have the same issue before? Thanks

php /var/www/html/oci-arm-host-capacity/index.php
: {
"code" : "NotAuthorizedOrNotFound",
"message" : "Authorization failed or requested resource not found."
}

base on: php7.4, composer 2.1.8

ps. Ampere still out of stock at this posting time, dont know how to get one. :)

Hi,
It tells exactly what it means,
Double check you didn’t mixed up arguments
$config1 = new OciConfig(
// region
// user
// tenancy
// fingerprint
// key_filename
// availabilityDomain
// subnetId
// imageId
);

Thanks 👍 I added back the protocol "jYtI:" in front of the domain, it works now 💯

This needs to be reopened.
I have WSjO:SA-SAOPAULO-1-AD-1 in the domain, and also tried not specifying anything, and I get the same error.

Hey, I believe not authorized error is not related anyhow to AD

Also please keep in mind that now you don’t need to edit PHP files at all, pull the changes from repo and adjust only .env file (check updated README)

Also please keep in mind that now you don’t need to edit PHP files at all, pull the changes from repo and adjust only .env file (check updated README)

To clarify, I only edited the .env file, nothing else.

I used the official CLI as per your instructions and it worked (by that I mean I got the proper response "out of capacity").
Thanks for that. I still believe there is an issue somehow with the PHP request, though.

Please reach me through Discord (link in the README) and send a PM with blurred .env

Because we’re all interested to solve it both for you the other future users as well

I had this same issue / error message. After doing things manually, I discovered that I somehow dropped the last character on the IOCI_MAGE_ID and the OCI_SUBNET_ID. With their length it was easy to miss on review. I still don't know how I did it. After adding the missing characters, I got the expected "out of capacity" error.

Thanks for letting me know