this not solves the issue though. i still get the same error.
./bitcoin-25.0/bin/bitcoin-cli -rpcwallet=oldwallet walletpassphrase -passphrase='redacted' 600
That "
-passphrase=" isn't necessary, its even making every attempt fail since it's taking "
-passphrase='redacted'" as your wallet's passphrase instead of the intended value.
You can use your original syntax which is correct.
Now, for the passphrase issue,
How did you bruteforce the passphrase? Using the hash extracted from the wallet or using the wallet.dat file itself?
In case of the former, can you try to extract the hash from a copy of the wallet.dat that you're testing and compare it to that hash?
In case of the latter, there's not much info to work with but are you perhaps using a non-english keyboard layout?