python /home/cod/mtr/script_for_cron.py -j default -m 30 -a 'python3 /home/cod/workarea/git/raspi-fotonower-x/python/insert_obj_in_db.py -f /data_4/data_root/cod/SyctomXV_2022QA --file_local_db=/home/cod/.fotonower_config_SyctomXV/sqlite.db --folder_local_db=/home/cod/.fotonower_config_SyctomXV/ -x -v' -s cod_upload_SyctomXV -M 0 -S 0 -U 90,90,90
[Errno 13] Permission denied: '/home/pi'
picamera should be loaded when needed only !
Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log/job/2025/August/24082025/insertion_photos'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log/job/2025/August/24082025'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log/job/2025/August'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log/job/2025'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log/job'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/data_2/data_log/cod_log'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/cod/workarea/git/raspi-fotonower-x/python/insert_obj_in_db.py", line 11, in <module>
    logger = Logger('Insertion', 'insertion_logger', False).start()
  File "/home/cod/workarea/git/raspi-fotonower-x/python/logger.py", line 26, in start
    return self.build_logger(self.debug)
  File "/home/cod/workarea/git/raspi-fotonower-x/python/logger.py", line 36, in build_logger
    return self.printed_logging() if debug else self.file_out_logging()
  File "/home/cod/workarea/git/raspi-fotonower-x/python/logger.py", line 40, in file_out_logging
    Path('%s/%s/%s' % (self.logfolder, datetime.today().strftime("%Y/%B/%d%m%Y"), self.log_path.split('/')[0])).mkdir(parents=True, exist_ok=True) 
  File "/usr/lib/python3.8/pathlib.py", line 1292, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "/usr/lib/python3.8/pathlib.py", line 1292, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  File "/usr/lib/python3.8/pathlib.py", line 1292, in mkdir
    self.parent.mkdir(parents=True, exist_ok=True)
  [Previous line repeated 3 more times]
  File "/usr/lib/python3.8/pathlib.py", line 1288, in mkdir
    self._accessor.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/data_2/data_log'
Command exited with non-zero status 1
0.10user 0.05system 0:00.15elapsed 100%CPU (0avgtext+0avgdata 29928maxresident)k
0inputs+0outputs (0major+4912minor)pagefaults 0swaps
