Issues with importing (PermissionError: [Errno 1] Operation not permitted:)

I am using beets for the first time and I have stumbled upon an issue I cannot solve.

When I try importing my library this is the error I get:
Traceback (most recent call last):
File “/home/pi/.local/bin/beet”, line 10, in
sys.exit(main())
File “/home/pi/.local/lib/python3.7/site-packages/beets/ui/init.py”, line 1266, in main
_raw_main(args)
File “/home/pi/.local/lib/python3.7/site-packages/beets/ui/init.py”, line 1253, in _raw_main
subcommand.func(lib, suboptions, subargs)
File “/home/pi/.local/lib/python3.7/site-packages/beets/ui/commands.py”, line 955, in import_func
import_files(lib, paths, query)
File “/home/pi/.local/lib/python3.7/site-packages/beets/ui/commands.py”, line 925, in import_files
session.run()
File “/home/pi/.local/lib/python3.7/site-packages/beets/importer.py”, line 329, in run
pl.run_parallel(QUEUE_SIZE)
File “/home/pi/.local/lib/python3.7/site-packages/beets/util/pipeline.py”, line 445, in run_parallel
six.reraise(exc_info[0], exc_info[1], exc_info[2])
File “/usr/lib/python3/dist-packages/six.py”, line 693, in reraise
raise value
File “/home/pi/.local/lib/python3.7/site-packages/beets/util/pipeline.py”, line 358, in run
self.coro.send(msg)
File “/home/pi/.local/lib/python3.7/site-packages/beets/util/pipeline.py”, line 171, in coro
task = func(*(args + (task,)))
File “/home/pi/.local/lib/python3.7/site-packages/beets/importer.py”, line 1547, in manipulate_files
task.finalize(session)
File “/home/pi/.local/lib/python3.7/site-packages/beets/importer.py”, line 593, in finalize
self._emit_imported(session.lib)
File “/home/pi/.local/lib/python3.7/site-packages/beets/importer.py”, line 619, in _emit_imported
plugins.send(‘album_imported’, lib=lib, album=self.album)
File “/home/pi/.local/lib/python3.7/site-packages/beets/plugins.py”, line 489, in send
result = handler(**arguments)
File “/home/pi/.local/lib/python3.7/site-packages/beets/plugins.py”, line 143, in wrapper
return func(*args, **kwargs)
File “/home/pi/.local/lib/python3.7/site-packages/beetsplug/permissions.py”, line 103, in fix
os.chmod(util.syspath(path), file_perm)
PermissionError: [Errno 1] Operation not permitted: b’/mnt/rpi.music/Library/Music/A/Adele/Albums/2011 - 21/01-01. Rolling in the Deep.mp3’

I have installed Beets on my Raspberry Pi (link to my config file), meanwhile music library is located on external drive. Does anybody have a clue how to solve this problem?

This error is saying that the permissions plugin couldn’t change the permissions in the way you wanted. It might be that the filesystem is read-only, for instance, or the files are owned by a different user.