Mkdir error when using mount on MEGA

What is the problem you are having with rclone?

Can not create directories on MEGA when using rclone mount

Run the command 'rclone version' and share the full output of the command.

rclone v1.68.2
- os/version: fedora 41 (64 bit)
- os/kernel: 6.13.11-200.fc41.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.4
- go/linking: dynamic
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

MEGA, the free plan

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone mount --daemon mega:/ /tmp/mount 
mkdir /tmp/mount/folder

This returns the error:

mkdir: cannot create directory ‘/tmp/mount/folder’: Input/output error

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[mathsync]
type = drive
scope = drive
token = XXX
team_drive = 

[mega]
type = mega
user = XXX
pass = XXX

A log from the command that you were trying to run with the -vv flag

"rclone" "mount" "--daemon" "-vv" "mega:/" "/tmp/mount"]
2025/04/23 14:39:34 DEBUG : Creating backend with remote "mega:/"
2025/04/23 14:39:34 DEBUG : Using config file from "/home/luca.mauri/.config/rclone/rclone.conf"
2025/04/23 14:39:35 DEBUG : fs cache: renaming cache item "mega:/" to be canonical "mega:"
2025/04/23 14:39:35 DEBUG : rclone: Version "v1.68.2" finishing with parameters ["/usr/bin/rclone" "mount" "--daemon" "-vv" "mega:/" "/tmp/mount"]

This is the result of the command with -vv and does not look particularly helpful, to me. However, with the commands

rclone mount --daemon mega:/ /tmp/mount --log-file rclone.log --log-level DEBUG
mkdir /tmp/mount/folder

this is the content of the log file, which does show errors:

2025/04/23 14:41:55 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "mount" "--daemon" "mega:/" "/tmp/mount" "--log-file" "rclone.log" "--log-level" "DEBUG"]
2025/04/23 14:41:55 DEBUG : Creating backend with remote "mega:/"
2025/04/23 14:41:55 DEBUG : Using config file from "/home/luca.mauri/.config/rclone/rclone.conf"
2025/04/23 14:41:56 DEBUG : fs cache: renaming cache item "mega:/" to be canonical "mega:"
2025/04/23 14:41:56 DEBUG : rclone: Version "v1.68.2" starting with parameters ["/usr/bin/rclone" "mount" "--daemon" "mega:/" "/tmp/mount" "--log-file" "rclone.log" "--log-level" "DEBUG"]
2025/04/23 14:41:56 DEBUG : Creating backend with remote "mega:/"
2025/04/23 14:41:56 DEBUG : Using config file from "/home/luca.mauri/.config/rclone/rclone.conf"
2025/04/23 14:41:56 DEBUG : fs cache: renaming cache item "mega:/" to be canonical "mega:"
2025/04/23 14:41:56 INFO  : mega root '': poll-interval is not supported by this remote
2025/04/23 14:41:56 NOTICE: mega root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2025/04/23 14:41:56 DEBUG : mega root '': Mounting on "/tmp/mount"
2025/04/23 14:41:56 DEBUG : : Root: 
2025/04/23 14:41:56 DEBUG : : >Root: node=/, err=<nil>
2025/04/23 14:41:56 DEBUG : rclone: Version "v1.68.2" finishing with parameters ["/usr/bin/rclone" "mount" "--daemon" "mega:/" "/tmp/mount" "--log-file" "rclone.log" "--log-level" "DEBUG"]
2025/04/23 14:42:12 DEBUG : /: Lookup: name="folder"
2025/04/23 14:42:12 DEBUG : /: >Lookup: node=<nil>, err=no such file or directory
2025/04/23 14:42:12 DEBUG : /: Mkdir: name="folder"
2025/04/23 14:42:12 DEBUG : /: >Mkdir: node=<nil>, err=<nil>
2025/04/23 14:42:12 fuse: panic in handler for Mkdir [ID=0x6 Node=0x1 Uid=1000 Gid=1000 Pid=2553] "folder" mode=drwx------ umask=----rwxrwx: encoding alphabet includes duplicate symbols
goroutine 41 [running]:
bazil.org/fuse/fs.(*Server).serve.func2()
	/usr/share/gocode/src/bazil.org/fuse/fs/serve.go:994 +0x145
panic({0x55b3bdca00e0?, 0x55b3be1efed0?})
	/usr/lib/golang/src/runtime/panic.go:785 +0x132
encoding/base64.NewEncoding(...)
	/usr/lib/golang/src/encoding/base64/base64.go:82
github.com/t3rm1n4l/go-mega.randString(0xa)
	/usr/share/gocode/src/github.com/t3rm1n4l/go-mega/utils.go:371 +0x299
github.com/t3rm1n4l/go-mega.(*Mega).CreateDir(0xc000118200, {0xc00082c178, 0x6}, 0xc000ca2dd0)
	/usr/share/gocode/src/github.com/t3rm1n4l/go-mega/mega.go:1786 +0x398
github.com/rclone/rclone/backend/mega.(*Fs).mkdir.func1()
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/backend/mega/mega.go:371 +0x4e
github.com/rclone/rclone/fs.pacerInvoker(0x1, 0xa, 0x40?)
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/fs/pacer.go:88 +0x32
github.com/rclone/rclone/lib/pacer.(*Pacer).call(0xc000f0a180, 0xc0002eac80, 0xa)
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/lib/pacer/pacer.go:197 +0x7c
github.com/rclone/rclone/lib/pacer.(*Pacer).Call(0xc000f0a180, 0xc0002eac80)
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/lib/pacer/pacer.go:216 +0x92
github.com/rclone/rclone/backend/mega.(*Fs).mkdir(0xc000650080, {0x55b3be21c5c8, 0x55b3bf42a600}, 0xc000ca2dd0, {0xc00082c178, 0x6})
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/backend/mega/mega.go:370 +0x61b
github.com/rclone/rclone/backend/mega.(*Fs).Mkdir(0xc000650080, {0x55b3be21c5c8, 0x55b3bf42a600}, {0xc00082c178, 0x6})
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/backend/mega/mega.go:618 +0x5b
github.com/rclone/rclone/vfs.(*Dir).Mkdir(0xc000990d00, {0xc0008560d0, 0x6})
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/vfs/dir.go:1002 +0x209
github.com/rclone/rclone/cmd/mount.(*Dir).Mkdir(0xc000e8c060, {0x55b3be1cfce0?, 0x0?}, 0xc0007e20f0)
	/builddir/build/BUILD/rclone-1.68.2-build/rclone-1.68.2/_build/src/github.com/rclone/rclone/cmd/mount/dir.go:161 +0x150
bazil.org/fuse/fs.(*Server).handleRequest(0xc000af00e0, {0x55b3be21c670, 0xc00041e320}, {0x55b3be1fb1e0, 0xc000e8c060}, 0xc0002ea480, {0x55b3be21aa10?, 0xc0007e20f0}, 0xc0009b5ed8)
	/usr/share/gocode/src/bazil.org/fuse/fs/serve.go:1208 +0x36a4
bazil.org/fuse/fs.(*Server).serve(0xc000af00e0, {0x55b3be21aa10, 0xc0007e20f0})
	/usr/share/gocode/src/bazil.org/fuse/fs/serve.go:1015 +0x59a
bazil.org/fuse/fs.(*Server).Serve.func1()
	/usr/share/gocode/src/bazil.org/fuse/fs/serve.go:512 +0x54
created by bazil.org/fuse/fs.(*Server).Serve in goroutine 100
	/usr/share/gocode/src/bazil.org/fuse/fs/serve.go:510 +0x3bf
2025/04/23 14:42:20 DEBUG : /tmp/mount: Unmounted externally. Just exit now.
2025/04/23 14:42:20 DEBUG : rclone: Version "v1.68.2" finishing with parameters ["/usr/bin/rclone" "mount" "--daemon" "mega:/" "/tmp/mount" "--log-file" "rclone.log" "--log-level" "DEBUG"]

welcome to the forum,

that is an old version, should rclone selfupdate and test again.

Updated to v1.69.1 and now works. Many thanks!