For several days I couldn't deploy program because of the same reason everyone fails. In 5 retries you can't deploy it. I changed Solana Cli source code in order to increase max retries number (you can find instructions on how to do this here) ). It worked. After all it writes checking transaction status and never be successful. It gives this error Error: 122 write transactions failed
After that stage does it spend Sol? Could it be I have insufficient funds? Is this common error? Have you ever got the same error? I couldn't find any mentions of this error on the internet. I began to suspect that modifying the source code might be the cause.
Edit: I think writing to buffer account is completed. I get error at the end of the second step writes here:
Once all transactions have been sent, the CLI polls the RPC API with batches of transaction signatures to ensure that every write was successful and confirmed.