Failed to create AgentEnvironment

Hey guys, unfortunately I met another error, which annoys me :sob:

Failed to upload chunk 1: Error: Failed to create AgentEnvironment.
Caused by: Failed to create AgentEnvironment for network 'local'.
Caused by: Failed to load identity
Caused by: Failed to instantiate identity
Caused by: Failed to load PEM
Caused by: Failed to load PEM file from file
Caused by: Failed to decrypt PEM file at /home/ydr/.config/dfx/identity/yindr/identity.pem.encrypted
Caused by: Failed to read user input
Caused by: IO error: not a terminal
Caused by: not a terminal

Anybody can give me some help? Appreciate~

1 Like

My bad, I created that part of dfx_core. Password-encrypted identities were meant to be used in a terminal. In what context are you trying to run this?

Possible workaround: use an identity that was created using --storage-mode plaintext or --storage-mode keyring

2 Likes

Oh, because I want to run gpt2, I need to upload the onnx file via ic-file-uploader. Do I need to delete the original identity and re-import it via --storage-mode plaintext or --storage-mode keyring as you suggested?

Yes, that should work

Okay :slight_smile: , I’ll give it a try

Error solved~ Appreciate~ :slight_smile:

1 Like