Nukesor / archivebot

:floppy_disk: A telegram bot for backing up and collecting all kinds of media.
MIT License
98 stars 31 forks source link

Errorno 13 #13

Closed dedsec85 closed 4 years ago

dedsec85 commented 4 years ago

Hello when i try to run initdb.py by command poetry run ./initdb.py i get the following error: PermissionError: [Errno 13] Permission denied what should i do?

dedsec85 commented 4 years ago

i changed the folder and cloned files directly from git hub to my server and it fixed the problem however i get this error now Traceback (most recent call last): File "main.py", line 3, in from archivebot.archivebot import main File "/home/pi/archivebot/archivebot/archivebot.py", line 41, in os.mkdir(config['download']['/download']) KeyError: '/download' which means i should change target_dir in archivebot.py however i have no clue how i can change it could you help me with this please?

Nukesor commented 4 years ago

Sorry for the late answer.

Well, the original error came (probably) from missing write permissions in the current folder.

The second error is kind of weird. The crashing line doesn't exist in the code. (The /download part) Where did you get the code from? Did you do a fresh clone from master?