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

mainnet-beta ERROR - Translating error Error: Transaction was not confirmed in 60.01 #1179

Closed
aosagula opened this issue Dec 10, 2021 · 40 comments

Comments

@aosagula
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Im running on mainnet-beta the upload of a directory, with only two files this operation is falling constantly,

This is the error. The transaction is not atomic, every time has a Cost.

Translating error Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 3Njay9ySdwxuuCSKLwof6NM8JYWAVVNbsmf7DEffRsrrrjWdKvyFNdi8EEDu5G4dfaXCCqqEcbijMhoUu57L79mD using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\connection.ts:2602:13)
at async sendAndConfirmRawTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\provider.ts:114:18)
at async Object.rpc [as initializeConfig] (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\program\namespace\rpc.ts:19:23)
Error deploying config to Solana network. Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 3Njay9ySdwxuuCSKLwof6NM8JYWAVVNbsmf7DEffRsrrrjWdKvyFNdi8EEDu5G4dfaXCCqqEcbijMhoUu57L79mD using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\connection.ts:2602:13)
at async sendAndConfirmRawTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\provider.ts:114:18)
at async Object.rpc [as initializeConfig] (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\program\namespace\rpc.ts:19:23)
(node:17352) UnhandledPromiseRejectionWarning: Error: Transaction was not confirmed in 60.01 seconds. It is unknown if it succeeded or failed. Check signature 3Njay9ySdwxuuCSKLwof6NM8JYWAVVNbsmf7DEffRsrrrjWdKvyFNdi8EEDu5G4dfaXCCqqEcbijMhoUu57L79mD using the Solana Explorer or CLI tools.
at Connection.confirmTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\connection.ts:2602:13)
at async sendAndConfirmRawTransaction (C:\Users\User\skullcoolnft\metaplex\js\node_modules@solana\web3.js\src\util\send-and-confirm-raw-transaction.ts:33:5)
at async Provider.send (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\provider.ts:114:18)
at async Object.rpc [as initializeConfig] (C:\Users\User\skullcoolnft\metaplex\js\packages\cli\node_modules@project-serum\anchor\src\program\namespace\rpc.ts:19:23)
(Use node --trace-warnings ... to show where the warning was created)
(node:17352) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:17352) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@github-actions
Copy link

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.

@github-actions github-actions bot added the Stale label Jan 10, 2022
@MohammadA98
Copy link

Experiencing this issue as well

@github-actions github-actions bot removed the Stale label Jan 13, 2022
@dwarkesh8
Copy link

In devnet it is working fine but when switch to mainnet-beta I'm having the same problem !!

@kelvin2180
Copy link

+1

1 similar comment
@hkirat
Copy link

hkirat commented Jan 22, 2022

+1

@hkirat
Copy link

hkirat commented Jan 22, 2022

Try increasing the timeout here - https://github.com/metaplex-foundation/metaplex/blob/master/js/packages/cli/src/helpers/accounts.ts#L583

 const solConnection = new anchor.web3.Connection(
    //@ts-ignore
    customRpcUrl || getCluster(env),
    {
      confirmTransactionInitialTimeout:  60 * 10 * 1000
    }
  );

@Helix-bitnami
Copy link

I have the same issue too. I was trying to upload 1000 (img+json) pairs and got "Translating error Error: Transaction was not confirmed in 60.01 seconds.".
No cache file and only one thing changed is that about 1.6 SOL has transferred.
I didn't have experienced this kind of bug within devnet.

@Helix-bitnami
Copy link

If someone knows how to withdraw rent fee from account on solana please let me know.

@natalasa
Copy link

any solution for this problem?

@Helix-bitnami
Copy link

Thanks for your reply. I've solved this problem with the help of updated metaplex version.

@1trackprojects1
Copy link

I'm getting same error in devnet though with the latest stable version

@Lukaris
Copy link

Lukaris commented Mar 5, 2022

I'm getting same error in devnet though with the latest stable version

yes, me too, in devnet

@alizhan1
Copy link

alizhan1 commented Mar 5, 2022

ye, I am also experiencing same problem for 2 days already :(

@aosagula
Copy link
Author

aosagula commented Mar 5, 2022

Plese backup your current mataplex (local version) and get the last version with git.

Be sure that u have the last version of metaplex.
Some time this is the problem.
When i created this issue the network was broken. After that the upload works fine.

Regards

@stegaBOB
Copy link
Contributor

stegaBOB commented Mar 6, 2022

For those on mainnet, just keep trying and/or use a different RPC. Timeout errors are not things we can fix on our end. As for devnet, the latest solana validator release on devnet (1.9.9) is causing some issues with devnet for the CMv2 program. Only solution is just to wait for the network to not be unstable for devnet.

@stegaBOB stegaBOB closed this as completed Mar 6, 2022
@Michaelhrom23
Copy link

For those on mainnet, just keep trying and/or use a different RPC. Timeout errors are not things we can fix on our end. As for devnet, the latest solana validator release on devnet (1.9.9) is causing some issues with devnet for the CMv2 program. Only solution is just to wait for the network to not be unstable for devnet.

When do you think this bug will be fixed?

@afterworktw
Copy link

I got this problem too, even on devnet.

@Endrave
Copy link

Endrave commented Mar 7, 2022

Not looking good , i tried across devnet, testnet and mainnet, none working. Also i am not quite sure how RPC work, i just know place the URL for RPC in the command will do, but where to find the RPC URL?

@Lukaris
Copy link

Lukaris commented Mar 7, 2022

it worked for me yesterday on mainnet-beta..
RPC-URL -> you have several possibilites
https://docs.solana.com/de/cluster/rpc-endpoints
or
https://docs.metaplex.com/candy-machine-v2/getting-started
(bottom area -> set config url ....)
or
you create your own node -> e.g. www.quicknode.com -> but there you have to pay a monthly fee

does anyone have experience if it works without a problem with your own node ?

@aaaasmile
Copy link

I tried just now and it works for me on the devnet.

@Jjfern96
Copy link

Jjfern96 commented Mar 8, 2022

I'm having this issue on devnet.

@runlecturesit
Copy link

Not working on devnet. Anyone has any suggestions on what to do next?

@numisman
Copy link

numisman commented Mar 8, 2022

If someone knows how to withdraw rent fee from account on solana please let me know.

Can you use the withdraw command? npx ts-node candy-machine-v2-cli.js withdraw --help

@numisman
Copy link

numisman commented Mar 8, 2022

Make sure you're done with the CM as that will drain it and close the rent account

@stegaBOB
Copy link
Contributor

stegaBOB commented Mar 8, 2022

From our discord:

Hey @ everyone! Just wanted to give an update regarding Candy Machine on Devnet. As you may know, there has been some complications with the Candy Machine program on Devnet for the past few days which has resulted in many Transaction was not confirmed in 60.01 seconds errors. This is a complication with the network itself. As a result of this, the Solana Labs team has delayed the v1.9.9 Solana release on Mainnet Beta, and we are working closely with the Solana Labs team to get this resolved ASAP. We will be sure to update you in this channel once this has been resolved.

@numisman
Copy link

numisman commented Mar 8, 2022

From our discord:

Hey @ everyone! Just wanted to give an update regarding Candy Machine on Devnet. As you may know, there has been some complications with the Candy Machine program on Devnet for the past few days which has resulted in many Transaction was not confirmed in 60.01 seconds errors. This is a complication with the network itself. As a result of this, the Solana Labs team has delayed the v1.9.9 Solana release on Mainnet Beta, and we are working closely with the Solana Labs team to get this resolved ASAP. We will be sure to update you in this channel once this has been resolved.

OH THANK GAWD!

@mcfriend99
Copy link

Anyone ever found a solution to this issue??

@tskazinski
Copy link

I'm experiencing this issue now as well.

@jocruz
Copy link

jocruz commented Apr 18, 2022

I am experiencing this as well now after going through every configuration possible, and it also does not return all of my sol, so if I had 2 sol it returns 1.9 sol. Is there a fee that we pay for attempting to run/rent a candy machine?

@mcfriend99
Copy link

I found that the easiest solution is to modify the confirmTransactionInitialTimeout option of a Connection object and set the timeout to 70 seconds and above. This performed well even when the network was very terrible.

@jocruz
Copy link

jocruz commented Apr 19, 2022

I found that the easiest solution is to modify the confirmTransactionInitialTimeout option of a Connection object and set the timeout to 70 seconds and above. This performed well even when the network was very terrible.

Thank you for replying I will edit this on future projects!

@Jjfern96
Copy link

I found that the easiest solution is to modify the confirmTransactionInitialTimeout option of a Connection object and set the timeout to 70 seconds and above. This performed well even when the network was very terrible.

Thank you for replying I will edit this on future projects!

I tried to find this variable but I couldn’t. Is there a way to reset this value by running a command in the terminal window?

@mcfriend99
Copy link

As for resetting, I have no idea. But using the Connection object from web3, the option is available as an argument to the commitment option (it's an Object) which is the second argument to the Connection constructor. Would have loved to show code, but I'm on my phone.

@joysiriban
Copy link

Try increasing the timeout here - https://github.com/metaplex-foundation/metaplex/blob/master/js/packages/cli/src/helpers/accounts.ts#L583

 const solConnection = new anchor.web3.Connection(
    //@ts-ignore
    customRpcUrl || getCluster(env),
    {
      confirmTransactionInitialTimeout:  60 * 10 * 1000
    }
  );

Where can I find this? It's not in accounts.ts

@Arhamirfan
Copy link

Thanks for your reply. I've solved this problem with the help of updated metaplex version.

@Helix-bitnami I am facing the same issue, and lost around 3-4 sol. I am using updated metaplex version. Can you tell how can i get sol back.

@Arhamirfan
Copy link

Arhamirfan commented May 27, 2022

I was trying to upload collection of 999 (img+json) pairs 8gb of size and got "Translating error Error: Transaction was not confirmed in 60.01 seconds.".
I got no issue on devnet and when i tried mainnet-beta and tried different RPC i got same errors
And because of trying different RPC I lost around 4 SOL.

Kindly let me know how to get the rent back and which RPC should i use with no issues like that.

@javildesign
Copy link

I was trying to upload collection of 999 (img+json) pairs 8gb of size and got "Translating error Error: Transaction was not confirmed in 60.01 seconds.". I got no issue on devnet and when i tried mainnet-beta and tried different RPC i got same errors And because of trying different RPC I lost around 4 SOL.

Kindly let me know how to get the rent back and which RPC should i use with no issues like that.

Hi, you can get your rent back with the command:
npx ts-node ./metaplex/js/packages/cli/src/candy-machine-v2-cli.ts withdraw_all -e mainnet-beta -k ./nft/yourkey.json

@Arhamirfan
Copy link

Thanks @javildesign , it worked.

@ogdemster
Copy link

I found that the easiest solution is to modify the confirmTransactionInitialTimeout option of a Connection object and set the timeout to 70 seconds and above. This performed well even when the network was very terrible.

how.

@Arhamirfan
Copy link

@ogdemster we can change the time which is in the constant.tsx or constant.js, the correct location is like: metaplex/js/packages/cli/constants.tsx i guess or maybe inside another folder. You can see the timeout variable there which will be set to 3000, i changed that to 9000 and didn't get any error. You can try that and let me know.

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