Im getting an error!

i deleted and remade the crypt file using the docs instructions but replacing scret with crypt-gdrive but it still doesent work

please understand, we cannot see into your machine

--- if you change a config, need to repost the redacted config.
--- post the full output of that last command

Config:
[remote]
type = drive
scope = drive
client_id = redacted.apps.googleusercontent.com
client_secret = redacted
token =

[crypt-gdrive]
type = crypt
remote = remote:remote
password = 1234
password2 = 1234

Command Output:
root@media-server:/home/ubuntu# rclone lsd crypt-gdrive: -vv
2023/01/26 20:07:20 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "lsd" "crypt-gdrive:" "-vv"]
2023/01/26 20:07:20 DEBUG : Creating backend with remote "crypt-gdrive:"
2023/01/26 20:07:20 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/01/26 20:07:20 DEBUG : Creating backend with remote "crypt-gdrive"
2023/01/26 20:07:20 NOTICE: "crypt-gdrive" refers to a local folder, use "crypt-gdrive:" to refer to your remote or "./crypt-gdrive" to hide this warning
2023/01/26 20:07:20 DEBUG : fs cache: renaming cache item "crypt-gdrive" to be canonical "/home/ubuntu/crypt-gdrive"
2023/01/26 20:07:20 ERROR : : error listing: directory not found
2023/01/26 20:07:20 DEBUG : 2 go routines active
2023/01/26 20:07:20 Failed to lsd with 2 errors: last error was: directory not found
root@media-server:/home/ubuntu#
Current Remotes:
Name Type
==== ====
crypt-gdrive crypt
remote drive

ok, that is starting to look good
change
remote = remote:remote
to
remote = remote:

and post the output of that command

ubuntu@media-server:~$ rclone lsd crypt-gdrive: -vv
2023/01/26 20:16:39 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "lsd" "crypt-gdrive:" "-vv"]
2023/01/26 20:16:39 DEBUG : Creating backend with remote "crypt-gdrive:"
2023/01/26 20:16:39 DEBUG : Using config file from "/home/ubuntu/.config/rclone/rclone.conf"
2023/01/26 20:16:39 Failed to create file system for "crypt-gdrive:": failed to decrypt password2: input too short when revealing password - is it obscured?
ubuntu@media-server:~$

how did you create crypt-gdrive:?

using rclone config
or
copy/paste text directly info rclone.conf

i used the config file why

if you are going to directly edit the config file, for passwords, you must obscure it.

rclone expects you to use rclone config.
when you type in your password, rclone obscures it
https://rclone.org/commands/rclone_obscure/

so let's say the password is 1234

rclone obscure 1234
5woKdzIf6ravtnupeJjO2BjczSQ

so your remote would look like

[crypt-gdrive]
type = crypt
remote = remote:
password = 5woKdzIf6ravtnupeJjO2BjczSQ
password2 = 5woKdzIf6ravtnupeJjO2BjczSQ

ok so i remade it in

root@media-server:/home/ubuntu# rclone lsd crypt-gdrive: -vv
2023/01/26 20:30:25 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "lsd" "crypt-gdrive:" "-vv"]
2023/01/26 20:30:25 DEBUG : Creating backend with remote "crypt-gdrive:"
2023/01/26 20:30:25 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/01/26 20:30:25 DEBUG : Creating backend with remote "crypt-gdrive"
2023/01/26 20:30:25 NOTICE: "crypt-gdrive" refers to a local folder, use "crypt-gdrive:" to refer to your remote or "./crypt-gdrive" to hide this warning
2023/01/26 20:30:25 DEBUG : fs cache: renaming cache item "crypt-gdrive" to be canonical "/home/ubuntu/crypt-gdrive"
2023/01/26 20:30:25 ERROR : : error listing: directory not found
2023/01/26 20:30:25 DEBUG : 2 go routines active
2023/01/26 20:30:25 Failed to lsd with 2 errors: last error was: directory not found
root@media-server:/home/ubuntu#

@Animosity022, the command looks ok and rclone seems to parse it ok.
a terminal glitch?

Can you paste the current rclone.conf with keys/secrets redacted?

did some more
testing, i think that the OP directly edited the config file and in the naming of the remote included :

something that rclone config prevents

[remote]
type = drive
scope = drive
client_id = redacted.apps.googleusercontent.com
client_secret =
token = redacted

[crypt-gdrive]
type = crypt
remote = remote:
password = redacted

Are you flipping around user's as well?

The one set of command's is run as 'ubuntu' and one set as 'root'

rclone.conf is user specific.

I'd assume your one file is wrong and that's the one running as root.

rclone config file
rclone config dump
rclone lsd crypt-gdrive:

and remove the secrets/keys

this is in the root
"crypt-gdrive": {
"password": "retracted",
"remote": "crypt-gdrive",
"type": "crypt"
},
"remote": {
"scope": "drive",
"team_drive": "",
"token"retracted",
"type": "drive"
}

That's missing the ":" at the end of the remote.

how would i change this

So in the config, you want something like

[gcrypt]
type = crypt
remote = GD:crypt

Normally, a whole drive isn't crypt and folks normally create a folder in the drive to be the crypt folder.

how would i fix all of this

maybe i am confused with the json syntax
perhaps should be
"remote": "remote:",

good advice